cancel
Showing results for 
Search instead for 
Did you mean: 

recieving a table to RFC

Former Member
0 Kudos

hello exprets

I have a scenario RFC2WS, and my problem is in the response.

the thing is that the WS is returning an array, that can be up to 10 and the RFC suppose to recieve them column by column. I couldnt find the right method/configuration to put it to get the correct output.

for example:

getting from WS:

<NS7:changeReasons>

<NS7:changeReasonArr>

<NS7:item>

<NS7:changeReasonCode>815</NS7:changeReasonCode>

</NS7:item>

</NS7:changeReasonArr>

</NS7:changeReasons>

in RFC suppose to get it as:

<KOD_MAHUT_SHINUY1>1</KOD_MAHUT_SHINUY1> <KOD_MAHUT_SHINUY2>1</KOD_MAHUT_SHINUY2> <KOD_MAHUT_SHINUY3>1</KOD_MAHUT_SHINUY3> <KOD_MAHUT_SHINUY4>1</KOD_MAHUT_SHINUY4> <KOD_MAHUT_SHINUY5>1</KOD_MAHUT_SHINUY5> <KOD_MAHUT_SHINUY6>3</KOD_MAHUT_SHINUY6> <KOD_MAHUT_SHINUY7>1</KOD_MAHUT_SHINUY7> <KOD_MAHUT_SHINUY8>1</KOD_MAHUT_SHINUY8> <KOD_MAHUT_SHINUY9>353</KOD_MAHUT_SHINUY9>

<KOD_MAHUT_SHINUY10>1</KOD_MAHUT_SHINUY10>

as you can see, in the RFC could be more lines that there are acctually in the WS, and I want to enter 815 to SHINUY1 and to the rest to put an empty string.

helpful will be appreciated, I am running out of ideas.

Thanks

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

Go for Java or ABAP mapping.

VJ

Answers (1)

Answers (1)

Former Member
0 Kudos

I would, there is a problem with the ABAP, so I am trying to do it in the XI.

any suggestions how to map it correctly?