10-13-2008 12:22 PM
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?
10-13-2008 12:57 PM
Hi,
Only the data.
U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP
Regards,
Amit
10-13-2008 12:57 PM
Hi,
Only the data.
U can convert the CSV/Excel file using FM TEXT_CONVERT_XLS_TO_SAP
Regards,
Amit
10-13-2008 1:03 PM
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
10-13-2008 1:42 PM
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?
10-14-2008 4:42 AM
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
10-14-2008 7:12 AM
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