<?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 file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357318#M1541525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes X &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .. I was confused .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Oct 2010 15:21:40 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-10-29T15:21:40Z</dc:date>
    <item>
      <title>output file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357314#M1541521</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;The problem I'm having is to write the values in a file at an exactly defined postion. In the output file the values are at different positions. Some values are sometimes initial. Some of them to long. E.g.there is a currency field and its content's length is different.&lt;/P&gt;&lt;P&gt;Therefore they are placed very varaiously. I would like have them just one below the other. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  lt_output_pos-ebeln = 'BelegNr'.
  lt_output_pos-ebelp = 'Pos'.
  lt_output_pos-matnr = 'Material'.
  lt_output_pos-matkl = 'Warengruppe'.
  lt_output_pos-wert  = 'Wert'.
  APPEND lt_output_pos.


  LOOP AT gt_sc_pos INTO lf_sc_pos.
    CLEAR lt_output_pos.
    MOVE-CORRESPONDING lf_sc_pos TO lt_output_pos.
    APPEND lt_output_pos.
  ENDLOOP. 

CALL FUNCTION 'WS_DOWNLOAD'
      EXPORTING
        filename                      = pd_fname
        filetype                      = gp_ftype
        mode                          = 'U'
      TABLES
        data_tab                      = lt_output_pos.


      LOOP AT lt_output_pos.
        TRANSFER lt_output_pos TO pd_fname.
        IF sy-subrc NE 0.
          MESSAGE e398(00) WITH text-e02 pd_fname.
          EXIT. "From LOOP
        ENDIF.
      ENDLOOP. "lt_output_head


CLOSE DATASET pd_fname.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me any idea how to achieve this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Oct 29, 2010 3:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357314#M1541521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-29T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: output file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357315#M1541522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this purpose use fm GUI_DOWNLOAD passing parameter write_field_separator = '#'&lt;/P&gt;&lt;P&gt;While transfering it ot file in app server concatenate each fields separated by tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357315#M1541522</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-29T12:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: output file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357316#M1541523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'WS_DOWNLOAD' hasn't parameter write_field_separator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 14:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357316#M1541523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-29T14:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: output file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357317#M1541524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WS_DOWNLOAD is obsolete. Use GUI_DOWNLOAD instead and set WRITE_FIELD_SEPARATOR = 'X' (not # or tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 14:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357317#M1541524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-29T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: output file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357318#M1541525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes X &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .. I was confused .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 15:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-file/m-p/7357318#M1541525</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-29T15:21:40Z</dc:date>
    </item>
  </channel>
</rss>

