<?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 Modify fieldcat in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109142#M1185304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys , Im creating a ALV using the following code ,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD grid1-&amp;gt;set_table_for_first_display
      EXPORTING
        i_structure_name = 'CAUFVD'
        is_variant       = gs_variant
        is_layout        = gs_layout
        i_save           = x_save
      CHANGING
        it_outtab        = ti_saida[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I want to change the text of the fields ( columns )  , they come assigned for texts of CAUFVD , a friend told me that maybe is neccesary to change the fieldcat , how is that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2009 17:02:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-29T17:02:00Z</dc:date>
    <item>
      <title>Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109142#M1185304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys , Im creating a ALV using the following code ,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD grid1-&amp;gt;set_table_for_first_display
      EXPORTING
        i_structure_name = 'CAUFVD'
        is_variant       = gs_variant
        is_layout        = gs_layout
        i_save           = x_save
      CHANGING
        it_outtab        = ti_saida[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I want to change the text of the fields ( columns )  , they come assigned for texts of CAUFVD , a friend told me that maybe is neccesary to change the fieldcat , how is that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109142#M1185304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109143#M1185305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try thsi way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  v_structure = 'CAUFVD'.

  call function 'LVC_FIELDCATALOG_MERGE'
    exporting
      i_structure_name       = v_structure
      i_client_never_display = c_x
    changing
      ct_fieldcat            = i_fieldcat[].

  loop at i_fieldcat where fieldname eq 'PROD' .
 
    move : text-008 to i_fieldcat-scrtext_m,
                                        " Product code
           text-008 to i_fieldcat-reptext,
                                        " Product code
           text-008 to i_fieldcat-coltext.
                                        " Product code
    modify i_fieldcat index sy-tabix.
   endloop.
...
...
...
    call method grid1-&amp;gt;set_table_for_first_display
      exporting
        is_layout                     = gs_layout
        is_variant                    = gs_variant
        i_save                        = 'A'
        it_toolbar_excluding          = i_exclude[]
      changing
        it_outtab                     = i_output[]
        it_fieldcatalog               = i_fieldcat[]
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109143#M1185305</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-29T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109144#M1185306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I did it this way, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 call function 'LVC_FIELDCATALOG_MERGE'
    exporting
      i_structure_name       = 'CAUFVD'
      i_client_never_display = 'X'
    changing
      ct_fieldcat            = fieldcat[].

LOOP AT fieldcat where fieldname eq 'GSTRP' .
        fieldcat-reptext = 'Data solicitação'.
         modify fieldcat index sy-tabix.

   ENDLOOP.

   CALL METHOD grid1-&amp;gt;set_table_for_first_display
      EXPORTING
*        i_structure_name = 'CAUFVD'
        is_variant       = gs_variant
        is_layout        = gs_layout
        i_save           = x_save
      CHANGING
        it_outtab        = ti_saida[]
        it_fieldcatalog  = fieldcat[]
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it still shows the old text. any idea please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 11:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109144#M1185306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T11:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109145#M1185307</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;Try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

field-symbols: &amp;lt;lwa_fcat&amp;gt;  type lvc_s_fcat.

call function 'LVC_FIELDCATALOG_MERGE'
      exporting
        i_structure_name       = 'CAUFVD'
      changing
        ct_fieldcat            = fieldcat[]
      exceptions
        inconsistent_interface = 1
        program_error          = 2
        others                 = 3.

loop at fieldcat assigning &amp;lt;lwa_fcat&amp;gt;.
      case &amp;lt;lwa_fcat&amp;gt;-fieldname.
          when 'STATUS'.
          &amp;lt;lwa_fcat&amp;gt;-outputlen = 25.
          &amp;lt;lwa_fcat&amp;gt;-coltext   = 'STATUS'.
      endcase.
    endloop.


CALL METHOD grid1-&amp;gt;set_table_for_first_display
      EXPORTING
*        i_structure_name = 'CAUFVD'
        is_variant       = gs_variant
        is_layout        = gs_layout
        i_save           = x_save
      CHANGING
        it_outtab        = ti_saida[]
        it_fieldcatalog  = fieldcat[]
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
 
  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will helps&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 11:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109145#M1185307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109146#M1185308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it solved my problem , Could  I know how happened ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 12:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109146#M1185308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify fieldcat</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109147#M1185309</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;If you want to change column heading means you have to set field catalog coltext field not reptext field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you have understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 12:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-fieldcat/m-p/5109147#M1185309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T12:31:53Z</dc:date>
    </item>
  </channel>
</rss>

