<?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>Question Re: Authorization Using Exits Special characters (*) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100996#M4520971</link>
    <description>&lt;P&gt;Just put a new record in e_t_range (I CP *) in case SALES_GRP is blank for your user.&lt;/P&gt;&lt;P&gt;What warning do you exactly have for your SELECT *. On Hana, a SELECT * could be costly (due to its column storiage), try to specify all the needed fields.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frederic&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 07:02:12 GMT</pubDate>
    <dc:creator>FCI</dc:creator>
    <dc:date>2019-09-16T07:02:12Z</dc:date>
    <item>
      <title>Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaq-p/12100994</link>
      <description>&lt;P&gt;Hi Dear ABAP Developer, &lt;/P&gt;
  &lt;P&gt;I would like add to my code a Special character logic. i need like this; if corresponding field had Null from Table (zabwp017), output should star '*'. its help me, that the user is authenticated all values. Could anyone help me for edit this code? &lt;/P&gt;
  &lt;P&gt;Table ZAWP017 : &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1729583-as.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Exampe : Testuser3 has authentication all of the "Sales_Grp" beucause there is NULL. &lt;/P&gt;
  &lt;P&gt;My Code worked, but i need *(Star) Logic.&lt;/P&gt;
  &lt;P&gt;another question: &lt;/P&gt;
  &lt;P&gt; I use BW on HANA. I got a Warning if i using statement "Select * from *. &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;WHEN 'Z0SALES_OFF_MC'.
IF i_step EQ '0'.

  CALL FUNCTION 'RSEC_GET_USERNAME'
    IMPORTING
      e_username = l_username.
  REFRESH lt_abwp017.
  SELECT * FROM zabwp017 INTO TABLE lt_abwp017 WHERE s_bbiuser = l_username
                                                            AND s_bberanz &amp;gt;= 1 .
    IF sy-subrc = 0.
      LOOP AT lt_abwp017 INTO wa_abwp017.
        CLEAR: l_s_range.
        l_s_range-low = wa_abwp017-sales_off.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
        CLEAR wa_abwp017.
      ENDLOOP.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks Alot &lt;/P&gt;
  &lt;P&gt;Sascha&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 20:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaq-p/12100994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-14T20:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100995#M4520970</link>
      <description>&lt;P&gt;I don't understand the question, at all.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 05:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100995#M4520970</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-09-15T05:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100996#M4520971</link>
      <description>&lt;P&gt;Just put a new record in e_t_range (I CP *) in case SALES_GRP is blank for your user.&lt;/P&gt;&lt;P&gt;What warning do you exactly have for your SELECT *. On Hana, a SELECT * could be costly (due to its column storiage), try to specify all the needed fields.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frederic&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 07:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100996#M4520971</guid>
      <dc:creator>FCI</dc:creator>
      <dc:date>2019-09-16T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100997#M4520972</link>
      <description>&lt;P&gt;I don't understand your question. if your code worked what logic you need for *? beside, are you setting for value authorization or hierarchy authorization? they will be difference.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 00:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100997#M4520972</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-09-17T00:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100998#M4520973</link>
      <description>&lt;P&gt;Thanks alot.. I am very beginner. Could you please write this code? &lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 20:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100998#M4520973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-17T20:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100999#M4520974</link>
      <description>&lt;P&gt;Why u dont understand my Question, i dont know how can i make clear it. &lt;/P&gt;&lt;P&gt;i am using value authorization.. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 20:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12100999#M4520974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-17T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101000#M4520975</link>
      <description>&lt;P&gt;what I mean I don't understand is that your code worked so what stop you use the same logic for *. do you mean that you don't know how to IF...ELSE?. I can write pseudo code like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE i_vnam.
  WHEN 'Z0SALES_OFF_MC'.
    IF i_step EQ '0'.
      CALL FUNCTION 'RSEC_GET_USERNAME'
        IMPORTING
          e_username = l_username.
      SELECT sale_grp, sales_off
         FROM zabwp017
         INTO TABLE @lt_abwp017
        WHERE s_bbiuser = @l_username
          AND s_bberanz &amp;gt;= 1 .
      IF line_exists( lt_abwp017[ sale_grp = space ] ). " All authorization
        e_t_range = VALUE #( ( low  = '*'
                               sign = 'I'
                               opt  = 'CP' ) ).
      ELSE.
        e_t_range = VALUE #( FOR wa_abwp017 IN lt_abwp017 ( low  = wa_abwp017-sales_off
                                                            sign = 'I'
                                                            opt  = 'EQ' ) ).
      ENDIF.
    ENDIF.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2019 00:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101000#M4520975</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-09-18T00:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101001#M4520976</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHEN 'Z0SALES_OFF_MC'.

IF i_step EQ '0'.



  CALL FUNCTION 'RSEC_GET_USERNAME'

    IMPORTING

      e_username = l_username.

  REFRESH lt_abwp017.

  SELECT * FROM zabwp017 INTO TABLE lt_abwp017 WHERE s_bbiuser = l_username

                                                            AND s_bberanz &amp;gt;= 1 .

    IF sy-subrc = 0.

      LOOP AT lt_abwp017 INTO wa_abwp017.

          CLEAR l_s_range.

          IF wa_abwp017-sales_off IS NOT INITIAL.

            DELETE lt_abwp017 WHERE sales_off = ''.

            l_s_range-low = lt_abwp017-sales_off.

            l_s_range-sign = 'I'.

            l_s_range-opt = 'EQ'.

            APPEND l_s_range TO e_t_range.

          ELSE.

            l_s_range-low = '*'.

            l_s_range-sign = 'I'.

            l_s_range-opt = 'EQ'.

            APPEND l_s_range TO e_t_range.

          ENDIF.

        ENDLOOP.

    ENDIF.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loed&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101001#M4520976</guid>
      <dc:creator>Loed</dc:creator>
      <dc:date>2019-09-19T15:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101002#M4520977</link>
      <description>&lt;P&gt;Thx Alot its work.. &lt;/P&gt;&lt;P&gt;i have a warning like this : need a pseudo code? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Database features are functional enhancements in Open SQL that are no longer implemented&lt;/STRONG&gt;on all&lt;STRONG&gt;databases&lt;/STRONG&gt;. ... The name of the&lt;STRONG&gt;database feature&lt;/STRONG&gt;specified in the warning is defined as a constant in the class CL_ABAP_DBFEATURES.&lt;/P&gt;&lt;P&gt;or should i ignore it? &lt;BR /&gt;thanks you.. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 19:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101002#M4520977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-19T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Using Exits Special characters (*)</title>
      <link>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101003#M4520978</link>
      <description>&lt;P&gt;don't understand why you have to delete inside loop, and you should set the correct value of opt for *. also when someone have ALL authorization, there is no use of loop.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 08:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/authorization-using-exits-special-characters/qaa-p/12101003#M4520978</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-09-20T08:13:09Z</dc:date>
    </item>
  </channel>
</rss>

