‎2007 May 08 7:49 AM
suppose I have created structure. So do i need to mention table in report. Can giving structure is enough.
‎2007 May 08 7:53 AM
Abhay,
If you are using any select options in your report then it is must to declare the tables statement.In the rest of the cases it is not mandatory.
so,
data: begin of itab occurs o.
include structure makt.
data:end of itab.
select matnr spras maktx maktg from makt into table itab where spras = sy-langu.
loop at itab.
write:/
....
...
endloop.
This will fetch you the data without any error.
K.Kiran.
Message was edited by:
Kiran K
‎2007 May 08 7:53 AM
Abhay,
If you are using any select options in your report then it is must to declare the tables statement.In the rest of the cases it is not mandatory.
so,
data: begin of itab occurs o.
include structure makt.
data:end of itab.
select matnr spras maktx maktg from makt into table itab where spras = sy-langu.
loop at itab.
write:/
....
...
endloop.
This will fetch you the data without any error.
K.Kiran.
Message was edited by:
Kiran K