cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to File - RFClookup

Former Member
0 Kudos

Dear XI experts,

Sender is ORDERS idoc which doesn't have a field called Customer No.

The Customer No. will be set into the filed u2018CustomerIDu2019(which exist in Receiver end).

I came to know that...if Customer No. doesnot exists in order then RFC lookup can fetch customerno.

Please confirm and provide me the code if you have the same above.

kind Regards,

Y.Raj.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40b64ca6-b1e3-2b10-4c9b-c48234ccea35]

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231]

show u how to write the UDF

prasannakrishna_mynam
Contributor
0 Kudos

Hi Yeshwant,

You can use RFC lookup and here the customerId is Exporting parameter, as you are retriving it from the FunctionModule.

Check the following RFC scenario with the code.

/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups

Regards,

Prasanna

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Please let me know which version of XI using, if its PI7.1 no need to write any UDF to get Custamer ID, you can achieve using GUI Mapping only.

XI3.0 and 7.0 search in sdn you wl find docs and sample code to perform RFC Look Up.

Regards,

Raj

Former Member
0 Kudos

Hi,

Yes u can use RFC lookup for retrieving Customer Id from R/3 system. but for that u need to know what are fields can give u unique customer id and then write RFC in R/3 and call that in XI.

Sorry, but i don't have code to find customer id

Regards,

Manisha