cancel
Showing results for 
Search instead for 
Did you mean: 

Data Manipulation within SAPscript

Former Member
0 Kudos

Hi All,

I need to change weight from Kg to Tonnes within SAP script form. Can you let me know how can it be done? Is there any command or statement in SAPscript that i can use?

Actually a standard SAP driver program is creating the form and i am required to print weight of material in tonnes rather than in Kg which SAP driver program is giving me directly.

I am new to SAPscript so pls elucidate.

Thanks in advance,

Ananya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

copy the standard form in to z form. Take a new variable and put the wt in tons after calculation into this variable. tons = kg / 1000

Now use this new variable instead of the previous

and finally assign that zform to the standard print programusingNACE trancation.

If found useful, award me points.

Cheers

Vamshi

Former Member
0 Kudos

Hi,

It is a Z SAPscript called from a standard SAP driver program. I am already working with a Z form. I need the syntax of the statement or command that needs to be used in that Z form for my purpose. I mean how to divide the weight by 1000 to get weight in tonnes.

Sorry for the confusion.

Thanks,

Ananya

Former Member
0 Kudos

Hi Ananya,

In layout window, open the editor. there use

Define keyword to declare variable

/: DEFINE var type -


then use command giving /: variable = kg/1000

and then replace the existing o/p variable with our new variable.

Ok

Cheers

Vamshi

Edited by: vamshi dhar on May 27, 2008 2:19 PM

Former Member
0 Kudos

copy the standard form in to z form....

and change as per ur requ...........

and assign that zform to the standard print program....through NACE trancation....

if it is usefull....Plz Reward

Regards

Anbu