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

smartforms help

Former Member
0 Likes
761

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

4 REPLIES 4
Read only

Former Member
0 Likes
544

Didnt quite understand ur problem...

can u explain clearly pls.

Read only

Former Member
0 Likes
544

HI!!!

do you want to Suppresses leading zeros of numbers.

you may try this:

&field(Z)&

Read only

Former Member
0 Likes
544

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

Read only

0 Likes
544

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