Ansicht
Dokumentation

EHPRC_BADI_005 - BAdI: Request and E-Mail Generation

EHPRC_BADI_005 - BAdI: Request and E-Mail Generation

ROGBILLS - Synchronize billing plans   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Product Compliance For Discrete Industries. You can use this BAdI to enhance the generation of requests and e-mails. This BAdI provides the following methods:

  • EML_DETERMIN_RECIPIENTS
    You can use this method to determine the recipients for the request e-mails (To, CC, BCC).
  • EML_DETERMIN_SENDER
    You can use this method to determine the sender for request e-mails.
  • EML_GENERATE_ATTACHMENTS
    You can use this method to generate additional documents to be attached to e-mails.
  • EML_GENERATE_EMAIL_TEXT
    You can use this method to generate the subject and body text of request e-mails.

In the Customizing activity Specify Campaign and E-Mail Configuration, you have made settings for e-mails, categories, and types.

You have noted the important information given in SAP Note 3133253.

This Business Add-In is filter dependent. You must specify filter criteria to activate a customer-specific BAdI implementation. You can specify, for example, the request ID. This allows you to create a BAdI implementation that applies only to requests according to the filter criteria.

In the standard system, the Business Add-In is activated. The default code is executed automatically.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

CL_DEF_IM_EHPRC_CP_BADI_005 (default implementation)

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.






Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3952 Date: 20240606 Time: 112556     sap01-206 ( 56 ms )