Ansicht
Dokumentation

W_CM_001 - BAdI for Modifying the Outbound IDOCs that are to be Copied

W_CM_001 - BAdI for Modifying the Outbound IDOCs that are to be Copied

General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

BAdI for modifying outbound IDocs that are to be copied.

This BAdI is called in the IDoc Copy Management Tool (report WDLCOPY_MANAGE).

This tool is used to copy an outbound IDoc that is created by an application for a reference (recipient, customer) to any number of recipients (customers). The copy rule is determined using a Customizing table (TWPCOPY) that can be maintained using the transaction WDL_COPY_FILL.

In the standard SAP system, the IDoc data records of the recipients are identical to their corresponding references, which is not always desirable. This BAdI allows you to modify the IDoc data records and the control records. This means you can determine and modify individual pieces of information in the IDocs by recipient.

The method CHANGE_IDOC_INFO is available for this BAdI. This method allows you to change the master IDoc data before the master IDoc is transferred from the ALE/EDI layer and a communication IDoc is created. Both the control record and the actual data record can be modified here.

When modifying the IDoc control record, you must ensure that a partner profile including a port definition has been maintained for the information that is to be transferred (recipient, message type). If this information has not been entered, the data cannot be transferred correctly to a file port.

To change either the IDoc control record or the data record, you should make an implementation using transaction se19 or using Customizing in the IMG. The definition name is IDOC_COPY_MANAGE and the method name is CHANGE_IDOC_INFO.

The parameters for the method can be modified in the method in accordance with customer requirements.






Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.

Length: 1831 Date: 20240523 Time: 220211     sap01-206 ( 34 ms )