<?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: Align header with its field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702278#M32004</link>
    <description>&lt;P&gt;I just tested this,this is the dump that it throws:&lt;/P&gt;&lt;P&gt;The following are protected against changes:
- Character literals or numerical literals,
- Constants (CONSTANTS),
- Parameters of category IMPORTING REFERENCE in functions and methods,
- untyped field symbols that have not been assigned a field using
ASSIGN,
- TABLES parameters, if the actual parameter is protected against
changes.&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;E_GFS_DYN_TABLE&amp;gt; and &amp;lt;GFS_DYN_TABLE&amp;gt; type table.

CALL FUNCTION 'CBRC_LIB2_CONVERT_ITAB_TO_CSV'
 EXPORTING
 I_FIELD_SEPERATOR = '|'
* I_FLG_LINE_HEADER = FALSE
 I_DATA_TAB = &amp;lt;GFS_DYN_TABLE&amp;gt;
* I_FLG_ASCII = FALSE
* I_FLG_BIN = FALSE
 I_ENCODING = 'UTF-8'
 IMPORTING
* E_ASCII_DATA_TAB =
* E_ASCII_SIZE =
 E_BIN_DATA_TAB = &amp;lt;E_GFS_DYN_TABLE&amp;gt;
* E_BIN_SIZE =
 E_FLG_ERROR = LD_E_FLG_ERROR
 E_ERROR_TAB = LD_E_ERROR_TAB
 EXCEPTIONS
 CONVERSION_FAILED = 1
 OTHERS = 2.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Nov 2018 13:56:17 GMT</pubDate>
    <dc:creator>former_member2492</dc:creator>
    <dc:date>2018-11-09T13:56:17Z</dc:date>
    <item>
      <title>Align header with its field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702275#M32001</link>
      <description>&lt;P&gt;I am trying to download a table with headerline usign opendatasets however the header name its not aligned with the field like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; P0001-WERKS P0000-PERNR P0000-MASSG TEXT_P0000_MASSG P0000-STAT2 ....ZEMAIL(first field)
,3000,30000007,01,New position,3,Active,Mr,Georgi,.....
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;the code which generates the following:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; CONCATENATE HEADER LSI_STRING INTO DATA(HEADER) SEPARATED BY SPACE.CONCATENATE V1_STRING &amp;lt;FS_FIELD&amp;gt; INTO DATA(V1_STRING) SEPARATED BY ','.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;then after the loop I transfer the files into the directory:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;TRANSFER HEADER TO LVS_DOWNLOAD_PATH.
TRANSFER V1_STRING TO LVS_DOWNLOAD_PATH.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I also noticed smth strange,some fields have additional zeros from 600 to 000600.I dont know why them are added.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Please keep in mind that the file type must be XLS&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702275#M32001</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-11-09T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Align header with its field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702276#M32002</link>
      <description>&lt;P&gt;To do such operations you should use functions, which are available. So you can avoid strange findings in your data.&lt;/P&gt;&lt;P&gt;Function: CBRC_LIB2_CONVERT_ITAB_TO_CSV is one example.&lt;/P&gt;&lt;P&gt;Afterwards you can transfer your data to a folder or whatever you want to do with this file.&lt;/P&gt;&lt;P&gt;Additional zeros come from the respective datatypes. If your not familiar with it, I recommend you to have a look at the basic-instructions.&lt;/P&gt;&lt;P&gt;For example here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/de-DE/abenddic_builtin_types.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/de-DE/abenddic_builtin_types.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 10:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702276#M32002</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2018-11-09T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Align header with its field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702277#M32003</link>
      <description>&lt;P&gt;will this work with dynamic tables?I will try this but where does this take the table ??I see no place to import the table..please correct me if I am wrong!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 12:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702277#M32003</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-11-09T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Align header with its field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702278#M32004</link>
      <description>&lt;P&gt;I just tested this,this is the dump that it throws:&lt;/P&gt;&lt;P&gt;The following are protected against changes:
- Character literals or numerical literals,
- Constants (CONSTANTS),
- Parameters of category IMPORTING REFERENCE in functions and methods,
- untyped field symbols that have not been assigned a field using
ASSIGN,
- TABLES parameters, if the actual parameter is protected against
changes.&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;E_GFS_DYN_TABLE&amp;gt; and &amp;lt;GFS_DYN_TABLE&amp;gt; type table.

CALL FUNCTION 'CBRC_LIB2_CONVERT_ITAB_TO_CSV'
 EXPORTING
 I_FIELD_SEPERATOR = '|'
* I_FLG_LINE_HEADER = FALSE
 I_DATA_TAB = &amp;lt;GFS_DYN_TABLE&amp;gt;
* I_FLG_ASCII = FALSE
* I_FLG_BIN = FALSE
 I_ENCODING = 'UTF-8'
 IMPORTING
* E_ASCII_DATA_TAB =
* E_ASCII_SIZE =
 E_BIN_DATA_TAB = &amp;lt;E_GFS_DYN_TABLE&amp;gt;
* E_BIN_SIZE =
 E_FLG_ERROR = LD_E_FLG_ERROR
 E_ERROR_TAB = LD_E_ERROR_TAB
 EXCEPTIONS
 CONVERSION_FAILED = 1
 OTHERS = 2.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/align-header-with-its-field/m-p/702278#M32004</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-11-09T13:56:17Z</dc:date>
    </item>
  </channel>
</rss>

