Application Development and Automation 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: 
Read only

USING STRUCTURE IN REPORT

Former Member
0 Likes
647

hi all,

can anyone tell me with an example how to use structure in my program,i have a single field that is present in structure. how to include it into the internal table which i am using it to display in my layout.can anyone help me out with an example.

avi

3 REPLIES 3
Read only

Former Member
0 Likes
539

HI,

try this

types: begin of t_str.

inlcude structure (structure)

types: end of t_str,

t_it_str type stanadard table of t_str.

data: git type t_it_str ,

gwa type t_str.

git is the body

gwa is the header line

loop at git into gwa

eg: modify git from gwa.

eg append gwa to git.

endloop

reward points if helpful

regards,

venkatesh

Read only

dev_parbutteea
Active Contributor
0 Likes
539

TYPES: BEGIN OF tt_error ,

bukrs1 TYPE bkpf-bukrs,

END OF tt_error.

hi,

TYPES: BEGIN OF tt_error2 ,

bukrs2 TYPE bkpf-bukrs,

END OF tt_error2.

TYPES: BEGIN OF tt_error3.

INCLUDE TYPE tt_error.

INCLUDE TYPE tt_error2.

TYPES: end OF tt_error3.

data:wa_tt_error like tt_error3,

it_tt_error LIKE TABLE OF tt_error3.

Regards,

Sooness.

Read only

Former Member
0 Likes
539

thanks i am able to resolve my problem