cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping lookup API - Payload result = accessor.call(payload)

Former Member
0 Kudos

I'm trying to execute a ABAP FM from XI mapping via user defined FM...the results seems to be inconsistent all the time.

I'm trying to pass 2 parameters to the FM, sometimes one of the 2 gets passed and if I switch them around, get the one not the other. Its seems really strange. I tried passing same values for both and now I don't see either.

Could there be timing issue with actual activation of code and execution of my interface. I'm really confused. Has anyone faced same issues.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

hi parimala,

we have used an RFC look up from our User Defined functions and have not faced any issues.

Just to confirm if you have done this,

XmlPayload payload = LookupService.getXmlPayload(inputStream);

Payload rfcOutPayload = accessor.call(payload);

inputstream will contain the RFC REQUEST message in XML format along with the corresponding values for the input to the RFC populated.

Check the RFC and see the input it contains and populate the values correspondingly in the XML strcutur e and then convert it to an InputStream and pass it to the Above code.

It should work, coz it worked fine for me.

Regards,

Bhavesh

Former Member
0 Kudos

We had to refresh cache everytime I changed RFC FM parameters. And it seemed to work ok.