‎2008 Apr 23 11:27 AM
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
‎2008 Apr 23 11:29 AM
Hi,
which error?
Try it with read "internal table" instead of loop
Edited by: Nicole Lorenz on Apr 23, 2008 6:30 AM
‎2008 Apr 23 11:29 AM
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
‎2008 Apr 23 11:30 AM
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.
‎2008 Apr 23 11:34 AM
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
‎2008 Apr 23 11:36 AM
use the workare when looping, look at previous suggestion of mine.
‎2008 Apr 23 11:38 AM
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
‎2008 Apr 23 11:38 AM
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
‎2008 Apr 23 11:32 AM
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