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: 

BAPI with CSV file

Former Member
0 Kudos

Hello Gurus,

Is it possible to pass a CSV file as a parameter in a BAPI ? or we are only allowed to pass the data of the CSV file as a table in a BAPI?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Only the data.

U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP

Regards,

Amit

5 REPLIES 5

Former Member
0 Kudos

Hi,

Only the data.

U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP

Regards,

Amit

Former Member
0 Kudos

hii

you can pass single value as a parameter also in BAPI FM ..for that you can use loop and then pass work area in BAPI for a single value.

like

LOOP AT it_data INTO ls_doc.

documenttype = ls_doc-documenttype.

regards

twinkal

Former Member
0 Kudos

Hello,

My question remains the same, is it possible to pass a csv file to a BAPI ? or we have to pass values from a CSV file as a table into BAPI?

0 Kudos

Hi,

U have to pass it as a table, CSV is not possible as far as i know.

also internal table cannot have a structure like a CSV file.

Regards,

Amit

Former Member
0 Kudos

hii

for passing values to BAPI you need to have that values in internal table only..so if single value needed then pass it by workarea or else pass internal table.

regards

twinkal