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: 

Data Transfer from Flat file To SAP system,

Former Member
0 Kudos

Hi SAP Guru's,

My query is :

How to update Material master data by using idoc type MATMAS05 . The data is present in flat file at application server.

I am new to idoc area.Please provide me the sample program that how to update material master data by using standard idoc type.

I am clear with the point that we have to read flat file from application server to internal table.

But i got stucked at this point that how to update data from internal table data , by using standard idoc type MATMAS 05.

I am in real need.Please provide me with the answer of this query.

I will really appreciate your <<removed by moderator>> reply.

Thanks

Simran

Edited by: Simran_SAP on Aug 25, 2010 10:46 AM

Edited by: kishan P on Aug 25, 2010 4:36 PM

4 REPLIES 4

Former Member
0 Kudos

Hi Simran,

You need to create internal tables of type EDIDD, EDIDC and EDIDS and then pass the data according to fornmat required by MATMAS05 and pass these tables to to FM MASTER_IDOC_DISTRIBUTE to create an outbound idoc and then again you have to write the code in inbound side to update the data from idoc segments to SAP DB tables for Material data ( eg. MARA, MARC, MARD).

For Sample code program for oubound and inbound programs, Please refer to below link.

http://www.riyaz.net/blog/beginners-guide-to-ale-and-idocs-part-ii/technology/sap/19/

regards,

Vinod

0 Kudos

Hi Vinod,

My requirement is to create inbound idoc.I came to know about these function modules "IDOC_CREATE_ON_DATABASE"

and "APPLICATION_IDOC_POST_IMMEDIAT " to create inbound idoc.

Can you please guide me to on these FM's.

Sample program will really help me in this regard.

Thanks a lot for your understanding.

Waiting fr positive response.

Regards

Simran

0 Kudos

Hi Simran,

you can look at export and import parameters of these FM and find what inputs are to be given and output will be in which format. Sample program for inbound idoc is also available on the website mentioned by me in earlier post.

Regards,

Vinod

0 Kudos

Hi Vinod,

Thanks for reply..

I am new to idoc area.and my requirement is to generate the idoc after reading data from a flat file. The file is passed to the application server

by a middleware . The SAP interface program reads the file from the application server and then starts processing the data. Please help me how to create the inbound IDoc and which FM needs to be used.

Please provide a sample Program .

This will really help..

Waiting fr ur early response.

Thanks

Simran