Ansicht
Dokumentation

N2MV_BADI_RECP - BAdI Recipient Types

N2MV_BADI_RECP - BAdI Recipient Types

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

This BAdI is used in the section Document Dispatch of the component Clinical Documentation (IS-HMED-DO).

This BAdI enables you to add individual recipient types and thus override the presetting and saving of recipient data. At the same time you can change address and reference field data. You can store your own input help and checks for the detail display’s individual fields.

Please note the following rules when you program your customer enhancements:

  • The data changed by the BAdI is not subjected to any additional checks; so you are responsible for its consistency in terms of content.
  • The initialization method IF_EX_ISHMED_MV_RECIPIENT_TYPE~INITIALIZE is called at the beginning of the BAdl processing. At the same time a document’s management data and an error handler are transferred to the BAdI class.
  • Perform absolutely no COMMIT WORK or ROLLBACK WORK in the methods. You could create serious data errors in i.s.h.med or in SAP Patient Management (IS-H).

The BAdI is active by default.

The BAdI can be used several times and is filter-dependent for institution and recipient type.

If there is no suitable implementation for the filter, the fallback class CL_EXM_IM_ISHMED_MV_RECTYPE is executed.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

In order to implement new recipient types, you can copy or derive from the sample implementation CL_EXM_IM_ISHMED_MV_RECTYPE. At the same time you must configure the methods IF_EX_ISHMED_MV_RECIPIENT_TYPE~PREALLOCATE and IF_EX_ISHMED_MV_RECIPIENT_TYPE~UPDATE according to your wishes. IF_EX_ISHMED_MV_RECIPIENT_TYPE~PREALLOCATE and IF_EX_ISHMED_MV_RECIPIENT_TYPE~UPDATE according to your wishes. n.






TXBHW - Original Tax Base Amount in Local Currency   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 4060 Date: 20240523 Time: 204543     sap01-206 ( 67 ms )