<?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: dialog programming with table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492538#M562629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ztable1 having 6 fields and z table2 having 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there is foreign key relation ship existes between ztable1 &amp;amp; ztable2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2007 11:28:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-13T11:28:02Z</dc:date>
    <item>
      <title>dialog programming with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492537#M562628</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;my requirement is &lt;/P&gt;&lt;P&gt;screen 1: having material no and two push buttons display and change.&lt;/P&gt;&lt;P&gt;               when display validate the material no and go to screen 2 and &lt;/P&gt;&lt;P&gt;                        display the values from a ztable1 and hide the new entry &lt;/P&gt;&lt;P&gt;                        and delete buttons on screen 2.&lt;/P&gt;&lt;P&gt;               when change validate the material no and go to screen 2 and &lt;/P&gt;&lt;P&gt;                        display the values on the screen.&lt;/P&gt;&lt;P&gt;screen 2: the materail no and material description should display above the &lt;/P&gt;&lt;P&gt;                table control.&lt;/P&gt;&lt;P&gt;               Table control having 4 fields from a ztable2.&lt;/P&gt;&lt;P&gt;               push buttons are new entry , delete, change.&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;                when new entry empty lines are added to the screen, when user &lt;/P&gt;&lt;P&gt;                fills the screen it validates the entries against ztable2 if exist &lt;/P&gt;&lt;P&gt;                provide a message the entries are existing  &lt;/P&gt;&lt;P&gt;                if save button clicked chek the entries exist in ztable1 if exist &lt;/P&gt;&lt;P&gt;                provide a msg entry is existing else save the details in ztable1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                when delete if no entry is selected give a msg select an entry.&lt;/P&gt;&lt;P&gt;                if an entry selected check whether it is exist in ztable2, if not provide&lt;/P&gt;&lt;P&gt;                a msg, if yes provide a conformation screen " are you sure you want &lt;/P&gt;&lt;P&gt;                to delete this entry" if yes proceed with deletion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                when change button is clicked it will enable all disable rows having&lt;/P&gt;&lt;P&gt;                data, and while saving it should delete existing row (changed) from &lt;/P&gt;&lt;P&gt;                database table and insert the new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me regarding this scenario? i am very much thankful to tem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 06:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492537#M562628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T06:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492538#M562629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ztable1 having 6 fields and z table2 having 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there is foreign key relation ship existes between ztable1 &amp;amp; ztable2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 11:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492538#M562629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T11:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492539#M562630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any body having the solution for my requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 10:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492539#M562630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492540#M562631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First have to know the concept of Table control&lt;/P&gt;&lt;P&gt;The main purpose of table control is to display multiple records in a table like format.&lt;/P&gt;&lt;P&gt;so when to wants to display the multiple records, the internal table from which the table control has to be populated has to be kept in loop both in PAI and PBO.&lt;/P&gt;&lt;P&gt;see the doc&lt;/P&gt;&lt;P&gt;Check the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap09/index.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap09/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check the transaction ABAPDOCU which gives you lot of sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se38 and give demo&lt;STRONG&gt;dynpro&lt;/STRONG&gt; and press F4.&lt;/P&gt;&lt;P&gt;YOu will get a list of demo module pool programs.&lt;/P&gt;&lt;P&gt;One more T-Code is ABAPDOCU.&lt;/P&gt;&lt;P&gt;YOu can find more examples there.&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try this also:----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these demo programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To handle table controls in ABAP programs, you must declare a control in the declaration part of the program for each table control using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS &amp;lt;ctrl&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;ctrl&amp;gt; is the name of the table control on a screen in the ABAP program. The control allows the ABAP program to read the attributes of the table control and to influence the control. The statement also declares a deep structure of name &amp;lt;ctl&amp;gt;. The data type of the structure corresponds to the type CXTAB_CONTROL defined in the type group CXTAB in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime the components of the structure contain the attributes of the table control. Several of the initial values are determined in the Screen Painter. The initial value for the control &amp;lt;ctl&amp;gt; is taken from the screen which is determined using the addition USING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you write the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can initialize a table control at any time with the initial value of a screen &amp;lt;scr&amp;gt;. Values that are not taken from the settings in the Screen Painter, are set to the current status of the table control at PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure CXTAB_CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The deep structure CXTAB_CONTROL contains the general attributes of the table control on the highest level. The component CXTAB_CONTROL is a table of the structure CXTAB_COLUMN and contains the attributes of a column. The component CXTAB_CONTROL-COLS-SCREEN is a flat structure of the same type as system table SCREEN and contains the attributes of the individual screen elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward points if useful&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 10:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492540#M562631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492541#M562632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF FS_SPFLI,&lt;/P&gt;&lt;P&gt;        MANDT TYPE SPFLI-MANDT,&lt;/P&gt;&lt;P&gt;        CARRID TYPE SPFLI-CARRID,&lt;/P&gt;&lt;P&gt;        CONNID TYPE SPFLI-CONNID,&lt;/P&gt;&lt;P&gt;        COUNTRYFR TYPE SPFLI-COUNTRYFR,&lt;/P&gt;&lt;P&gt;      END OF FS_SPFLI.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF FS_SFLIGHT,&lt;/P&gt;&lt;P&gt;        MANDT TYPE SFLIGHT-MANDT,&lt;/P&gt;&lt;P&gt;        CARRID TYPE SFLIGHT-CARRID,&lt;/P&gt;&lt;P&gt;        CONNID TYPE SFLIGHT-CONNID,&lt;/P&gt;&lt;P&gt;        FLDATE TYPE SFLIGHT-FLDATE,&lt;/P&gt;&lt;P&gt;      END OF FS_SFLIGHT.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_spfli   like standard table of fs_spfli,&lt;/P&gt;&lt;P&gt;  t_sflight like standard table of fs_sflight,&lt;/P&gt;&lt;P&gt;  ok_code   type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls:&lt;/P&gt;&lt;P&gt;  c_tabstrip type tabstrip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;  from spfli&lt;/P&gt;&lt;P&gt;  into corresponding fields of table t_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;  from sflight&lt;/P&gt;&lt;P&gt;  into corresponding fields of table t_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 101.&lt;/P&gt;&lt;P&gt;*call screen 102.&lt;/P&gt;&lt;P&gt;*call screen 103.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0101  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0101 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'TABSTRIP'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'TABSTRIP'.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0101  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module   USER_COMMAND_0101  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE  USER_COMMAND_0101 INPUT.&lt;/P&gt;&lt;P&gt;  case ok_code.&lt;/P&gt;&lt;P&gt;    when 'BACK' or 'EXIT'.&lt;/P&gt;&lt;P&gt;      leave program.&lt;/P&gt;&lt;P&gt;      clear ok_code.&lt;/P&gt;&lt;P&gt;    when 'SPFLI'.&lt;/P&gt;&lt;P&gt;      leave to list-processing.&lt;/P&gt;&lt;P&gt;      loop at t_spfli into fs_spfli.&lt;/P&gt;&lt;P&gt;        write:/&lt;/P&gt;&lt;P&gt;          fs_spfli.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      clear ok_code.&lt;/P&gt;&lt;P&gt;    when 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;      leave to list-processing.&lt;/P&gt;&lt;P&gt;      loop at t_sflight into fs_sflight.&lt;/P&gt;&lt;P&gt;        write:/&lt;/P&gt;&lt;P&gt;          fs_sflight.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      clear ok_code.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 "  USER_COMMAND_0101  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you execute the report, double click on 101, i.e., CALL SCREEN 101 and paste the below code in FLOW LOGIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0101.&lt;/P&gt;&lt;P&gt; call subscreen spfli_ref1 including sy-repid '102'.&lt;/P&gt;&lt;P&gt; call subscreen sflight_ref1 including sy-repid '103'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;call subscreen: spfli_ref1, sflight_ref1.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample code. Your requirement is similar to this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 10:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-with-table-control/m-p/2492541#M562632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T10:40:44Z</dc:date>
    </item>
  </channel>
</rss>

