<?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: Feildcatalog Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712130#M1453965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let the system generate the fieldcatalog for you. That is better than do it by yourself, or not? use the following example to guide you. ZMYSTRUCTURE is the DDIC structure used as a template for a fieldcat.Regards Otto&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_bypassing_buffer = 'X'
    i_structure_name   = 'ZMYSTRUCTURE'
    is_layout          = ls_layout
    is_variant         = ls_variant
    i_save             = 'A'
  TABLES
    t_outtab           = lt_result
  EXCEPTIONS
    program_error      = 1
    OTHERS             = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Mar 2010 14:39:25 GMT</pubDate>
    <dc:creator>OttoGold</dc:creator>
    <dc:date>2010-03-18T14:39:25Z</dc:date>
    <item>
      <title>Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712127#M1453962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I did a alv report. now client has add 5 fields in the report. so again report has chaged. and add the frields to feild catalog. but in the report the feilds not showing.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE pbo1 OUTPUT.


  IF g_custom_container IS INITIAL.
    SET PF-STATUS 'PF-2000'.

    CREATE OBJECT g_custom_container
      EXPORTING
        container_name = 'ALV_GRID_CONTAINER'.
    CREATE OBJECT grid
      EXPORTING
        i_parent = g_custom_container.

    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'zworksorder'
      CHANGING
        ct_fieldcat      = lt_fieldcat.



    LOOP AT lt_fieldcat INTO ls_fieldcat.
      CASE ls_fieldcat-fieldname.
        WHEN 'OBJNR'.
          ls_fieldcat-no_out       =  'X'.
        WHEN 'AUFNR'.
          ls_fieldcat-coltext        = 'Order Number'.
          ls_fieldcat-hotspot      =  'X'.
          ls_fieldcat-col_pos      =  '1'.
        WHEN 'GSTRP'.
           ls_fieldcat-col_pos      = '2'.
        WHEN 'IDAT'.
           ls_fieldcat-col_pos      = '3'.

        WHEN 'AUART'.
           ls_fieldcat-col_pos      = '4'.
        WHEN 'ILART'.
           ls_fieldcat-col_pos      = '5'.

        WHEN 'WERKS'.
           ls_fieldcat-col_pos      = '6'.

        WHEN 'KTEXT'.
           ls_fieldcat-col_pos      = '7'.

        WHEN 'KUNUM'.
           ls_fieldcat-col_pos      = '8'.

        WHEN 'SERMAT'.
           ls_fieldcat-col_pos      = '9'.

        WHEN 'SERIALNR'.
           ls_fieldcat-col_pos      = '10'.

        WHEN 'ZZHMRG'.
           ls_fieldcat-col_pos      = '11'.

        WHEN 'BSTKD'.
           ls_fieldcat-col_pos      = '12'.

        WHEN 'ZZWREF'.
           ls_fieldcat-col_pos      = '13'.
        WHEN 'STTXT'.
          ls_fieldcat-coltext      = 'System status'.          "From here new fields add
          ls_fieldcat-col_pos      = '14'.

        WHEN 'GKSTP'.
          ls_fieldcat-coltext      = 'Tot Planed Cost'.
          ls_fieldcat-col_pos      = '15'.
        WHEN 'GKSTI'.
          ls_fieldcat-coltext      = 'Tot act cost'.
          ls_fieldcat-col_pos      = '16'.

        WHEN 'GERTI'.
          ls_fieldcat-coltext      = 'Tot Rev'.
          ls_fieldcat-col_pos      = '17'.

        WHEN 'GESIST'.
          ls_fieldcat-coltext      = 'Tot act Sum'.
          ls_fieldcat-col_pos      = '18'.
        WHEN OTHERS.
        ls_fieldcat-no_out         = 'X'.
      ENDCASE.
      MODIFY lt_fieldcat FROM ls_fieldcat INDEX sy-tabix.
    ENDLOOP.


    ls_layout-grid_title = lv_title_text.
    ls_variant-report = sy-repid.

    CREATE OBJECT g_handler.
    SET HANDLER g_handler-&amp;gt;handle_hotspot_click FOR grid.



    CALL METHOD grid-&amp;gt;set_table_for_first_display
      EXPORTING
        i_structure_name = 'itab3'
        is_layout        = ls_layout
        i_save           = 'A'
        is_variant       = ls_variant
      CHANGING
        it_outtab        = itab3
        it_fieldcatalog  = lt_fieldcat.


  ENDIF.

ENDMODULE.   

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712127#M1453962</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-18T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712128#M1453963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the layout and bring the new fields to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712128#M1453963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712129#M1453964</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;Goto Change layout Option in Gird and add ur new Columns to the column set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not able to see ur columns in in columns list,just logout from sap and relogin once again.Then automatically all the columns will be added to the ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravinder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 11:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712129#M1453964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712130#M1453965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let the system generate the fieldcatalog for you. That is better than do it by yourself, or not? use the following example to guide you. ZMYSTRUCTURE is the DDIC structure used as a template for a fieldcat.Regards Otto&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_bypassing_buffer = 'X'
    i_structure_name   = 'ZMYSTRUCTURE'
    is_layout          = ls_layout
    is_variant         = ls_variant
    i_save             = 'A'
  TABLES
    t_outtab           = lt_result
  EXCEPTIONS
    program_error      = 1
    OTHERS             = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 14:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712130#M1453965</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-03-18T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712131#M1453966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Otto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case you do not have control over your fieldcatlog &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be better to pass the DDIC structure to REUSE_ALV_FIELDCATALOG_MERGE &amp;amp; let the system generate the fieldcatalog for you. This you can manipulate before passing to the ALV display FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you say ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 14:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712131#M1453966</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-18T14:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Feildcatalog Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712132#M1453967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that too. I like this one because it is quite simple. I thought it would be exemplificative:)) Regards Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 15:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/feildcatalog-problem/m-p/6712132#M1453967</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-03-18T15:07:54Z</dc:date>
    </item>
  </channel>
</rss>

