04-03-2021 2:10 PM
While displaying a quantity type field, I can see that the value 467.00 is displayed in the smartform as *7.00. the field lv_joint type zqm_diameter ( quan13 and decimal points3) is defined in the global definition. While debugging I can see the value as 467.00 but when it's displayed I can see that the value is *7.00. Do I need to define it in reference type as well? If so how do I defined it there??
04-03-2021 3:46 PM
Please check formatting options. A number of pre-decimal places is not sufficient to display a number.
04-03-2021 3:59 PM
It's allowing values 28.600 to be displayed correctly but for 467.000 it is showing *7.00. could you tell me where to check fir the formatting options??
04-03-2021 4:19 PM
Try &lv_joint(8)& (6 digits + decimal separator + sign). Please check SAP note 2310409 - Total page number is displayed as '*' in SmartForm handling a similar issue.
04-04-2021 10:16 AM
04-04-2021 10:43 AM
Thank u all for the solutions. However, have resolved the issue by myself.
Solution : to move the quant field into character field and condense it and display.
Eg .
Lv_char type char25.
Lv_char = lv_joint.
Condense lv_char.
And display.
04-04-2021 1:14 PM
Nice to hear that the problem was solved.
Probably WRITE ... TO would be a better solution in this case, because a number is converted according to the currect locale.
WRITE lv_joint TO lv_char LEFT-JUSTIFIED.
04-03-2021 6:37 PM
It's what is happening when you define an Output Length of 6. Increase the output length so that it can display all the digits of your QUAN-type field. Search Output Length in the forum or in ABAP help if you don't know what it is.
04-03-2021 7:35 PM
Hi Sandra, the output length is 13 digits and 3 decimal points. Still the error persists. Kindly suggest
04-04-2021 10:02 AM
So, it seems that you don't know what Output Length is. It's always a number of characters, saying it's 3 decimal points is non-sense. In your case, it's definitely 6 characters, increase it. For more information, search Output Length in the forum or in ABAP official doc.
04-04-2021 10:13 AM
The data element I am using to display lv_joint is zqm_diameter whose length is 13 and has decimal places of 3 and the data type is quan. I am clearly not able to understand that if the length is 13 why do I have to increase it to 6. Kindly read through my concern thoroughly before answering.