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

obsolete statements

Former Member
0 Likes
937

Hi

can any one please give me clear solution foor this one

DATA:BEGIN OF I_SET OCCURS 0.

INCLUDE STRUCTURE RGSB4.

DATA:END OF I_SET.

how to convert the above one to OO context means types.

is this correct

types:BEGIN OF I_SET1.

INCLUDE STRUCTURE RGSB4.

types:END OF I_SET1.

types: I_SET TYPE STANDARD TABLE OF I_SET1.

8 REPLIES 8
Read only

gopi_narendra
Active Contributor
0 Likes
886
TYPES: BEGIN OF I_SET.
INCLUDE TYPE RGSB4.  " includes whole structure of sflight
TYPES: END OF I_SET.

DATA : it_set1 TYPE TABLE OF i_set, " internal table
       is_set1 TYPE i_set.          " work area

Regards

Gopi

Read only

0 Likes
886

Hi

DATA: BEGIN OF wa OCCURS 10,

BUKRS LIKE SKB1-BUKRS,

SAKNR LIKE SKB1-SAKNR,

END OF wa.

how to convert this into oo context

Read only

0 Likes
886

Hi,

try like this

TYPES: BEGIN OF wa ,

BUKRS LIKE SKB1-BUKRS,

SAKNR LIKE SKB1-SAKNR,

END OF wa.

DATA : i_tab TYPE TABLE OF wa, " internal table

Regards,

Nagaraj

Read only

0 Likes
886
TYPES : BEGIN OF wa,
          burks TYPE skb1-bukrs,
          saknr TYPE skb1-saknr,
        END OF wa.
DATA : it_wa TYPE TABLE OF wa INITIAL SIZE 0, " internal table
       is_wa TYPE wa.                         " work area

Check this

Regards

Gopi

Read only

JozsefSzikszai
Active Contributor
0 Likes
886

hi Kiran,

i_set1 ==> you created a general type, OK

i_set ==> you created a tybla type, OK

you have to add the following for work area and internal table:

  • work area

DATA : gw_set TYPE i_set1.

  • internal table

DATA : gt_set TYPE i_set.

hope this helps

ec

Read only

Former Member
0 Likes
886

thanks

Read only

Former Member
0 Likes
886

plz help me

Read only

Former Member
0 Likes
886

HI

U R Write:

Only Change require is,

types:BEGIN OF I_SET1.

INCLUDE STRUCTURE RGSB4.

types:END OF I_SET1.

<b>DATA</b>: I_SET TYPE STANDARD TABLE OF I_SET1.

thanks

Dharmishta