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

types

Former Member
0 Likes
733

Hi experts,

DATA: ITAB LIKE VBAK OCCURS 0 WITH HEADER LINE.

i want to declare the itab using TYPEs statement and

i have to process the itab fur thur in program

How can we declare that?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
712

Hi,

TYPES: BEGIN of TY_ITAB,

Include structure VBAK,

END OF ITAB.

DATA: ITAB TYPE STANDARD TABLE OF TY_ITAB.

Regards

Sudheer

7 REPLIES 7
Read only

Former Member
0 Likes
713

Hi,

TYPES: BEGIN of TY_ITAB,

Include structure VBAK,

END OF ITAB.

DATA: ITAB TYPE STANDARD TABLE OF TY_ITAB.

Regards

Sudheer

Read only

Former Member
0 Likes
712

Hi,

TYPES: BEGIN OF str,

name TYPE string,

id TYPE i,

END OF str.

DATA: ITAB TYPE TABLE OF str.

Read only

Former Member
0 Likes
712

Hi,

types: begin of ty_vbeln,

vbeln type vbak-vbeln,

end of ty_vbeln.

data: output_itab type table of ty_vbeln. "Internal Table

data: wa_itab type ty_vbeln. "Workarea

Refer:

https://forums.sdn.sap.com/click.jspa?searchID=4369088&messageID=246399

Regards

Read only

Former Member
0 Likes
712

Hi,

TYPES: BEGIN OF ITAB,

INCLUDE STRUCTURE VBAK,

END OF ITAB.

DATA : JTAB TYPE STANDARD TABLE OF ITAB WITH HEADER LINE.

Regards,

Priyanka.

Read only

Former Member
0 Likes
712

Hi...

*Table type to get values from RBKP

BEGIN OF ty_rbkp,

belnr TYPE re_belnr, " Document number of an invoice document

gjahr TYPE gjahr, " Fiscal Year

budat TYPE budat, " Date

END OF ty_rbkp,

ty_rbkp_t TYPE STANDARD TABLE OF ty_rbkp,

*Internal table and Work Area for RBKP Table

data :

gt_rbkp TYPE ty_rbkp_t,

gw_rbkp TYPE ty_rbkp,

Now u can use gt_rbkp as body, gw_rbkp as work area.

Read only

Former Member
0 Likes
712

hi ravikKumar

as shown below U can create internal table using type.

data: itab type table of vbak with header line.

regards

Read only

varma_narayana
Active Contributor
0 Likes
712

Hi..

TYPES: BEGIN of TY_VBAK,

Include structure VBAK, "here you can declare required fields also

END OF TY_VBAKITAB.

DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK,

WA_VBAK TYPE TY_VBAK. "Work area to process

SELECT *

FROM VBAK

INTO TABLE IT_VBAK

Where <cond>.

LOOP AT IT_VBAK into WA_VBAK.

ENDLOOP.

<b>Reward if Helpful</b>