04-02-2008 7:16 AM
can u define the meaning of this:
WRITE zmr_tc_cert_header-lfimg UNIT zmr_tc_cert_header-meins
TO zmr_tc_cert_header-length.
where zmr_tc_cert_header is structure.
04-02-2008 7:32 AM
Hi,
checkout the code below
TYPES : BEGIN OF zmr_tc_cert_header,
lfimg TYPE lfimg,
meins TYPE meins,
length(100),
END OF zmr_tc_cert_header.
DATA : zmr_tc_cert_header TYPE zmr_tc_cert_header.
zmr_tc_cert_header-lfimg = 10000.
zmr_tc_cert_header-meins = 'EA'.
WRITE zmr_tc_cert_header-lfimg UNIT zmr_tc_cert_header-meins
TO zmr_tc_cert_header-length.
WRITE : zmr_tc_cert_header-length.
here if you debug there is no data in zmr_tc_cert_header-length.
it is just writing the value of zmr_tc_cert_header-lfimg and it will not show the decimal places because zmr_tc_cert_header-meins is EA if you remove this it will show zeros after decimal point
reward if helpful