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

MASTERIDOC_CREATE_REQ_MATMAS_M

Former Member
0 Likes
556

Hi Guru's,

I am having troubles with generating IDOCs with FM MASTERIDOC_CREATE_REQ_MATMAS_M

When looking into that function module: I see a call to MATERIAL_REDUCT_SEGMENT_TST, this needs be active, if not active no key data is selected for MARC etc..

When looking into MATERIAL_REDUCT_SEGMENT_TST, I see the followin coding:

READ TABLE GT_SEGMENT_TRANSFER WITH KEY SEGTYP = SEGMENT_TYPE.

etc..

But I can not trace how GT_SEGMENT_TRANSFER is being determined, from which table the data is comming from.

Hope someone can help me out.

Best regards,

Guido Koopmann

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
450

Hello Guido!

Your analisys is good.

If you call directly the FM 'MASTERIDOC_CREATE_REQ_MATMAS_M' it wouldn't have the internal table "GT_SEGMENT_TRANSFER" loaded.

You must call the FM 'MATERIAL_EXTRACT' this FM will fill the internal table "GT_SEGMENT_TRANSFER" and then it will call the FM 'MASTERIDOC_CREATE_REQ_MATMAS_M' inside the form "send_idoc". So don't call directly the 'MASTERIDOC_CREATE_REQ_MATMAS_M'.

Also you can use the report "MDM_METADATA_MAINTAIN" then choose the extraction object "MATERIAL_EXTRACT".

Best Regards!

Claudio (Aparatey)

1 REPLY 1
Read only

Former Member
0 Likes
451

Hello Guido!

Your analisys is good.

If you call directly the FM 'MASTERIDOC_CREATE_REQ_MATMAS_M' it wouldn't have the internal table "GT_SEGMENT_TRANSFER" loaded.

You must call the FM 'MATERIAL_EXTRACT' this FM will fill the internal table "GT_SEGMENT_TRANSFER" and then it will call the FM 'MASTERIDOC_CREATE_REQ_MATMAS_M' inside the form "send_idoc". So don't call directly the 'MASTERIDOC_CREATE_REQ_MATMAS_M'.

Also you can use the report "MDM_METADATA_MAINTAIN" then choose the extraction object "MATERIAL_EXTRACT".

Best Regards!

Claudio (Aparatey)