Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Idoc processing

mohammadaamir_khan
Participant
0 Likes
867

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

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
780

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.

Read only

mkabel
Participant
0 Likes
780

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

Read only

mohammadaamir_khan
Participant
0 Likes
780

For example, I want to change the value of KTOKD incoming in the Idoc with some default value.