When you use bapi to update the data of sap standard table, when you use
BAPI_TRANSACTION_COMMIT
function and set wait = ‘X’, but some times it doesn't work.
MAYBE LIKE THIS
LOOP.
CALL function 'BAPI_XXXXX'
CALL function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
endloop.
The reason is there are many functions called in update task in the bapi.
when the commit command is executed,the functions registered in update task
begin to execute.
You can get the data from vbdata vbmod table and execute them before commit command. when all functions where executed you can delete the data from vbmod
and vbkey table.
订阅:
博文评论 (Atom)
Customer Characteristic
Characteristic Descriptions are stored in the table - CABNT - Language - SPRAS - Characteristic description - ATBEZ Characteristic Values ...
-
REPORT ZBPADD2 . DATA : L_PARTN_CAT TYPE BAPIBUS1006_HEAD - PARTN_CAT , LS_CENTRAL TYPE BAPIBUS1006_CENTRAL , ...
-
HEADER: ADD Customer Fields to structure of IMKPF and BAPI_TE_XMKPF. Items: ADD Customer Fields to structure of IMSEG and BAPI_TE_XMSEG....
-
FUNCTION:SD_SALESDOCUMENT_CREATE Append fiels to Structure below. BAPE_VBAP BAPE_VBAPX VBAPKOZ VBAPKOZX No need to append fields to Struc...
没有评论:
发表评论