<?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 Populating data in AVL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226181#M478468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having data in the final internal table and displaying in the table control, user wants to print the data available in the table control, I tried for the print option cannot get it. I am planning to use the ALV for printing purpose. when I am trying to send my final internal table data to the function &lt;/P&gt;&lt;P&gt;'REUSE_ALV_FIELDCATALOG_MERGE' it is not populating can any one send me the sample code for this function module. I am using table types in declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 May 2007 07:49:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-06T07:49:38Z</dc:date>
    <item>
      <title>Populating data in AVL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226181#M478468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having data in the final internal table and displaying in the table control, user wants to print the data available in the table control, I tried for the print option cannot get it. I am planning to use the ALV for printing purpose. when I am trying to send my final internal table data to the function &lt;/P&gt;&lt;P&gt;'REUSE_ALV_FIELDCATALOG_MERGE' it is not populating can any one send me the sample code for this function module. I am using table types in declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 07:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226181#M478468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Populating data in AVL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226182#M478469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Refer the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_test_palv                             .
tables : mara.



select-options: s_matnr for mara-matnr.



type-pools: slis.



data: begin of itab occurs 0,

      matnr like mara-matnr,

      ernam like mara-ernam,

      ersda like mara-ersda,

      labor like mara-labor,

      end of itab.



data: i_fieldcat type slis_t_fieldcat_alv,

      xevents    type slis_t_event,

      ls_event    type slis_alv_event,

      slis_ev_top type slis_formname value 'TOP_OF_PAGE'.



data: v_repid like sy-repid.



start-of-selection.



  v_repid = sy-repid.



  select matnr ernam ersda labor

    into table itab

    from mara

    where matnr in s_matnr.



  call function 'REUSE_ALV_EVENTS_GET'

    exporting

      i_list_type     = 0

    importing

      et_events       = xevents

    exceptions

      list_type_wrong = 1

      others          = 2.

  if sy-subrc &amp;lt;&amp;gt; 0.

    message id sy-msgid type sy-msgty number sy-msgno

            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  endif.



  read table xevents with key name = slis_ev_top

                           into ls_event.

  if sy-subrc = 0.

    move slis_ev_top to ls_event-form.

    append ls_event to xevents.

  endif.



  call function 'REUSE_ALV_FIELDCATALOG_MERGE'

    exporting

      i_program_name               =  v_repid

      i_internal_tabname           = 'ITAB'

*     I_STRUCTURE_NAME             =

*     I_CLIENT_NEVER_DISPLAY       = 'X'

      i_inclname                   = v_repid

      i_bypassing_buffer           = 'X'

      i_buffer_active              = ' '

    changing

      ct_fieldcat                  = i_fieldcat

    exceptions

      inconsistent_interface       = 1

      program_error                = 2

      others                       = 3

            .

  if sy-subrc &amp;lt;&amp;gt; 0.

    message id sy-msgid type sy-msgty number sy-msgno

            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  endif.



  call function 'REUSE_ALV_LIST_DISPLAY'

    exporting

*     I_INTERFACE_CHECK              = ' '

      i_bypassing_buffer             = 'X'

      i_buffer_active                = ' '

      i_callback_program             = v_repid

*     I_CALLBACK_PF_STATUS_SET       = ' '

*     I_CALLBACK_USER_COMMAND        = ' '

*     I_STRUCTURE_NAME               =

*     IS_LAYOUT                      =

      it_fieldcat                    = i_fieldcat

*     IT_EXCLUDING                   =

*     IT_SPECIAL_GROUPS              =

*     IT_SORT                        =

*     IT_FILTER                      =

*     IS_SEL_HIDE                    =

*     I_DEFAULT                      = 'X'

      i_save                         = 'A'

*     IS_VARIANT                     =

      it_events                      = xevents

*     IT_EVENT_EXIT                  =

*     IS_PRINT                       =

*     IS_REPREP_ID                   =

*     I_SCREEN_START_COLUMN          = 0

*     I_SCREEN_START_LINE            = 0

*     I_SCREEN_END_COLUMN            = 0

*     I_SCREEN_END_LINE              = 0

*   IMPORTING

*     E_EXIT_CAUSED_BY_CALLER        =

*     ES_EXIT_CAUSED_BY_USER         =

    tables

      t_outtab                       = itab

    exceptions

      program_error                  = 1

      others                         = 2

            .

  if sy-subrc &amp;lt;&amp;gt; 0.

    message id sy-msgid type sy-msgty number sy-msgno

            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  endif.



*&amp;amp;--------------------------------------------------------------------*

*&amp;amp;      Form  top_of_page

*&amp;amp;--------------------------------------------------------------------*

*       text

*---------------------------------------------------------------------*

form top_of_page.



  write:/ 'Top of page event triggered&amp;#146;.

  WRITE:/ &amp;#145;This report gives the material details'.



endform.                    "top_of_page&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 08:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226182#M478469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T08:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Populating data in AVL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226183#M478470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it might not be an DDIC structure which ur are passing to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u can define ur catalog as this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_fieldcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA : wa_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname ='I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'CHCK_BOX'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = 'SELECT '.&lt;/P&gt;&lt;P&gt;wa_fieldcat-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;append wa_fieldcat to i_fieldcat.&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = 'I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'TRAFFIC_LIGHTS'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = 'LIGHTS '.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;append wa_fieldcat to i_fieldcat.&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = 'I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'NAME1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = text-001.&lt;/P&gt;&lt;P&gt;*wa_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos   = 3.&lt;/P&gt;&lt;P&gt;wa_fieldcat-emphasize = 'C600'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = 'I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'NAME2'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = text-002.&lt;/P&gt;&lt;P&gt;*wa_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos   = 4.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = 'I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'ORT01'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = text-003.&lt;/P&gt;&lt;P&gt;*wa_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos   = 5.&lt;/P&gt;&lt;P&gt;wa_fieldcat-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = 'I_KNA1'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'SPRAS'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l = text-004.&lt;/P&gt;&lt;P&gt;*wa_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos   = 6.&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 08:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226183#M478470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Populating data in AVL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226184#M478471</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 tried with it I am getting message 'Field catalog not found' I am afraid of the reason for this error, Can u pls tell me how to solve the error.&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;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 08:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226184#M478471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Populating data in AVL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226185#M478472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Have you declare the field catalog rightly like below:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: i_fieldcat type slis_t_fieldcat_alv.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 08:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-data-in-avl/m-p/2226185#M478472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T08:36:29Z</dc:date>
    </item>
  </channel>
</rss>

