Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Item changes not getting reflected in ME23N after BAPI_TRANSACTION_COMMIT

Former Member
0 Likes
1,191

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,078

Hi

in your BAPI_TRANSACTION_COMMIT give wait = (some seconds) it will work.

Read only

0 Likes
1,078

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?

Read only

0 Likes
1,078

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

Read only

0 Likes
1,078

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 ?

Read only

0 Likes
1,078

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.

Read only

Former Member
0 Likes
1,078

Hi swapna,

Write a "wait up to  n secs" ( n is your number of seconds) statemnet after "BAPI_TRANSACTION_COMMIT" .

Read only

0 Likes
1,078

hi

i dont think wait till n seconds will be good options