<?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: Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611226#M274029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;SUSR_ZBV_CLIENTSYSTEMS_GET&amp;lt;/b&amp;gt; Function module,&lt;/P&gt;&lt;P&gt;Goto SE37 and execute this transaction, and give username in the column &amp;lt;b&amp;gt;Delivery_mode&amp;lt;/b&amp;gt; , then press F8. you will get Export Parameters, click the table Icon,You will get Client and System. Client is the first Column and the System is 4th Column, &lt;/P&gt;&lt;P&gt;You will get here what you want, but i do not know whether it is the correct way or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2006 18:39:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-11T18:39:02Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611225#M274028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on an object where it is desired that system id and mandt is to be checked and if the server is DEV and client is 200, then, the processing is to be done. Else, it should throw an error message. This type of functionality is configured in the client level settings. &lt;/P&gt;&lt;P&gt;Now, to resolve this, I can use &lt;/P&gt;&lt;P&gt;if sy-sysid = DEV and sy-mandt = 200&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I dont want to hardcode these system variable values to check the condition.&lt;/P&gt;&lt;P&gt;Can anyone tell me how is it possible without hardcoding thevalues? Is there any function module for this? Howis client level configuration changes be prevented? any table exixts where i can check if i can go ahead or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your replies..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611225#M274028</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-09-11T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611226#M274029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;SUSR_ZBV_CLIENTSYSTEMS_GET&amp;lt;/b&amp;gt; Function module,&lt;/P&gt;&lt;P&gt;Goto SE37 and execute this transaction, and give username in the column &amp;lt;b&amp;gt;Delivery_mode&amp;lt;/b&amp;gt; , then press F8. you will get Export Parameters, click the table Icon,You will get Client and System. Client is the first Column and the System is 4th Column, &lt;/P&gt;&lt;P&gt;You will get here what you want, but i do not know whether it is the correct way or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611226#M274029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T18:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611227#M274030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables t000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from t000 client specified&lt;/P&gt;&lt;P&gt;                where mandt = sy-mandt&lt;/P&gt;&lt;P&gt;                  and ccnocliind eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  Raise error.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the allowed values of t000-ccnocliind and adjust your select statement accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611227#M274030</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-09-11T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611228#M274031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shakir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can use table TVARV to store the system information for your validation instead of hardcoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To maintain table TVARV, please use transaction code &amp;lt;b&amp;gt;STVARV&amp;lt;/b&amp;gt;. Click on Change button and create a variant by entering the value and save the variant. Before check the button "Include changed entries in transport request". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * 
FROM TVARV
WHERE NAME = 'REPORT_XYZ_SYSTEM_INFO'. 

IF SY-MANDT = TVARV-LOW AND    &amp;lt;-- "DEV 
   SY-SYSID = TVARV-HIGH.      &amp;lt;-- "200
   ...                         "Perform activity 
ELSE.
   ...                         "Error message
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1611228#M274031</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-09-11T18:54:13Z</dc:date>
    </item>
  </channel>
</rss>

