cancel
Showing results for 
Search instead for 
Did you mean: 

Split sapscript variable

Former Member
0 Kudos

Hi

I have a Sapscript form which has a standard sap report behind.I cannot modify my report,only the sapscript.

I have in my sapscript a variable which is displayed like this 123456-

Now i want to have my minus sign in front of my variable : -123456

Can anyone help?I would like to split the variable at that minus sign and then output the fisrt variable with the minus sign and afterwards the second variable with the numerical value.

thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Seba,

If ur variable name is &myvariable&, then to acheive the sign before write it as &myvariable(<)& .

thanks & Regards,

Shafivullah Mohammad

Edited by: shafivullah mohammad on Oct 30, 2009 4:27 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use &FIELD(<)& for placing sign at left side.

Use &FIELD(S)& to have only value...no need to split at sign.

Former Member
0 Kudos

Many many thanks.i did not think it can be so easy.Can you please tell me where i can find all the formating options for sascript variables,because i did not find them over the internet.

thanks a lot

Former Member
0 Kudos

Hi,

These formats can be found in SAP Library and even you can search forums or wikis of SDN

Former Member
0 Kudos

Thanks a lot to everybody