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

Obsolete language elements - OCCURS, WITH HEADER LINE

former_member367551
Participant
0 Likes
1,507

Dear forumers,

I am currently working on modifying a BDC include program which is copied from BDCRECX1.

My aim is now to remove all obsolete language elements in my program here. E.g.:-

DATA: bdcdata like bdcdata occurs 0 with header line.

How can I declare bdcdata properly in this case? I have tried editing the same line (see below), but after that, I get syntax errors elsewhere in the program.

DATA: bdcdata type bdcdata.

Dear forumers,

I am currently working on modifying a BDC include program which is copied from BDCRECX1.

My aim is now to remove all obsolete language elements in my program here. E.g.:-

DATA: bdcdata like bdcdata occurs 0 with header line.

How can I declare bdcdata properly in this case? I have tried editing the same line (see below), but after that, I get syntax errors elsewhere in the program.

DATA: bdcdata type bdcdata.

6 REPLIES 6
Read only

h_senden2
Active Contributor
0 Likes
1,015

DATA: i_bdcdata type table of bdcdata,

wa_bdcdata like line of i_bdcdata.

regards,

hans

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,015

you have to declare a work area and an internal table without header line:

DATA : gw_bdc TYPE bdcdata.
DATA : gt_bdc TYPE TABLE OF bdcdata.

Read only

bpawanchand
Active Contributor
0 Likes
1,015
DATA: 
  t_bdcdata TYPE
  STANDARD TABLE OF bdcdata WITH HEADER LINE.
Read only

Former Member
0 Likes
1,015

Use

Data: bdcdata type standard table of bdcdata with header line

Read only

Former Member
0 Likes
1,015

DATA: i_bdcdata TYPE TABLE OF bdcdata,

*Work Area for BDC Data

wa_bdcdata TYPE bdcdata.

-Amresh

Read only

former_member367551
Participant
0 Likes
1,015

Thanks.