‎2007 Aug 28 7:59 AM
WRITE AT d_col t_bomtab-labst UNIT 'QUAN'.
whz the use of UNIT 'QUAN'??
can anyone please explain me in technical?
‎2007 Aug 28 8:01 AM
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
‎2007 Aug 28 8:07 AM
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.
‎2007 Aug 28 8:07 AM
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.
‎2007 Aug 28 8:21 AM
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