cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple BAPI calls in RFC Adapter

Former Member
0 Kudos

Hi, Dear Friends!

I have asynchronous scenario File to RFC(BAPI).

File contains raws. For each raw I need to execute BAPI.

With the help of each raw I need to construct one document in R/3 database with the help of BAPI.

But now my scenario provide only one document (only one BAPI is executed).

I read file to xml structure. This structure contains elements. The elements represent raws of file. But BAPI is executed only for the first element.

How to explain to XI that I want it impement BAPI <b>N times</b> - as number of raws in file (or elements in xml structure).

So how to implement multiple BAPI calls. Have you any idea?

Thank you in advance.

Natalia Maslova.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Natalia

have a look on these links

http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm

may be helpful

Thanks !!!

former_member189719
Participant
0 Kudos

Hi Natalia

Did you resolve the issue? What approach did you take?

Thanks

Dilip

Former Member
0 Kudos

Hi Dilip/Natalia,

If I understood your problem correclty, you want to call the BAP as many times as the number of lines in your input file. If I am correct, you have 2 ways.

1. Use multimapping without BPM and map every line to root of your RFC. This will create as many RFC calls as the no. of lines in the file.

2. Use a wrapper RFC in R/3 and pass all the parameters to the wrapper RFC. Within the wrapper RFC, call the original RFC as many times you wish.

Regards,

Jai Shankar

henrique_pinto
Active Contributor
0 Kudos

This issue was already solved in this topic:

Regards,

Henrique.