Skip to Content
avatar image
Former Member

how to handle authroziation levels in LSMW.

Hi,

How to handle authorization levels in LSMW. Please explain me step by step process.

Thanks

Nagendra

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jul 15, 2008 at 08:15 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 15, 2008 at 08:21 AM

    Hi,

    I need to know how to use authorization levels in LSMW and Where can i use . please provide the code for this.

    Add comment
    10|10000 characters needed characters exceeded

    • The objects are checked anyway by the LSMW, no need to add coding anywhere.

      If you want check these objects in your own programs, just insert a pattern for statement AUTHORITY-CHECK and object B_LSMW_EXEC. Use the info as provided in the link by Amit.

      Thomas

  • avatar image
    Former Member
    Jul 15, 2008 at 08:41 AM

    Hi,

    I hope we can do the validations for LSMW in two ways

    1) User profile level (Basis team work)

    2) Validating authorization object in LSMW. In the fift step of LSMW, we can write the cosding. Double click on the Begin of processing block and write the code to check the authorization same as norma ABAP program.

    This code will execute during the convert data step.

    If the user has the proper authorizations, will execute smoothly, if not through an error.

    Thanks,

    Rajinikanth

    Add comment
    10|10000 characters needed characters exceeded

    • >

      > That means any body can access any object and can do any unwanted change.

      That's wrong. You need S_TCODE for "LSMW" and B_LSMW with at least ACTVT = "02" as well as B_LSMW_PRO for the related project to be able to change an object. You can check yourself by looking at the authorization trace in ST01.

      Thomas

  • avatar image
    Former Member
    Jan 21, 2009 at 05:23 AM

    resolved

    Add comment
    10|10000 characters needed characters exceeded