‎2007 Dec 06 8:58 AM
Hi all,
Is bapis expect the data in sap format ?
in BAPI programs we upload the data from legacy to internal tables and we assign these itabs to BAPI structures. Then where we convert these legacy data to sap data format ? Is BAPI automatically convert the legacy data into sap format and process it?
‎2007 Dec 06 12:43 PM
hi
Data should be in SAP format. You are taking legacy data into internal table means you are passing data as sap format only because internal table fields are sap fields only.
Reward if it dose any help.
Siva Kumar
‎2007 Dec 06 4:55 PM
step1: converting legacy data to SAP data (like C, N , D etc...)
before passing data to BAPI, the input format should be in BAPI format.
for ex. FM:BAPI_MATERIAL_SAVEDATA
Tables: TABLES
materialdescription = gt_materialdescription
unitsofmeasure =
unitsofmeasurex =
internationalartnos =
materiallongtext =
taxclassifications =
prtdata =
prtdatax =
extensionin =
extensioninx =
these table types should be match with bapi table structures..
it means that
gt_materialdescription type table of bapi_makt.
‎2007 Dec 06 4:56 PM
Sekhar,
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Regards,
Satish