<?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 in create mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156977#M750945</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 ttry with the following Logic : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when  transaction mode = create ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     loop at the screen  and change the properties of the fields to editable mode . &lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This  should solve your probelm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 13:21:43 GMT</pubDate>
    <dc:creator>former_member196299</dc:creator>
    <dc:date>2007-12-19T13:21:43Z</dc:date>
    <item>
      <title>table control in create mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156974#M750942</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;I created a table control in a standard transaction code.&lt;/P&gt;&lt;P&gt;when iam clicking create button, The table control&lt;/P&gt;&lt;P&gt;is displaying in display mode.Now I should provide to the user&lt;/P&gt;&lt;P&gt;to add the entries in the table control in create mode.&lt;/P&gt;&lt;P&gt;Can any body resolve this issue with coding.&lt;/P&gt;&lt;P&gt;urgent requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156974#M750942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: table control in create mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156975#M750943</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;In PBO made one module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE init_screen OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF save_ok = 'CHG'.&lt;/P&gt;&lt;P&gt;      screen-input = 1.&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;ENDMODULE.                 " init_screen  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156975#M750943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: table control in create mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156976#M750944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO of the dynpro containing the table control you should have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT G_T_MAT_CREAR&lt;/P&gt;&lt;P&gt;   WITH CONTROL G_CTRL_MAT_CREAR&lt;/P&gt;&lt;P&gt;    INTO Z37_MM_E_ROP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; While looping at the table control at PBO,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if you make loop at screen inside the table control loop,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; it loops screen elements of the table control.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODULE MO_MOD_INPUT_GRU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content for MO_MOD_INPUT_GRU:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE MO_MOD_INPUT_GRU OUTPUT.&lt;/P&gt;&lt;P&gt;  PERFORM F_MOD_INPUT_GRU.&lt;/P&gt;&lt;P&gt;ENDMODULE.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F_MOD_INPUT_GRU .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "For achieving what you want&lt;/P&gt;&lt;P&gt;    IF  ( Z37_MM_E_ROP01-FIELD_TO_BECOME_EDITABLE ).&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 1 .&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;      ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: David Garcia Ortega on Dec 19, 2007 10:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156976#M750944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: table control in create mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156977#M750945</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 ttry with the following Logic : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when  transaction mode = create ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     loop at the screen  and change the properties of the fields to editable mode . &lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This  should solve your probelm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 13:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156977#M750945</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-12-19T13:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: table control in create mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156978#M750946</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;In a PBO module of the screen, ypu have to write a code to find out the number of lines of the internal table used for the table control.&lt;/P&gt;&lt;P&gt;The code for this would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE tb_line LINES lin.   * 'tb_line' is the internal table and 'lin' holds the number of lines*&lt;/P&gt;&lt;P&gt;  tcl_item-lines = lin.                             tcl_item is the name of the table control*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the PBO, you have to make the table control editable or non editable by checking with the transaction.&lt;/P&gt;&lt;P&gt;Here i in the below code, there are 3 transactions for create,display and change.&lt;/P&gt;&lt;P&gt;If the transaction code is either 'ZCREATE09' or 'ZCHANGE09' , then the lines in the table control are checked.If the table control is not empty,then it is  editable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the display transaction,it is kept in non editable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-tcode.&lt;/P&gt;&lt;P&gt;    WHEN 'ZCREATE09' OR 'ZCHANGE09'.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Checking if the table control is empty or not&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;      IF lin NE 0.&lt;/P&gt;&lt;P&gt;        LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;To make the screen editable&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;          IF screen-name CS 'TB_LINE'.&lt;/P&gt;&lt;P&gt;****To make the screen non-editable if no values are present in the&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;table control&lt;/STRONG&gt;****&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;To make screen non editable during the display transaction&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;    WHEN 'ZDISPLAY09'.&lt;/P&gt;&lt;P&gt;      LOOP AT SCREEN.&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;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kashyap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 13:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-create-mode/m-p/3156978#M750946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T13:40:37Z</dc:date>
    </item>
  </channel>
</rss>

