‎2008 Mar 21 10:47 AM
hi
i am trying to use this function module to modify already existing data in table mbew i am passing header data,plantdata,valuationdata,updationdata to the function module.i have used bapi_transaction_commit for commit but the change is not getting reflected in the database entries of table mbew.can anyone tell me what has to be done so that data is modified in the database.
‎2008 Mar 21 11:12 AM
Hi,
First, if you were trying to do this via FM directly, and committing, sometimes, it won't work... in this case, create a program and call the BAPI and then, commit the transaction and check for the values... it should have updated....
Second, if you were trying to create a program to do this changes, use the "COMMIT WORK" directly and check whether the values are getting updated or not.
Please let me know if you are still having issues on this.
Thanks,
Vishnu.
‎2008 Mar 21 11:42 AM
hi vishnu
i am calling FM from a program .i used commit work,its not working...
‎2008 Mar 21 11:19 AM
Hi,
After BAPI function module, you have to include function module BAPI_TRANSACTION_COMMIT, which will commit the database changes.
So just use this.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
Reward points if helpful.
Regards,
CS
‎2008 Mar 21 11:52 AM
‎2008 Mar 22 6:10 AM
Hello Romi,
Are the date in mbew you are passing standard mbew-fields or appended fields? If the latter you have to pass them over another internal table. The COMMIT has to be performed anyway.
Hope this helps,
Heinz