‎2008 Jun 27 1:18 PM
hi all,
i am using commit statement in badi method save_data, it is put after function module,
in function module i have used insert and update statement, if i do like that then the commit statement refresh the global data but update the table,
if i create one perform inside function module and put commit statement in that perform, then it shows message update was terminated,
i also want the global data for processing thats why i can't use commit statement after FM in method, please give Suggestion,
Points will be awarded.
‎2008 Jun 27 1:22 PM
Hi,
Create new field symbols of type global data, before the commit you need to pass the data to newly created field symbol. Even if the global data has cleared you can able to get it after commit, because you used field symbols. Declare the field symbols like as global data declarations.
Rgds,
Bujji
‎2008 Jun 27 1:23 PM
hi for the bapi use this..fm. dont use commit work for bapi
bapi_transaction_commit
‎2008 Jun 27 2:02 PM
Hi,
sounds as if you call that FM in update task. Update function modules do not allow all actions. They should only include the neccessary SQL statements and must include any COMMIT.
For more information read SAPDOCU of COMMIT WORK and everything of SAPS update concept (start immed. V1, start delayed V2 and so on).
ATTENTION. Most BADIs designed to save customers data may be used several times and standard data may be saved after them. To avoid inconsistent data inside those BADIs normally no COMMIT should be done.
Kind regards,
HP