cancel
Showing results for 
Search instead for 
Did you mean: 

FILE TO MULTIPLE BAPI (THROUGH PROXY)

Former Member
0 Kudos

HI Experts,

A TEXT FILE(SALES) WAS RECEIVED AND IT SHOULD BE SEND TO XI WHICH WILL BE CONNECTED TO 4 BAPI'S( IN PROXY SERVER) .

HERE THE SCENARIO IS.......,

BASED ON THE FIRST BAPI RESPONSE , SECOND BAPI REQUEST WILL BE GENERATED.BASED ON SECOND BAPI RESPONSE, THIRD BAPI REQUEST IS GENERATED. AND FOURTH BAPI IS GENERATED BASED ON THIRD BAPI RESPONSE.

I am using PROXY SERVER for this. I am new to Proxies.

Can anyone give me the CODE for this to use in ABAP-CLASSES(se24).

THANK YOU...

Full points will be rewarded if useful

REGARDS

SAPXI

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

The below sample code in the give link will help you

ABAP Proxy outbound program - purchase order send

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bp...

ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsa...

Thanks

Swarup

Answers (3)

Answers (3)

Former Member
0 Kudos

Go to transaction SPROXY and craete a server proxy for your message interface. Take the implementation class name and open it via txn SE24. The class will contain a method named - 'EXECUTE_SYNCHRONOUS' in case of synch scenario or 'EXECUTE_ASYNCHRONOUS' in asynch. case.

Within this method you need to code in ABAP for implenmenting your logic.

In your case either you can use FCC to read the file via sender file adapter and then get data within proxy INPUT parameter.

Or you can do a OPEN DATASET from within your 'EXECUTE_SYNCHRONOUS' method. For this you need to have NFS mount of the OS directory between XI and R3.

Pls reward point if helpful.

Former Member
0 Kudos

Firstly , u should have file content conversion configured at adapter level, because proxy will understand XML...

when You'll create proxy object against the inbound message ( assuming you have done the required configuration ) a class would be generated .,.... go to se24,, insert ur class name generated by xi and press "display"... than double click on method " Execute synchronous".. this will take u to abap editor type screen,, where u can program ur rest of bussiness logic,,, when u create proxy the inbound message parameters act just like paramters of the function module,,, u can look at those generated parameters for ur use in sproxy-> structure tab... using these parameters in ur class implementation u can provide data to respective BAPI..

Former Member
0 Kudos

Hey,

When you generate the proxy,That it self will give you a class...the thing is you just need to call that class in your report or...

Please see the below links

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy

/people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - ABAP Proxy

Thanks,

Vijaya.