<?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 fieldcatalog wrt layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777550#M335323</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;we all know that we can maintain layouts for alv grids. different layout will have diffrent fieldcatalog. i need the fieldcatalog w.r.t layout . before we display the grid. ie before we use fhe fm 'REUSE_ALV_GRID_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i kow that variants are being stored in the table 'v_ltdx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are there any FM's to get the fieldcatalog w.r.t layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jaffer vali shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Dec 2006 05:05:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-16T05:05:16Z</dc:date>
    <item>
      <title>fieldcatalog wrt layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777550#M335323</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;we all know that we can maintain layouts for alv grids. different layout will have diffrent fieldcatalog. i need the fieldcatalog w.r.t layout . before we display the grid. ie before we use fhe fm 'REUSE_ALV_GRID_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i kow that variants are being stored in the table 'v_ltdx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are there any FM's to get the fieldcatalog w.r.t layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jaffer vali shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 05:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777550#M335323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-16T05:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog wrt layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777551#M335324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaffer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not clear what exactly are you trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no direct relation between a field catalog and a layout. A layout is linked to the program name, username and the value in the handle field of the IS_VARIANT parameter. So, if you want to get the layouts specific to a grid, you need to pass a unique handle name to the parameter while displaying the data so that marked against that grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A field catalog is a stand alone component and can be used for multiple grids, if you are not changing things at runtime and the fields are exactly the same. Other wise, you still need to have individual field catalogs for each of the grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the layouts specific to the grid, you can use the REUSE&lt;STRONG&gt;GET&lt;/STRONG&gt;LAYOUT* or LVC&lt;STRONG&gt;GET&lt;/STRONG&gt;LAYOUT* function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2006 04:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777551#M335324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-17T04:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog wrt layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777552#M335325</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;I hope you requirement is to display specific fields based on selection. &lt;/P&gt;&lt;P&gt;You can save different layout set and call them as per your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can &amp;lt;b&amp;gt;declare&amp;lt;/b&amp;gt; the variant in the &amp;lt;b&amp;gt;selection screen&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;               p_var_nt LIKE disvariant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify the following codes and you can achive the same task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_exit(1) TYPE c.&lt;/P&gt;&lt;P&gt;  os_variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_variant = os_variant&lt;/P&gt;&lt;P&gt;      i_save     = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_exit     = l_exit&lt;/P&gt;&lt;P&gt;      es_variant = os_variant&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTIN SCREEN ON FIELD:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------" /&gt;&lt;P&gt;FORM alv_variant_existence  USING    iv_variant LIKE disvariant-variant&lt;/P&gt;&lt;P&gt;                            CHANGING os_variant LIKE disvariant.&lt;/P&gt;&lt;P&gt;  CHECK NOT iv_variant IS INITIAL.&lt;/P&gt;&lt;P&gt;  os_variant-report  = sy-repid.&lt;/P&gt;&lt;P&gt;  os_variant-variant = iv_variant.&lt;/P&gt;&lt;P&gt;  IF iv_variant CP '/*'.    "user-specific variants begin with slash&lt;/P&gt;&lt;P&gt;    os_variant-username = sy-uname.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_save        = 'A'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      cs_variant    = os_variant&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      wrong_input   = 1&lt;/P&gt;&lt;P&gt;      not_found     = 2&lt;/P&gt;&lt;P&gt;      program_error = 3&lt;/P&gt;&lt;P&gt;      OTHERS        = 4.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Baburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2006 11:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-wrt-layout/m-p/1777552#M335325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-17T11:08:22Z</dc:date>
    </item>
  </channel>
</rss>

