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

INTERNAL TABLE

Former Member
0 Likes
695

according to our project we should not declare the internal table with header line.

i declared it_edidd without header line

and i looped it as

loop at it_edidd.

it is giving error .

how to overcome this

8 REPLIES 8
Read only

Former Member
0 Likes
678

Hi,

which error?

Try it with read "internal table" instead of loop

Edited by: Nicole Lorenz on Apr 23, 2008 6:30 AM

Read only

Sm1tje
Active Contributor
0 Likes
678

type table of edidd.

you can't declare it without header line, this is not a valid statement, do like this.

data: it_edidd type table of edidd.

data: it_edidd type edidd.

loop it_edidd into wa_edidd.

endloop.

Edited by: Micky Oestreich on Apr 23, 2008 12:30 PM

Read only

former_member480923
Active Contributor
0 Likes
678

use the following code:



data: gt_vbrk type standard table of types_vbrk,
        gs_vbrk type types_vbrk.

loop at gt_vbk into ls_vbrk.

...


endloop.

Hope That Helps

Anirban M.

Read only

0 Likes
678

DATA: it_edidd TYPE STANDARD TABLE OF edidd,

it_comm_idocs TYPE STANDARD TABLE OF edidc.

LOOP AT it_edidd.

MESSAGE e043 WITH it_edidd-segnam.

ENDLOOP.

ENDIF.

LOOP AT it_comm_idocs.

MESSAGE i044 WITH it_comm_idocs-docnum.

ENDLOOP.

i wrote code like this

but it is giving error

Read only

0 Likes
678

use the workare when looping, look at previous suggestion of mine.

Read only

0 Likes
678

Hi,

just replace ur code with this n run.

DATA: it_edidd TYPE STANDARD TABLE OF edidd,

wa_eddid type eddid,

it_comm_idocs TYPE STANDARD TABLE OF edidc,

wa_comm type edidc.

LOOP AT it_edidd into wa_eddid.

MESSAGE e043 WITH wa_edidd-segnam.

clear: wa_eddid.

ENDLOOP.

LOOP AT it_comm_idocs into wa_comm..

MESSAGE i044 WITH wa_comm-docnum.

clear: wa_comm.

ENDLOOP.

Edited by: sudha yadav on Apr 23, 2008 12:39 PM

Read only

0 Likes
678

do like this..

DATA: wa_edidd type it_eddid,

wa_comm_idocs TYPE it_comm_idocs.

LOOP AT it_edidd into wa_edidd.

MESSAGE e043 WITH wa_edidd-segnam.

ENDLOOP.

LOOP AT it_comm_idocs into wa_comm_idocs.

MESSAGE i044 WITH wa_comm_idocs-docnum.

ENDLOOP.

regards,

venkat

Read only

S0025444845
Active Participant
0 Likes
678

hi,

you have to declare work area also.

data: wa_eddid type <same type as of table.

and then

loop it_eddid into wa_eddid.

write ur logic here.

clear: wa_eddid.

endloop.

regards,

sudha