<?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 Check in Class Interface CMD_EI_API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053891#M1352795</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 can try to use enhancement framework to implement a workaround. I would define new authorization object and I would add authorization check for this object at the beginning of the method authority_check_cust_transact using implicit enhancement point. If user has an authorization for this new Z object then I would exit from the method otherwise I would continue with original logic. So basically meaning of the new authorization object will be if user has this authorization then user can user class without having authorization for XD01. Your user administrator would would have to be careful with assigning this new authorization but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 08:41:58 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2009-09-08T08:41:58Z</dc:date>
    <item>
      <title>Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053888#M1352792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the class CMD_EL_API in order to create new customer.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The class is working very well, but there is a problem.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Not all the users that are going to utilize this aplicacion can have access to XD01 and XD02 and the class check the authorization on these transactions.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;         You are not authorized to use Transaction  XD01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already it was given them access to all the objects of the XD01 and XD02 but continues marking the same error.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It wold be able someone to indicate me that can be done.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blanca Segovia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 15:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053888#M1352792</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2009-09-04T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053889#M1352793</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;there is transaction SU53 which returns last authorization check which failed. It should help you to figure out which authorization is still missing in user's profile. Immediately after you get an error run this transaction. Be aware sometimes it's confusing because last one does not have to the right one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way how to check authorization checks is to set up break point for all authorization checks. This can be easily done in new debugger. You just need to set breakpoints for ABAP command AUHORITY-CHECK and debug your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Sep 2009 02:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053889#M1352793</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-09-05T02:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053890#M1352794</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;The validation is  in the next method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where iv_tcode = u2018XD01u2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that users can be given no access to the transaction XD01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have any other suggestions?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD authority_check_cust_transact .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_bapiret2 TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialize exporting parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR: es_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Authorization for transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;                  ID 'TCD' FIELD iv_tcode.&lt;/P&gt;&lt;P&gt;  IF sy-subrc IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Fill error parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    es_error-is_error = gc_true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Detailed message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE e172(00) INTO cvi_ei_api=&amp;gt;gv_msgtext&lt;/P&gt;&lt;P&gt;                     WITH iv_tcode.&lt;/P&gt;&lt;P&gt;    ls_bapiret2 = cvi_ei_api=&amp;gt;tool_fill_bapiret2( ).&lt;/P&gt;&lt;P&gt;    APPEND ls_bapiret2 TO es_error-messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Exit at first error&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blanca Segovia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 04:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053890#M1352794</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2009-09-08T04:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053891#M1352795</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 can try to use enhancement framework to implement a workaround. I would define new authorization object and I would add authorization check for this object at the beginning of the method authority_check_cust_transact using implicit enhancement point. If user has an authorization for this new Z object then I would exit from the method otherwise I would continue with original logic. So basically meaning of the new authorization object will be if user has this authorization then user can user class without having authorization for XD01. Your user administrator would would have to be careful with assigning this new authorization but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 08:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053891#M1352795</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-09-08T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053892#M1352796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is working !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blanca Segovia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 15:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053892#M1352796</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2009-09-08T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053893#M1352797</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;Could you please provide me sample program where CMD_EI_API -&amp;gt;MAINTAIN_BAPI. I tried but i was unable to maintain the Customer Masger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JD Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2009 06:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053893#M1352797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-13T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053894#M1352798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is a small program to start with this method. I hope you serve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zcreate_cliente.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_company_code_st type cmds_ei_company,&lt;/P&gt;&lt;P&gt;wa_company_code type cmds_ei_cmd_company,&lt;/P&gt;&lt;P&gt;wa_customer type cmds_ei_extern,&lt;/P&gt;&lt;P&gt;wa_customers type cmds_ei_main,&lt;/P&gt;&lt;P&gt;wa_address type bapiad1vl,&lt;/P&gt;&lt;P&gt;wa_addressx type bapiad1vlx,&lt;/P&gt;&lt;P&gt;wa_central_data type cmds_ei_vmd_central_data,&lt;/P&gt;&lt;P&gt;wa_central_datax type cmds_ei_vmd_central_data_xflag,&lt;/P&gt;&lt;P&gt;wa_error type cvis_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants c_update type c value 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  free: wa_customer, wa_company_code_st, wa_customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_company_code_st-task = c_update.&lt;/P&gt;&lt;P&gt;  wa_company_code_st-data_key-bukrs = 'A105'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_address-name = 'Nombre Cliente'.&lt;/P&gt;&lt;P&gt;  wa_address-country = 'MX'.&lt;/P&gt;&lt;P&gt;  wa_address-langu = 'E'.&lt;/P&gt;&lt;P&gt;  wa_address-time_zone = 'UTC-6'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_customer-central_data-address-postal-data = wa_address.&lt;/P&gt;&lt;P&gt;  wa_customer-central_data-address-postal-datax = wa_addressx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_customer-central_data-central-data-ktokd = '0200'.&lt;/P&gt;&lt;P&gt;  wa_customer-central_data-central-datax-ktokd = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_company_code_st to wa_company_code-company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_customer-header-object_instance-kunnr = '0300002832'.&lt;/P&gt;&lt;P&gt;  wa_customer-header-object_task = c_update.&lt;/P&gt;&lt;P&gt;  wa_customer-company_data = wa_company_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_customer to wa_customers-customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method cmd_ei_api=&amp;gt;maintain_bapi&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;  is_master_data = wa_customers&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;   es_message_correct = wa_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if wa_error-is_error is initial.&lt;/P&gt;&lt;P&gt;    commit work.&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;Blanca Segovia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 23:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053894#M1352798</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2010-01-04T23:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053895#M1352799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Blanca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am trying to create a customer from external system into sap. I heard there is no standard bapi for this. By seeing your mail i understood it is possible through classes. Can you give me some idea how to create it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 08:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053895#M1352799</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2010-01-25T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053896#M1352800</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 used the method MAINTAIN_BAPI of the class CMD_EI_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transaction to see the class is se24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must map the data in the structure of the method and finally  call the method like the last example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can send you  an example about some specific data, please said me which data you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other option is the LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapbrainsonline.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html" target="test_blank"&gt;http://sapbrainsonline.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Blanca Segovia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 16:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053896#M1352800</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2010-01-25T16:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053897#M1352801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blanca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have to create a customer  from external system . I tried to create bapi for customer creation. I  think  to use this class                  (  CMD_EI_API method MAINTAIN_BAPI )  in this bapi .   Is it  possible to work like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 18:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053897#M1352801</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2010-01-25T18:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check in Class Interface CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053898#M1352802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible, using a function with Processing type: Remote-Enabled Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Blanca Segovia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 21:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-in-class-interface-cmd-ei-api/m-p/6053898#M1352802</guid>
      <dc:creator>former_member627852</dc:creator>
      <dc:date>2010-01-25T21:17:11Z</dc:date>
    </item>
  </channel>
</rss>

