‎2012 Feb 21 4:10 PM
Hi All,
I have a general question about files that can be used for input with BAPI. Is there a standard format for the input file? Are there dufferent types of file formats that can be used as an iput file?
Thanks,
Sean
‎2012 Feb 21 4:13 PM
Files don't provide input to BAPIs; programs do. Any file that can be uploaded and interpretted by ABAP can be used.
Rob
‎2012 Feb 22 3:00 AM
Hi Sean,
Usually the data processing through BAPI is done like this.
You will have flat file of any type ( .txt, .xls, .csv etc). The you will upload the file to the program through FM or class methods. The you will do the pre-validations. once all these are done you will input the processed data to the BAPI.
Thus BAPI does not get input from the File and it gets input from the program. While program will prepare the input from file
The file format can be anything.
Regards,
Praveenkumar T.
‎2012 Feb 22 4:53 AM
Hi Sean ,
Normally the data to BAPI is passed from internal table . So your work is simple just upload your flat file, it may be any format to internal table , usually we use GUI_UPLOAD function module , and then pass to BAPI .
There are many discussions in SDN regarding converting flat file data to internal table , just have a look and try with the best FM u need.
Best Regards,
Lakshmi Rajkumar.