‎2006 May 30 8:25 PM
dear All,
I am working on SAP Script. I had user a perform statement and written a Code in Sub-routine. that works well, Now I have to use other perform to a carry other operation, Can I use same program, and Add new code to it or Create other program.
I will try to explain more clearly ..
PERFORM <b>GET_TEXT</b> IN <b>PROGRAM ZGET_STEXT</b>
Using var1
using Var2
Changing Var3.
Now if I tooo Add other perform to my Script.
Can I use
PERFORM <b>GET_STtext</b> IN PROGRAM <b>ZGET_STEXT</b>
Using var4
using Var5
Changing Var6.
and Add extra code to do extra operation for same ZGET_Stext program,
Please advice me.
Thanking you.
With kind regards
Venkat
‎2006 May 30 8:28 PM
‎2006 May 30 8:28 PM
Yes, you can use as many subroutines in that subroutine-pool as you like.
‎2006 May 30 8:57 PM
Thanks Rich & Sandip,
I will get back if I have some problems,
As I am worried about Int_cond Value.
In first form I have assigned
text = Sgtext.
So I guess I have to clear int_cond and assign new value for second form .
Am I right ??
Thanks & Regards
Venkat
‎2006 May 30 9:00 PM
What's the exact question? I didn't get it properly. It's simple ABAP, so if you have the same variable going into 2 different subroutines, and you want that variable to initialize each time they get into the subroutines, then clear the value at the 1st place in the subroutines.