<?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: Dynamic Pushbuttons in screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852331#M1474535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   I am sorry i did not understand the logic you posted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you make it elobrate how it works or can you send code related to it.&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;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Apr 2010 08:29:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-27T08:29:43Z</dc:date>
    <item>
      <title>Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852325#M1474529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                      How to generate pushbuttons dynamically in screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: when we select item data from table if there are 2 entires 2 pushbuttons should be generate,if 5 item entires 5 pushbuttons should be generate dynamically...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar requirement for text fields in screen as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I search a lot in sdn but could not found solution for this requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 06:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852325#M1474529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T06:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852326#M1474530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Any help on 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;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 06:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852326#M1474530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T06:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852327#M1474531</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 afraid to say that It is not possible in Screens to create Dynamical push button&lt;/P&gt;&lt;P&gt; but your requirement is like that it can created in reports using ALV concept . In that at cell level we can create Buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 07:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852327#M1474531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852328#M1474532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             Thanks for your input...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you plz send me any links or code on this requirement using ALV concept.&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;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 07:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852328#M1474532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T07:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852329#M1474533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of one solution here. You would have to use &lt;EM&gt;selection screen&lt;/EM&gt; though.&lt;/P&gt;&lt;P&gt;Basically lets assume you have following selection screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: pa_file TYPE ... MODIF ID ...       
SELECTION-SCREEN PUSHBUTTON (50) but_fld1 USER-COMMAND ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By means of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  READ REPORT repid INTO it_rep_code.
...
    INSERT REPORT sy-repid FROM it_rep_code.
    SUBMIT (sy-repid) VIA SELECTION-SCREEN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...you can first get you report code into &lt;EM&gt;it_rep_code&lt;/EM&gt; , then modify it accoridngly (append new lines for next selection screen button or input field), then replace the current code with INSERT REPORT, finally submiting this one again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would cause that after some action on the screen we change the code of the program itself. Program would simply extend itaself. I used that option once and it worked quite well, so you can try it yourself too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 07:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852329#M1474533</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-27T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852330#M1474534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using OOPS ALV(cl_gui_alv_grid)  I Created in my scenario.&lt;/P&gt;&lt;P&gt;Just create One column as Button .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: 

     BEGIN OF type_s_data,
           Header(10),
            Item(5),
            button(10),
       END OF type_s_data,

"In layout settings mention like this, 
  fs_layo-stylefname = 'CELL'.
"for Button Column maintain fieldcat as.
  fs_fcat-fieldname = name.
  fs_fcat-outputlen = length.
  fs_fcat-coltext = text.
  fs_fcat-style = cl_gui_alv_grid=&amp;gt;mc_style_button.

"now it will appear in ALV as Buttons Column( that column have full of buttons).

"To handle Button Click you have to handle Button_click event in Cl_gui_alv_grid.
class handle_event definition.
METHODS : button_click FOR EVENT button_click OF cl_gui_alv_grid
                                        IMPORTING es_col_id es_row_no.
endclass.

class handle_event implementation.
method button_click.
message 'Successfully Button created' type 'S'." Write your required code
endmethod.
endclass.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just refer Package SLIS for Sample Programs on OOPS ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852330#M1474534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T08:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852331#M1474535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   I am sorry i did not understand the logic you posted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you make it elobrate how it works or can you send code related to it.&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;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852331#M1474535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852332#M1474536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not being clear enough. Below the example report which will show you the functionality I am talking about. Just run it and press ADD button on the standard toolbar. You will see the behaviour and likely to get the basic concept.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_test3.
TABLES: sscrfields.

PARAMETERS pa000 TYPE c.

TYPES: BEGIN OF t_line,
        line(72) TYPE c,
       END OF t_line.

DATA: it_rep_code TYPE STANDARD TABLE OF t_line
                  WITH HEADER LINE,
      wa_code  TYPE t_line.
DATA: repid LIKE sy-repid,
      g_exec_times(3) TYPE n.

SELECTION-SCREEN: FUNCTION KEY 1.

INITIALIZATION.
  IMPORT exec = g_exec_times
         FROM MEMORY ID 'EXEC'.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    g_exec_times = 1.
  ELSE.
    ADD 1 TO g_exec_times.
  ENDIF.

  EXPORT exec = g_exec_times
         TO MEMORY ID 'EXEC'.

  sscrfields-functxt_01 = 'Add'.
  repid = sy-repid.

AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'FC01'.

    READ REPORT repid INTO it_rep_code.

    CONCATENATE 'PARAMETERS pa' g_exec_times INTO wa_code.
    CONCATENATE wa_code 'type c.' INTO wa_code SEPARATED BY space.
    INSERT wa_code INTO it_rep_code INDEX 3.

    INSERT REPORT repid FROM it_rep_code.
    SUBMIT (repid) VIA SELECTION-SCREEN.

  ELSEIF sscrfields-ucomm = '&amp;amp;BACK'.
    LEAVE PROGRAM.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 09:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852332#M1474536</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-27T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Pushbuttons in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852333#M1474537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Created Push button on screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 10:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-pushbuttons-in-screen/m-p/6852333#M1474537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-12T10:05:10Z</dc:date>
    </item>
  </channel>
</rss>

