cancel
Showing results for 
Search instead for 
Did you mean: 

Please suggest how to write cod to pick data in Loop in Server Side proxies

Former Member
0 Kudos

I am trying to Write a Code in Server/Inbound proxy .

DATA : WA TYPE ZRFC_TABLE.

LOOP AT INPUT-ZRFC_TABLE-ROW INTO WA.

ENDLOOP.

endmethod.

It is giving me error .

"INPUT-ZRFC_TABLE-ROW" is neither specified under "TABLES" nor is is defined as an internal table.

I am looking at blogs, every one is picking data in loop by same way ...

If i write a code for Direct assignment it is working ok.

like

DATA : WA TYPE ZRFC_TABLE.

WA-VBELN = INPUT-ZRFC_TABLE-ROW-VBELN

endmethod.

I dont know why in loop it is not working ... Please suggest how to pick data in Loop in Server Side proxies

Please guide , what could be the issue ?

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

for using a loop you would need a data structure that is of occurrence of unbounded.

check your data type in PI and confirm the occurrence

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

Thanks for all comments ... Problem is solved by these commenst only...

Problem was ... Earlier i declared my data type with ocurence 1..1, and Proxy generated...... but then i changed my datatype struucture to 1..unbounded..but here i forgot to regenerate my proxy structure .... so by which structure remains 1..1 in proxy and table structure was not generated...

but after these valuable comments , i checked my structure again and regenerate the proxy ..

and hence problem solved.

thanks & Regards

Prabhat Sharma.

stefan_grube
Active Contributor
0 Kudos

I think you have not defined node "row" as unbounded. So it is not a table structure in generated ABAP proxy.