<?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: Insert data into a Table-Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847215#M359262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us say your function module name is ZZZTEST. So in your ZZZTEST code, you put the code as you mentioned to append the TABLES parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write another test program ZZTEST in which you call this function and pass an internal table of the same structure to the function call. After the call, you simply loop at this internal table and write the contents of the record fields. I am not sure where you have your write statements to test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2007 21:48:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-22T21:48:47Z</dc:date>
    <item>
      <title>Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847209#M359256</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;how is it possible to insert some values into a Table-Parameter. In my FM I defined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*"  TABLES
*"      GLOB_STRUC STRUCTURE  ZCMSRMXMEAR  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I fill the structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA  wa_glob_data TYPE zcmsrmxmear.
wa_glob_data-descr = 'TEST'.
APPEND wa_glob_data to glob_struc.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is no data in my glob_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sharam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sharam Pourmir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 17:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847209#M359256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847210#M359257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see what the problem is with the code that you provided, it looks ok from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you check this in debugger?   There is no row in the GLOB_STRUC after executing the APPEND statement?  Or is your problem that the data is not coming back from the function call?  If the latter,  lets see the call to the function module.&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>Mon, 22 Jan 2007 18:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847210#M359257</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-22T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847211#M359258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the append statement I try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  WRITE: 'DESCR: ', glob_struc-descr.  =&amp;gt; no result!
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have always check this in debugger. I think the problem is that the structure of glob_struc contains more then 10 fields, I only fill the first field. I don't need all the values of the structure. Is it possible to fill only some important fields of a Table-Parameter (structure). And how can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sharam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 18:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847211#M359258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T18:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847212#M359259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the WRITE statement,  you need to read the table line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

read table glob_struc into wa_glob_data index 1.

WRITE: 'DESCR: ', wa_glob_data-descr. &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 18:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847212#M359259</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-22T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847213#M359260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert  the structure below into the Table-Parameter of my FB. So I can't use your code because it's not a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"  TABLES
*"      GLOB_STRUC STRUCTURE  ZCMSRMXMEAR  

DATA  wa_glob_data TYPE zcmsrmxmear.
&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;Sharam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 18:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847213#M359260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T18:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847214#M359261</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 think we are not getting your problem correctly.&lt;/P&gt;&lt;P&gt;If you want the tables parameter in your FM, go to TABLES tab, and define the variable GLOB_STRUC in parameter name,&lt;/P&gt;&lt;P&gt;            LIKE or TYPE in Type Spec.&lt;/P&gt;&lt;P&gt;     and  ZCMSRMXMEAR  in reference Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 21:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847214#M359261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T21:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data into a Table-Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847215#M359262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us say your function module name is ZZZTEST. So in your ZZZTEST code, you put the code as you mentioned to append the TABLES parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write another test program ZZTEST in which you call this function and pass an internal table of the same structure to the function call. After the call, you simply loop at this internal table and write the contents of the record fields. I am not sure where you have your write statements to test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 21:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-into-a-table-parameter/m-p/1847215#M359262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T21:48:47Z</dc:date>
    </item>
  </channel>
</rss>

