<?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: output to application server. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856122#M926930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem should get solved by moving your entire header line g_t_vbap to a string or character type variable and then transferring that variable to your file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work directly, then use concatenate to move it to the string and specify the names of all the fields of your header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kris Donald on May 23, 2008 11:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 05:53:28 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2008-05-23T05:53:28Z</dc:date>
    <item>
      <title>output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856118#M926926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ouput in HIERARCHIAL LIST. Im displaying Header table G_T_VBAK and Item table G_T_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to save this output in application server. Can any one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

  IF sy-subrc NE 0.

    MESSAGE e899(mm) WITH 'not possible' space space space.
    EXIT.

  ELSE.

    LOOP AT g_t_vbak.

      TRANSFER g_t_vbak TO g_f_file.

      LOOP AT g_t_vbap.
        TRANSFER g_t_vbap TO g_f_file.
      ENDLOOP.

    ENDLOOP.

  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving dump at the line &lt;STRONG&gt;TRANSFER g_t_vbap TO g_f_file.&lt;/STRONG&gt; (second loop statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good answers will be appriciated with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856118#M926926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856119#M926927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please copy the dump message here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856119#M926927</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-05-23T05:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856120#M926928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump message is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happened?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "ZSSR_ORDER_DETAILS_HIER1" had to be terminated&lt;/P&gt;&lt;P&gt; because one of the&lt;/P&gt;&lt;P&gt;statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably due to an error in the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only character-type data objects are supported at the argument&lt;/P&gt;&lt;P&gt;position "f" for the statement&lt;/P&gt;&lt;P&gt;  "TRANSFER f TO ...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the operand "f" has the non-character-type "u". The&lt;/P&gt;&lt;P&gt;current program is flagged as a Unicode program. In the Unicode context,&lt;/P&gt;&lt;P&gt; type X fields are seen as non-character-type, as are structures that&lt;/P&gt;&lt;P&gt;contain non-character-type components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source code extract&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;002370   FORM download_to_application_server .&lt;/P&gt;&lt;P&gt;002380&lt;/P&gt;&lt;P&gt;002390     OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;002400&lt;/P&gt;&lt;P&gt;002410     IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;002420&lt;/P&gt;&lt;P&gt;002430       MESSAGE e899(mm) WITH 'not possible' space space space.&lt;/P&gt;&lt;P&gt;002440       EXIT.&lt;/P&gt;&lt;P&gt;002450&lt;/P&gt;&lt;P&gt;002460     ELSE.&lt;/P&gt;&lt;P&gt;002470&lt;/P&gt;&lt;P&gt;002480       LOOP AT g_t_vbak.&lt;/P&gt;&lt;P&gt;002490&lt;/P&gt;&lt;P&gt;002500         TRANSFER g_t_vbak TO g_f_file.&lt;/P&gt;&lt;P&gt;002510&lt;/P&gt;&lt;P&gt;002520         LOOP AT g_t_vbap.&lt;/P&gt;&lt;P&gt;     &amp;gt;           TRANSFER g_t_vbap TO g_f_file.&lt;/P&gt;&lt;P&gt;002540         ENDLOOP.&lt;/P&gt;&lt;P&gt;002550&lt;/P&gt;&lt;P&gt;002560       ENDLOOP.&lt;/P&gt;&lt;P&gt;002570&lt;/P&gt;&lt;P&gt;002580     ENDIF.&lt;/P&gt;&lt;P&gt;002590&lt;/P&gt;&lt;P&gt;002600   ENDFORM.                    " download_to_application_server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856120#M926928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856121#M926929</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&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE since If you read from or write to a file that is open in binary mode, the data is transferred byte by byte.&lt;/P&gt;&lt;P&gt;The system does not interpret the contents of the file while it is being transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you read from or write to a file that is open in text mode, the data is transferred line by line. The&lt;/P&gt;&lt;P&gt;system assumes that the file has a line structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856121#M926929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856122#M926930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem should get solved by moving your entire header line g_t_vbap to a string or character type variable and then transferring that variable to your file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work directly, then use concatenate to move it to the string and specify the names of all the fields of your header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kris Donald on May 23, 2008 11:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856122#M926930</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-05-23T05:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: output to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856123#M926931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very Much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-to-application-server/m-p/3856123#M926931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:59:52Z</dc:date>
    </item>
  </channel>
</rss>

