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: 

Suggesstions on flat file to IDOC

Former Member
0 Kudos

Hi,

Help me on following topics,

1) What is the use of port in program RSEINB00. I want this program to read a flat file and convert it into IDOC. How does this program recognize to which IDOC format it has to convert the flat file.

2) what is the use of file port and ABAP port when to use them. My requirement is to download a flat file or CSV flie into the customer system through FTP.Can I specify the path in the directory itself or do i need to write a seperate program for this.

3) what is the use of function module in file port.Is it used to generate file name alone or file itself.Can we write a own function.

Thanks & Regards,

Kaarthik.k

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

For the first question - RSEINB00 is basically to upload the IDOC from flat file for inbound processing. Inside this there is standard code which would get the ALE settings in the system and act accordingly.

For the 2nd question - File port is to transfer the data in the IDOC format to the external system

ABAP Port is used to create Flat file using IDOC data but not in the IDOC format. I case of ABAP port you must have a function module to process the IDOC and create the Flat file. Use OWN_FUNCTION as an example to create your own function module.

Hope this helps.

Regards,

HR

4 REPLIES 4

Former Member
0 Kudos

Hi,

Can anybody help me on this.

Thanks & Regards,

Karthik.k

Former Member
0 Kudos

Hi,

For the first question - RSEINB00 is basically to upload the IDOC from flat file for inbound processing. Inside this there is standard code which would get the ALE settings in the system and act accordingly.

For the 2nd question - File port is to transfer the data in the IDOC format to the external system

ABAP Port is used to create Flat file using IDOC data but not in the IDOC format. I case of ABAP port you must have a function module to process the IDOC and create the Flat file. Use OWN_FUNCTION as an example to create your own function module.

Hope this helps.

Regards,

HR

Former Member
0 Kudos

Hi Hema,

How the RSEINB00 identifies which file has to get converted to which idoc, should we maintain control record in the flat file itself.

Can we provide a FTP destination for the source flat file in the program RSEINB00.

Thanks & Regards,

Karthik.k

Former Member
0 Kudos

Karthik,

You know what you could do.. To get the input file format

First download the MATMAS IDOC or any idoc for that matter to a flat file, using the standard transaction BD10.

Then see the format.

As a third step upload the same file as input file with minimal changes to the data keeping the format same.

This way you can figure out how the system is able to fetch all the configuration details.

Hope this helps.

Rgds,

HR