<?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 adding custom field into ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977241#M1159827</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 would like to add some custom fields into an ALV grid from a FI/CO report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have succesfully added the custom field 'VAT' number for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM fieldcat_init
       USING rt_fieldcat TYPE slis_t_fieldcat_alv.
...

  CLEAR ls_fieldcat.
  ls_fieldcat-tabname       = g_tabname.
  ls_fieldcat-fieldname     = 'STCEG'.
* LS_FIELDCAT-KEY           = ' '.        "sets key field
  ls_fieldcat-ref_fieldname = 'STCEG'.
  ls_fieldcat-ref_tabname   = 'KNA1'.
  APPEND ls_fieldcat TO  rt_fieldcat.

....

ENDFORM.                    " FIELDCAT_INIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine. But I have a problem to add another field named 'due days'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The due days for one record is calculated by a FM that gives back a NUMC datatype. for example : 6 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get calculated fields into an ALV ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 09:54:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T09:54:38Z</dc:date>
    <item>
      <title>adding custom field into ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977241#M1159827</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 would like to add some custom fields into an ALV grid from a FI/CO report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have succesfully added the custom field 'VAT' number for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM fieldcat_init
       USING rt_fieldcat TYPE slis_t_fieldcat_alv.
...

  CLEAR ls_fieldcat.
  ls_fieldcat-tabname       = g_tabname.
  ls_fieldcat-fieldname     = 'STCEG'.
* LS_FIELDCAT-KEY           = ' '.        "sets key field
  ls_fieldcat-ref_fieldname = 'STCEG'.
  ls_fieldcat-ref_tabname   = 'KNA1'.
  APPEND ls_fieldcat TO  rt_fieldcat.

....

ENDFORM.                    " FIELDCAT_INIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine. But I have a problem to add another field named 'due days'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The due days for one record is calculated by a FM that gives back a NUMC datatype. for example : 6 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get calculated fields into an ALV ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977241#M1159827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: adding custom field into ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977242#M1159828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abjuh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could take the data element of the fm parameter which returns the calculated due date as basis for your fieldcatalog entry. Presumably you have to adjust the texts (e.g. LVC_S_FCAT-SCRTEXT_S) as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977242#M1159828</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-19T09:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: adding custom field into ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977243#M1159829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Uwe, I managed to do it like you said. Don't know what you meant with LVC_S_FCAT-SCRTEXT_S though ... But now it works &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 12:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977243#M1159829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: adding custom field into ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977244#M1159830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abjuh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not notice that you are using the SLIS-based fieldcatalog. In this case you would need to modify slis_t_fieldcat_alv-scrtext_s in order to change the description of the additional column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 14:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977244#M1159830</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-19T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: adding custom field into ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977245#M1159831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I see ... thx for clarifying !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 15:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-field-into-alv-grid/m-p/4977245#M1159831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T15:53:55Z</dc:date>
    </item>
  </channel>
</rss>

