<?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 passing TABLEVIEW object to FORM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tableview-object-to-form/m-p/3355861#M805168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'd like to write a form that will shade all rows in tableview object. So in that form I need to pass reference to that particular tableview i want to shade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONTROLS: t_view TYPE TABLEVIEW USING SCREEN 1031.
...

PERFORM shade_rows USING t_view.

FORM shade_rows USING tableview TYPE *???* .
  LOOP AT tableview-cols INTO cols.
    cols-screen-input = '0'.
    MODIFY tableview-cols FROM cols INDEX sy-tabix.
  ENDLOOP.
ENDFORM.                    " shade_rows
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I declare a form parametr? Which type should it be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 10:46:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T10:46:55Z</dc:date>
    <item>
      <title>passing TABLEVIEW object to FORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tableview-object-to-form/m-p/3355861#M805168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'd like to write a form that will shade all rows in tableview object. So in that form I need to pass reference to that particular tableview i want to shade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONTROLS: t_view TYPE TABLEVIEW USING SCREEN 1031.
...

PERFORM shade_rows USING t_view.

FORM shade_rows USING tableview TYPE *???* .
  LOOP AT tableview-cols INTO cols.
    cols-screen-input = '0'.
    MODIFY tableview-cols FROM cols INDEX sy-tabix.
  ENDLOOP.
ENDFORM.                    " shade_rows
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I declare a form parametr? Which type should it be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 10:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tableview-object-to-form/m-p/3355861#M805168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: passing TABLEVIEW object to FORM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tableview-object-to-form/m-p/3355862#M805169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should be table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if t_view is of type type_t_view. like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_view type table of type_t_view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then declare another table type : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: t_type_t_view type table of type_t_view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this type there. like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM shade_rows USING tableview TYPE t_type_t_view.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 14:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tableview-object-to-form/m-p/3355862#M805169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T14:50:01Z</dc:date>
    </item>
  </channel>
</rss>

