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

Reg SAP Script

Former Member
0 Likes
432

Hi Experts ,

I have a problem where in the Value that comes in to the SAP Script is 1

and the value gets printed as 1.000

I need to write a command to avoid this .Can anybody let me know

whether there is any statement that can be written to perform the needful.

Regards,

Kevin Nick.

3 REPLIES 3
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
408

<b>Hi

Use User Profile settings.

Otherwise SET COUNTRY with appropriate country parameters.</b>

Regards,

Sree

Read only

dev_parbutteea
Active Contributor
0 Likes
408

Hi,

I dn't know if there is a command to avoid this in sapscript but if you can't find one

you can always write e perform for that in sapscript like :

/: DEFINE &New_variable&

/: PERFORM F_truncate IN PROGRAM <subroutine prog name>

/:USING &EXISTING_VARIABLE&

/:CHANGING &New_variable&

/:ENDPERFORM

Then create subroutine program in se38 and you have to write the code.

FORM F_truncate tables int_cond structure itcsy

outt_cond structure itcsy.

data : old_value type <b>type_of_var</b>,

new_value type i.

Read int_cond table index 1.

old_value = int_cond-value.

move old_value to new_value.

Read outt_cond table index 1.

outt_cond-value = new_value.

Modify outt_cond index 1.

ENDFORM.

then display the new variable instead of the old one

Regards,

Sooness.