2022 Jul 29 9:24 PM
Hi All,
I am using message type Z_DEBMAS which is of slightly lesser fields as DEBMAS.
At receiver side, I need to change the field values at great length.
Should I create Z process code and copy FM IDOC_INPUT_DEBITOR_MDG and change field content or I should change contents in BADI DEBMAS_IDOC_EXTENSION ?
What is the best approach ?
Thanks
2022 Jul 30 8:57 AM
Could you explain what you mean about "change the field values at great length"? It's the core of your question and I don't think people can answer if they don't understand the current situation and what you want to achieve.
2022 Jul 30 6:36 PM
Hi Mohammad,
I prefer the BADIs IDOC_DATA_INSERT and IDOC_DATA_MAPPER there you can add the changes to the IDOC log and you have everything in one single class. With the traditional user-exits the coding is distributed and you have to search where is what changed.
HTH
Kind regards
Matthias
2022 Jul 30 8:17 PM
For example, I want to change the value of KTOKD incoming in the Idoc with some default value.