2018年6月13日星期三

Solution to solve call bapi without wait. (Especialy BAPI_PS_PRECOMMIT)

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.




 






没有评论:

发表评论

Customer Characteristic

  Characteristic Descriptions are stored in the table - CABNT - Language - SPRAS - Characteristic description - ATBEZ Characteristic Values ...