Application Development and Automation 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: 
Read only

Quantity field.

Former Member
0 Likes
589

Hi everybody, I have a problem in a dynpro with a field type erfmg, the problem is that for this fileds 0 and empty value is the same, and I have to differenciate this situation. Do you have any idea how can i do that? Regards.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
566

you can differentiate by using describe feild type lv_type.

if its D P etc... check for intial.. or if the values entered in the filed are numeric

if its C etc... check for space..

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
567

you can differentiate by using describe feild type lv_type.

if its D P etc... check for intial.. or if the values entered in the filed are numeric

if its C etc... check for space..

Read only

Former Member
0 Likes
566

Hello,

Please take that field as char field in your screen and while returning value from the screen transfer the character field to quantity only if is not initial.

But still your problem remains the same because a quantity field will always return 0 value if you enter no value.

Hope it helps.

Thanks,

Jayant

Read only

Former Member
0 Likes
566

pass this to a char field .. and you can check if its initial ..

if there is a 0 then char field will not be initial ...

Read only

Former Member
0 Likes
566

.