<?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: Table Control With Check Box. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480486#M558788</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;see this thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3400505"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 06:35:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-29T06:35:48Z</dc:date>
    <item>
      <title>Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480485#M558787</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 have displayed data in a table control with a check box field. Now, the users checks the correspondng record and then press the save button. Then the record should come into display mode and also that record should append in the Zdbtable.&lt;/P&gt;&lt;P&gt;For this in which module PBO or PAI we have to write the code and How to find out which record he checked ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480485#M558787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T06:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480486#M558788</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;see this thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3400505"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480486#M558788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T06:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480487#M558789</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 execute a module in LOOP AT itab with TABLE CONTROL in both PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI module you need to push the data into the internal table and then into the Database table suing INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the PBO module you need to disable the new records edit mode using &lt;/P&gt;&lt;P&gt;MODULE init_tab OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN&lt;/P&gt;&lt;P&gt;CHECK SCREEN-NAME = 'Your field".&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will be&lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;LOOP AT itab with table control.&lt;/P&gt;&lt;P&gt;module init_tab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT Itab with TABLE CONTROL.&lt;/P&gt;&lt;P&gt;module save_data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480487#M558789</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-29T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480488#M558790</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 your suggestion.&lt;/P&gt;&lt;P&gt;In the PAI after LOOP at ITAB nothing is accepted even with Table Control also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and which one we have to use Modify or Insert ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If insert  can i have the sample code because the structure of the dbtable and internal table or differenent. in that case can we use like this .?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbtable-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;dbtable-field2 = itab-field2.&lt;/P&gt;&lt;P&gt;insert dbtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it correct or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480488#M558790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T06:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480489#M558791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to use modify first.If it fails then do append like this.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; LOOP AT it_marc.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD x_marc-matnr.&lt;/P&gt;&lt;P&gt;      FIELD x_marc-xchar.&lt;/P&gt;&lt;P&gt;      FIELD x_marc-mmsta.&lt;/P&gt;&lt;P&gt;      MODULE tc2_modify ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;    FIELD x_marc-sel&lt;/P&gt;&lt;P&gt;      MODULE tc2_mark ON REQUEST.&lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;MODULE user_command_9001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc2_modify INPUT.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; MODIFY it_marc FROM x_marc  INDEX tc2-current_line.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    APPEND x_marc TO it_marc.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&amp;gt;For updating your table&lt;/P&gt;&lt;P&gt;MODULE user_command_9002 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE ok_9002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;     loop at it_marc into x_marc where sel = 'X'.&lt;/P&gt;&lt;P&gt;   &amp;lt;Modify the zable&amp;gt;.&lt;/P&gt;&lt;P&gt;     Endloop.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9002  INPUT                   "TC2_MODIFY INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480489#M558791</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-29T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480490#M558792</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;loop at screen.&lt;/P&gt;&lt;P&gt; if screen-name = 'itab-check'.&lt;/P&gt;&lt;P&gt;  if itab-check = 'x'.&lt;/P&gt;&lt;P&gt;   screen-input = 0.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the right way to check wheather the check box has checked or not and if it is checked then we have to disable that check box for not selecting next time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise is there any way help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480490#M558792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control With Check Box.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480491#M558793</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;Set one flag variable in itab of the table control and set taht flag = 'X whn you save the selected record into the ztable.Then In PBO, do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT   it_t001l INTO x_t001l   WITH CONTROL tc CURSOR tc-current_line.&lt;/P&gt;&lt;P&gt;    MODULE tc_get_lines.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt; IF  x_t001l-flag = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'X_T001L-SEL'.&lt;/P&gt;&lt;P&gt;              screen-input = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "TC_GET_LINES OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&amp;gt;In PAI, For saving&lt;/P&gt;&lt;P&gt;MODULE user_command_9002 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ok_9002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;loop at it_marc into x_marc where sel = 'X'.&lt;/P&gt;&lt;P&gt;&amp;lt;Modify the zable&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;x_marc-flag = 'X'.&lt;/P&gt;&lt;P&gt;modify it_marc from x_marc transporting flag.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_9002 INPUT "TC2_MODIFY INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-check-box/m-p/2480491#M558793</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-29T07:32:40Z</dc:date>
    </item>
  </channel>
</rss>

