Application Development 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: 

Differences between function modules

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

GauthamV
Active Contributor
0 Kudos

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.