Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

declaration problem...

Hi,

All

how to declare the below statements using types

DATA: t_j_1bagnt OCCURS 0.

INCLUDE STRUCTURE j_1bagnt.

DATA: END OF t_j_1bagnt.

DATA: BEGIN OF t_j_1bnflin_t OCCURS 0.

INCLUDE STRUCTURE j_1bnflin.

DATA: END OF t_j_1bnflin_t.

DATA: BEGIN OF t_j_1bnfstx_t OCCURS 0.

INCLUDE STRUCTURE j_1bnfstx.

DATA: END OF t_j_1bnfstx_t.

DATA: BEGIN OF t_j_1binlin_t OCCURS 0.

INCLUDE STRUCTURE j_1binlin.

DATA: END OF t_j_1binlin_t.

very very urgent i am facing some problems with the declaration if a structure..

Tags:
Former Member
replied
DATA: t_j_1bagnt OCCURS 0.
INCLUDE STRUCTURE j_1bagnt.
DATA: END OF t_j_1bagnt.
 " the above is same as

TYPES: BEGIN OF ty_j_1bagnt.
INCLUDE TYPE j_1bagnt. " use of TYPE is suggested
TYPES: END OF ty_j_1bagnt.

DATA : t_j_1bagnt TYPE TABLE OF ty_j_1bagnt, " this is an internal table
       wa_j_1bagnt type ty_j_1bagnt. " this is a work area
 " Make sure you dont use the work area as internal table,
 " internal table can contain multiple records
 " work area can contain only one record its just liek a strucuture

Regards

Gopi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question