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

BAPI with CSV file

Former Member
0 Likes
1,119

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
Read only

Former Member
0 Likes
868

Hi,

Only the data.

U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP

Regards,

Amit

5 REPLIES 5
Read only

Former Member
0 Likes
869

Hi,

Only the data.

U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP

Regards,

Amit

Read only

Former Member
0 Likes
868

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

Read only

Former Member
0 Likes
868

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?

Read only

0 Likes
868

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

Read only

Former Member
0 Likes
868

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