06-24-2009 11:34 PM
Folks,
I need to pass a table that is of type LISTZEILE to a subroutine.
form mytest using myTable LIKE LISTZEILE.
loop at myTable.
write: / myTable.
endloop.
endform.
Syntax checker flags this declaration as an error. Can someone please suggest me the right way to declare this?
Just some background info. This subroutine is invoked from a custom RFC:
FUNCTION Z_MYRFC.
*"----
""Local Interface:
*" IMPORTING
blah
*" EXPORTING
blah
*" TABLES
*" RETURNTABLE STRUCTURE LISTZEILE
*"----
perform MyTest using returntable.
blah.
endfunction.
Thank you in advance for your help.
Regards,
Peter
06-25-2009 2:05 AM
Hi,
Check this... instead of using statement you need to use th Tables option
form mytest tables myTable Structure LISTZEILE.
loop at myTable.
write: / myTable.
endloop.
endform.
perform MyTest tables returntable.
06-25-2009 7:09 AM
Hi,
Try in this way,
PERFORM mytest TABLES mytable.
FORM MYTEST TABLES P_MYTABLE .
ENDFORM.
06-25-2009 7:13 AM
Hi,
Refer:-
PERFORM mytest TABLES returntab.
FORM mytest TABLES returntab STRUCTURE listzeile.
"code
ENDFORM.
Hope this helps you.
Regards,
Tarun
06-25-2009 7:18 AM
hi,
try this..
PERFORM mytest TABLES <Table name>.
FORM mytest TABLES < table name >STRUCTURE listzeile.
" wriite your code here
ENDFORM.
hope this helps
Regards
RItesh J