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

Differences between function modules

Former Member
0 Likes
840

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
Read only

Former Member
0 Likes
740

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
Read only

Former Member
0 Likes
741

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

Read only

0 Likes
740

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

Read only

0 Likes
740

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

Read only

GauthamV
Active Contributor
0 Likes
740

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.