Skip to Content
avatar image
Former Member

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

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 21, 2010 at 07:48 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 22, 2010 at 05:54 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2010 at 07:58 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded