Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

structure

Former Member
0 Kudos

suppose I have created structure. So do i need to mention table in report. Can giving structure is enough.

1 ACCEPTED SOLUTION

kiran_k8
Active Contributor
0 Kudos

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

1 REPLY 1

kiran_k8
Active Contributor
0 Kudos

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