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

REG TABLES.

Former Member
0 Likes
640

when i pass an internal table to a subroutine, it is taking only body in that subroutine, i am not able to access header of this internal table it is gving error.

perform test tables i_tab.

is there any other way thru which i can acess header in subroutine.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Hi venkat,

1. It must be giving error bcos of the structure.

2. define the form using STRUCTURE

eg.

form myform TABLES Itab STRUCTURE T001.

write t001-bukrs.

endform.

regards,

amit m.

3 REPLIES 3
Read only

Former Member
0 Likes
508

Hi venkat,

1. It must be giving error bcos of the structure.

2. define the form using STRUCTURE

eg.

form myform TABLES Itab STRUCTURE T001.

write t001-bukrs.

endform.

regards,

amit m.

Read only

Former Member
0 Likes
507

Hi

Loop on that internal table, move data into a work area and then process.

Regards,

Raj

Read only

Former Member
0 Likes
507

Hi venkat,

it depends on the declaration of the internal table, declare it with header line

or

in ur subroutine declare workarea and use that