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: 

quan in dynpro

Former Member
0 Kudos

hi all,

1)may i know why i made reference field to unit field for my quan field in screen painter, yet still no value showing?

2) may i know how to supress the decimal point. i do not want to show decimal points in my screen.

thanks

2 REPLIES 2

Former Member
0 Kudos

Hi,

Do not use the standard ref.field, use the same dictionary fieldname that you specified in your custom table.

If ztable is ur table and zquan is ur field with a reference field in zmeins in ur table.

In screen painter, declare the quan field as ZTABLE-ZQUAN and reference as ZTABLE-ZMEINS.

Assign the value to a char field and use replace stmt to remove the decimal point.

Regards

Subramanian

Former Member
0 Kudos

Better u can make the screen field as character .

or else u can eliminate the decimal point by referring it to TYPE P Decimals 0.

referring to this u will not encounter any decimals in the screen and need not use replace.

Execute the code to get the clear idea.

DATA : V1 TYPE P DECIMALS 0,
       V2(13) TYPE C.
       V1 = 212.
       WRITE:/ V1.

       V2 = V1.     "character 

       WRITE:/ V2.

regards,

vijay