Hierarchy

⤷

⤷

IMG Activity
ID | W_CM_001 | BAdI for Modifying the Outbound IDOCs that are to be Copied |
Transaction Code | S_ALN_01001367 | (empty) |
Created on | 20021209 | |
Customizing Attributes | W_CM_BADI | BAdI for Modifying the Outbound IDOCs that are to be Copied |
Customizing Activity | W_CM_001 | BAdI for Modifying the Outbound IDOCs that are to be Copied |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | IDOC_COPY_MANAGE |
Use
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.
Requirements
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.
Standard settings
Activities
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.
Example
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20021209 |
SAP Release Created in | 200 |