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: Not Suppressing Zero

former_member303185
Participant
0 Likes
568

Dear Friend,

In Smartform I am printing Quantity Filed through below code in SMARTFORMS

<b>&GS_ITM_GLOBAL-ZMENGE(IZ)&</b> because I want to suppressing zero.

For Example :- Billing have quantity <b>2,038.449</b> so it should print <b>2,038.449</b> but it always printing like <b>0.002,038.449</b>

<b>ZMENGE LIKE VBRP-FKIMG</b> .

Could you anybody help me on this issue urgently.

Regards

Vijay

4 REPLIES 4
Read only

Former Member
0 Likes
548

Instead of &GS_ITM_GLOBAL-ZMENGE(IZ)&

write <b>&GS_ITM_GLOBAL-ZMENGE(Z)&</b>

Remove that I

This will solve ur query..reward if it does

Read only

former_member188827
Active Contributor
0 Likes
548

move quantity to type c varaible

write GS_ITM_GLOBAL-ZMENGE to zch.

replace '0.00' in zch with space.

condense zch.

Read only

Former Member
0 Likes
548

in your program define a new variable.

data : GS_item_value(12) type C.

GS_item_value = GS_ITM_GLOBAL

now pass this value from program to form.

in form define a same variable, GS_item_value(12) type C.

now print this value.

if the varibale GS_ITM_GLOBAL is in form.

then declare a another variable in form.

GS_item_value(12) type C.

then pass value of GS_ITM_GLOBAL to GS_item_value.

reward if useful.

Amit Singla

Read only

former_member303185
Participant
0 Likes
548

Resolved through SPAD