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

Inbound Processing with reference to user defined Message type

Former Member
0 Likes
417

Respected Readers,

I have created a segment with fields

Matnr

mbrsh

mtart

vpsta

maktx

meins

matkl(Total 7 fields)

I have created a idoc also and a message type and assign the idoc with message type.

Now i have set the communication partners also and created the distribution model with my message type and distributed also to the reciver side.

Now as it is not the standard message type like MATMAS so we cannot use the tcode BD10 to send the material.Instead of it i have to write the program to create the idoc for sending it.

So i have created the program for the generation of IDOC.

Upto here picture is clear.

In the case of Inbound in standard we use the tcode BD11 to get material but same thing as we are not using the Standard Message type we have to create our program.

Now in this case i have written a function module and that function module is attached to the process code and process code is attached to the message type and message type is attached to the partner profile.

i have done the assignments in we57 and bd51 also.

Now idoc is created in the inbound side with status 70.

but i am not getting how to upload this data in standard tables Mara and Makt.

So that if i go to tcode MM02 and give the respective Matnr ,it should display that material.

First tell me what i have done is the right procedure or i have to make somechanges somewhere .

Secondly if you please give me the function module code for inbound processing to upload the data in this standard table( mara ,makt) so that material is created in the reciver side also.i will be very thankful to you.

I am only using seven fields in creating the material.

Please kindly send your answers and not links .

Thanks

2 REPLIES 2
Read only

varma_narayana
Active Contributor
0 Likes
368

Hi Manish..

All the Steps are Ok in your case.

But the Inbound FM that you create must be copied from any Standard inbound FM

Eg: IDOC_INPUT_MATMAS01.

Copy this FM to a Z FM .(Parameters must be Same for all inbound FMs)

Then Remove the Source code and add your own source code to update the IDOC data.

It will work.

<b>reward if Helpful</b>

Read only

0 Likes
368

i have done the same thing and used same parameter in import ,export ,tables and exception tab.

i have written some code also .

But i am not getting the code to upload the data in the standard tables so that material should be get created automatically as soon as the data get uploaded

in tables.

Somewhere i have read that you have to use the BDC concept Call transaction method to upload the data.

But how to use the BDC code in Function module , i am not getting.

Please can you send any example of code for this task.