Skip to Content

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

Small report error

TABLES:PA0000.

data:begin of itable occurs 0,
     pernr type pa0000-pernr,
     massn type pa0000-massn,
     stat1 type pa0000-stat1,
     stat2 type pa0000-stat2,
     end of itable.

parameters:p_pernr type pa0000-pernr.

select pernr,massn,stat1,stat2 from pa0000 into table itable where pernr = p_pernr.

write itable-massn.

the output is always

EMP-PA0000 1

-


I dont know why,it is not picking correct massn from the table.why?

Tags:
Former Member
Former Member replied

loop at itable.

write itable-massn.

endloop.

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