2007 Mar 01 8:01 PM
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
2007 Mar 01 8:05 PM
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
2007 Mar 01 8:05 PM
2007 Mar 01 8:08 PM
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?
2007 Mar 01 8:09 PM
You may try this:
SHIFT <variablename> LEFT DELETING LEADING '0'.
Thanks,
Santosh
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |