‎2005 Aug 08 8:56 PM
hi folks,
It is regrading to one of the earlier problems related to
ZCDATAR--KSCHL - 'ZBET' condition type.
I am still not able to get rid of the unnecessary zeros from the form.
I have declared the <b>Condition</b> node in that particular node of the body of the table in the Main Window. And in the general attributes declared
'ZCDATAR--KSCHL' in the field name and comaprison value is 'ZBET'
'ZCDATAR' is the table into which all the condition records are read from the ABAP program.
In the ABAP code:
select knumv kschl kbetr kwert kinak
from konv ........
.................
loop at cdata into zcdata
.........
........
In the function module part
Tables
zcdatar = zcdata
This is what I have done.
Can any one help me to analyze where am i missing?
Thanks
Santhosh
‎2005 Aug 09 4:54 AM
Didnt quite understand ur problem...
can u explain clearly pls.
‎2005 Aug 09 7:30 AM
HI!!!
do you want to Suppresses leading zeros of numbers.
you may try this:
&field(Z)&
‎2005 Aug 09 12:37 PM
Hi santhosh,
if zcdata-kschl itself contains leading zero means try with this code.
before you assign the zcdata to the function module
loop at zcdata
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = zcdata-kschl
IMPORTING
OUTPUT = zcdata-kschl.
modify zcdata.
endloop.
Cheers,
Sasi
‎2005 Aug 09 4:09 PM
Hi,
If you want to remove leading zeroes for numbers you can use the Output option: &field1(Z)&
If you want to remove leading zeroes for a field, use the conversion exit :CONVERSION_EXIT_ALPHA_OUTPUT
Let me know if this solvedur problem
thanks
vamsi