Skip to Content
0
Former Member
Jan 04, 2008 at 10:13 AM

help i copying internal table

30 Views

Grateful if anyone could help

TYPES declaration: T_ITAB

bukrs TYPE /bev2/edmse-bukrs,

matnr TYPE /bev2/edmse-matnr,

posnr TYPE /bev2/edmse-posnr,

lfsnr TYPE lips-vbeln, (This is char 10)

TABLE DECLARATION

it_edmse TYPE STANDARD TABLE OF /BEV2/EDMSE,

it_ITAB_tmpc TYPE STANDARD TABLE OF t_itab,

it_ITAB_tmpc2 TYPE STANDARD TABLE OF t_itab,

LOOP AT it_edmse INTO wa_edmse.

MOVE: wa_edmse-bukrs TO wa_ITAB_tmpc-bukrs,

wa_edmse-matnr to wa_ITAB_tmpc-matnr,

wa_edmse-posnr to wa_ITAB_tmpc-posnr.

  • convert char 16 to char 10

WRITE wa_edmse-lfsnr TO wa_ITAB_tmpc-lfsnr.

APPEND wa_ITAB_tmpc TO it_ITAB_tmpc .

CLEAR wa_ITAB_tmpc.

ENDLOOP.

it_edmse_tmpc2[] = it_edmse_tmpc[] ( SYNTAX ERROR BELOW )

SYNTAX ERROR

Arithmetic operations are only intended for operands that can be converted to numbers (numeric operands). operands). - - - - - - - - - -

Can anyone advise what does this mean and how can i correct it??