<?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: Export to local file problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386019#M1403911</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;i checked my fieldcat and the col_pos are done correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changed my structure to type not like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put no_zero = 'X' in my fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the same result. the missing field is still not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 05:46:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-20T05:46:33Z</dc:date>
    <item>
      <title>Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386015#M1403907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this ALV program that displays like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DOETR #      EQUNR          DATE             HOURS         OPERATOR   PROJ NAME                        AUFNR        VORNR         LSTAR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;7654321	BH-24	11/18/2009	9.00	OPERATOR1 MDC-PM-ALI-TEST-TEST	4075821	0010	MDIDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to export the displayed data on ALV to a local file . preferably excel or a text file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that i can use ctrl&lt;EM&gt;shif&lt;/EM&gt;f9 (Local File) in the menu list of ALV to export it to local file. or use the menu path list -&amp;gt; export to -&amp;gt; spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all is well when it gets exported to a text file or excel file aside from the HOURS field that is not transported for some reason. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result when i export it to local file -&amp;gt; unconverted format -&amp;gt; enter file name to be "test.txt" is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11/20/2009                            Dynamic List Display                                        1&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;DOETR Number&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;EQUNR&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Hours&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Operator&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Project definition&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Order&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;OpAc&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;ActTyp&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;7654321&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;BH-24&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;11/18/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;HEINRICK PALAD&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MDC-PM-ALI-TEST-TEST&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;4075821&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0010&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MDIDB&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see. the HOURS field with the value of 9.00 is not on the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOURS field in ALV is refenced to char5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the structure of my table.&lt;/P&gt;&lt;P&gt;      begin of t_outtab.&lt;/P&gt;&lt;P&gt;        equnr    like ztab_equip-equnr,&lt;/P&gt;&lt;P&gt;         utdte    like ztab_equip-begda,&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;ismnw_2  type char5,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         dfrdr    type ltxa1,&lt;/P&gt;&lt;P&gt;         pspel    like ztab_equip-pspel,&lt;/P&gt;&lt;P&gt;         aufnr    like ztab_equip-aufnr,&lt;/P&gt;&lt;P&gt;         vornr    like ztab_equip-vornr,&lt;/P&gt;&lt;P&gt;         lstar    like ztab_equip-lstar,&lt;/P&gt;&lt;P&gt;       end of t_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to fix this.&lt;/P&gt;&lt;P&gt;&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;-Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 03:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386015#M1403907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T03:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386016#M1403908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this alv code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname = 'SCRP'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_l = text-016.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-outputlen = 30.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-key         = c_x.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-no_zero     = c_x.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass field into field name, and no_Zero as 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also structure when prepared using DDIC objects when referenced 'Type' over 'Like' are preferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Begin of ty_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;matnr type matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of matnr like mata-matnr,&lt;/P&gt;&lt;P&gt;like can be used for declared data object in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohinder Singh Chauhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 03:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386016#M1403908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T03:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386017#M1403909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make sure COL_POS in the field catalog filled properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 03:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386017#M1403909</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-11-20T03:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386018#M1403910</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;I think your doing it in the real time scenarios  only right , So instead of using char directly u can have a UZEIT then you will get the data .&lt;/P&gt;&lt;P&gt;As well u r using sy-uzeit  to get the current time . you did not mention that point .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sravya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 04:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386018#M1403910</guid>
      <dc:creator>sravya_ch</dc:creator>
      <dc:date>2009-11-20T04:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386019#M1403911</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;i checked my fieldcat and the col_pos are done correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changed my structure to type not like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put no_zero = 'X' in my fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the same result. the missing field is still not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 05:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386019#M1403911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T05:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export to local file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386020#M1403912</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;&lt;/P&gt;&lt;P&gt;Use a standard reference type like in my report I have used, VGWRT field to display time. its dumping as it is. So try with the field type .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 06:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-local-file-problem/m-p/6386020#M1403912</guid>
      <dc:creator>former_member632458</dc:creator>
      <dc:date>2009-11-20T06:44:02Z</dc:date>
    </item>
  </channel>
</rss>

