Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 13, 2017 at 01:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded