on 04-08-2008 5:14 AM
Hi Abapers!!!
Is it possible to do arithmetic operations in script? I tried,but i got the following status msg in debugging.
Text command &NETAMT& is not defined
my code is:
/: DEFINE &NETAMT& = ®UD-WRBTR& + &WRBTR1&
Plz help me.Thanks in Advance!!!.
Hi,
Instead of modifying your standard program, try include a subroutine pool in ur script using PERFORM statement and do the calculations in that.
Thanks,
Parul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1.Arithmetic operations are not possible in script layout.
2.But, the same operation can be done in print program or You can do in the Include.
3.The include can be called in the layout ,wherever you need.
Eg:/:Perform form_name in Program_name
/: using & REGUD-WRBTR&
/: using &WRBTR1&
/: changing &NETAMT&.
Regards,
If helpful reward with points(Don't forget).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You cannot do any arithmetic operations like addition,subtracttion etc in SAP scripts.You need to do that in the print program and pass the variable into the SAP script.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.