<?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 creating the spool request for the internal table data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944532#M1487792</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 am little confused with the function module used for creating the spool request.&lt;/P&gt;&lt;P&gt;well...I am practicing the ALV report and sending the that report to the spool.&lt;/P&gt;&lt;P&gt; I  ve used the FM SLVC_TABLE_PS_TO_SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the way i defined the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;begin of imat occurs 0,&lt;/P&gt;&lt;P&gt;matnr like marav-matnr,&lt;/P&gt;&lt;P&gt;maktx like marav-maktx, &lt;/P&gt;&lt;P&gt;matkl like marav-matkl,                      &lt;/P&gt;&lt;P&gt;ntgew like marav-ntgew, &lt;/P&gt;&lt;P&gt;gewei like marav-gewei, &lt;/P&gt;&lt;P&gt;end of imat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i_lines type sy-tfill&lt;/P&gt;&lt;P&gt;and i declared..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table imat lines i_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i given the value for i_file_length as i_lines in the export paramet of the FM SLVC_TABLE_PS_TO_SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_file_length            = i_lines&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     E_SPOOLID                = spoolid&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      it_textdata              = imat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i executed it shows the list and wen going back it shows the runtime error as&lt;/P&gt;&lt;P&gt; CALL_FUNCTION_CONFLICT_LENG  - Type conflict when calling a function module (field length).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide me some solutions.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;etienne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jun 2010 10:01:37 GMT</pubDate>
    <dc:creator>former_member300258</dc:creator>
    <dc:date>2010-06-23T10:01:37Z</dc:date>
    <item>
      <title>creating the spool request for the internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944532#M1487792</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 am little confused with the function module used for creating the spool request.&lt;/P&gt;&lt;P&gt;well...I am practicing the ALV report and sending the that report to the spool.&lt;/P&gt;&lt;P&gt; I  ve used the FM SLVC_TABLE_PS_TO_SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the way i defined the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;begin of imat occurs 0,&lt;/P&gt;&lt;P&gt;matnr like marav-matnr,&lt;/P&gt;&lt;P&gt;maktx like marav-maktx, &lt;/P&gt;&lt;P&gt;matkl like marav-matkl,                      &lt;/P&gt;&lt;P&gt;ntgew like marav-ntgew, &lt;/P&gt;&lt;P&gt;gewei like marav-gewei, &lt;/P&gt;&lt;P&gt;end of imat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i_lines type sy-tfill&lt;/P&gt;&lt;P&gt;and i declared..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table imat lines i_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i given the value for i_file_length as i_lines in the export paramet of the FM SLVC_TABLE_PS_TO_SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_file_length            = i_lines&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     E_SPOOLID                = spoolid&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      it_textdata              = imat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i executed it shows the list and wen going back it shows the runtime error as&lt;/P&gt;&lt;P&gt; CALL_FUNCTION_CONFLICT_LENG  - Type conflict when calling a function module (field length).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide me some solutions.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;etienne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 10:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944532#M1487792</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2010-06-23T10:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: creating the spool request for the internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944533#M1487793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table imat should be of type LVC_S_1022 as parameter IT_TEXTDATA is of same type in FM interface. Check for the rest of the parameters as well. All the values passed should be of same type of parameters in the FM interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 10:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944533#M1487793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-23T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: creating the spool request for the internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944534#M1487794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satyajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response....but the fields in my internal table "IMAT" is not compatible with the structure LVC_S_1022 as it has it componenrt - LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how can i define my internal table IMAT as type lvc_s_1022 as you suggested.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;etienne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 05:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944534#M1487794</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2010-06-24T05:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: creating the spool request for the internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944535#M1487795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to pass the content in line format. For example, first row will contain the header and rest of the columns will contain the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, you can do it from ALV directly. Why are you separately calling this FM? Are you using OOPS/FM for ALV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 07:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-spool-request-for-the-internal-table-data/m-p/6944535#M1487795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-24T07:32:17Z</dc:date>
    </item>
  </channel>
</rss>

