‎2014 Apr 24 11:13 AM
Hello,
I have to change Exclusion/Inclusion Flag in Invoice document after pressing SAVE button. I wrote code in FM 'RV_INVOICE_DOCUMENT_ADD'. I used implicit enhancement and put my logic at the end of FM. In Development server, since data is very less, so my code is running without using PERFORM.. ON COMMIT but is testing server, since data is very huge. So, my logic is not getting triggered.
Actually, I am calling table VBRP and EIKP in this FM and at the time of selecting records from VBRP and EIKP, records are not present in these tables. But in Development, since data is very so it works fine. But in testing, it is getting failed.
So, I used PERFORM.. ON COMMIT. But this is not calling my code even in Developemnt server.
Please, help me, how to use PERFORM.. ON COMMIT. Or is there another place where in, I can put my code. BTW this FM is the last place where I am getting values in VBRP and EIKP tables. Before this FM, we don't get any values in VBRP and EIKP.
Regards
Arpit
‎2014 Apr 24 11:34 AM
Hi Arpit,
Can't you use another condition like import parameter WITH_POSTING to determine the execution of the code?
And maybe placing your code in a function and call it with starting new task instruction where you can wait for the table updates.
regards,
Arpit
‎2014 Apr 24 11:34 AM
Hi Arpit,
Can't you use another condition like import parameter WITH_POSTING to determine the execution of the code?
And maybe placing your code in a function and call it with starting new task instruction where you can wait for the table updates.
regards,
Arpit
‎2014 Apr 24 12:00 PM
‎2014 Apr 24 11:47 AM
Hi Arpit,
You must ensure that any subroutines called using ON COMMIT can be delayed until the next COMMIT WORK in the calling program so please check whether commit work correctly getting executed after your perform routine for all scenarios.
Regards,
Sudeesh Soni
‎2014 Apr 24 11:59 AM