‎2012 Sep 12 12:30 PM
Hi,
I have deleted a PO through a custom transaction.After BAPI_TRANSACTION_COMMIT, I can see the deletion symbol for that line item in ME23N transaction.
In environment->item changes also I can see the change log for blocked indicator as 'L' in f_old field and blank value in f_new field.
But when I undelete the PO,after the BAPI_TRANSACTION_COMMIT the deletion symbol is not disappearing in ME23N and also change log is
not appearing in environment->item changes path.
Please let me know any solution for this.
‎2012 Sep 12 1:08 PM
Hi
in your BAPI_TRANSACTION_COMMIT give wait = (some seconds) it will work.
‎2012 Sep 12 1:25 PM
Hi Goutam,
I have used set update task local before BAPI_PO_CHANGE FM and wait upto 2 seconds after the BAPI_PO_CHANGE and before BAPI_TRANSACTION_COMMIT.But still the changes are not getting updated in ME23N.
Is there any other solution?
‎2012 Sep 12 1:30 PM
hi
are you getting any error message while running your bapi if not check values are getting populated into bapi by debugging. then if may get some idea
‎2012 Sep 12 2:48 PM
Hi Goutam,
In table poitem-delete_ind field I am passing blank value and poitemx-delete_ind as 'x'.
After the execution of BAPI_PO_CHANGE the value 'L' is getting populated in poitem-delete_ind field.
Is it because of this the change log is not getting updated in ME23N transaction?
Is there any other solution ?
‎2012 Sep 12 2:54 PM
hi
are you passing space, if not check whether you are missing some parameters. related to your required fields.
before that in debugging try to change vakue of delete indicator from L to blank and check once.
‎2012 Sep 12 1:48 PM
Hi swapna,
Write a "wait up to n secs" ( n is your number of seconds) statemnet after "BAPI_TRANSACTION_COMMIT" .
‎2012 Sep 12 1:54 PM