09-09-2010 9:30 AM
Hi Guru's,
I want to verify something.
I have 2 function modules, MASTERIDOC_CREATE_REQ_MATMAS and MASTERIDOC_CREATE_REQ_MATMAS_M.
Can the first function module only process only 1 E1MARAM segment per MATMAS idoc and the second function module can process multiple E1MARAM segments per IDOC?
Help will be appreciated.
Guido
09-09-2010 9:35 AM
Hi,
By referring to the Function group description of the Function modules you can find out the difference.First one is for SIngle Material & second FM is for Creation of Mass-IDOC Material Master.
Regards
Vinod
09-09-2010 9:35 AM
Hi,
By referring to the Function group description of the Function modules you can find out the difference.First one is for SIngle Material & second FM is for Creation of Mass-IDOC Material Master.
Regards
Vinod
09-09-2010 9:49 AM
Hi Vinod,
Thank you for your reply, I still have a question based on your reply.
Is the second FM creating multiple IDOCS at one time or one IDOC with multiple materials?
Best regards,
Guido
09-09-2010 10:00 AM
Hi,
It is single idoc with multiple materials.
Refer to call MASTERIDOC_CREATE_MATMAS_MASS from Function Module "MASTERIDOC_CREATE_REQ_MATMAS_M".
FM MASTERIDOC_CREATE_MATMAS_MASS cumulates all the rows into structure "LT_DOC_DATA".
These records are passed to idoc through single call to FM MASTER_IDOC_DISTRIBUTE in Function module "MASTERIDOC_CREATE_REQ_MATMAS_M".
Regards
Vinod
09-09-2010 9:35 AM
MASTERIDOC_CREATE_MATMAS_MASS is used in MASTERIDOC_CREATE_REQ_MATMAS_M where as
MASTERIDOC_CREATE_MATMAS is used in MASTERIDOC_CREATE_REQ_MATMAS.
This should give you the clue for difference between both of them.