Ansicht
Dokumentation

CRM_IC_ERP_BADI - BAdI: Change ERP Sales Order Data

CRM_IC_ERP_BADI - BAdI: Change ERP Sales Order Data

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Sales Order in ERP (CRM-IC-SLO-ERP) component.

You can use this BAdI to change header data from the ERP sales order automatically, according to certain criteria. For example, for certain customers, you can automatically change the transaction type or the sales area. You can also populate customer-specific fields in sales orders automatically.

You can change header data of new ERP sales orders automatically, before or after they were created in the ERP system. This BAdI is made up of the two methods BEFORE_CREATION and AFTER_CREATION. After you have entered a sales order in the Interaction enter WebClient, the system calls the BEFORE_CREATION method, before it creates the sales order in the ERP system. The system calls the AFTER_CREATION method after it has created the sales order in the ERP system.

In the standard system, this BAdI is not active. If you activate the BAdI without making any changes, the system behavior is not changed. If you do not actively implement it, no standard coding is executed. The BAdI is filter-independent and is designed for multiple use.

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.

Methods:

BEFORE_CREATION

AFTER_CREATION






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

Length: 3447 Date: 20240523 Time: 173114     sap01-206 ( 61 ms )