Skip to Content
0
Former Member
Aug 24, 2009 at 07:51 AM

At end / At New command

16 Views

Dear guys, I have following piece of code .Here in field itab_data-inco2 ,why data while printing comes "*****".

I can see values in itab_data-inco2 fetched .but while printing it prints "***************".

code:

SORT ITAB_DATA BY LIFNR EBELN.

LOOP AT ITAB_DATA.

AT NEW LIFNR.

NEW-PAGE.

ENDAT.

AT NEW EBELN.

CLEAR ITEM_CNT.

ENDAT.

ITEM_CNT = ITEM_CNT + 1.

AT END OF EBELN.

ADD 1 TO NUM_CNT.

SUM.

SELECT SINGLE * FROM EKKO

WHERE EBELN = ITAB_DATA-EBELN.

WRITE: /1 ' ',

2 NUM_CNT,

6 ITAB_DATA-EBELN,

18 ITAB_DATA-BSART,

23 ITAB_DATA-BEDAT,

33 ITEM_CNT,

46(13) ITAB_DATA-MENGE,

61(13) ITAB_DATA-NETWR CURRENCY EKKO-WAERS,

76(10) ITAB_DATA-VERKF,

89 ITAB_DATA-ANGNR.

IF ITAB_DATA-ANGNR = 'Y'.

WRITE: 93 ITAB_DATA-IHRAN.

ENDIF.

WRITE: 105 ITAB_DATA-INCO2.

VITEM_CNT = VITEM_CNT + ITEM_CNT.

ENDAT.

.