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

SAPSCRIPT Quantity Symbol printing different values

ravi_sirigiri
Participant
0 Likes
398

Hi,

I am generating a Printout & Fax at a time for the Purchase Order output, a SYMBOL which is having a conversion value is printing different values in FAX output. Both the Printout and Fax uses the same Print Program but different sapscripts which have same formatting for printing the conversion value (different scripts but copied one and no changes in the script).

the following symbol is printing different values:

Print program:

data: p_value type ekpo-menge,

umbsz TYPE umbsz.

umbsz = marm-umrez / marm-umren.

p_value = umbsz.

Script

&p_value(7.0R)&

This &p_value(7.0R)& gives different values in Printout and Fax and this difference is not for every document, it is for some documents and there are no changes in conversions also.

My question is: "Is there any problem in using (7.0R) for datatype menge, I mean restrict the no.of characters and decimals at a time for quantity field type".

Thanks in Advance.

Ravi

1 REPLY 1
Read only

Former Member
0 Likes
332

Hi Ravi,

Try doing a WRITE - TO in your program. Make the variable p_value type char.

Another suggestion would be to get the value doing a PERFORM xxxxx IN PROGRAM and retrieve the value from there.

Regards,

Ernesto.