Application Development 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: 

Creating new Idoc type.

Former Member
0 Kudos
398

I have created a new idoc type & Function module.

Linked it in WE57,We82 etc.

Generally for MATMAS message type we will use BD10 to distribute similarly i want to distribute by my own transaction.

How to create & link it with the mesage type & Idoc type.

Thanks in advance.

3 REPLIES 3

ferry_lianto
Active Contributor
0 Kudos
174

Hi,

Is this for distribute outbound MATMAS?

If yes, then you need to create custom outbound process code (WE41) which will link to your custom FM. Then in your partner profile (WE20), you can link the above custom process code to the corresponding message type and custom IDoc type.

Regards,

Ferry Lianto

gajendra_bhakuni
Product and Topic Expert
Product and Topic Expert
0 Kudos
174

Hello,

If you look at the code within the program RBDSEMAT (for BD10 transaction) you will find that finally (on drilling down) for sending idocs the FM-> MASTER_IDOC_DISTRIBUTE is called. This is the SAP standard function module for distributing IDocs.

The interface of this function module requires-control record and data record.

For control record you can fill it based on partner profile settings done in WE20.

For data record you can call various SAP material master tables (MARA, MARC etc). Finally you can call this FM.

Now the new report that you have used can be linked to your custom transaction in SE93.

Hope this helps.

Regards,

Gajendra.

Former Member
0 Kudos
174

hi,

check the below steps

<b> Create Idoc Type (WE30)</b>

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

<b>Create Message Type (WE81)</b>

Go to transaction code WE81

Change the details from Display mode to Change modenAfter selection, the system will give this message “The table is cross-client (see Help for further info)”. Press EnternClick New Entries to create new Message Type

Fill details

Save it and go back

<b> Assign Idoc Type to Message Type (WE82)</b>

Go to transaction code WE82

Change the details from Display mode to Change moden After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

If you find it useful mark the points

~~Guduri