<?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: Adding column in sub screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002479#M1164809</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;use that internal table in table control to get all the fields of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2009 10:13:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-12T10:13:20Z</dc:date>
    <item>
      <title>Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002473#M1164803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 10 columns in my sub screen, i would like to add one more column in that, can any one help me, how to create a new column in the sub screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;Columns:          a   b   c    d   &lt;/P&gt;&lt;P&gt;                        1   2   3    4&lt;/P&gt;&lt;P&gt;                        2   3   4    5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to add "e" column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 07:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002473#M1164803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T07:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002474#M1164804</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 find code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ispfli type table of spfli. 
data: gr_table type ref to cl_salv_table. 
data: gr_functions type ref to cl_salv_functions. 
data: gr_display type ref to cl_salv_display_settings. 
start-of-selection. 
select * into table ispfli from spfli. cl_salv_table=&amp;gt;factory( importing r_salv_table = gr_table changing  t_table = ispfli ).
gr_functions = gr_table-&amp;gt;get_functions( ). 
gr_functions-&amp;gt;set_all( abap_true ). 
gr_display = gr_table-&amp;gt;get_display_settings( ). 
gr_display-&amp;gt;set_striped_pattern( cl_salv_display_settings=&amp;gt;true ). 
gr_display-&amp;gt;set_list_header( 'This is the heading' ). 
gr_table-&amp;gt;display( )
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 11:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002474#M1164804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T11:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002475#M1164805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What you are displaying in your screen?&lt;/P&gt;&lt;P&gt;Could you please eloborate your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards'&lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 15:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002475#M1164805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002476#M1164806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my sub screen table control is there. In that table already 5 text fields are there. Now i want add one more text field(different column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:                 columns&lt;/P&gt;&lt;P&gt;        materialno  description  dept..  (nedds toadd here)&lt;/P&gt;&lt;P&gt;        101               ddddd      comp&lt;/P&gt;&lt;P&gt;        102              sssss       material&lt;/P&gt;&lt;P&gt;        103             hhh            finance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to display one more column along with us. that i need to add in table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any idea about MPP. Please help me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 07:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002476#M1164806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T07:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002477#M1164807</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 will have to add this new column to the definition of the itab that you are displaying through the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current table:&lt;/P&gt;&lt;P&gt;types: begin of ty_disp,&lt;/P&gt;&lt;P&gt;             a,&lt;/P&gt;&lt;P&gt;             b,&lt;/P&gt;&lt;P&gt;             c,&lt;/P&gt;&lt;P&gt;             d,&lt;/P&gt;&lt;P&gt;          end of ty_disp.&lt;/P&gt;&lt;P&gt;data: it_disp type table of ty_disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New definition&lt;/P&gt;&lt;P&gt;types: begin of ty_disp,&lt;/P&gt;&lt;P&gt;             a,&lt;/P&gt;&lt;P&gt;             b,&lt;/P&gt;&lt;P&gt;             c,&lt;/P&gt;&lt;P&gt;             d,&lt;/P&gt;&lt;P&gt;             &lt;STRONG&gt;e,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          end of ty_disp.&lt;/P&gt;&lt;P&gt;data: it_disp type table of ty_disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once, you add the new field to the itab defenition, go to the screen painter and add this new field of the internal table to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you fill this field of the itab at runtime, it will get displayed on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 15:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002477#M1164807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002478#M1164808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks for the kind reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added that new field in the internal table, Could you please tell me how to add that new field in the table control.(In the layout).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 09:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002478#M1164808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T09:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002479#M1164809</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;use that internal table in table control to get all the fields of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 10:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002479#M1164809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002480#M1164810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you complie the program with the new field in the itab, within the Screen Painter, &lt;/P&gt;&lt;P&gt;use the F6 key (Dictionary/Program fields window).  Enter the itab name and push the&lt;/P&gt;&lt;P&gt; "Get From Program" Button.  All the fields that are currently displayed will be blocked&lt;/P&gt;&lt;P&gt; from being selected.  Select the field you want add to the Table Control, and hit the &lt;/P&gt;&lt;P&gt;green check.  Then drop it on the Table control where you want it listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for editing/chain-endchain stuff.. you'll need to do that on your own if it's to be editted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Jan 12, 2009 12:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 17:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002480#M1164810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002481#M1164811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I awarded points,Thanks for the help. &lt;/P&gt;&lt;P&gt;I added a field in table control. But iam not able to enter data in that field. Could you please help me, how to add data through that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 06:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002481#M1164811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column in sub screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002482#M1164812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field should be tagged as Input on the parameter screen for that field.  You can get there by&lt;/P&gt;&lt;P&gt; double clicking on the field in the first row of the table control.  To get the values updated to the&lt;/P&gt;&lt;P&gt; actual internal table, there is a routine in the PAI that should look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;spwizard: pai flow logic for tablecontrol 'TC_202'
  LOOP AT mt_approvers.
    CHAIN.
      FIELD mt_approvers_rec-division.
      FIELD mt_approvers_rec-branch.
      FIELD mt_approvers_rec-appr_level.
      FIELD mt_approvers_rec-userid.
      FIELD mt_approvers_rec-name.

      MODULE tc_202_modify ON CHAIN-REQUEST.
    ENDCHAIN.
    FIELD mt_approvers_rec-sel
      MODULE tc_202_mark ON REQUEST.
  ENDLOOP.

  MODULE tc_202_user_command.
*&amp;amp;spwizard: module TC_202_change_tc_attr.
*&amp;amp;spwizard: module TC_202_change_col_attr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to add your field to the FIELD list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module it calles during that loop, will/should contain the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  MODIFY mt_approvers
    FROM mt_approvers_rec
    INDEX tc_202-current_line.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If after changing the parameter to allow Input, should it still not allow you to input, then in the PBO&lt;/P&gt;&lt;P&gt; routine there is likely code that sets the parameters to the table control to input = 0 and that would&lt;/P&gt;&lt;P&gt; need to change to allow input to the appropiate columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 11:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-column-in-sub-screen/m-p/5002482#M1164812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T11:33:34Z</dc:date>
    </item>
  </channel>
</rss>

