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 creation

Former Member
0 Likes
501

Hi experts,

I want to create the IDOC by using program.I want to upload the data from flat file(mbrsh,mtart,maktx,meins) and then i want to create the material number and also wants to create the idoc by using only programs.how can i do.help me..

Thank you,

Manjula Devi.D

2 REPLIES 2
Read only

Former Member
0 Likes
474

Have a look at below link.It will help you surely.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30 )

Create Message Type ( WE81 )

Assign Idoc Type to Message Type ( WE82 )

Creating a Segment

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

Create IDOC Type

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

Create Message Type

Go to transaction code WE81

Change the details from Display mode to Change mode

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

Assign Message Type to IDoc Type

Go to transaction code WE82

Change the details from Display mode to Change mode

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

Go thro' thesre links:-

http://help.sap.com/saphelp_46c/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm

http://www.sappoint.com/presentation.html

http://www.allsaplinks.com/idoc_search.html

http://www.sapgenie.com/sapedi/idoc_abap.htm

http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Read only

Former Member
0 Likes
474

Hi,

Just check abap program RBDSEMAT.

In short:

select the materials you want to send.

call following function module:

CALL FUNCTION 'MG_IDOC_CREATE_FULL_MAT'

EXPORTING

rcvpfc = ' '

rcvprn = receiver_prn

rcvprt = receiver_prt

sndpfc = ' '

sndprn = ' '

sndprt = ' '

message_type = mestyp

TABLES

marakey = t_matkeypack

EXCEPTIONS

OTHERS = 0.

Regards,

Raj.