Skip to Content
0
Former Member
Aug 17, 2005 at 07:13 AM

problem in At end.

23 Views

hi all

i am facing prblm in at end statement. actually i have noved value from type p field to type char.

Now i am doing At End of Aufnr.

sum.

write:/ t_itab-value.

but in output it shows the *********

so i am confused what should i do.

the logic of my code is:

LOOP AT t_itab.

  • w-val = t_itab-value.

AT NEW aufnr.

SKIP.

WRITE:/ 'Kit EPO # ---',t_itab-aufnr.

ENDAT.

AT NEW stlbez.

WRITE:/ 'Part# ---', t_itab-stlbez.

SKIP.

ENDAT.

IF sy-tabix = 1.

FORMAT COLOR COL_HEADING.

WRITE:/5(10) 'Item#',

23(18)'Part#',

42(40) 'Description of goods',

83(16) ' Qty',

99(14) 'UnitValue(USD) ',

115(24) ' Value(USD) '.

FORMAT COLOR OFF.

ENDIF.

WRITE:/ sy-uline.

WRITE:/ sy-vline,

(10) t_itab-posnr,

sy-vline,

(18) t_itab-matnr,

sy-vline,

(40) t_itab-maktx,

sy-vline,

(16) t_itab-bdmng,

sy-vline,

(14) t_itab-verpr,

sy-vline,

(13) t_itab-value ,

AT sy-linsz syst-vline.

AT END OF aufnr.

SUM.

FORMAT COLOR 3.

WRITE: sy-uline.

WRITE: sy-vline ,98(10) 'Totalvalue',

t_itab-value,

AT sy-linsz syst-vline.

FORMAT COLOR OFF.

WRITE:/ sy-uline.

ENDAT.

can plz someone help on this .

thanks in advace