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

data uploading through IDOC'S

Former Member
0 Likes
1,222

HI

I WANT TO UPLODA A DATA IN APPLICTION SERVER TO DATA BASE SERVER THROUGH IDOC'S PLS GIVE ME THE CODE (ASAP)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
909

Hi,

If you want to upload the data from a flat file into SAP through IDOC's then you need to do the following steps:-

1. Identify the Basic type, Message Type & Process code depending upon the type of data you are receiving in the flat file

2. Create a partner profile in WE20 transaction by using the above details.

3. Read the data from the flat file and dump them into internal tables and validate the same.

4. Move the data from the internal tables to the idoc data records table, and also fill the IDOC control record.

5. After filling the data correctly, call the function module IDOC_INBOUND_WRITE_TO_DB by passing the data into the appropriate parameters.

6. Then an IDOC will generate for the data what you have received in the flat file and it will create a document successfully in SAP, if everything is correct.

Thanks,

Mahesh.

HI

I WANT TO UPLODA A DATA IN APPLICTION SERVER TO DATA BASE SERVER THROUGH IDOC'S PLS GIVE ME THE CODE (ASAP)

4 REPLIES 4
Read only

Former Member
0 Likes
909

hi vikash..

Its better to break your question in smaaler parts and then post in SDN..

e.g. how to read data from application server ..

then how to create IDOC from data in itnernal table and so --on

regards

Read only

Former Member
0 Likes
909

Read only

Former Member
0 Likes
910

Hi,

If you want to upload the data from a flat file into SAP through IDOC's then you need to do the following steps:-

1. Identify the Basic type, Message Type & Process code depending upon the type of data you are receiving in the flat file

2. Create a partner profile in WE20 transaction by using the above details.

3. Read the data from the flat file and dump them into internal tables and validate the same.

4. Move the data from the internal tables to the idoc data records table, and also fill the IDOC control record.

5. After filling the data correctly, call the function module IDOC_INBOUND_WRITE_TO_DB by passing the data into the appropriate parameters.

6. Then an IDOC will generate for the data what you have received in the flat file and it will create a document successfully in SAP, if everything is correct.

Thanks,

Mahesh.

Read only

Former Member
0 Likes
909

Check sample program to upload data through IDOC.......

http://saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm