Application Development 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: 

Table Type.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

it_hrpy_rgdir TYPE TABLE OF hrpy_rgdir.

it_VBRK TYPE TABLE OF VBRK,

it_vbrk became structure of VBRK.

Regards,

Arjun.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

answered