07-24-2014 8:03 AM
Hi all,
In dialog, how to set a input field with QUAN format.
I set the format is QUAN and reference field is RESB-MEINS, but it can not input decimal data such as 34.2.
How to handle it ?
Thanks
Kical
07-24-2014 8:29 AM
Did you check the ddic box on screen elements in dynpro definition, and did you define underlying structures with TABLES statements in the global data area of the program ?
Regards,
Raymond
07-24-2014 8:17 AM
Keep the format of the input field as RESB-BDMNG.
Pass BDMNG field in reference.
~Lokesh
07-24-2014 8:31 AM
Hi Lokesh
If I set the name of input field is RESB-BDMNG, it works.
Can I change its name? such as 'zfield' ?
Thanks
Kical
07-24-2014 8:42 AM
Hi,
you can change name as desired - In attributes change name - format -quan - reffield - resb-bdmng.
Regards
07-24-2014 8:17 AM
Hi Kical,
Plz Check field Meins is for Unit, You May use Resb-BDMNG or declare as Packed no with decimal places.
Regards
07-24-2014 8:29 AM
Did you check the ddic box on screen elements in dynpro definition, and did you define underlying structures with TABLES statements in the global data area of the program ?
Regards,
Raymond
07-24-2014 8:47 AM
I assume you are talking about Dialog programing.
So, If you want to give a z field, declare it in TOP or MAIN program include like: ZFIELD TYPE RESB-BDMNG.
Now go in the screen layout, double click on this input screen element, Pass name as ZFIELD.
It should work then.
~Lokesh
07-24-2014 8:54 AM
07-24-2014 9:09 AM
Hi Kical,
If you set the field fromat as QUAN and Ref. Field as RESB-MEINS. This Set is correct.
How about you definition of your field type to populate data from dialog field in main program which you create in dialog? Is it as RESB-BDMNG?
Maybe the quantity will be displayed as 34.200 not 34.2.
Because the RESB-BDMNG has 3 decimals.
Thanks,
Yawa