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

Former Member
0 Likes
433

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?

3 REPLIES 3
Read only

Former Member
0 Likes
411

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

Read only

Former Member
0 Likes
411

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.

Read only

Former Member
0 Likes
411

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