‎2007 Jun 12 8:23 AM
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
‎2007 Jun 12 8:25 AM
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
‎2007 Jun 12 8:36 AM
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.
‎2007 Jun 12 9:19 AM