Hierarchy

⤷

⤷

IMG Activity
ID | EHSI_FAL_ASS_SRV_SCR | BAdI: Screen Enhancement: Injury/Illness Log-Service Assignment |
Transaction Code | S_XEN_65000060 | (empty) |
Created on | 20050809 | |
Customizing Attributes | EHSI_FAL_ASS_SRV_SCR | BAdI: Screen Enhancement: Injury/Illness Log-Service Assignment |
Customizing Activity | EHSI_FAL_ASS_SRV_SCR | BAdI: Screen Enhancement: Injury/Illness Log-Service Assignment |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | EHSI_FAL_ASS_SRV_SCR_1 |
Use
This Business Add-In (BAdI) is used in the Occupational Health (EHS-HEA) component.
With this BAdI you can implement the screen enhancement for the assignment of medical services to an injury/illness log entry according to your requirements.
The BAdI is executed when you access the screen for displaying or editing an injury/illness log entry.
In the subscreen of the Business Add-In implementation that is called, the following data for the injury/illness log entry is available:
- I_ADDINF
Additional information about selecting and editing data. The structure contains the current validity date and the current change number of the selection.
- I_ACTYPE
Activity type in the transaction
- I_FLG_CHANGED
Indicator: changes exist
- I_FLG_SAVE_PEND
Indicator: save required
- I_FALH_IOREC
Data record of currently selected injury/illness log entry
- I_INVPERS_IOTAB
Persons involved in the currently selected injury/illness log entry
You can return the following data to the calling program:
- I_FLG_CHANGED
Indicator: changes exist
- I_FLG_SAVE_PEND
Indicator: save required
- I_OKCODE
Function code
An active implementation of the Business Add-In is supplied. You can use this active implementation as the template for your own implementations.
Standard settings
The BAdI is active in the standard system and executes the implementation EHSI_FAL_ASS_SRV_SCR. The default implementation outputs the service number of the assigned medical service and makes it possible to create a medical service, assign a medical service, and branch to the medical service from within the injury/illness log.
The BAdI is not filter-dependent and not designed for multiple use.
Activities
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:
- In the dialog box, enter a name for the implementation of the Add-In and choose Create.
The system displays the initial screen for creating Business Add-In implementations. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - Save and activate your code. Navigate back to the Change Implementation screen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: - Choose Activate.
When the application program is executed, the code you created is run through.
Example
Methods:
PUT_DATA Pass screen data
GET_DATA Read screen data
PUT_OKCODE Pass function code
GET_OKCODE Read function code
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 |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20050809 |
SAP Release Created in | 600 |