Application Development 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: 

Parallel Processing RFC FM - Submit inside loop ignores commit.

0 Kudos

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.

1 REPLY 1

TMSingh_SAP
Participant
0 Kudos

Hi Amdap,

This is not a normal FM so pls use EXPLICITLY

Call commit outside RFC.

Regards,

Mohan