cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Gurus/ Experts.

I have a trouble with my Smartform, especially with my numbers field. For example i will use field NETWR.

in my smartform the decimal is like this 123.321.231,000 how to remove the 000 please help me gurus / experts, and how to remove ,000 in quan field ? reward is available.

0 Likes
View Entire Topic
hedvig_rohonyi
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ri Zaldy,

the reason for your problem is that your field is of type CURR.

So it has a reference field, which already determines the number

of digits after the decimal point. So usually it doesn't

make sence to use the formatting option (.0), too.

If you want to change the number of digits in your Smartform

nevertheless, you should define a new number field (which is

not of type CURR or QUAN) in your form, put ...-NETWR into it (e.g. via an ABAP node) and print the new field with formatting option (.0).

Best Regards,

Hedvig

Former Member
0 Likes

Hi Hedvig

Thank you for your clear answer, you give me the light, so I can come out from the darkness.

Please tell me, must the new field is custom ? I mean must I create a table ?

Please help me just need 1 more step to clear this trouble

I will give you helpful, but please help me to finish this one.

bastinvinoth
Contributor
0 Likes

Hi Ri Zaldy

No need to create a table,

just add one more variable in global definitions

like net type p decimals 0 .

then before your passing value to node , just assign netwr value to your custom field net .

net = wa-netwr.

then display like &net(C)&

Regards,

Bastin.G


Former Member
0 Likes

hi bastin

really really really really really really really helpful answer, this one answer that I need. Thank you so much for this. But like  you said just "assign netwr value to ur custom field net."  is this action do in SE38 ? just need a quarter step to finish this problem.

bastinvinoth
Contributor
0 Likes

Hi Ri Zaldy

anyway your assigning values to smartforms right (like &NETWR&) ?

before displaying values add another program lines before that by right click option

better make a changes in smartforms

Regards,

Bastin.G


Former Member
0 Likes

Hi my Lovely Bastin.

Finally... I found the answer ahahaha thank you so much. Finally I make it, but what must I do with the input para and output para ? just make it blank ? Ohh yeah, is the "decimal 0" is default value ? thank you so much bastin thank you so much

bastinvinoth
Contributor
0 Likes

Hi Ri Zaldy

Happy to see your words Cheers

much appreciated comments from you thanks a lot

Regards,

Bastin.G

Former Member
0 Likes

Hi Bastin, i have 1 more question, how to make quantity's decimals gone ? do you have the way ? @Bastin Vinoth

Former Member
0 Likes

Hi Bastin, i have 1 more question, how to make quantity's decimals gone ? do you have the way ? @Bastin Vinoth

bastinvinoth
Contributor
0 Likes

Ri Zaldy wrote:

how to make quantity's decimals gone ?

if i understood correctly,

why its coming with decimals that reason is already here told by Hedvig Rohonyi .

if you want to eliminate decimals while displaying means, please follow what i have suggested you already   i hopt it helps

Regards,

Bastin.G

Former Member
0 Likes

hi Basti, i think you are not lucky today.. Because how is the way i can give you the Correct Answer that we talk in message ? hahaaha. I want give it to you, but the moderator not post my thread yet.