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: 

Value of SY-REPID in background ?

Former Member
0 Kudos

hi all,

i have a User-exit.

What will be the value of SY-REPID in the User-exit when the program has been scheduled in background??

will the value of sy-repid be the SM36 program?

or will the value of sy-repid be the include of our user-exit ?

or will the value of sy-repid be that of the main standard program?

3 REPLIES 3

Former Member
0 Kudos

if it is include it will show include program name

if the cursor at SM36 then it will show SM36 Program

so better to use - SY-CPROG - always it shows main program

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I think it will show ......

 the value of sy-repid be that of the main standard program?

...... in any case.

Regards,

RIch Heilman

0 Kudos

For example if you run this program in foreground, and debug the FORM routine, SY-REPID still holds the value of the main program when inside the FORM which is in the INCLUDE. This same behavior will be there in backgroun as well.

Regards,

Rich HEilman