<?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: AUTHORITY_CHECKs ?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675312#M1099539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create the POs?&lt;/P&gt;&lt;P&gt;With batch input or call transaction, all checks of the standard transaction (ME21 or ME21N) are processed, no need to code your own.&lt;/P&gt;&lt;P&gt;Same might be true for direct input programs or BAPIs, but you should double check.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 15:52:17 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-10-28T15:52:17Z</dc:date>
    <item>
      <title>AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675310#M1099537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worked with AUTHORITY_CHECK_TCODE, AUTHORITY_CHECK_DATASET, AUTHORITY_CHECK_VIEW function modules, fine..........but, I got a requirement from SECURITY guys, which asks me to do.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The program Z_my_prog_for_creating_POs(this prog. basically, creates the POs-purchase orders) needs to include authorization objects that provide restrictions on activity, organizational level, etc. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-  I do not know wht does it mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Wht func modules i hv to use to meet this requitement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replies appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SAP ABAPer on Oct 28, 2008 4:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675310#M1099537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675311#M1099538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'X_XXXX_XXX'&lt;/P&gt;&lt;P&gt;           ID 'ACTVT' FIELD 'XX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;" Has authorization"&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;" Has No authorization"&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675311#M1099538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T15:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675312#M1099539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create the POs?&lt;/P&gt;&lt;P&gt;With batch input or call transaction, all checks of the standard transaction (ME21 or ME21N) are processed, no need to code your own.&lt;/P&gt;&lt;P&gt;Same might be true for direct input programs or BAPIs, but you should double check.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 15:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675312#M1099539</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-28T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675313#M1099540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;You have to use.

AUTHORITY-CHECK OBJECT 'X_XXXX_XXX'
ID 'ACTVT' FIELD 'XX'.

IF sy-subrc EQ 0.
" Has authorization"
Else.
" Has No authorization"
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that 'X_XXX_X' can be created using Tr su21 and create/ add in a appropriate object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 16:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675313#M1099540</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-28T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675314#M1099541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am creating by using BAPI_PO_CREATE1. So, as u said, from this BAPI, i found the below code, so, let me now that, here in this piece of code, is the SAP is validating the user authenatication?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM pre_processing&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;           poitem                 STRUCTURE bapimepoitem&lt;/P&gt;&lt;P&gt;           poitemx                STRUCTURE bapimepoitemx&lt;/P&gt;&lt;P&gt;           poaddrdelivery         STRUCTURE bapimepoaddrdelivery&lt;/P&gt;&lt;P&gt;           poschedule             STRUCTURE bapimeposchedule&lt;/P&gt;&lt;P&gt;           poschedulex            STRUCTURE bapimeposchedulx&lt;/P&gt;&lt;P&gt;           poaccount              STRUCTURE bapimepoaccount&lt;/P&gt;&lt;P&gt;           poaccountx             STRUCTURE bapimepoaccountx&lt;/P&gt;&lt;P&gt;           poaccountprofitsegment STRUCTURE bapimepoaccountprofitsegment&lt;/P&gt;&lt;P&gt;           pocondheader           STRUCTURE bapimepocondheader&lt;/P&gt;&lt;P&gt;           pocondheaderx          STRUCTURE bapimepocondheaderx&lt;/P&gt;&lt;P&gt;           pocond                 STRUCTURE bapimepocond&lt;/P&gt;&lt;P&gt;           pocondx                STRUCTURE bapimepocondx&lt;/P&gt;&lt;P&gt;           polimits               STRUCTURE bapiesuhc&lt;/P&gt;&lt;P&gt;           pocontractlimits       STRUCTURE bapiesucc&lt;/P&gt;&lt;P&gt;           poservices             STRUCTURE bapiesllc&lt;/P&gt;&lt;P&gt;           posrvaccessvalues      STRUCTURE bapiesklc&lt;/P&gt;&lt;P&gt;           poservicestext         STRUCTURE bapieslltx&lt;/P&gt;&lt;P&gt;           extensionin            STRUCTURE bapiparex&lt;/P&gt;&lt;P&gt;           poexpimpitem           STRUCTURE bapieipo&lt;/P&gt;&lt;P&gt;           poexpimpitemx          STRUCTURE bapieipox&lt;/P&gt;&lt;P&gt;           potextheader           STRUCTURE bapimepotextheader"#EC ENHOK&lt;/P&gt;&lt;P&gt;           potextitem             STRUCTURE bapimepotext    "#EC ENHOK&lt;/P&gt;&lt;P&gt;           popartner              STRUCTURE bapiekkop&lt;/P&gt;&lt;P&gt;           return                 STRUCTURE bapiret2&lt;/P&gt;&lt;P&gt;           pocomponents           STRUCTURE bapimepocomponent&lt;/P&gt;&lt;P&gt;           pocomponentsx          STRUCTURE bapimepocomponentx&lt;/P&gt;&lt;P&gt;           poitemship             STRUCTURE bapiitemship&lt;/P&gt;&lt;P&gt;           poitemshipx            STRUCTURE bapiitemshipx&lt;/P&gt;&lt;P&gt;      USING&lt;/P&gt;&lt;P&gt;           im_aktyp               LIKE      t160-trtyp&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;           my_handler             TYPE REF TO cl_message_handler_mm&lt;/P&gt;&lt;P&gt;           poheader               LIKE      bapimepoheader&lt;/P&gt;&lt;P&gt;           poheaderx              LIKE      bapimepoheaderx&lt;/P&gt;&lt;P&gt;           poaddrvendor           STRUCTURE bapimepoaddrvendor&lt;/P&gt;&lt;P&gt;           poexpimpheader         STRUCTURE bapieikp&lt;/P&gt;&lt;P&gt;           poexpimpheaderx        STRUCTURE bapieikpx&lt;/P&gt;&lt;P&gt;           versions               STRUCTURE bapimedcm&lt;/P&gt;&lt;P&gt;           ponumber               LIKE      bapimepoheader-po_number&lt;/P&gt;&lt;P&gt;           testrun                TYPE      xfeld&lt;/P&gt;&lt;P&gt;           memory_complete        TYPE      xfeld&lt;/P&gt;&lt;P&gt;           memory_uncomplete      TYPE      xfeld&lt;/P&gt;&lt;P&gt;           no_messaging           TYPE      xfeld&lt;/P&gt;&lt;P&gt;           no_message_req         TYPE      xfeld&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;no_authority           TYPE      xfeld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           no_price_from_po       TYPE      xfeld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: no_user_exit TYPE xfeld,&lt;/P&gt;&lt;P&gt;          wa_poitemx   TYPE bapimepoitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;docu: message handler&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cl_message_handler_mm=&amp;gt;get_handler&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ex_handler = my_handler.&lt;/P&gt;&lt;P&gt;    CALL METHOD my_handler-&amp;gt;set_config_for_mepo( ).&lt;/P&gt;&lt;P&gt;    CALL METHOD my_handler-&amp;gt;remove_all( ).&lt;/P&gt;&lt;P&gt;    CALL METHOD my_handler-&amp;gt;cleanup( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SAP ABAPer on Oct 28, 2008 9:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 20:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675314#M1099541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECKs ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675315#M1099542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, when you set NO_AUTHORITY to space (default value), then the BAPI will perform the relevant authority checks, also on organizational level (according to online documentation of BAPI_PO_CREATE1).&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 08:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-checks/m-p/4675315#M1099542</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-29T08:43:08Z</dc:date>
    </item>
  </channel>
</rss>

