on 08-06-2008 8:36 AM
Hi All,
I need to add EKPO-NETPR and KOMVD-KWERT and pass it to EKPO-NETWR.
/: &EKPO-NETWR& = &EKPO-NETPR& + &KOMVD-KWERT&
This is not working. Please help me out by giving the way how to add these.
Thanks a lot.
Regards,
Seenu.
Hi
Try to add in driver program and pass it to script.
With regards
Nikunj Shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to do addition in perform.
use code in script.
perform add in programm zform using a b
changing c.
where Zfrom is subroutine pool.
ORM add TABLES it_input STRUCTURE itcsy
it_output STRUCTURE itcsy.
DATA :a type vbap-netpr.
data : b type vbap-netpr.
data : c type vbap-netpr.
data : str type string.
note : decalre a,b, and c with reuired type.
READ TABLE it_input INDEX 1.
a = it_input-value.
READ TABLE it_input INDEX 2.
b = it_input-value.
c= a + b.
READ TABLE it_output INDEX 1.
str = C.
MOVE str TO it_output-value .
MODIFY it_output INDEX 1.
ENDFORM. " add
Edited by: Anil Mane on Aug 6, 2008 9:46 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a PERFORM command to call a abap subroutine in your script.
refer to the links for sample code:
http://sapient.wordpress.com/2007/10/21/sample-abap-code-how-to-call-perform-from-sapscript/
http://www.sapfans.com/sapfans/forum/r2all/messages/345.html
With luck,
Pritam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sri,
can you not subroutine pools for same.useing perform statement.
Amit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.