cancel
Showing results for 
Search instead for 
Did you mean: 

Maintain the context in an RFC_Lookup reponse

former_member187587
Contributor
0 Kudos

I have a multi-row input message which is mapped into a multiple IDocs.

I have a Z RFC function which is called during mapping each time with the relveant value of the context.

In the RFC Looukup response I might get values + context change between them

but some times I can get null values (not empty context) with no context change.

How can I maintain the context of the reponse so it can later be split to each target mesage.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Use mapwithDefault

Thanks

Amit Srivastava

former_member187587
Contributor
0 Kudos

Amit,

I beleive the mapwithDefault will be relevant only of you get an empty context in the reponse queue.

In my case I get nulls (dark gray queue cells with the text <null> in it)

Former Member
0 Kudos

Hello,

Is it possible for u to paste ur display queue output?

Thanks

Amit Srivastava

former_member187587
Contributor
0 Kudos

I managed to recreate something similar to what we had.You can see 2 inputs to the RFC_READ_TABLE  function. and the first valeu is invalid, causign a <null> response
and effects the whole context of the message.

former_member187587
Contributor
0 Kudos

issue solved.

Map with default did the trick.

who would have thought !  

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Nimrod,

If you want to skip the null values you can use an UDF. Check 's answer: http://scn.sap.com/message/9751660#9751660

Regards.