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: 

occurs & with header line in Data definition

Former Member
0 Kudos

Hi,

i did an slin-check for one of my includes and got the following errors shown:

Abap-command is obsolete

1st: tables with headers are not supported in OO-context anymore. (message G1D)

2nd: the appendix occurs is not supported in OO-context. use "table of.... initial size" instead.

the line were the error occurs is:

DATA: BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.

what should i do here?

\[removed by moderator\]

Edited by: Jan Stallkamp on Jul 17, 2008 12:33 PM

4 REPLIES 4

ThomasZloch
Active Contributor
0 Kudos
DATA: IT_BDCDATA TYPE TABLE OF BDCDATA,
      WA_BDCDATA TYPE BDCDATA.

Work with separate workareas and table bodys. This might require some code change further down.

Thomas

Former Member
0 Kudos

Hi Sven,

Try to change your code to:

DATA: BDCDATA TYPE STANDARD TABLE OF BDCDATA.

Hope it helps,

Victor

Former Member
0 Kudos

Hi Sven Bertelmann,

Try to use this way of declaration.

TYPE: BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.

OR

DATA : BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

Hope this helps you,,

Regards,

T.Durai murugan.

former_member787646
Contributor
0 Kudos

Hi

Use

DATA: BDCDATA TYPE TABLE OF BDCDATA.

(OR)

DATA: BDCDATA TYPE <table_kind> TABLE OF BDCDATA.

(<table_kind> = Standard / Sorted / Hashed )

Hope this would help you.

Murthy