2018 Dec 04 6:31 AM
I am creating a RFC FM to be called in a program where Parallel processing is implemented.
Inside RFC FM, I need to SUBMIT program in a loop. ie. those many records in Tables parameter of rfc FM, i need to SUBMIT (Submit and return) the program that many times. The issue i am experiencing is, COMMIT is not happening properly for every submit inside loop. As of now, i am not explicitly writing COMMIT inside loop, as i have doubt that since this is a RFC FM of Parallel processing, i should not commit it exclusively inside loop, and process should take care of it. Below is the sample code that i have...
-> Exe z-program where RFC-FM is called.
CALL FUNCTION 'ZRFC-PP'
STARTING NEW TASK l_task
DESTINATION 'NONE'
PERFORMING collect_data ON END OF TASK
EXPORTING.....
-> RFC - FM ZRFC_PP
loop at xxxxx.
submit zyz
USING SELECTION-SCREEN xxx
WITH xxx
AND RETURN.
endloop.
Let me know, if i need to individually write COMMIT inside loop (after submit) or whats is the mistake i am doing.
Thanks.
2018 Dec 04 4:19 PM
Hi Amdap,
This is not a normal FM so pls use EXPLICITLY
Call commit outside RFC.
Regards,
Mohan