Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User-Exit

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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>

Former Member
0 Kudos

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