cancel
Showing results for 
Search instead for 
Did you mean: 

how to use proxy in UDF

Former Member
0 Kudos

In a mapping I need to call an abap proxy with one key field and it will return 5 fields to me. i need to use those five fields in my mapping. How do I use an abap proxy in a UDF ?

Regards,

Frank

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Hi Frank,

You could create a web service from your proxy and call the web service from the UDF as SOAP call with the SOAP adapter.

But I think it is easier to create an RFC with the same functionality.

Regards

Stefan

Former Member
0 Kudos

thanks all for your answers. Do i understand it correct and is it not possible to use a proxy in my UDF. I know how to do it with an RFC.

stefan_grube
Active Contributor
0 Kudos

Yes, it is not possible to call a proxy.

See the documentation:

"The API for mapping lookups supports access using the RFC, JDBC, and SOAP adapters."

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

A Proxy requires a whole XI message including the XI message header. The look up API only provides the creation of the payload of the message.

Regards

Stefan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As discussed i got to understand that we cant call a proxy from a udf(message mappign of IR).

I have a small a doubt.Can't we call a RFC channel in UDF which refers BAPI.

I have a WSDL for a BAPI structure.I need to call the BAPI in the UDF and get a response.This BAPI is created as a syncronous proxy in my SAP system.This BAPI is also available to me as a WSDL,but i dont want to make a soap call as webservice.

Can any 1 help me,how i can make a call to my BAPI structure and by using which kind of adapter from my UDF and get the response in message mapping itself.

Former Member
0 Kudos

Hi Frank,

AFAIK, You should use RFC Lookup for your requirement.

1.First create an RFC with one Import parameter and five Export parameters and make it remote enabled.

2. Use XI's Mapping lookup API's to call the RFC from UDF and get required values and map it to the target fields.

For more details about RFC and other Lookup API's please refer the following Blogs.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf">XI Mapping RFC Lookup API</a>

<a href="/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer">Lookup Blog by Alessandro Guarneri</a>

<a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler Lookups</a>

<a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/index.html">SAP XI Lookup API-Help</a>

Regards,

Ananth

Former Member
0 Kudos

Frank

As far as my knowledge goes you can swap user defined fields using XML. The complete steps are given in SAP notes: 806127

---Mohan