Skip to Content
1

SAP IDOCS - change value in header segment based on value in item segment

Jul 12, 2017 at 06:54 PM

39

avatar image

Hi,

We have a requirement to change the value of the MRP type in the header segment of the PO item if the value of the BEG segment in the item is a specific value.

How can we achieve changing the value of a the header segment based on the value of the item segment?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Kim Kraemer Jul 13, 2017 at 01:28 PM
0

Hi Raj

You can achieve this by creating an implementation of the BAdI IDOC_DATA_MAPPER.

Here you will have access to the complete IDoc at once, but each segment is provided as a continuous string so you will have read each field from a segment using offset and length. These can be calculated based on data from table EDSAPPL.

/Kim

Share
10 |10000 characters needed characters left characters exceeded