cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript output doesn't match the variable's value

Former Member
0 Kudos

Hello Expert,

In my script, I defined as below:

/: IF &VBDKR-VKORG& = 'WCAO'

= ,,&KOMVD-KAWRT(I11.4<)&,,&KOMVD-AWEIN&

/: ENDIF

Then I run the report which will trigger the script. In the debug mode, I find the values are as below

VBDKR-VKORG: WCAO

KOMVD-KAWRT: 97.74

KOMVD-AWEIN: STN

In my expection, the output should be 97.7400 STN, but actuall the output displays 9.7740 STN. It's off by one decimal point conversion. This is quite confusing.

CAn any expert help on this and tell how to fix the issue?

Thanks in advacne,

Regards, Yongbo

Moderator message: please choose more descriptive subject lines for your posts.

Edited by: Thomas Zloch on Jul 8, 2011 9:38 AM

Edited by: Yongbo Wu on Jul 8, 2011 10:31 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

SAPSCRIPT isn`t able to interpret more than 2 decimal places.

I have the problem also and uses a workaround.

I have defined a text attribute in my print program, where I move the value and print the value as text

Regards,

Christian