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

Input file for BAPI

Former Member
0 Likes
1,154

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

3 REPLIES 3
Read only

Former Member
0 Likes
758

Files don't provide input to BAPIs; programs do. Any file that can be uploaded and interpretted by ABAP can be used.

Rob

Read only

Former Member
0 Likes
758

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.

Read only

Former Member
0 Likes
758

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.