12-19-2007 8:03 AM
hi friends,
my prog. flow is like this
1.) create po using bapi_po_create1
2.) bapi_transaction_commit with wait = 'X'.
3.) change the po created thru bapi_po_create1 using bapi_po_change.
4.) bapi_transaction_commit with wait = 'X'.
am getting the express document terminated dialog box and i can see the values not getting changed in the po..getting data inconsistencies...what is the cause of this and how to overcome? both the updates are V1 and i need both of them synchronously. from the library i can see that, we should use COMMIT WORK AND WAIT, but this -- bapi_transaction_commit with wait = 'X' does the same, right? pl advise
Sathish R
12-19-2007 3:14 PM
before calling BAPI_PO_CHANGE
gv_bapi_po_change = 'X'.
EXPORT gv_bapi_po_change FROM gv_bapi_po_change TO MEMORY ID 'BAPIPO'.
WAIT UP TO 1 SECONDS.
CALL FUNCTION 'BAPI_PO_CHANGE'
AFTEr that CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
with out any parameters.
12-19-2007 3:14 PM
before calling BAPI_PO_CHANGE
gv_bapi_po_change = 'X'.
EXPORT gv_bapi_po_change FROM gv_bapi_po_change TO MEMORY ID 'BAPIPO'.
WAIT UP TO 1 SECONDS.
CALL FUNCTION 'BAPI_PO_CHANGE'
AFTEr that CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
with out any parameters.
12-24-2007 9:34 AM
Hai,
Call Function Module DEQUEUE_ALL with parameter _SYNCHRON = 'X' after calling function module
bapi_transaction_commit with wait = 'X'.