About commit transaction
I have a BDC which will call a add-on program, In the add-on program, which will call a bapi to create po, the following is a snapshot of source code
CALL FUNCTION '/AFS/BAPI_PO_CREATE'
PO_HEADER = wa_po_header
PO_HEADER_ADD_DATA = wa_po_header_add
PURCHASEORDER = WA_POGR-EBELN
RETURN = WA_RET
PO_ITEMS = wa_po_items
PO_ITEM_SCHEDULES = wa_po_item_sch.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
WAIT = 'X'.
Once I using debug to trace what's problem, i found that once i call the BAPI_TRANSACTION_COMMIT. after that the following instruction will not execute and jump to end of BDC, it means i can't commit the transaction. Anyone can give me some idea. Thanks!