<?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 pass in parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439178#M209063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have the following line in one of my forms:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 FORM PRINT_THINGS TABLES P_COL_WIDTH
                     USING P_DATA_DETAIL(1000) TYPE C.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where p_col_width is the width of each column of a table (i.e., p_col_width is an internal table) and p_data_detail is a string containing all the actual data. When I tried to run it, however, this is what I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters must be specified either with "p" (pass by reference) or with "VALUE(p)" (pass by value). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know what is wrong with this code? Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 14:43:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T14:43:22Z</dc:date>
    <item>
      <title>pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439178#M209063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have the following line in one of my forms:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 FORM PRINT_THINGS TABLES P_COL_WIDTH
                     USING P_DATA_DETAIL(1000) TYPE C.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where p_col_width is the width of each column of a table (i.e., p_col_width is an internal table) and p_data_detail is a string containing all the actual data. When I tried to run it, however, this is what I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters must be specified either with "p" (pass by reference) or with "VALUE(p)" (pass by value). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know what is wrong with this code? Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439178#M209063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439179#M209064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please define like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


&amp;lt;b&amp;gt;types: t_data_detail(1000) type c.&amp;lt;/b&amp;gt;


*---------------------------------------------------------------------*
*       FORM PRINT_THINGS                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  P_COL_WIDTH                                                   *
*  --&amp;gt;  P_DATA_DETAIL(1000)                                           *
*---------------------------------------------------------------------*
form print_things tables p_col_width
                  &amp;lt;b&amp;gt; using p_data_detail type t_data_detail.&amp;lt;/b&amp;gt;


endform.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. &lt;/P&gt;&lt;P&gt;Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points. &lt;/P&gt;&lt;P&gt;Spread the wor(l)d!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439179#M209064</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T14:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439180#M209065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM PRINT_THINGS TABLES P_COL_WIDTH&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;                    USING P_DATA_DETAIL TYPE Char1000.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;make the highlighted change&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439180#M209065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439181#M209066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM PRINT_THINGS TABLES P_COL_WIDTH
                     USING P_DATA_DETAIL type char1000.

or 

FORM PRINT_THINGS TABLES P_COL_WIDTH
                     USING P_DATA_DETAIL .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439181#M209066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T14:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439182#M209067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Declare like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PRINT_THINGS TABLES P_COL_WIDTH &amp;lt;b&amp;gt;type yourtable type&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;                     USING P_DATA_DETAIL(1000) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Parupalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439182#M209067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: pass in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439183#M209068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can directly define the length and type in the FORM statement, you must use a TYPE, or LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-in-parameters/m-p/1439183#M209068</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T14:47:51Z</dc:date>
    </item>
  </channel>
</rss>

