‎2008 Mar 29 6:49 AM
‎2008 Mar 29 8:29 AM
Hi,
See the sample code
TYPES: BEGIN OF t_day,
work(8) TYPE c,
free(16) TYPE c,
END OF t_day.
DATA BEGIN OF week.
INCLUDE TYPE t_day AS monday RENAMING WITH SUFFIX _mon.
INCLUDE TYPE t_day AS tuesday RENAMING WITH SUFFIX _tue.
INCLUDE TYPE t_day AS wednesday RENAMING WITH SUFFIX _wed.
...
DATA END OF week.
Regards
Sandipan
‎2008 Mar 29 6:56 AM
‎2008 Mar 29 7:01 AM
‎2008 Mar 29 8:26 AM
you can define types like,
types: begin of itab,
include structure caufv.
end of itab.
or u can directly use strucure types filds like,
aufnr like caufv-aufnr.
or u can use structure to fill filed catelogue in ALV display.
or sturuictures can be used as interface parameters in FM
‎2008 Mar 29 8:29 AM
Hi,
See the sample code
TYPES: BEGIN OF t_day,
work(8) TYPE c,
free(16) TYPE c,
END OF t_day.
DATA BEGIN OF week.
INCLUDE TYPE t_day AS monday RENAMING WITH SUFFIX _mon.
INCLUDE TYPE t_day AS tuesday RENAMING WITH SUFFIX _tue.
INCLUDE TYPE t_day AS wednesday RENAMING WITH SUFFIX _wed.
...
DATA END OF week.
Regards
Sandipan
‎2008 Mar 31 4:28 AM
Hi,
In report the structure can be included like this
report ZTEST.
DATA:BEGIN OF t_test,
include TYPE zinbound_s,
END OF t_test.
Here Zinbound_S is a structure.
I think this solves your problem.
Regards
Sandipan
‎2008 Apr 16 12:54 PM
You can define structure in program using the data base structure
Data : variable type structure.
OR
DATA : itabl type table of structure.
reward if helps
‎2008 Apr 16 1:12 PM
hi,
you can create an include program eith the necessary structure and calling this include in your report you can access the structure
define the strucure using types in include prog ipgm
types : begin of struct.
<your fields >
end of struct.
and in your reporrt use
include ipgm.
and you can acess the structure
if you want to include a structure in internal table of your prog
data begin of itab.
include <struct name>.
data end of itab.
regards
prasanth
‎2008 Apr 16 2:39 PM
Hi prasanth,
Declare an include program and define the required structures in that include and activate it .
In report program call that include .
include <includename>.
Reward if useful.
Regards,
Muneesh Gitta.
‎2008 Apr 16 3:12 PM
Hi,
Herewith the solution
DATA: BEGIN OF t_vbak occurs 0,
INCLUDE STRUCTURE vbak.
DATA: END OF t_vbak.
Please let me know if you have any clarifications on this.
Thanks & Regards