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

declaration with types

Former Member
0 Likes
518

Hello,

is it possible to do that :

DATA: BEGIN OF wt_sous_poste OCCURS 0.

INCLUDE STRUCTURE stpub.

DATA: posnr LIKE stpo-posnr.

DATA: pos TYPE c.

DATA: mod_txt1 TYPE c.

DATA: mod_txt2 TYPE c.

DATA: mod_qte TYPE c.

DATA: END OF wt_sous_poste.

with the type instruction

types: begin of l_sous_poste

...

...

end of l_sous_poste

thanks for your help

4 REPLIES 4
Read only

Former Member
0 Likes
482

Why not just try it?

Rob

Read only

Former Member
0 Likes
482

HI

Yes, but u need to declare a type table too:

TYPES: BEGIN OF TY_SOUS_POSTE.
        INCLUDE STRUCTURE STPUB.
TYPES:   POSNR TYPE STPO-POSNR.
TYPES:   POS      TYPE C.
TYPES:   MOD_TXT1 TYPE C.
TYPES:   MOD_TXT2 TYPE C.
TYPES:   MOD_QTE  TYPE C.
TYPES: END OF TY_SOUS_POSTE.

TYPES: TY_SOUS_POSTE_T TYPE TABLE OF TY_SOUS_POSTE.

DATA: WT_SOUS_POSTE TYPE TY_SOUS_POSTE_T WITH HEADER LINE.

Max

Read only

Former Member
0 Likes
482

Thank you very much

Read only

matt
Active Contributor
0 Likes
482

But don't use tables with header lines.