<?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: SM30 - Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457071#M1056519</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;after your select query i.e.&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;AND syuname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;means some records are fetched i.e. that user is maintained in internal table.&lt;/P&gt;&lt;P&gt;then write the same query with the reqd condition i.e. criteria based on which you want to give access to end user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc =! 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2008 12:06:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-09T12:06:51Z</dc:date>
    <item>
      <title>SM30 - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457067#M1056515</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 table with SM30.&lt;/P&gt;&lt;P&gt;and my Select query for SD report takes what are the user ID;s maintained in the Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But If the enduser is a Internal User and not maintained in the Ztable he should be able to see all the sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the entered user is maintained in the table he should be able to see only the customers which are assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if he tries to see the customer which is not asigned to him&lt;/P&gt;&lt;P&gt;it should throw a error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what I should do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Select querry is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;     kunnr&lt;/P&gt;&lt;P&gt;     FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;     TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;     WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;     AND syuname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457067#M1056515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457068#M1056516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If current user is end user,it will not return any records after your select query as this user is not maintained in Z table. In this case,write ur select query again without user condition. It will give you desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;AND syuname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;&amp;gt; If current user is not maintained i.e. he is end user,display all records &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0 OR gt_c2c_auth[] is initial.&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr.&lt;/P&gt;&lt;P&gt;endif.&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;Aparna Gaikwad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457068#M1056516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457069#M1056517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;AND syuname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;  kunnr&lt;/P&gt;&lt;P&gt;  FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;  TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;  WHERE kunnr IN s_kunnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457069#M1056517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457070#M1056518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually its like &lt;/P&gt;&lt;P&gt;if the user is not maintained in the table he should be able to see all orders.Irrespective of Ztable.&lt;/P&gt;&lt;P&gt;If maintained he should see only specific orders that are against him.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 11:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457070#M1056518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T11:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 - Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457071#M1056519</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;after your select query i.e.&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;AND syuname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;means some records are fetched i.e. that user is maintained in internal table.&lt;/P&gt;&lt;P&gt;then write the same query with the reqd condition i.e. criteria based on which you want to give access to end user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc =! 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM zsd_c2c_auth&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE gt_c2c_auth&lt;/P&gt;&lt;P&gt;WHERE kunnr IN s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 12:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-selection-screen/m-p/4457071#M1056519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T12:06:51Z</dc:date>
    </item>
  </channel>
</rss>

