Ckick ok give the program details (like if you create a new program). The code is created and ready for you to test. See the following screen shot.
Now you can execute the code or alter the code as you like. If you run the code it will look like as follows.
Instead of the above if you want to read from the input file while generating the program you need to check as read content from file. See the following screen shot.

Once the above Read from File is selected the code generated has open data set and read data set and close data set and if you run the code it looks like as follows. You have a place to mention a file. See the following screen shot.
Creating a Fucntion Module:
Use the same way instead of program click on the function module that will create a function module. You can convert the function module as RFC so that the external system can call and input the data. If XI/PI has a file we usually create a RFC or proxy and process the data.
The following links are reference that I used
http://help.sap.com/saphelp_47×200/helpdata/en/69/c2501a4ba111d189750000e8322d00/frameset.htm
http://www.sap-img.com/bdc.htm
https://wiki.sdn.sap.com/wiki/display/ABAP/BDC%20Tutorial
https://wiki.sdn.sap.com/wiki/display/ABAP/BDC
Hope this helps.



[...] Learn SAP — Batch Data Communication BDC [...]
Pingback by learn sap – Latest learn sap news – Learn SAP — Batch Data Communication BDC — November 15, 2009 @ 3:00 am
Learning Sap is fun….Try this one!!
Comment by James French — June 25, 2010 @ 12:08 am