cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPTS

Former Member
0 Kudos

hi all ,

in one of my out field the result was '-5.0000000000000000E+00' and then i made it short to ' 5,00 - ' now i want to shif that negative sign before 5 so wht should i do in order to do that

thanxz

himanshu sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You may use &VARIABLE(<)& to print the sign in front in the SAP Ecript.

e.g. If your VARIABLE = 5.0- then if you use &VARIABLE(<)& in your SAP Script it will print it as -5.0.

I hope this helps,

Regrads

Raju Chitale

Answers (2)

Answers (2)

Former Member
0 Kudos

is there no other option other than using for perform becoz to make it short i just create two local variable in constant.

c_len VALUE 4,

c_deci VALUE 2,

and

DATA: v_rqlow TYPE p LENGTH c_len DECIMALS c_deci,

v_rqhigh TYPE p LENGTH c_len DECIMALS c_deci.

n then eqate the variables with the value is it necessary to use form perform to shift the sign ..................

thanxz

himanshu sharma

Former Member
0 Kudos

Hi,

You need to write the PERFORM and ENDPERFORM using this Variable andf Chaning a Variable ...

This Changing variable should be a Charecter variable. then in the FORM and ENDFORM ... you need to use the function module CLOI_PUT_SIGN_IN_FRONT

Regards

Sudheer

Former Member
0 Kudos

hi sudir

i use the required function call but the problem is field is of type FLTP instead of char in data base table so it is giving a run time error so plz suggest ne other option .

thanxz

himanshu