<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to insert update standard table AGR_USERS? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615688#M2012192</link>
    <description>&lt;P&gt;Hi, currently my company create a program to upload roles in txt file to insert and delete roles of a user, however, I am facing a problem which is the program unable to add new roles for the new user in sap ABAP. This is because the new user without any role will not available in the standard table agr_users, any recommended ways to insert roles to the new users using any function module or bapi? Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 03:18:49 GMT</pubDate>
    <dc:creator>suityan98</dc:creator>
    <dc:date>2022-07-28T03:18:49Z</dc:date>
    <item>
      <title>How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615688#M2012192</link>
      <description>&lt;P&gt;Hi, currently my company create a program to upload roles in txt file to insert and delete roles of a user, however, I am facing a problem which is the program unable to add new roles for the new user in sap ABAP. This is because the new user without any role will not available in the standard table agr_users, any recommended ways to insert roles to the new users using any function module or bapi? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 03:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615688#M2012192</guid>
      <dc:creator>suityan98</dc:creator>
      <dc:date>2022-07-28T03:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615689#M2012193</link>
      <description>&lt;P&gt;are you calling the BAPIS? I think they are: BAPI_USER_ACTGROUPS_ASSIGN and BAPI_USER_ACTGROUPS_DELETE&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 03:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615689#M2012193</guid>
      <dc:creator>Colleen</dc:creator>
      <dc:date>2022-07-28T03:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615690#M2012194</link>
      <description>&lt;P&gt;yes nothing change&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT GT_FILE_USER.&lt;BR /&gt;      "CHECK CURRENT ROLE TO AVOID DELETE LAST ROLE INSERTED&lt;BR /&gt;      CALL FUNCTION 'SUSR_USER_AGR_ACTIVITYGR_GET'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          USER_NAME                 = GT_FILE_USER-USRID&lt;BR /&gt;*         WITH_TEXT                 = ' '&lt;BR /&gt;        TABLES&lt;BR /&gt;          USER_ACTIVITYGROUPS       = LT_CURRENT_ROLES&lt;BR /&gt;       EXCEPTIONS&lt;BR /&gt;         USER_NAME_NOT_EXIST       = 1&lt;BR /&gt;         OTHERS                    = 2.&lt;BR /&gt;&lt;BR /&gt;      APPEND LINES OF lt_CURRENT_ROLES TO LT_ROLES.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      CALL FUNCTION 'BAPI_USER_ACTGROUPS_ASSIGN'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          USERNAME             = GT_FILE_USER-USRID&lt;BR /&gt;        TABLES&lt;BR /&gt;          ACTIVITYGROUPS       = LT_ROLES&lt;BR /&gt;          RETURN               = LT_RET .&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2022 05:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615690#M2012194</guid>
      <dc:creator>suityan98</dc:creator>
      <dc:date>2022-07-28T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615691#M2012195</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;suityan98&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;What message(s) does the BAPI return?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 05:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615691#M2012195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-07-28T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615692#M2012196</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;suityan98&lt;/SPAN&gt; Did you commit the changes? (BAPI_TRANSACTION_COMMIT)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 07:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615692#M2012196</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-07-28T07:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert update standard table AGR_USERS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615693#M2012197</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; AFAIK security related BAPI's contain their own commit.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 08:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-update-standard-table-agr-users/m-p/12615693#M2012197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-07-28T08:41:44Z</dc:date>
    </item>
  </channel>
</rss>

