<?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: ****Query regarding ALV********* in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858968#M362814</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;this ids the FM you are using,&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;     VALUE(I_BUFFER_ACTIVE) OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_STRUCTURE_NAME) LIKE  DD02L-TABNAME OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_CLIENT_NEVER_DISPLAY) TYPE  SLIS_CHAR_1 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;     VALUE(I_BYPASSING_BUFFER) TYPE  CHAR01 OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_INTERNAL_TABNAME) LIKE  DD02L-TABNAME OPTIONAL&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;     VALUE(CT_FIELDCAT) TYPE  LVC_T_FCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here instead of using i_structure &lt;U&gt;name use i&lt;/U&gt;internal_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 18:28:40 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-01-16T18:28:40Z</dc:date>
    <item>
      <title>****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858963#M362809</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;        I have defined a structure in the code using TYPES.&lt;/P&gt;&lt;P&gt;I want to build a field catalog for the structure.&lt;/P&gt;&lt;P&gt;To build the field catalog I use the Function Module LVC_FIELDCATALOG_MERGE and I am exporting the structure to the field i_structure_name .&lt;/P&gt;&lt;P&gt;But i find that the field catalog is not getting created.&lt;/P&gt;&lt;P&gt;If I pass a standard structure then the field catalog is geting created.&lt;/P&gt;&lt;P&gt;please tell me how to build the field catalog for a structure defined in the code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;*************&lt;STRONG&gt;ENTRIES WILL SURELY BE REWARDED&lt;/STRONG&gt;******&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858963#M362809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858964#M362810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bala,&lt;/P&gt;&lt;P&gt;try to create the structure in SE11. &lt;/P&gt;&lt;P&gt;It will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858964#M362810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858965#M362811</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;Please avoid to create duplicate records..Please close one of them..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858965#M362811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858966#M362812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need not create any structure in the data dictionary.&lt;/P&gt;&lt;P&gt;Call as following:&lt;/P&gt;&lt;P&gt;ws_repid is the sy-repid,  WS_OPEN_SUM is an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'K_KKB_FIELDCAT_MERGE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program     = ws_repid&lt;/P&gt;&lt;P&gt;            i_tabname              = 'WS_OPEN_SUM'&lt;/P&gt;&lt;P&gt;            i_inclname             = ws_repid&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            ct_fieldcat            = i_cat&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;            OTHERS                 = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000 WITH text-003.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Function module to get the field catalog in the lvc_t_fieldcat format&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LVC_TRANSFER_FROM_KKBLO'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            it_fieldcat_kkblo = i_cat&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            et_fieldcat_lvc   = i_fieldcatalog&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            it_data_missing   = 1&lt;/P&gt;&lt;P&gt;            OTHERS            = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000 WITH text-003.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858966#M362812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858967#M362813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have define fields as&amp;lt;b&amp;gt; Like mara-matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is type &amp;lt;b&amp;gt;mara-matnr&amp;lt;/b&amp;gt;then the fieldcat will not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858967#M362813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858968#M362814</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;this ids the FM you are using,&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;     VALUE(I_BUFFER_ACTIVE) OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_STRUCTURE_NAME) LIKE  DD02L-TABNAME OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_CLIENT_NEVER_DISPLAY) TYPE  SLIS_CHAR_1 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;     VALUE(I_BYPASSING_BUFFER) TYPE  CHAR01 OPTIONAL&lt;/P&gt;&lt;P&gt;     VALUE(I_INTERNAL_TABNAME) LIKE  DD02L-TABNAME OPTIONAL&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;     VALUE(CT_FIELDCAT) TYPE  LVC_T_FCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here instead of using i_structure &lt;U&gt;name use i&lt;/U&gt;internal_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 18:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858968#M362814</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-01-16T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858969#M362815</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 not sure whether you can use the FM  for types defined in the program , they need to be defined in the dictionary.&lt;/P&gt;&lt;P&gt;Regrad&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 18:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858969#M362815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T18:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: ****Query regarding ALV*********</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858970#M362816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to have th MERGE function module gernerate the field cat based on an internal table,  you must do it like this.  You must use a DATA statement to define the structure and use LIKE to define the field types,  also use LIKE to define the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .


type-pools: slis.

data: begin of xma,
       matnr like makt-matnr,
       maktx like makt-maktx,
       end of xma.

data: ima like standard table of xma with header line.
data: fieldcat type slis_t_fieldcat_alv.
data: repid type syrepid.

repid = sy-repid.

select matnr maktx
                 into table ima
                       from makt
                             up to 100 rows
                                where spras = sy-langu.

call function 'REUSE_ALV_FIELDCATALOG_MERGE'
     exporting
          i_program_name     = repid
          i_internal_tabname = 'XMA'
          i_inclname         = repid
          i_bypassing_buffer = 'X'
     changing
          ct_fieldcat        = fieldcat.


call function 'REUSE_ALV_GRID_DISPLAY'
     exporting
          it_fieldcat = fieldcat
     tables
          t_outtab    = ima.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 19:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/1858970#M362816</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-16T19:57:55Z</dc:date>
    </item>
  </channel>
</rss>

