<?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: Authorization_Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572254#M258324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;goto tcode su21.In the object class column double click on SD.When you do that you will c various authorization objects.The most relevant ones for your scenario is &lt;/P&gt;&lt;P&gt;V_VBAK_AAT(document type)&lt;/P&gt;&lt;P&gt;In the report u will make use of the statement.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'V_VBAK_AAT' &lt;/P&gt;&lt;P&gt;    ID AUART  FIELD (here you specify the sales order type)&lt;/P&gt;&lt;P&gt;    ID ACTVT  FIELD (02 for change and 03 for display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the sy-subrc condtion and accordingly call the tcode.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward useful answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shrita.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shrita sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2006 08:52:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-17T08:52:06Z</dc:date>
    <item>
      <title>Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572252#M258322</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;I have a requirement in which I need to check whether a user has the authorization to change a sales document or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he has,then I need to call transaction VA02(Change mode) else VA03(Display Mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am clear with the Call transaction part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for the authorization part, how will I come to know that a user has a authorization to change a document or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 07:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572252#M258322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T07:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572253#M258323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please try with the below authorization objects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;V_VBAK_VKO Sales Document: Authorization for Sales Areas&lt;/P&gt;&lt;P&gt;V_VBAK_AAT Sales Document: Authorization for Sales Document Types&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  First one is w.r.t Sales Area&lt;/P&gt;&lt;P&gt;  Second One w.r.t Sales Document Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps you to proceed with your coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 08:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572253#M258323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T08:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572254#M258324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;goto tcode su21.In the object class column double click on SD.When you do that you will c various authorization objects.The most relevant ones for your scenario is &lt;/P&gt;&lt;P&gt;V_VBAK_AAT(document type)&lt;/P&gt;&lt;P&gt;In the report u will make use of the statement.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'V_VBAK_AAT' &lt;/P&gt;&lt;P&gt;    ID AUART  FIELD (here you specify the sales order type)&lt;/P&gt;&lt;P&gt;    ID ACTVT  FIELD (02 for change and 03 for display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the sy-subrc condtion and accordingly call the tcode.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward useful answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shrita.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shrita sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 08:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572254#M258324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572255#M258325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check the authorization of the user of an ABAP program, use the AUTHORITY-CHECK statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT '&amp;lt;object&amp;gt;'&lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name1&amp;gt;' FIELD &amp;lt;f1&amp;gt; &lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name2&amp;gt;' FIELD &amp;lt;f2&amp;gt; &lt;/P&gt;&lt;P&gt;                            .............&lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name10&amp;gt;' FIELD &amp;lt;f10&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;***authotised&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;not&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 09:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572255#M258325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572256#M258326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subhash,&lt;/P&gt;&lt;P&gt;here a short code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_TEST.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: I_VA02 LIKE SY-TCODE VALUE 'VA02'.&lt;/P&gt;&lt;P&gt;DATA: I_VA03 LIKE SY-TCODE VALUE 'VA03'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD I_VA02.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION I_VA02.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION I_VA03.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 09:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572256#M258326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization_Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572257#M258327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;            AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;             ID 'TCD' FIELD 'VA01'.&lt;/P&gt;&lt;P&gt;            if sy-subrc eq 0 .&lt;/P&gt;&lt;P&gt;               call transaction 'VA02'&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;              call transaction 'VA03'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 09:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-help/m-p/1572257#M258327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T09:38:59Z</dc:date>
    </item>
  </channel>
</rss>

