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

Table Type.

Former Member
0 Likes
1,013

How to define table types for VBRK ?Say i want to define a table type y_vbrk for VBRK.How to define it and what should be fields of it(if a structure y_vbrk has to be created for VBRK as part of solution)?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
901

hi,

it_hrpy_rgdir TYPE TABLE OF hrpy_rgdir.

it_VBRK TYPE TABLE OF VBRK,

it_vbrk became structure of VBRK.

Regards,

Arjun.

5 REPLIES 5
Read only

Former Member
0 Likes
902

hi,

it_hrpy_rgdir TYPE TABLE OF hrpy_rgdir.

it_VBRK TYPE TABLE OF VBRK,

it_vbrk became structure of VBRK.

Regards,

Arjun.

Read only

Former Member
0 Likes
901

goto se11 ..

give some name in data type...click create..

from there select table type...

there just give line type as vbrk..

save and activate

Read only

Former Member
0 Likes
901

Hi,

Go to SE11-> give the name as y_vbrk in the field Data Type and press create. Select Table Type when the pop up appears and give the description and Line Type as VBRK. The table type gets created once save button is clicked with all the fileds of the VBRK table.

If you need only few fields of the table VBRK then create a structure with required fields and then create a table type of that structure as mentioned above.

Hope this solved your problem.

Regards,

Lavanya.

Read only

Former Member
0 Likes
901

Hi,

You can do that in the folowing manner,

TYPES: BEGIN OF ty_vbrk.
        INCLUDE STRUCTURE vbrk.
TYPES: END OF ty_vbrk.

So the fields are

MANDT VBELN      FKART FKTYP VBTYP WAERK VKORG VTWEG KALSM  KNUMV etc.

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
901

answered