Application Development and Automation 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: 
Read only

For program 'LSPO1I10'

YONG_YONG
Explorer
0 Likes
677

HI, ALL

     I had found a may for getting SAP user logoff information that need modify standard program 'LSPO1I10' ,

Pls check below code :

MODULE OKCODE.

  OK_CODE_SAVE = OK_CODE.

  CLEAR OK_CODE.

  CASE OK_CODE_SAVE.

    WHEN 'CANC'.

      ANTWORT = 'A'.

    WHEN 'YES'.

      ANTWORT = 'J'.

      "Your code"

.......

  SET SCREEN 0.

  LEAVE SCREEN.

ENDMODULE.

But i don't know whether i modify this standard program will have some aftermath for system ? Pls tell me ,thanks .

3 REPLIES 3
Read only

Former Member
0 Likes
625

Hi Yong,

Modifying the standard program is not recommended and for any upgrade a new version of this program will override your change. Please try to find out an alternative place where you can implement a enhancement implementation or user exit to get required result.

BR,

Tanmay

Read only

GauthamV
Active Contributor
0 Likes
625

You dont need to modify the standard program, instead you can just create an implicit enhancement in that program and add your logic there.

Regards,

Gautham.

Read only

0 Likes
625

HI, i try to create an implicit enhancement,but is have below this info:

'Object FUGR SPO1 is part of the central basis and therefore cannot be enhanced'

I cannot find a user exit for SAP logoff and just find the standard program .