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

Extended Program check for internal table

Former Member
0 Likes
710

TYPES:BEGIN OF TY_FINAL,

VBELN TYPE VBAP-VBELN,

VBELV TYPE VBAP-VBELV,

POSNV TYPE VBAP-POSNV,

WERKS TYPE VBAP-WERKS,

ZZ_MODEL_NO TYPE VBAP-ZZ_MODEL_NO,

VKORG TYPE VBAK-VKORG,

TEXT(70) TYPE C,

END OF TY_FINAL.

----


  • Declaration of Variables *

----


DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK ,

IT_VBAP TYPE STANDARD TABLE OF TY_VBAP ,

IT_FINAL TYPE STANDARD TABLE OF TY_FINAL WITH HEADER LINE.

DATA: W_VBAK TYPE TY_VBAK ,

W_VBAP TYPE TY_VBAP ,

W_FINAL TYPE TY_FINAL ,

W_LAYOUT TYPE SLIS_LAYOUT_ALV ,

W_VARIANT_SAVE TYPE C ,

W_REPID TYPE SY-REPID .

***********************************************************************************************************************

In the above code i have declared IT_FINAL TYPE STANDARD TABLE OF TY_FINAL WITH HEADER LINE. in extended program check iam getting error as( Tables with headers are no longer supported in the OO context.

can any one plz suggest me to avoid this error.

Thanks in Advance.

Moderator message - Duplicate post locked

Edited by: Rob Burbank on May 19, 2009 9:12 AM

6 REPLIES 6
Read only

ThomasZloch
Active Contributor
0 Likes
680

I'm sure you can work this out yourself.

Thomas

Read only

Former Member
0 Likes
680

Hi,

Just declare the IT_FINAL as follows...

DATA: IT_FINAL TYPE STANDARD TABLE OF TY_FINAL.

Regards,

Nikhil

Read only

former_member242255
Active Contributor
0 Likes
680

IT_FINAL TYPE STANDARD TABLE OF TY_FINAL WITH HEADER LINE.

instead of the above statement,

IT_FINAL TYPE STANDARD TABLE OF TY_FINAL and

WA_FINAL TYPE TY_FINAL.

with header line is obselete and you should declar external work area like the above statements.

Read only

Former Member
0 Likes
680

Hi,

With Header line is obselete. So as suggested declare the internal table without headre line.

And use work area for header line.

Read only

Former Member
0 Likes
680

Hi,

DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK ,

IT_VBAP TYPE STANDARD TABLE OF TY_VBAP ,

" If you declare the internal table with header line in OO context it wll give you error. As OO wil not

" support the header line concept. Declare Internal table without header line and create the work area

" for the internal table

IT_FINAL TYPE STANDARD TABLE OF TY_FINAL. " WITH HEADER LINE.

DATA: W_VBAK TYPE TY_VBAK ,

W_VBAP TYPE TY_VBAP ,

W_FINAL TYPE TY_FINAL , " Use this work area

W_LAYOUT TYPE SLIS_LAYOUT_ALV ,

W_VARIANT_SAVE TYPE C ,

W_REPID TYPE SY-REPID

Read only

Former Member
0 Likes
680

Internal table with header line have now become obselete........