Create SAP Users automatically with BAPI [english]

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 10

  • @vivandh1404
    @vivandh1404 ปีที่แล้ว

    Thanks u saved the Day

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว

      Glad to hear that 🤗 Thanks for your comment! 🤗😀

  • @_rubs
    @_rubs 2 ปีที่แล้ว

    Hi, thanks for the hint. Can you set the roles for this new user as well via bapi when you create it?

    • @CustAndCode
      @CustAndCode  2 ปีที่แล้ว +1

      Sure, you can use the BAPI: BAPI_USER_ACTGROUPS_ASSIGN. 😀
      I will make a video about this, because it is really helpuful if you have to sync your users over different SAP systems.

    • @_rubs
      @_rubs 2 ปีที่แล้ว

      @@CustAndCode wonderfull m8, you have a new happy subscriber :)

    • @CustAndCode
      @CustAndCode  2 ปีที่แล้ว

      @@_rubs Thank you! 😀

  • @likithatv7473
    @likithatv7473 2 ปีที่แล้ว

    How to get system user name from user_id using bapi_user_get_detail?

    • @CustAndCode
      @CustAndCode  2 ปีที่แล้ว +1

      You find it here under "address"
      CALL FUNCTION 'BAPI_USER_GET_DETAIL'
      EXPORTING
      username = sy-uname
      IMPORTING
      address = ls_addr
      ls_addr is your structure, the fullname ist then: ls_addr-fullname

    • @likithatv7473
      @likithatv7473 2 ปีที่แล้ว

      @@CustAndCodeI need to use this in get entity method in odata service
      When I execute it shows internal data server error

    • @CustAndCode
      @CustAndCode  2 ปีที่แล้ว

      @@likithatv7473 Your Error can mean many things... But it is definitely not the BAPI Call. Have you checked the t-code /n/iwfnd/error_log ? You can set static data to check if the entity works. getEntity expect only 1! record!