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

Module pool

pankajs_dwivedi
Participant
0 Likes
379

I have a scrren field of type DEC and the variable linked to is of type I.Now if the value is '0' then if the screen field is read only the value is shown but if its editable value is not shown.

Secondly i need to remove the zeroes after a decimal like for a field of the type VBAP-KWMENG the is shown as 200.00 i need to show it as 200.Ihave to diplay this value inside a Table Control.

Thirdly i need to remove leading zeroes from sales orders is there ne way to do this in the table control such that the value in the internal table has the zeroes and are not shown.Here in the table control the leading zeros is coming as non editable.

2 REPLIES 2
Read only

Former Member
0 Likes
316

Hi,

Check with field of type Curr in the screen for the first issue you have,

To print the quantity without decimals, you can move it to a variable with no decimals and check,

To remove the leading zeros in sales order document use, fm Conversion_Exit_alpha_output,

Hope this helps,

Rgds,

Read only

Former Member
0 Likes
316

Hi Pankaj,

For your first problem, move the variable in type CHAr.. this will work i guess. this is same as you cannot display 0 in spreadsheet because 0 is a number. but if you format the cell to type CHARECTER, then it will accept 0 too.

For 2nd problem you can use the FM round (used for rounding) or simply you can move the value to other variable with no zero. else you can SPLIT variable at '.' into var1 var2.

For third problem: Shift variable left deleting leading '0'.

Hope this will help.

Agasti