<?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: salv Column issue. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv-column-issue/m-p/536049#M19718</link>
    <description>&lt;P&gt;This is always a red flag in code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CATCH cx_salv_not_found.&lt;BR /&gt;ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If you ignore an error you will not know what's wrong.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 11:22:05 GMT</pubDate>
    <dc:creator>pokrakam</dc:creator>
    <dc:date>2017-11-30T11:22:05Z</dc:date>
    <item>
      <title>salv Column issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv-column-issue/m-p/536048#M19717</link>
      <description>&lt;P&gt;* get columns object&lt;BR /&gt;lo_cols = lo_salv_table-&amp;gt;get_columns( ).&lt;BR /&gt; &lt;BR /&gt;*#Individual Column Names&lt;BR /&gt;LOOP AT gt_component INTO ls_component.&lt;BR /&gt;TRY.&lt;BR /&gt;col_name = ls_component-name.&lt;BR /&gt;lo_column = lo_cols-&amp;gt;get_column( col_name ). " &amp;lt; &amp;lt;&lt;BR /&gt; &lt;BR /&gt;IF col_name = 'BATCHNO'.&lt;BR /&gt;col_desc = 'BatchNo'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'MATNR'.&lt;BR /&gt;col_desc = 'Material Number'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'WERKS'.&lt;BR /&gt;col_desc = 'Plant'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'BUDAT'.&lt;BR /&gt;col_desc = 'Posting Date'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'PRUEFLOS'.&lt;BR /&gt;col_desc = 'Inspection Lot Number'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'FLAG'.&lt;BR /&gt;col_desc = 'SAP Update'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'CREATEDBY'.&lt;BR /&gt;col_desc = 'Created by'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'ENTRYDATE'.&lt;BR /&gt;col_desc = 'Entry Date'.&lt;BR /&gt; &lt;BR /&gt;ELSEIF col_name = 'CREATEDTM'.&lt;BR /&gt;col_desc = 'Entry Time'.&lt;BR /&gt; &lt;BR /&gt;else.&lt;BR /&gt;*move col_name to col_desc.&lt;BR /&gt;CONCATENATE col_name '.' INTO col_desc.&lt;BR /&gt; &lt;BR /&gt;*lo_column-&amp;gt;set_medium_text( col_desc ).&lt;BR /&gt;*lo_column-&amp;gt;set_output_length( 10 ).&lt;BR /&gt;ENDIF.&lt;BR /&gt;*lo_column-&amp;gt;set_long_text( col_desc ).&lt;BR /&gt;lo_column-&amp;gt;set_medium_text( col_desc ).&lt;BR /&gt;*lo_column-&amp;gt;set_short_text ( col_desc ).&lt;BR /&gt;lo_column-&amp;gt;set_output_length( 14 ).&lt;BR /&gt; &lt;BR /&gt;CATCH cx_salv_not_found.&lt;BR /&gt;ENDTRY.&lt;BR /&gt;ENDLOOP.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/94323-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;this is my output of the report. In my system or dev server, it is showing absolutely perfect.&lt;/P&gt;
  &lt;P&gt;but when am checking this one in quality after "created time " all the fields heading are coming as 'text'. this a dynamic alv report and i have used RTTS method.&lt;/P&gt;
  &lt;P&gt;Please suggest.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Dibya.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 11:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salv-column-issue/m-p/536048#M19717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-30T11:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: salv Column issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv-column-issue/m-p/536049#M19718</link>
      <description>&lt;P&gt;This is always a red flag in code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CATCH cx_salv_not_found.&lt;BR /&gt;ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If you ignore an error you will not know what's wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 11:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salv-column-issue/m-p/536049#M19718</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-11-30T11:22:05Z</dc:date>
    </item>
  </channel>
</rss>

