07-23-2007 4:58 AM
Hi Gurus,
Iam using the FM: BAPI_INCOMINGINVOICE_CREATE to create a Invoice and after that iam using the FM BAPI_TRANSACTION_COMMIT to update the DB.
What i have to pass the in the FM: BAPI_TRANSACTION_COMMIT for Exporting and Importing parameters.?
Thanks in advance
07-23-2007 5:00 AM
hi Krishna,
Use it in this way
Given below is that code:
*For Commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*For Updation of Sales Order
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = v_salesorder
ORDER_HEADER_INX = i_order_header_inx
TABLES
RETURN = i_return
ORDER_ITEM_IN = i_itemtable
ORDER_ITEM_INX = i_itemtable_x.
*Commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
07-23-2007 5:00 AM
hi Krishna,
Use it in this way
Given below is that code:
*For Commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*For Updation of Sales Order
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = v_salesorder
ORDER_HEADER_INX = i_order_header_inx
TABLES
RETURN = i_return
ORDER_ITEM_IN = i_itemtable
ORDER_ITEM_INX = i_itemtable_x.
*Commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
07-23-2007 5:02 AM
Hi,
U have to Expoet 'wait'.
<b>call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.</b>
Regards,
Padmam.