cancel
Showing results for 
Search instead for 
Did you mean: 

LOOP IN BPM

Former Member
0 Kudos

HI FOLKS,

I HAVE THE FOLLOWING SCENARIO:

RFC->XI->WEBSERVICE

THIS SCENARIO WORKS FINE BUT I NEED TO MAKE SOME CHANGES.

RFC PASS A STATUS "EXEC" FOR XI AND XI CALL A FUNCTION IN WEBSERVICE. WEBSERVICE RETURNS A XML WITH SOME SERVICE ORDER AND XI NEED TO CALL A RFC FOR EACH ORDER. IF WEBSERVICE RETURN 5 ORDER, XI WILL CALL RFC 5 TIMES.

HOW CAN I DO THIS?

DO I NEED A BPM?

WHICH ARE THE STEPS?

THANKS,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

>>DO I NEED A BPM?

yes it wll be easy to do in BPM

1. Recieve step (recive message from RFC to BPM)

2. Swich step + send step (based on the status call the appropiate web method in the webservice)

3. Revieve webservice call return

4. check return code

5. Loop step

6. send step - call the rfc.

Cheers,

naveen

Former Member
0 Kudos

NAVEEN,

DO YOU HAVE ANY EXAMPLE ABOUT THIS SCENARIO?

HOW CAN I CONTROL A LOOP?

THANKS,

Former Member
0 Kudos

hi,

>>HOW CAN I CONTROL A LOOP?

You use a loop ( ) to repeat the execution of steps within the loop. The loop continues to run while the end condition returns true (while loop). In your case this can be counter till it reaches value 5.

To specify the end condition, use the condition editor.

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

cheers,

naveen