In smart forms this is a common problem in our daily task.Here I am providing you my own experience.I am facing this problem and solve using below step.
First of all we remove decimal value for QUAN data type.
first one is simple, just using below format.
&work_area-field_name(C,0)&
Hope this will work.
Another way is we need to define variable in Smartforms>Global Definitions. Give a variable name, type and associated type like: XYZ TYPE P decimals 0.
Also need to create a program logic following steps :right click > Create>Flow logic>Program logic.
In program logic page we provide our logic and assign variable in our required fields.
Clear: variable.
XYZ = wa_items-total_val.
Also need to assign Input & output parameters in General attributes.
Input Parameter Output parameter
wa_items-total_val XYZ
Lastly need to pass that variable in our cell,like : &XYZ(C)&
Also you can try below step:
Declare a variable like var type P Decimals 0.
Comments
Post a Comment