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

problem with the bapi.

Former Member
0 Likes
497

hi ,

i transfered legacy data to sap system using bapi.

for that i used salesorder creation bapi.

'BAPI_SALESORDER_CREATEFROMDAT2'.

it is uploading my header data and item data .

even it set the values correctly.

but the above rfc not creating saledocument.

where i did mistake pls rectify my problem.

2 REPLIES 2
Read only

Former Member
0 Likes
454

Did you call BAPI BAPI_TRANSACTION_COMMIT after your BAPI call because BAPI_SALESORDER_CREATEFROMDAT2 does not have a DB commit.

Hope that helps,

Michael

Read only

0 Likes
454

hi michel i agree with u. i called 'bapi_transction_commit' first

after than i called bapi_saleorder_createformdat2.

i checked in debugging modein that function module.

it gives sy-subrc 4 for the below statement

fbgenmac 'BAPI_SALESORDER_CREATEFROMDAT2'.

how i will rectify this problem.

do u want the code.

i will send my code.

Edited by: kartik p on Sep 22, 2008 5:00 PM