cancel
Showing results for 
Search instead for 
Did you mean: 

RFC lookup return no values

former_member187587
Contributor
0 Kudos

To all XI enthusiasts ,hello.

I'm using an RFC lookup during mapping when filling a purchase order IDoc.

The Function runs on the level of an item...means there are somethimes over 25-30 items per order.

I've encountered an unexplained behavior where the last few items of the order return no response or no data back to the segment from the R3. So at the end an IDoc of purchase order is only filled partly.

I've increased the Connection number of the RFC comm. channel but no shown improvement could be seen.

If any of you has encountered similar issues or problems please advise.

Kind regards.

Nimrod Gisis

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi try

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

regards

chilla..

Former Member
0 Kudos

Hi Nimrod,

could you please verify if the Function module returns the same values when you call it using se37?

Anyway, a solution could be write a new Function Module, that accepts as input parameter the queue of your values, and returns all the results in another queue.

In this way you will call only time the RFC instead of 25-30 times.

Hope this help

Francesco

former_member187587
Contributor
0 Kudos

Dear Francesco,

in se37 it returns a single value for each input value and it works fine.

If I will use a new FM like you've recommended...How can I access the FM result from a different UDF ? is there a way to refer to it as a global value? or how to connect between two mapping programs and pass values??

wait for your response....

bhavesh_kantilal
Active Contributor
0 Kudos

Nimrod,

How are you calling the FM?

Are you calling it for every source record.? or is it a FM that takes a TABLE as its input?

Regards

Bhavesh

former_member187587
Contributor
0 Kudos

The idea behind the RFC is to replace a bar code from a source system with a Material No.

of the target system.

This call happens for each item of a purchase order that is sent by a customer.

For every line - RFClookup to translate bar code with Material number.

bhavesh_kantilal
Active Contributor
0 Kudos

Nimrod,

Add Trace Statemements in your user Defined Function.

AbstractTrace trace;
trace = container.getTrace();
trace.addWarning("");

Now, using these Trace Statements find out for which values you are facing an issue and why.

Regards

Bhavesh