Skip to Content
0
Former Member
Feb 02, 2010 at 08:02 AM

Po quantity multiply by 1000

265 Views

Dear:

I'm using script to print PO . But the po quantity multiply by 1000.

I found it's processEd by some standard program.

1. PERFORM menge_ausgeben USING ekpo-menge *t006-decan

rm06p-prmg1.

2.

form menge_ausgeben using mga_menge mga_decan mga_ameng.

  • data: h-ameng like rm06p-prmg1.

  • write mga_menge no-sign to h-ameng.

write mga_menge no-sign decimals mga_decan to mga_ameng. "569326

  • if mga_andec eq 0 and

  • h-ameng+14(3) eq '000'.

  • shift h-ameng right by 4 places.

  • endif.

  • mga_ameng = h-ameng.

Example:

ekpo-menge = 90.000

*t006-decan = 3

result: rm06p-prmg1 = 90,000.

The correct result should be 90.000.

How can i modify it?

Thanks.

BR

ENDFORM. " MENGE_AUSGEBEN