2008 Jul 29 6:04 AM
HI
I WANT TO UPLODA A DATA IN APPLICTION SERVER TO DATA BASE SERVER THROUGH IDOC'S PLS GIVE ME THE CODE (ASAP)
2008 Jul 29 9:19 AM
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,
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.
2008 Jul 29 6:48 AM
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
2008 Jul 29 7:55 AM
2008 Jul 29 9:19 AM
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.
2008 Jul 29 9:41 AM
Check sample program to upload data through IDOC.......
http://saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |