<?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 Re: BAPI_USER_GETLIST filtering data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361789#M1993197</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to search on UserName? Not sure what is the parameter value for Username?&lt;/P&gt;&lt;P&gt;selectionRange.Append();&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("PARAMETER", "&lt;STRONG&gt;&amp;lt;???&amp;gt;&lt;/STRONG&gt;");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("FIELD", "USERNAME");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("SIGN", "I");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("OPTION", "EQ");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("LOW", "Clarc");&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 10:33:22 GMT</pubDate>
    <dc:creator>lrayapat73</dc:creator>
    <dc:date>2021-01-06T10:33:22Z</dc:date>
    <item>
      <title>BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361784#M1993192</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I am trying get all users with certain filters like FirstName="somename", LastName=somename", pls. refer below, how can I pass logical oprtation like "&lt;STRONG&gt;or&lt;/STRONG&gt;" , currently with below code it's always going as "&lt;STRONG&gt;and&lt;/STRONG&gt;" operation, all the users where FIRSTNAME="Ellena" and LASTNAME="Clarc". But I want as &lt;STRONG&gt;FIRSTNAME="Ellena" or LASTNAME="Clarc"&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Code using with .Net connector NCO 3.0,&lt;/P&gt;
  &lt;P&gt;IRfcFunction fnGetAllUsers = repo.CreateFunction("BAPI_USER_GETLIST");&lt;/P&gt;
  &lt;P&gt;IRfcTable selectionRange = fnGetAllUsers.GetTable("SELECTION_RANGE");&lt;/P&gt;
  &lt;P&gt;selectionRange.Append(); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("PARAMETER", "ADDRESS");&lt;/P&gt;
  &lt;P&gt; selectionRange.SetValue("FIELD", "FIRSTNAME"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("SIGN", "I"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("OPTION", "EQ"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("LOW", "Ellena"); &lt;/P&gt;
  &lt;P&gt;selectionRange.Append(); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("PARAMETER", "ADDRESS");&lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("FIELD", "LastNAME"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("SIGN", "I"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("OPTION", "EQ"); &lt;/P&gt;
  &lt;P&gt;selectionRange.SetValue("LOW", "Clarc");&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 12:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361784#M1993192</guid>
      <dc:creator>lrayapat73</dc:creator>
      <dc:date>2020-12-31T12:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361785#M1993193</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;try it using the SELECTION_EXP parameter, filling the first row with 'OR' and specification of 2 following selection criteria that has to be considered. See attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1871864-2020-12-31-14-15-09-structure-editor-change-select.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 13:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361785#M1993193</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2020-12-31T13:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361786#M1993194</link>
      <description>&lt;P&gt;Thank you Jan, it's working as explained above.&lt;/P&gt;&lt;P&gt;Is it possible to do like below,&lt;/P&gt;&lt;P&gt;(FIRSTNAME='ELLENA' or LASTNAME='Clarc') AND (E_MAIL='test@test.com' or Department='Sales')&lt;/P&gt;&lt;P&gt;In my application user gets an option to choose the filters, with 'AND', 'OR' combinations.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 06:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361786#M1993194</guid>
      <dc:creator>lrayapat73</dc:creator>
      <dc:date>2021-01-06T06:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361787#M1993195</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think that this is not possible in a single call. So, for the selection you gave, you have to call the function module twice and use the intersection of both result lists.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361787#M1993195</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2021-01-06T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361788#M1993196</link>
      <description>&lt;P&gt;Ok, thanks Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 09:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361788#M1993196</guid>
      <dc:creator>lrayapat73</dc:creator>
      <dc:date>2021-01-06T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361789#M1993197</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to search on UserName? Not sure what is the parameter value for Username?&lt;/P&gt;&lt;P&gt;selectionRange.Append();&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("PARAMETER", "&lt;STRONG&gt;&amp;lt;???&amp;gt;&lt;/STRONG&gt;");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("FIELD", "USERNAME");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("SIGN", "I");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("OPTION", "EQ");&lt;/P&gt;&lt;P&gt;selectionRange.SetValue("LOW", "Clarc");&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361789#M1993197</guid>
      <dc:creator>lrayapat73</dc:creator>
      <dc:date>2021-01-06T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361790#M1993198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;in that case you have to use the other parameter table SELECTION_RANGE. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1872006-2021-01-06-16-03-21-structure-editor-change-select.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 15:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361790#M1993198</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2021-01-06T15:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_GETLIST filtering data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361791#M1993199</link>
      <description>&lt;P&gt;Thanks Jan.&lt;/P&gt;&lt;P&gt;It's working even with selection exp, with out "Field" property.&lt;/P&gt;&lt;P&gt; selectionExpression.Append();&lt;/P&gt;&lt;P&gt;
                        selectionExpression.SetValue("LOGOP", "AND"); &lt;/P&gt;&lt;P&gt;                        selectionExpression.SetValue("ARITY", "0");&lt;/P&gt;&lt;P&gt; selectionExpression.Append(); &lt;/P&gt;&lt;P&gt;                        selectionExpression.SetValue("PARAMETER", "USERNAME");&lt;/P&gt;&lt;P&gt;
                       // selectionExpression.SetValue("FIELD", "USERNAME"); &lt;/P&gt;&lt;P&gt;                        selectionExpression.SetValue("OPTION", "EQ"); &lt;/P&gt;&lt;P&gt;                        selectionExpression.SetValue("LOW", "TestUserName1");&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 10:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-getlist-filtering-data/m-p/12361791#M1993199</guid>
      <dc:creator>lrayapat73</dc:creator>
      <dc:date>2021-01-07T10:22:20Z</dc:date>
    </item>
  </channel>
</rss>

