<?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: Execute specific task from button on list-processing screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465152#M1057933</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 assign a function code to that button in the screen painter. Once the function code is assigned, to check in the user has clicked on the button, you need to catch the OK_CODE field from the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say your Function code is 'CLICK' in your PAI, you need to handle this as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if OK_CODE = 'CLICK'.&lt;/P&gt;&lt;P&gt;====&amp;gt;&amp;gt; Your commands&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;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2008 09:38:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-08T09:38:30Z</dc:date>
    <item>
      <title>Execute specific task from button on list-processing screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465150#M1057931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;     In Module Program , one BDC is runnig and after that all message is displaying by  using &lt;/P&gt;&lt;P&gt;      SET PF-STATUS 'SPACE'.&lt;/P&gt;&lt;P&gt;    LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;    Now Requirement is on list-processign output screen , one button will be their  in application toolbar , &lt;/P&gt;&lt;P&gt;    if user click on that button then it will execute specific function .&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;_But Problem is i am not able to catch when user has click that button .&lt;/STRONG&gt;_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 09:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465150#M1057931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute specific task from button on list-processing screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465151#M1057932</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 need to handle the user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using ALV to display the resulting messages, you shall have a USER-COMMAND parameter for the FM used to display the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to handle that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for the ok-code or sy-ucomm. Assign a F-code for the button in the STATUS declaration in SE41. Use the F-Code to perform action in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 09:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465151#M1057932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T09:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Execute specific task from button on list-processing screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465152#M1057933</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 assign a function code to that button in the screen painter. Once the function code is assigned, to check in the user has clicked on the button, you need to catch the OK_CODE field from the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say your Function code is 'CLICK' in your PAI, you need to handle this as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if OK_CODE = 'CLICK'.&lt;/P&gt;&lt;P&gt;====&amp;gt;&amp;gt; Your commands&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;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 09:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465152#M1057933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T09:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execute specific task from button on list-processing screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465153#M1057934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;      I am not getting which PAI actually its going on list-processing screen o/p their no pbo , pai ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 09:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465153#M1057934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute specific task from button on list-processing screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465154#M1057935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When they are displaying the BDC messages which screen number are they using ( if they are using a separate screen of course). IF they are using any separate screen you find out that screen. goto SE51 and give the screen number. Go to flow logic and create a New PAI for it and handle the button click there as i  have shown in my code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are displaying the message on Just the normal standard SE16 list(not calling a separate screen). You need to use the event 'AT USER-COMMAND' in your calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that event you need to check for sy-ucomm. Your button will have a function code specified in the 'SPACE' pf-status. So if sy-ucomm = fcode of your button then perform the function you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 10:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-specific-task-from-button-on-list-processing-screen/m-p/4465154#M1057935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T10:45:03Z</dc:date>
    </item>
  </channel>
</rss>

