‎2009 May 19 10:48 AM
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
‎2009 May 19 10:51 AM
‎2009 May 19 10:52 AM
Hi,
Just declare the IT_FINAL as follows...
DATA: IT_FINAL TYPE STANDARD TABLE OF TY_FINAL.
Regards,
Nikhil
‎2009 May 19 11:04 AM
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.
‎2009 May 19 11:19 AM
Hi,
With Header line is obselete. So as suggested declare the internal table without headre line.
And use work area for header line.
‎2009 May 19 11:25 AM
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
‎2009 May 19 11:45 AM
Internal table with header line have now become obselete........