‎2012 Jan 12 2:15 PM
Hi people!
I need to change a Z program that uses MASTERIDOC_CREATE_REQ_MATMAS FM for sending IDOCs. There is a E1MARAM's field segment (LABOR) that is filling with a bar ("/"), and I was asked to change and fell it with MARA information.
When I debug the program I can see that that field has some information differente than the "bar", but when the segment is created I can see at WE02 t-code that contanins the "bar".
Can you tell me if I can "set or customize" somewhere so MASTERIDOC_CREATE_REQ_MATMAS FM fills that field with the correct data? I'm sorry but I'm not very well with IDOC's standard generation.
Thanks and kind regards.
Marcela.
‎2012 Jan 13 7:26 AM
Hi,
It appears that it is the problem with your material master data.
Check the field the value stored in the MARA table for the field LABOR.
Anyway, you can use the customer exit 'EXIT_SAPLMV01_002' to update the segment 'E1MARAM'.
Regards,
Vijaymadhur.
‎2012 Jan 13 1:54 PM
Hi Vijaymadhur,
Thank you for your helpful answer.
I introduced some code there, the point is that something happens with that field and IDOC creation. I saw the value I need with the debug, but when I check the segment at WE02 t-code, it has the bar!!
Any other idea? I will appreciate a lot.
Thanks again & kind regards,
Marcela.
Edited by: MMP on Jan 13, 2012 2:54 PM
‎2012 Jan 14 7:34 AM
Hi,
What is the value being passed to the field MSGFN of the tables parameter MARAKEY.
This field accepts the below values only.
003 Delete: Message contains objects to be deleted
004 Change: Message contains changes
005 Replace: This message replaces previous messages
009 Original: First message for process
023 Wait/Adjust: Data should not be imported
018 Resend
I think the problem that you are facing is something to do with the value of the field MSGFN.
Regards,
Vijaymadhur.
‎2012 Jan 16 3:18 PM
I used the exit 'EXIT_SAPLMV01_002' but with some "trick" and it works!
Thx & regards.