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

IDOC Material Master

Former Member
0 Likes
8,002

Hi,

Iam working on IDOCs for the first time.

I need to develop an interface for creating/changing/deleting materials in SAP.

Question is if i want to change/create a material , where should be the flag set. MSGFN field in IDOC segments doesnt serve this purpose.

Second question is the IDOC file coming into SAP system doesnt have PLANT and sales area details which needs to be retrieved in SAP system using mapping tables and material should be extended to all these plants and sales areas. Iam using IDOC_INPUT_MATMAS01 for this posting and MATMAS03 basic type. Any ideas or logic would be appreciated.

Thanks in Advance,

Priya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,507

Priya,

You need to enable the master data distribution using the configuration (Transaction SPRO).

Take a look at this thread, where I have answered a similar question.

For the second one, you need to use the user exits.

Regards,

Ravi

Note : Please mark the helpful answers

3 REPLIES 3
Read only

Former Member
0 Likes
3,508

Priya,

You need to enable the master data distribution using the configuration (Transaction SPRO).

Take a look at this thread, where I have answered a similar question.

For the second one, you need to use the user exits.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
3,507

Hi Ravi,

Let me explain in more detail......iam getting materials from a middle ware as an idoc file and posting them using IDOC_INPUT_MATMAS01. Middle ware sends material for creation and sometimes for a change in which case i have to change only particular fields,(can the other feilds which should remain the same, send as blank...if so is it going to update the already existing fileds with blank?).

What would be the indicator for delete, change ,and create. Bcoz when i try to change material using test tool WE19 putting MSGFN field as 002 (which is for change) it is trying to create a material instead of saying that material doesnot exist.

I dont have distribution model for this. Just the IDoc file coming from middleware, which is manipulated to fill some other fields and posted using FM (the only user exit in this FM IDOC_INPUT_MATMAS01 is EXIT_SAPLMV02_002 ). No change pointers in this case.(may be iam wrong in understanding) . Pls explain me if am wrong and how to do it when there is a change.

Thanks

Read only

Former Member
0 Likes
3,507

Hi Priya,

You need to do the following activities.

- Ask BASIS to create new logical system for the middleware.

- Maintain file port for inbound IDoc file (t/code WE21).

- Maintain inbound MATMAS prtner profile (t/code WE20) for above logical system. No need to maintain ALE distribution model (t/code BD64)

- You can use standard program RSEINB00 to upload the IDoc file. If you setup the partner profile to trigger by background job then you need to run standard program RBDAPP01 after program RSEINB00. If you setup to trigger immediately then you don't need to run RBDAPP01.

- For creation, changes or deletion material master, you can use the same IDoc. The only different is that you need to assign value (002 = Change, 005 = Create, etc) of field MSGFN for segment E1MARAM and E1MAKTM. Please keep other segment data and do not leave blank eventhough you do not change.

Please check this link for more information on data mapping and configuration.

http://www.sapgenie.com/sapgenie/docs/template_MATMAS01.xls

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.