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

Function module is not getting updated data while master data chage happens

Former Member
0 Likes
638

Hi All,

   I am working with a module pool program to get the Payroll data by using FM  'PYXX_READ_PAYROLL_RESULT' .  

   Now, I am executing my Tcode to get the Payroll Data in one ABAP Session. and parallel, I have opened one more session and did the Master Data Changes for Payroll tables and run the payroll & in PC_PAYRESULT also new data has been updated.

Now, I continued with other session which was opened already and trying to get the new updated Data, but It was not happening. Same old data is coming.

I have tried  with  COMMIT WORK AND WAIT and FM 'STATUS_BUFFER_REFRESH'  before calling Payroll FM.

But Not working.

Kindly help me

Thanks,

Vishnu

2 REPLIES 2
Read only

PeterJonker
Active Contributor
0 Likes
506

You say: "parallel, I have opened one more session and did the Master Data Changes for Payroll tables"

That might be the cause. In change mode the table is locked so the update will fail.

Strange that you didn't get an error / warning message.

You can check in SM12 if a lock has been set and in SM14 if an update task has failed (cancelled).

Read only

0 Likes
506

Thanks for your replay Peter.

I have opened one more session and updated the master data changes successfully and I can able to see that changes in PayRoll Tables.

But I have already opened my Zprogram report program in one session, If I continue with that same session, I am not able to fetch the updated payroll Data at all.

but If I run my z program in with new session, I am able to fetch the correct & updated data.

My Problem is If any session opend before master data changes, If I am continueing  with the same session after Master Data Changes is not fetching data properly.

please help me.