Skip to Content
0
Former Member
Jun 18, 2008 at 05:26 AM

Select Query

11 Views

Hi experts,

While debuggung my report it shows an error When using the addition "FOR ALL ENTRIES IN itab", the fields "OBJECTID" and "ITAB_EIPA-EBELN" must have the same type and length.

I m sending u some line of my codes, where it is showing an error.

data:begin of itab_cdhdr occurs 0,

OBJECTID like eipa-ebeln,

UDATE like cdhdr-UDATE,

TCODE like cdhdr-TCODE,

end of itab_cdhdr.

if itab_ekbe[] is not initial.

select ebeln ebelp werks preis

into table itab_eipa

from eipa

for all entries in itab_ekbe

where ebeln = itab_ekbe-ebeln and

ebelp = itab_ekbe-ebelp and

werks eq p_werks .

endif.

if itab_eipa[] is not initial.

select OBJECTID UDATE TCODE

into table itab_cdhdr

from cdhdr

for all entries in itab_eipa

where OBJECTID = itab_eipa-ebeln

and TCODE = 'ME29N' .

endif.

Plz tell what will b the possible solution.

definitely rwds pts,

Savita