Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with 'AT END OF' statement

Hi All,

I have a problem with 'AT END OF' statement and I have no idea what is the problem.

My code goes like:

DATA : BEGIN OF tb_pre_selection OCCURS 0,

matnr LIKE ekbe-matnr,

lifnr LIKE ekko-lifnr,

budat LIKE ekbe-budat,

werks LIKE ekbe-werks,

menge LIKE ekbe-menge,

meins LIKE ekpo-meins,

dmbtr LIKE ekbe-dmbtr,

belnr LIKE ekbe-belnr,

gjahr LIKE ekbe-gjahr,

zekkn LIKE ekbe-zekkn,

vgabe LIKE ekbe-vgabe,

buzei LIKE ekbe-buzei,

bwart LIKE ekbe-bwart,

shkzg LIKE ekbe-shkzg,

umrez LIKE ekpo-umrez,

umren LIKE ekpo-umren,

lmein LIKE ekpo-lmein,

END OF tb_pre_selection.




LOOP AT tb_pre_selection.










My problem is that when AT END OF MATNR starts it generates stars (********) in some of the fields in header line but after ENDAT the header line is normal again.

Does anyone know why this occures ???



Not what you were looking for? View more on this topic or Ask a question