‎2010 Sep 16 8:19 AM
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
‎2010 Sep 17 3:14 PM
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)
‎2010 Sep 17 3:14 PM
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)