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: 

remove occurs n

Former Member
0 Kudos

Hello Experts,

I have the current internal table declaration and usage like this:

declaration:

data: m_itab like hie_out occurs 0 with header line.

using in:

1) refresh m_itab

2) select MIED NOISD from Z_RSVD

into table m_ITAB

I am trying to eleminate the 'occurs n' declaration as it is believed to be not good performance.

i replace the declaration statment with

data: m_itab type zmietab.

but i get error at statements 1) and 2)

m_itab is not a internal table specification 'occurs n' is missing.

Any suggestions to get rid of this error..

Thanks,

BWer

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Is zmietab a table type?

If not, then use this code....

data: m_itab type table of zmietab with header line.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Is zmietab a table type?

If not, then use this code....

data: m_itab type table of zmietab with header line.

Regards,

Rich Heilman

0 Kudos

data: m_itab <b>type standard table of</b> hie_out .

data: wa_m_itab like line of m_itab. "work area

using in:

1) refresh m_itab

2) select MIED NOISD from Z_RSVD

into table m_ITAB.

loop at m_itab into wa_m_itab .

endloop .

Regards

Raja