‎2008 Jul 08 9:41 PM
hi,
in my abap proxy in ecc 6.0, i write as follows..
data xref type ref to cx_root.
try.
.....
....
....
catch cx_root into xref
x_errmsg-msg_text = xref->get_text().
endtry.
x_errmsg is a structure in which msg_text is of type bapi_msg.
i get the following error during syntax check.
the format of field specification "xref->get_text()" is not supported. only field ...(...) is possible. e.g. KTNRA2(6).
what does this mean ?????
‎2008 Jul 08 10:01 PM
As per the sample code given in the link...
http://help.sap.com/saphelp_nw70/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm
your code seems to be correct. The only thing that i could see different in your code could be
a) catch cx_root into xref ( Missing '.' in the end of the statement ) if that has been missed in the actual code also.
That might be the reason that your code is being interpretted in a wrong way.
‎2008 Jul 08 10:06 PM
Thanks abhishek. I had dot at the end of the line. THat was not the issue. Issue was a space was needed between ( and ) in get_text (). hope this info helps. thks
‎2008 Jul 08 10:06 PM