SAP ABAP IMG Activity EHSH_PROT_NEXT_CALC (BAdI: Calculate Next Date for a Health Surveillance Protocol)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   EHS-HEA (Application Component) Occupational Health
     P99Q1 (Package) EH&S: Occupational Health
IMG Activity
ID EHSH_PROT_NEXT_CALC BAdI: Calculate Next Date for a Health Surveillance Protocol  
Transaction Code S_AEN_10000381   (empty) 
Created on 20050209    
Customizing Attributes EHSH_PROT_NEXT_CALC   BAdI: Calculate Next Date for a Health Surveillance Protocol 
Customizing Activity EHSH_PROT_NEXT_CALC   BAdI: Calculate Next Date for a Health Surveillance Protocol 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name EHSH_PROT_NEXT_CALC    

Use

This Business Add-In (BAdI) is used in the Occupational Health (EHS-HEA) component.

You use this BAdI to implement the calculation of the next date for a health surveillance protocol according to your requirements.

The BAdI is executed when:

  • A new medical service with protocols is created.
  • A protocol is added to a medical service.
  • The user changes one of the following fields in the health surveillance protocol when editing the protocol or follow-on appointment:
    • Next due
    • Next examination type
    • Next examination date rejected
  • The user chooses Recalculate Next Appointment when editing the protocol or follow-on appointment.

Standard settings

The BAdI is activated in the standard system and executes the default code.

In the default implementation, the next date for a health surveillance protocol is calculated on the basis of the scheduled date.

In the standard system, the inactive implementation EHSH_PROT_NEXT_CALC is also supplied. This implementation calculates the next date for a health surveillance protocol on the basis of the date the protocol actually took place.

The BAdI is not filter-dependent and not designed for multiple use.

Example

Methods

Calculation of Next Appointment for Protocol in Service

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG EHSH_PROT_NEXT_CALC 0 AHR0000431 Occupational Health 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050405 
SAP Release Created in 600