<?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 Screen programming issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-issue/m-p/5624225#M1280852</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; &lt;/P&gt;&lt;P&gt;*I am having the below things ready with me.*&lt;/P&gt;&lt;P&gt;1. I have a table control ready with me, which contains 6 fields, 2 radio buttons and 1 push button.&lt;/P&gt;&lt;P&gt;This is for 'N' number of rows.&lt;/P&gt;&lt;P&gt;2. The position of the radio buttons is in between these 6 fields, exactly at the center.&lt;/P&gt;&lt;P&gt;The position of the push button is at the end of the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I want to add the below functionality to the screen:-*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All the push buttons for all rows should be in disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After the user has entered data in first 3 fields, the radio buttons come into picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If rad1 = 'X', then the user continues entering data for remaining 3 fields and goes&lt;/P&gt;&lt;P&gt;to the next row to the next row to enter more data or else he/she presses save and&lt;/P&gt;&lt;P&gt;the data is saved in the Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If rad2 = 'X', then the push button for that row gets enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When the Push button is clicked, a pop-up screen is populated and the&lt;/P&gt;&lt;P&gt;user enters more info for that row.&lt;/P&gt;&lt;P&gt;5. After entering data in the pop-screen , the user presses enter and the data is saved for that row.&lt;/P&gt;&lt;P&gt;6. Like this the process has to continue as long as the user wants to enter data for each row.&lt;/P&gt;&lt;P&gt;7. Please do stress on how to save the data from screen to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen looks like :-&lt;/P&gt;&lt;P&gt;field1 field2 field3 Rad1 Rad2 field4 field5  field6&lt;/P&gt;&lt;P&gt; --        --      --      --      --        ---    ---       ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please recommend what I need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mamta Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 08:51:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T08:51:25Z</dc:date>
    <item>
      <title>Screen programming issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-issue/m-p/5624225#M1280852</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; &lt;/P&gt;&lt;P&gt;*I am having the below things ready with me.*&lt;/P&gt;&lt;P&gt;1. I have a table control ready with me, which contains 6 fields, 2 radio buttons and 1 push button.&lt;/P&gt;&lt;P&gt;This is for 'N' number of rows.&lt;/P&gt;&lt;P&gt;2. The position of the radio buttons is in between these 6 fields, exactly at the center.&lt;/P&gt;&lt;P&gt;The position of the push button is at the end of the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I want to add the below functionality to the screen:-*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All the push buttons for all rows should be in disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After the user has entered data in first 3 fields, the radio buttons come into picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If rad1 = 'X', then the user continues entering data for remaining 3 fields and goes&lt;/P&gt;&lt;P&gt;to the next row to the next row to enter more data or else he/she presses save and&lt;/P&gt;&lt;P&gt;the data is saved in the Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If rad2 = 'X', then the push button for that row gets enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When the Push button is clicked, a pop-up screen is populated and the&lt;/P&gt;&lt;P&gt;user enters more info for that row.&lt;/P&gt;&lt;P&gt;5. After entering data in the pop-screen , the user presses enter and the data is saved for that row.&lt;/P&gt;&lt;P&gt;6. Like this the process has to continue as long as the user wants to enter data for each row.&lt;/P&gt;&lt;P&gt;7. Please do stress on how to save the data from screen to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen looks like :-&lt;/P&gt;&lt;P&gt;field1 field2 field3 Rad1 Rad2 field4 field5  field6&lt;/P&gt;&lt;P&gt; --        --      --      --      --        ---    ---       ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please recommend what I need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mamta Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-issue/m-p/5624225#M1280852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-issue/m-p/5624226#M1280853</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;   Please refer the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_dynpro_tabcont_loop_at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;DATA: cols LIKE LINE OF flights-cols,&lt;/P&gt;&lt;P&gt;      lines TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code TYPE sy-ucomm,&lt;/P&gt;&lt;P&gt;      save_ok TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF demo_conn.&lt;/P&gt;&lt;P&gt;TABLES demo_conn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT flights-cols INTO cols WHERE index GT 2.&lt;/P&gt;&lt;P&gt;  cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;  MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'SCREEN_100'.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE itab LINES lines.&lt;/P&gt;&lt;P&gt;  flights-lines = lines.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE cancel INPUT.&lt;/P&gt;&lt;P&gt;  LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE read_table_control INPUT.&lt;/P&gt;&lt;P&gt;  MODIFY itab FROM demo_conn INDEX flights-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  save_ok = ok_code.&lt;/P&gt;&lt;P&gt;  CLEAR ok_code.&lt;/P&gt;&lt;P&gt;  CASE save_ok.&lt;/P&gt;&lt;P&gt;    WHEN 'TOGGLE'.&lt;/P&gt;&lt;P&gt;      LOOP AT flights-cols INTO cols WHERE index GT 2.&lt;/P&gt;&lt;P&gt;        IF  cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;        ELSEIF  cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    WHEN 'SORT_UP'.&lt;/P&gt;&lt;P&gt;      READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        SORT itab STABLE BY (cols-screen-name+10) ASCENDING.&lt;/P&gt;&lt;P&gt;        cols-selected = ' '.&lt;/P&gt;&lt;P&gt;        MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    WHEN 'SORT_DOWN'.&lt;/P&gt;&lt;P&gt;      READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        SORT itab STABLE BY (cols-screen-name+10) DESCENDING.&lt;/P&gt;&lt;P&gt;        cols-selected = ' '.&lt;/P&gt;&lt;P&gt;        MODIFY flights-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    WHEN 'DELETE'.&lt;/P&gt;&lt;P&gt;      READ TABLE flights-cols INTO cols WITH KEY screen-input = '1'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        LOOP AT itab INTO demo_conn WHERE mark = 'X'.&lt;/P&gt;&lt;P&gt;          DELETE itab.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-issue/m-p/5624226#M1280853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T08:53:48Z</dc:date>
    </item>
  </channel>
</rss>

