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

FTP: Inbound connection

Former Member
0 Likes
870

Hi

Please explain the workings of an FTP connection. If a non SAP system sends a idoc/flatfile to SAP, how is the import to SAP triggered and if the files are sequential, how does SAP knows that the file has been imported already an/or which one to select next?

Can i specify a folder for each inbound message type?

Hi

Please explain the workings of an FTP connection. If a non SAP system sends a idoc/flatfile to SAP, how is the import to SAP triggered and if the files are sequential, how does SAP knows that the file has been imported already an/or which one to select next?

Can i specify a folder for each inbound message type?

4 REPLIES 4
Read only

Former Member
0 Likes
704

Hi,

When you want to create IDOCs using files sent by a non-SAP system, you need to have ABAP report program when executed will go and read the file from a folder.

So, its the scheduling of the program which becomes the polling for a specific file. Also, the file name is hard coded if the program is running in the background right, so there is no question of reading multiple files.

You need to take care of the issue of reading the same file in the ABAP program, either rename it or move it other folder etc etc.

Yes, you can specify a different folder for each message type. However, you will have to hard code the file name in the program with IF conditions on the message type. I am still not clear as to how you are planning the design.

Regards,

Ravi

Note :Please mark the helpful answers

Read only

0 Likes
704

Ravi

What would you recomment is then the best way to create IDOCS from a non-SAP system.

We want an amost realtime updates between the two systems.

Read only

0 Likes
704

Hi,

I am not aware of what Andreas is mentioning as I have not used those transactions for file polling. If you want real time updates, then we should find a way calling a RFC function of SAP from the source application.

If you are dealing with a Java / .Net based system then they can call a RFC from SAP system. Else scheduling a program at a higher frequency is the option.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

andreas_mann3
Active Contributor
0 Likes
704

Hi Giovanni,

flatfile:

procedure is on OS-area, when file found script triggers an SAP-event (look TA sm36 and sm62)

Andreas