‎2008 Dec 19 4:46 AM
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)?
‎2008 Dec 19 4:52 AM
hi,
it_hrpy_rgdir TYPE TABLE OF hrpy_rgdir.
it_VBRK TYPE TABLE OF VBRK,
it_vbrk became structure of VBRK.
Regards,
Arjun.
‎2008 Dec 19 4:52 AM
hi,
it_hrpy_rgdir TYPE TABLE OF hrpy_rgdir.
it_VBRK TYPE TABLE OF VBRK,
it_vbrk became structure of VBRK.
Regards,
Arjun.
‎2008 Dec 19 4:54 AM
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
‎2008 Dec 19 4:54 AM
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.
‎2008 Dec 19 12:57 PM
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
‎2009 Mar 30 6:37 AM