cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript &MSEG-MENGE(8R)&

former_member184029
Participant
0 Kudos

Hi, experts

I need to suppress decimals in MSEG-MENGE and I don't know how to do it, because all info that I found in Forums didn't help to my requirement.

In Sapscript code I have &MSEG-MENGE(8R)& wich align data to right, I need this text aligned to right and no decimals, how can I do it?

<b>Form print</b>

Code | Description | Quant | Unit

0001 | Material AB | 10,00 | C/U

<b>Desired Form print</b>

Code | Description | Quant | Unit

0001 | Material AB | 10 | C/U

I will apprecite any helpfull information, thanks in advance.

Regards

Tokio

Accepted Solutions (1)

Accepted Solutions (1)

ferry_lianto
Active Contributor
0 Kudos

Hi,

&symbol(.N)& - Display upto N decimal places

Just specify 0 for not to display any decimals

&MSEG-MENGE(.0)&

Regards,

Ferry Lianto

former_member184029
Participant
0 Kudos

Hi, Seshu & Ferry

When I put <b>&MSEG-MENGE(.0)&</b> a message appear when I try to see form:

"WRITE_FORM is invalid, START_FORM is missing"

But when I try with <b>&MSEG-MENGE(C.0)&</b> form is printed.

Regards,

Tokio

Answers (3)

Answers (3)

former_member184029
Participant
0 Kudos

Aneesh, Seshu AND Ferry

Thanks for your answers, but I solve this way:

&MSEG-MENGE(3.0R)&

Regards,

Tokio

Former Member
0 Kudos

&MSEG-MENGE(.0)& will give no decimal places

and do not use 8R for right alingment,use normal paragraph format to do right alignment.

Former Member
0 Kudos

Hi Tokio,

Data : N type I.

N = MSEG-menge.

Pass &N& instead of &mseg-menge&.

Reward if useful.

Aneesh.