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

FM MASTERIDOC_CREATE_REQ_MATMAS - E1MARAM Segment

marcela_martinez
Participant
0 Likes
1,415

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.

4 REPLIES 4
Read only

Former Member
0 Likes
998

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.

Read only

0 Likes
998

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

Read only

0 Likes
998

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.

Read only

marcela_martinez
Participant
0 Likes
998

I used the exit 'EXIT_SAPLMV01_002' but with some "trick" and it works!

Thx & regards.