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

Problem with a Dynpro field (type numc)

former_member209703
Active Contributor
0 Likes
606

hi everybody.

I'm developping a ModulPool application in wich i have 2 RadioButtons with 2 textbox fields.

What i pretend to do is, when the user clicks a radiobutton and strikes Intro, enable the corresponding textbox field and disable the other one.

My code runs fine, but i have a little problem. When I loop the screen table, to set the appropiate value to the 'input' property, in this case, when i try to disable it (input = '0'), I get a zero character in that field. This field has NUMC type, i'm sure this is the problem

'cos i've got no problem with the other field (type char). But i can't solve it.

Anybody's got an idea?

Thanks

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
503

What you are seeing is the normal behavior of a numeric field represented by the SAPgui. This is how all numeric fields are displayed via SAPgui. If you don't want to see the 0, then you just change the field type to CHAR and handle accordingly.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
504

What you are seeing is the normal behavior of a numeric field represented by the SAPgui. This is how all numeric fields are displayed via SAPgui. If you don't want to see the 0, then you just change the field type to CHAR and handle accordingly.

Regards,

Rich Heilman

Read only

former_member209703
Active Contributor
0 Likes
503

That's the eaisiest way, but i can't do that, because i need to get a user name, (type spernr, i think) wich has numc type.

Any ideas?

Read only

Former Member
503

You may try this:

SHIFT <variablename> LEFT DELETING LEADING '0'.

Thanks,

Santosh