cancel
Showing results for 
Search instead for 
Did you mean: 

Calling RFC in BPM

Former Member
0 Kudos

Hi ,

My requirement is to create a background Job in XI using a set of function modules

BAPI_XMI_LOGON

BAPI_XBP_JOB_OPEN

BAPI_XBP_JOB_ADD_ABAP_STEP

BAPI_XBP_JOB_CLOSE

BAPI_XBP_JOB_START_IMMEDIATELY

BAPI_XMI_LOGOFF

I am calling these function modules in BPM

the problem I am facing when I call RFC in BPM it is creating new session, the second RFC reads the global data that is created by first RFC, since each RFC is creating a new session, for second RFC the data created(Global table updated in the function pool) by first RFC is not available.

Is there any way to solve the problem

With Regards

K.Varadharajan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vardharajan,

see your RFCs are related to eachother....by BPM it will be difficult because you will have a RFC conn made for each RFC call - so creating a new session in each call..........

i suggest a workaround for your problem......create a single RFC which will have all your above RFCs......then you can get the data of second RFC in first RFC as all rfcs will then be in a single RFC............call this RFC from BPM.......

Thanks,

Rajeev Gupta

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

1. create one RFC inside which you will call all of those modules

Regards,

michal

Former Member
0 Kudos

Hi,

i think you can try the wait step in the bpm. it will help you put some delay between each of your RFC calls.

kind regards

francis