<?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: how to reduce the code while passing. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159900#M120141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To the FM&lt;/P&gt;&lt;P&gt;   we just need to pass the &lt;/P&gt;&lt;P&gt;   internal table Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( There is no need to use the parameter&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME Is very important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. While declaring the internal table,&lt;/P&gt;&lt;P&gt;   u can use any number of fields.&lt;/P&gt;&lt;P&gt;   But make sure they are&lt;/P&gt;&lt;P&gt;   declare using LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  eg.&lt;/P&gt;&lt;P&gt;   bukrs like t001-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (do not use type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Rest the FM will take care !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;Important parameters are:&lt;/P&gt;&lt;P&gt;i_program_name,&lt;/P&gt;&lt;P&gt;i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;i_inclname             = prg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where prg is sy-repid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_program_name         = prg&lt;/P&gt;&lt;P&gt;      i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;      i_inclname             = prg&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = alvfc&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;      program_error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2006 16:37:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-20T16:37:04Z</dc:date>
    <item>
      <title>how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159895#M120136</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 am passing the below statemnt to pass the field name and description to the sub_fieldcat.&lt;/P&gt;&lt;P&gt;since the report has got 100 fields i need to write for all the 100 fields like this, is there any possiblity to pass the field name and the description with less coding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM SUB_FIELDCAT USING '' 'BUDAT' 'Posting Date' G_COL 'X'.&lt;/P&gt;&lt;P&gt;ADD 1 TO G_COL.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SUB_FIELDCAT USING L_TABNAME TYPE SLIS_TABNAME&lt;/P&gt;&lt;P&gt;                        L_FNAME TYPE SLIS_FIELDNAME&lt;/P&gt;&lt;P&gt;                        L_SEL TYPE DD03P-SCRTEXT_L&lt;/P&gt;&lt;P&gt;                        L_COL TYPE I&lt;/P&gt;&lt;P&gt;                        L_KEY TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I_FIELDCATTAB_WA-REF_TABNAME = L_TABNAME.&lt;/P&gt;&lt;P&gt;  I_FIELDCATTAB_WA-FIELDNAME   = L_FNAME.&lt;/P&gt;&lt;P&gt;  I_FIELDCATTAB_WA-SELTEXT_L   = L_SEL.&lt;/P&gt;&lt;P&gt;  I_FIELDCATTAB_WA-COL_POS     = L_COL.&lt;/P&gt;&lt;P&gt;  I_FIELDCATTAB_WA-KEY         = L_KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND I_FIELDCATTAB_WA TO I_FIELDCATTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.             " SUB_FIELDCAT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159895#M120136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159896#M120137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;   why don't u use this standard FM&lt;/P&gt;&lt;P&gt;  to build field catalogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Ur logic will be required&lt;/P&gt;&lt;P&gt;  only for those fields, which&lt;/P&gt;&lt;P&gt;  are different from abap dictionary !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159896#M120137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159897#M120138</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;Use function : REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that your own logic required only if you want to changes the field description or length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159897#M120138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159898#M120139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply, i am using 3 table fields . Can u show me a small example of passing 3 tables to the REUSE_ALV_FIELDCATALOG_MERGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display all the fields from the 3 tables, these are the 3 tables RBKP_V, RSEG and RBCO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be good if u provide me with the coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159898#M120139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159899#M120140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;use this :&lt;/P&gt;&lt;P&gt;DATA: ITAB_FLDCAT   TYPE SLIS_T_FIELDCAT_ALV,&lt;/P&gt;&lt;P&gt;'TAB_DATA' = your internal table . you have to pass this value in Quotes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G_REPID : Sy-program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_PROGRAM_NAME         = G_REPID&lt;/P&gt;&lt;P&gt;      I_INTERNAL_TABNAME     = 'TAB_DATA'&lt;/P&gt;&lt;P&gt;      I_INCLNAME             = G_REPID&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      CT_FIELDCAT            = ITAB_FLDCAT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      INCONSISTENT_INTERFACE = 1&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR          = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159899#M120140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159900#M120141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To the FM&lt;/P&gt;&lt;P&gt;   we just need to pass the &lt;/P&gt;&lt;P&gt;   internal table Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( There is no need to use the parameter&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME Is very important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. While declaring the internal table,&lt;/P&gt;&lt;P&gt;   u can use any number of fields.&lt;/P&gt;&lt;P&gt;   But make sure they are&lt;/P&gt;&lt;P&gt;   declare using LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  eg.&lt;/P&gt;&lt;P&gt;   bukrs like t001-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (do not use type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Rest the FM will take care !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;Important parameters are:&lt;/P&gt;&lt;P&gt;i_program_name,&lt;/P&gt;&lt;P&gt;i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;i_inclname             = prg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where prg is sy-repid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_program_name         = prg&lt;/P&gt;&lt;P&gt;      i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;      i_inclname             = prg&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = alvfc&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;      program_error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159900#M120141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159901#M120142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the structure of your internal table that is passed to the ALV grid function module? Is it simply&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0.
        include structure RBKP_V.
        include structure RSEG.
        include structure RBCO.
data: end of itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, then this should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data l_repid like sy-repid.
  l_repid = sy-repid.
  call function 'REUSE_ALV_FIELDCATALOG_MERGE'
   exporting
     i_program_name               = l_repid
     i_internal_tabname           = 'ITAB'
*    I_STRUCTURE_NAME             =
*    I_CLIENT_NEVER_DISPLAY       = 'X'
     i_inclname                   = l_repid
     i_bypassing_buffer           = 'X'
*    I_BUFFER_ACTIVE              =
   changing
     ct_fieldcat                  = fieldcat
   exceptions
     inconsistent_interface       = 1
     program_error                = 2
     others                       = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 16:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159901#M120142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159902#M120143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do something like this using macros, this will also reduce ur code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declare this before ur selection screen code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE add_catalog.  &lt;/P&gt;&lt;P&gt;  clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_l = &amp;amp;2.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  append wa_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;  clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*u can write this code in start of selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR it_fieldcat.&lt;/P&gt;&lt;P&gt;REFRESH it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  add_catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  'FIELD1'            'field 1',&lt;/P&gt;&lt;P&gt;  'FIELD2'            'field 2'.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can exted this to how many attributes of fieldcatalog u want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 17:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159902#M120143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T17:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159903#M120144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you don't use function fieldcat_merge or any other of the suggested automatic ways, you could still simplofy your SUB_FIELDCAT a little: G_COL is not necessary if you append the fields in the desired sequence. Then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM USING:&lt;/P&gt;&lt;P&gt;  '' 'BUDAT' 'Posting Date' 'X',&lt;/P&gt;&lt;P&gt;  '' 'FIELD' 'what ever'    ' ',&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  '' 'LAST'  'last field'   ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method of passing program name and table name to the ALV display function did not work too good for me: Declaration must be LIKE, TYPE is not recognized and it works for global tables only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a routine generating a complete fieldcatalog using DDIC or tech information of all fields in the internal table ragrdless of their declaration. The routine uses the DESCRIBE statement - I wonder why SAP is unable to do that. I used it the last 3 years - no problems.&lt;/P&gt;&lt;P&gt;Sorry I won't post her because it's about 150 lines of code. I use it in every ALV report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 17:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159903#M120144</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-01-20T17:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159904#M120145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot for ur reply, i am able to do but since i am using alv grid display only few fields i am able to display the result of the fields are gone what can be the soluyion to display maore than 200 fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2006 07:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159904#M120145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-21T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the code while passing.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159905#M120146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. At a time there is a limit&lt;/P&gt;&lt;P&gt;    how many columns can be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It is better that &lt;/P&gt;&lt;P&gt;   a Layout is selected/saved&lt;/P&gt;&lt;P&gt;   to display REQUIERD fields&lt;/P&gt;&lt;P&gt;   from the all 200 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I mean,&lt;/P&gt;&lt;P&gt;   all 200 fileds will be there in alv.&lt;/P&gt;&lt;P&gt;   But the user can SAVE HIS OWN Layout&lt;/P&gt;&lt;P&gt;  where he can CHOOSE from these 200 fields,&lt;/P&gt;&lt;P&gt;  and display required fields only !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2006 08:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-reduce-the-code-while-passing/m-p/1159905#M120146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-21T08:32:46Z</dc:date>
    </item>
  </channel>
</rss>

