Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

simple query

Former Member
0 Likes
304

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.

1 REPLY 1
Read only

Former Member
0 Likes
281

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