Skip to Content

N-number of permutations and combinations for the given sales area

Hi SAP Techies,

Issue: I need to get the sales area assigned to the user (login) but when I checked in the authorizations, found that the distribution channel and division are having asterisk (like 10*, 200*).

Please guide.

Do we have any bapi to get user specific sales area assigned to that user.

Your valuable reply is most awaited.😊

Thanks in advance

--Pavan G

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 29, 2015 at 09:05 AM

    Usually you select the whole customizing table (here for the three fields of sales area -> TVTA) and execute AUTHORITY-CHECK in a loop.

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

    • Then build some select range for the three keys of TVTA (VKORG; VTWEG; SPART) from current user authorizations.

      Get those from SUSR_USER_AUTH_FOR_OBJ_GET and every authorization object that you want to check or that use those values (table TOBJ) (depends on actual requirement)

      Regards,

      Raymond

      .

  • avatar image
    Former Member
    Oct 29, 2015 at 10:40 AM

    You could use FM SUSR_USER_AUTH_FOR_OBJ_GET to get the authorization details of an user and then do a select from table TVTA to convert the "10*" etc values to actual values.

    R

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 29, 2015 at 10:52 AM

    Hi,

    If there should be a single sales area assigned to a user , you can use the Parameters tab in user specific data using SU01 and assign that to user, you can get this data from Table USR05.

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded