<?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: alv report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297799#M1024870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnk u for ur suggestions&lt;/P&gt;&lt;P&gt;i got my solution ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created a structure for my internal table like zxk03&lt;/P&gt;&lt;P&gt;and directly used in &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program      = i_repid&lt;/P&gt;&lt;P&gt;        I_STRUCTURE_NAME        = 'ZXK03'&lt;/P&gt;&lt;P&gt;        i_callback_user_command = 'DOUBLE_CLIC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_fieldcat             = int_fcat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = w_result&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error           = 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;      WRITE: / 'Returncode',&lt;/P&gt;&lt;P&gt;                sy-subrc,&lt;/P&gt;&lt;P&gt;               'from FUNCTION REUSE_ALV_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;    ENDIF                          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 14:00:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T14:00:34Z</dc:date>
    <item>
      <title>alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297794#M1024865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;below is my alv report , now i dont want 'REUSE_ALV_FIELDCATALOG_MERGE' but i directly want to update my fieldcatalogue and to print only with REUSE_ALV_GRID_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF w_result OCCURS 0      ,&lt;/P&gt;&lt;P&gt;        lifnr     LIKE lfa1-lifnr      ,&lt;/P&gt;&lt;P&gt;        fname     LIKE cdpos-fname     ,&lt;/P&gt;&lt;P&gt;        username  LIKE cdhdr-username  ,&lt;/P&gt;&lt;P&gt;        ddtext    LIKE dd04t-ddtext    ,&lt;/P&gt;&lt;P&gt;        udate     LIKE cdhdr-udate     ,&lt;/P&gt;&lt;P&gt;        value_new LIKE cdpos-value_new ,&lt;/P&gt;&lt;P&gt;        value_old LIKE cdpos-value_old ,&lt;/P&gt;&lt;P&gt;      END OF w_result                 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&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         = i_repid&lt;/P&gt;&lt;P&gt;      i_internal_tabname     = 'W_RESULT'&lt;/P&gt;&lt;P&gt;      i_inclname             = i_repid&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = int_fcat&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;  IF sy-subrc EQ 0&lt;/P&gt;&lt;P&gt;     AND int_fcat[] IS NOT INITIAL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program      = i_repid&lt;/P&gt;&lt;P&gt;        i_callback_user_command = 'DOUBLE_CLIC'&lt;/P&gt;&lt;P&gt;        it_fieldcat             = int_fcat&lt;/P&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = w_result&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error           = 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;      WRITE: / 'Returncode',&lt;/P&gt;&lt;P&gt;                sy-subrc,&lt;/P&gt;&lt;P&gt;               'from FUNCTION REUSE_ALV_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;    ENDIF                          .&lt;/P&gt;&lt;P&gt;  ENDIF                            .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 12:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297794#M1024865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297795#M1024866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,&lt;/P&gt;&lt;P&gt;IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_FIELDCAT-FIELDNAME = 'VBELN'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-SELTEXT_L = 'VBELN'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-COL_POS = 1.&lt;/P&gt;&lt;P&gt;APPEND X_FIELDCAT TO IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR X_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_FIELDCAT-FIELDNAME = 'POSNR'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-SELTEXT_L = 'POSNR'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-COL_POS = 2.&lt;/P&gt;&lt;P&gt;APPEND X_FIELDCAT TO IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR X_FIELDCAT.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-FIELDNAME = 'MALE'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-SELTEXT_L = 'MALE'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-COL_POS = 3.&lt;/P&gt;&lt;P&gt;APPEND X_FIELDCAT TO IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR X_FIELDCAT.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-FIELDNAME = 'FEMALE'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-SELTEXT_L = 'FEMALE'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-TABNAME = 'ITAB'.&lt;/P&gt;&lt;P&gt;X_FIELDCAT-COL_POS = 3.&lt;/P&gt;&lt;P&gt;APPEND X_FIELDCAT TO IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR X_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = SY-REPID&lt;/P&gt;&lt;P&gt;IS_LAYOUT = L_LAYOUT&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = IT_FIELDCAT&lt;/P&gt;&lt;P&gt;it_events = it_events&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = ITAB&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 12:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297795#M1024866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297796#M1024867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define structure with slis_t_fieldcatalog_alv and wa slis_fieldcatalog_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define each field catalog and append to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally pass this fieldcatalog internal table in reuse_alv_grid_display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 12:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297796#M1024867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297797#M1024868</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;first define a structure of type slis_fieldcat_alv, and a work area, and update manually the required fields (the required set of fileds can be obtained by navgating into the structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass this field catalog structure in the reuse_alv_list_display or reuse-alv-grid-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we generally use fieldcat_merge when we use all the fields of a table/structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gautam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297797#M1024868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297798#M1024869</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;first define a structure of type slis_fieldcat_alv, and a work area, and update manually the required fields (the required set of fileds can be obtained by navgating into the structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass this field catalog structure in the reuse_alv_list_display or reuse-alv-grid-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we generally use fieldcat_merge when we use all the fields of a table/structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gautam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297798#M1024869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: alv report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297799#M1024870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnk u for ur suggestions&lt;/P&gt;&lt;P&gt;i got my solution ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created a structure for my internal table like zxk03&lt;/P&gt;&lt;P&gt;and directly used in &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program      = i_repid&lt;/P&gt;&lt;P&gt;        I_STRUCTURE_NAME        = 'ZXK03'&lt;/P&gt;&lt;P&gt;        i_callback_user_command = 'DOUBLE_CLIC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   it_fieldcat             = int_fcat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = w_result&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error           = 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;      WRITE: / 'Returncode',&lt;/P&gt;&lt;P&gt;                sy-subrc,&lt;/P&gt;&lt;P&gt;               'from FUNCTION REUSE_ALV_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;    ENDIF                          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/4297799#M1024870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:00:34Z</dc:date>
    </item>
  </channel>
</rss>

