09-11-2006 8:03 AM
Hi.
I have a scenario in which I want to use a parameter other than the ones that are passed in the Formal Parameters of a USER-EXIT.
Can I achieve this functionality in my user-exit?
If yes , how can this be done?
Thank You
Nicky.S
09-11-2006 8:12 AM
Hi subhash,
1. MAINPROGRAM -
> user-exit
2. There will always be a main program,
in which user-exit FM is called.
3. to get any GLOBAL variable
of the main program,
we can use like this.
(U can also first check in debugging)
(in deubgging mode,
use <b>(programname)varname</b>
(with brackets)
to know the run-time value of the variable
of the main program)
4.
data : varname(50) type c.
field-symbols : <FS>.
<b>VARNAME = '(PROGNAME)VARNAME' .
ASSIGN (VARNAME) TO <FS>.</b>
WRITE : <fs>.
5.
Note : a) Brackets are important.
b) PROGNAME should be in CAPITAL
regards,
amit m.<b></b>
09-11-2006 8:49 AM
HEllo Subash,
I think u can do it by declaring the variable in the Main program of the FM. taht is Top include of The function group.
If useful reward.
Vasanth