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

Keep alive a session between 2 BAPI calls

Former Member
0 Likes
415

Hi -

I am calling several BAPIs to maintain data. I am calling from an outside system as I published the BAPIs as Web Services.

I would like that the session between 2 BAPI calls is kept, so I don't miss some session info between call #1 and call #2.

Anyone knows a way of keeping alive a session between 2 BAPI calls?

Thanks !

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
355

Try this..

<b>ARFC with Resource Management (Parallel Remote Function Call)</b>

CALL FUNCTION 'MYFUNC'

STARTING NEW TASK 'T1'

DESTINATION IN GROUP 'PRFC'

EXPORTING ...

TABLES ...

EXCEPTIONS ...

communication_failure = 100

system_failure = 101

resource_failure = 200.

IF sy-subrc= 102.

  • wait and retry...

ENDIF.

<b>Define ‘PRFC’via RZ12</b>

Amandeep

1 REPLY 1
Read only

Former Member
0 Likes
356

Try this..

<b>ARFC with Resource Management (Parallel Remote Function Call)</b>

CALL FUNCTION 'MYFUNC'

STARTING NEW TASK 'T1'

DESTINATION IN GROUP 'PRFC'

EXPORTING ...

TABLES ...

EXCEPTIONS ...

communication_failure = 100

system_failure = 101

resource_failure = 200.

IF sy-subrc= 102.

  • wait and retry...

ENDIF.

<b>Define ‘PRFC’via RZ12</b>

Amandeep