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

include a structure as one of the fields while creating a type structure

Former Member
0 Likes
494

Hi all ,

I am creating a structure as follows.

types: BEGIN OF ty_price,

kunnr TYPE knvp-kunnr,

pricedata TYPE z4rl_pricing_records,

END OF ty_price.

In the structure the first field is kunnr. Second field should have data type as that of a structure. here z4rl_pricing_records is a structure created in SE11. Please tell me the syntax for this.

Thanks & Regards,

Neethu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
465

hi,

do this way ..

types: BEGIN OF ty_price,

kunnr TYPE knvp-kunnr,

pricedata TYPE standard table of z4rl_pricing_recordswith default key initial size 0,

END OF ty_price.

Regards,

Santosh

Hi all ,

I am creating a structure as follows.

types: BEGIN OF ty_price,

kunnr TYPE knvp-kunnr,

pricedata TYPE z4rl_pricing_records,

END OF ty_price.

In the structure the first field is kunnr. Second field should have data type as that of a structure. here z4rl_pricing_records is a structure created in SE11. Please tell me the syntax for this.

Thanks & Regards,

Neethu.

3 REPLIES 3
Read only

Former Member
0 Likes
466

hi,

do this way ..

types: BEGIN OF ty_price,

kunnr TYPE knvp-kunnr,

pricedata TYPE standard table of z4rl_pricing_recordswith default key initial size 0,

END OF ty_price.

Regards,

Santosh

Read only

0 Likes
465

Thanksssssss

Read only

Former Member
0 Likes
465

Types: BEGIN OF ty_price,

kunnr TYPE knvp-kunnr,

pricedata TYPE standard table of z4rl_pricing_records,

END OF ty_price.

hopefully it would do.

reward if heplful.