<?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: Working with user command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839668#M1132210</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;One point missed in Tarun's reply is, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of GET CURSOR FIELD fname VALUE fval. to get the field name and field value after the user clicks on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2008 07:52:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-04T07:52:32Z</dc:date>
    <item>
      <title>Working with user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839665#M1132207</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 to develop a report which will get no of queries (sq01) generated in SAP system, then I( have to segregate it to the Functional area which I have done, now on my final output list, I am having a description like &lt;/P&gt;&lt;P&gt;*No. of queries generated * some number.&lt;/P&gt;&lt;P&gt;similarly it will display for each functional area, now my problem is, when I click on particular decription it should get the data related to that area, how can I get this done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839665#M1132207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T07:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Working with user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839666#M1132208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram Kagada,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use USER COMMAND.&lt;/P&gt;&lt;P&gt;First you need to create a PF-STATUS and set this pf in your report program.&lt;/P&gt;&lt;P&gt;Create some buttons. For each button, there is a function code associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you need to handle the click event of the buttons at event &lt;STRONG&gt;'AT USER-COMMAND'&lt;/STRONG&gt; using their function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you click any button, system field sy-ucomm will store its function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this dummy code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_demo.

data : ok_code type sy-ucomm.

ok_code = sy-ucomm.

START-OF-SELECTION.
set pf-status 'Z_PF'. "this is the pf-status associated with the report program.

AT USER-COMMAND.
case ok_code.
when 'ADD'. "for button having function code ADD
*code
when 'DEL'. "for button having function code DEL
*code
endcase.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839666#M1132208</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-04T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Working with user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839667#M1132209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks for the reply but I am not having button, I was able to resolve it, I have used CP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839667#M1132209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T07:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Working with user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839668#M1132210</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;One point missed in Tarun's reply is, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of GET CURSOR FIELD fname VALUE fval. to get the field name and field value after the user clicks on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-user-command/m-p/4839668#M1132210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T07:52:32Z</dc:date>
    </item>
  </channel>
</rss>

