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

Program for creating Sales order IDoc

Former Member
0 Likes
532

Hi

Can anybody give the program for creating the Sales order Idoc.

Regards

Raja

2 REPLIES 2
Read only

former_member182010
Active Participant
0 Likes
471

Hello Raja,

To create an inbound Sales Order IDocs, you use IDoc type ORDERS04 or the latest version that your system has if it is an older system (i.e., ORDERS01, ORDERS02, ORDERS03). You need to create a Z program to load the necessary information in the segments of the IDoc that your organization requires. You need to obtain specifications from the SD functional expert.

You can use WE60 to obtain documentation about ORDERS04. It will list all the fields and their functionality.

When you complete the code to fill in the necessary information according to the specifications you are given then, call the functin module below to create the IDoc.

call function 'IDOC_INBOUND_ASYNCHRONOUS'

tables

idoc_control_rec_40 = i_edi_dc

idoc_data_rec_40 = i_edi_all.

Good luck,

Rae Ellen Woytowiez

Read only

Former Member
0 Likes
471

Requesting for code is against forum rules. Please read the rules of the forum before posting