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

write statement

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
537

WRITE AT d_col t_bomtab-labst UNIT 'QUAN'.

whz the use of UNIT 'QUAN'??

can anyone please explain me in technical?

4 REPLIES 4
Read only

former_member188827
Active Contributor
0 Likes
493

unit is ur variable holding some value and 'QUAN' will be written after dat value.

say unit is 10.ur output 'll be

10 QUAN

reward points if it helps

Read only

Former Member
0 Likes
493

a system table containing all the valid quantity units is assigned or any other table, which contains a field with the format or quantity units (data type UNIT). This field is called as reference field.

The assignment of the field containing quantity amounts to the reference field is made at runtime. The value in the reference field determines the quantity unit of the amount.

Read only

Former Member
0 Likes
493

This statement will write the value of <b>t_bomtab-labst</b> at the position<b> d_col</b> .

the syntax <b>UNIT 'QUAN'</b> is required bacuse the LABST is quantuity field . even if you remove this ysntax , the output will remain the same .. but will get a message in extended syntax check.

Read only

Former Member
0 Likes
493

Hi Shahid,

The meaning of this statement is... it formats the output according to your specified unit measurement Ex.QUAN. This measurement determines how many decimal places in the output.

Just like in pack data type we specify decimals how many u want, simlarly this one also.. but that decimal places must be defined in the data dictionary table in quantity field according to that quantitty field it displays the decimals in the output.

Regards,

Surya