Application Development 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: 

Dialog QUAN input field

former_member397166
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Keep the format of the input field as RESB-BDMNG.

Pass BDMNG field in reference.

~Lokesh

0 Kudos

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

0 Kudos

Hi,

     you can change name as desired - In attributes change name - format -quan - reffield - resb-bdmng.

Regards

former_member183607
Contributor
0 Kudos

Hi Kical,

     Plz Check field Meins is for Unit, You May use Resb-BDMNG or declare as Packed no with decimal places.

Regards

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member397166
Participant
0 Kudos

Hi all,

     OK when define it in main program.

     Thanks u .

Kical

Former Member
0 Kudos

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