<?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: PRINT  button in ALV output without using OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796257#M652775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 = SY-CPROG&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'F_USERCOMMAND_ALV'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I_CALLBACK_PF_STATUS_SET = 'ZAT'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;IS_LAYOUT = ILAYOUT&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = INT_FIELDCAT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = INT_DATA2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ZAT USING RT_EXTAB TYPE SLIS_T_EXTAB.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PF-STATUS 'ZAT' .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do like the above,the default save,back and cancel buttons are getting disabled.Kindly let me know the solutions.I want the print button to be in ALV tool bar without using OOPS.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 09:06:46 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2007-09-17T09:06:46Z</dc:date>
    <item>
      <title>PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796251#M652769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone here please let me know how to add a print button in the ALV output without using OOPS.I had added the syntax&lt;/P&gt;&lt;P&gt;set pf-status 'ZAT'  and then print in this status but in vain.&lt;/P&gt;&lt;P&gt;Kindly let me know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZEDITALV                                .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;type-pools:slis,icon.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES:MAKT.&lt;/P&gt;&lt;P&gt;*Declarations for ALV&lt;/P&gt;&lt;P&gt;DATA:itfieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:itfieldcat1 TYPE slis_t_fieldcat_alv WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:itprintparams TYPE slis_print_alv.&lt;/P&gt;&lt;P&gt;DATA:itrepid TYPE sy-repid.&lt;/P&gt;&lt;P&gt;itrepid = sy-repid.&lt;/P&gt;&lt;P&gt;DATA:itevent TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;DATA:itlistheader TYPE slis_t_listheader.&lt;/P&gt;&lt;P&gt;DATA:walistheader LIKE LINE OF itlistheader.&lt;/P&gt;&lt;P&gt;DATA:itlayout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;DATA:top TYPE slis_formname.&lt;/P&gt;&lt;P&gt;DATA:itsort TYPE slis_t_sortinfo_alv WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : grid  TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of imakt occurs 0,&lt;/P&gt;&lt;P&gt;     matnr like makt-matnr,&lt;/P&gt;&lt;P&gt;     spras like makt-spras,&lt;/P&gt;&lt;P&gt;     maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;     label1(03) TYPE C,&lt;/P&gt;&lt;P&gt;     qty1(03) type c,&lt;/P&gt;&lt;P&gt;     label2(03) type c,&lt;/P&gt;&lt;P&gt;     qty2(03) type c,&lt;/P&gt;&lt;P&gt;     end of imakt.&lt;/P&gt;&lt;P&gt;data:imakt1 like imakt occurs 0 with header line.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:MATNR FOR MAKT-MATNR OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;set pf-status 'ZAT'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select matnr spras maktx from makt into CORRESPONDING FIELDS OF TABLE IMAKT where spras = sy-langu.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;perform alv.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;FORM ALV.&lt;/P&gt;&lt;P&gt;DEFINE m_fieldcat.&lt;/P&gt;&lt;P&gt;    itfieldcat-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    itfieldcat-col_pos = &amp;amp;2.&lt;/P&gt;&lt;P&gt;    itfieldcat-seltext_l = &amp;amp;3.&lt;/P&gt;&lt;P&gt;    itfieldcat-do_sum = &amp;amp;4.&lt;/P&gt;&lt;P&gt;    itfieldcat-outputlen = &amp;amp;5.&lt;/P&gt;&lt;P&gt;    itfieldcat-edit = &amp;amp;6.&lt;/P&gt;&lt;P&gt;    append itfieldcat to itfieldcat.&lt;/P&gt;&lt;P&gt;    clear itfieldcat.&lt;/P&gt;&lt;P&gt;  END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MATNR' '' 'MATERIAL No' '' 18 ''.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'SPRAS' '' 'Language' '' 02 ''.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MAKTX' '' 'Description' '' 40 ''.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'LABEL1' '' 'LABEL1' '' 12 'X'.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'QTY1' '' 'QTY1' '' 12 'X'.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'LABEL2' '' 'LABEL2' '' 12 'X'.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'QTY2' '' 'QTY2' '' 12 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itlayout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;  itlayout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;  itlayout-no_subtotals = ' '.&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      = sy-repid&lt;/P&gt;&lt;P&gt;        is_layout               = itlayout&lt;/P&gt;&lt;P&gt;        i_callback_user_command =  'LIST1'&lt;/P&gt;&lt;P&gt;        i_callback_top_of_page  = 'TOP'&lt;/P&gt;&lt;P&gt;        it_fieldcat             = itfieldcat[]&lt;/P&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_variant              = ITVARIANT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        it_events               = itevent[]&lt;/P&gt;&lt;P&gt;      is_print                = ITPRINTPARAMS&lt;/P&gt;&lt;P&gt;        it_sort                 = itsort[]&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = imakt&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;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;clear itfieldcat.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;FORM list1 USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                  rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;IF rs_selfield-fieldname = 'QTY1' .&lt;/P&gt;&lt;P&gt;READ TABLE IMAKT INDEX rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'QTY' FIELD iMAKT-QTY1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;*test&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;loop at imakt.&lt;/P&gt;&lt;P&gt;move-corresponding imakt to imakt1.&lt;/P&gt;&lt;P&gt;append imakt1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;DEFINE k_fieldcat.&lt;/P&gt;&lt;P&gt;    itfieldcat1-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    itfieldcat1-col_pos = &amp;amp;2.&lt;/P&gt;&lt;P&gt;    itfieldcat1-seltext_l = &amp;amp;3.&lt;/P&gt;&lt;P&gt;    itfieldcat1-outputlen = &amp;amp;4.&lt;/P&gt;&lt;P&gt;    append itfieldcat1 to itfieldcat1.&lt;/P&gt;&lt;P&gt;    clear itfieldcat.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;  k_fieldcat 'MATNR' '' 'MATERIAL No' 18 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'SPRAS' '' 'Language'    02 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'MAKTX' '' 'Description' 40 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'LABEL1' '' 'LABEL1'     12 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'QTY1' '' 'QTY1' 12 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'LABEL2' '' 'LABEL2' 12 .&lt;/P&gt;&lt;P&gt;  k_fieldcat 'QTY2' '' 'QTY2' 12 .&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_GRID_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               = itlayout&lt;/P&gt;&lt;P&gt;       i_callback_user_command =  'LIST2'&lt;/P&gt;&lt;P&gt;        i_callback_top_of_page  = 'TOP'&lt;/P&gt;&lt;P&gt;        it_fieldcat             = itfieldcat1[]&lt;/P&gt;&lt;P&gt;        i_save                  = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_variant              = ITVARIANT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        it_events               = itevent[]&lt;/P&gt;&lt;P&gt;      is_print                = ITPRINTPARAMS&lt;/P&gt;&lt;P&gt;        it_sort                 = itsort[]&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab                = imakt1&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;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear:itfieldcat1,ITFIELDCAT.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;FORM list2 USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                  rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;WHEN 'OTHERS'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;form top.&lt;/P&gt;&lt;P&gt;data:title(70) type c.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;        i_list_type           = 0&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;        et_events             = itevent&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_TYPE_WRONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  title = 'TEST'.&lt;/P&gt;&lt;P&gt;  walistheader-typ = 'H'.&lt;/P&gt;&lt;P&gt;  walistheader-info = title.&lt;/P&gt;&lt;P&gt;  APPEND walistheader TO itlistheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_list_commentary      = itlistheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_LOGO                   = ''.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  CLEAR itlistheader.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "TOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kiran K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 04:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796251#M652769</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-17T04:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796252#M652770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to SDN Experts replies.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kiran K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796252#M652770</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-17T05:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796253#M652771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have done it in the right way for the User Command Do the same it for PF status.&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 call_alv  TABLES   p_out STRUCTURE wa_out.&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       = g_repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      is_layout                = i_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat              = i_fieldcat[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = p_out&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " call_alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pass 'PF_STATUS_SET' as it is passed to FM as shown above and you will have to write a form with the same name as 'PF_STATUS_SET' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;             Form  PF_STATUS_SET&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             Setting PF Status&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM pf_status_set USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZAT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "PF_STATUS_SET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still face problem reply otherwise reward point.&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;Mukesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796253#M652771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T05:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796254#M652772</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;by default PRINT button will appear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have included ur own PF_STATUS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include this line in ALV_GRID_DISPLAY ...&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       = SY-CPROG&lt;/P&gt;&lt;P&gt;         I_CALLBACK_USER_COMMAND  = 'F_USERCOMMAND_ALV'&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;        I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'&amp;lt;/b&amp;gt;      &lt;/P&gt;&lt;P&gt;   I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;         IS_LAYOUT                = ILAYOUT&lt;/P&gt;&lt;P&gt;         IT_FIELDCAT              = INT_FIELDCAT&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         T_OUTTAB                 = INT_DATA2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZSTATUS' .&lt;/P&gt;&lt;P&gt;ENDFORM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply back...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 06:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796254#M652772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T06:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796255#M652773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mukesh,&lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moment I add this the ,default buttons like save,back,cancel,exit are getting disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the printbutton in ALV tool bar.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kiran K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kiran K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 06:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796255#M652773</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-17T06:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796256#M652774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In REUSE_ALV_GRID_DISPLAY there is an export parameter called &lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;I_CALLBACK_PF_STATUS_SET    = ' '&amp;lt;/b&amp;gt;  Give some PF status name in quotations and add ur own button by doble clicking it. and write relevent code in user command of that pf status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpful.&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;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 08:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796256#M652774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T08:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796257#M652775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 = SY-CPROG&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'F_USERCOMMAND_ALV'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I_CALLBACK_PF_STATUS_SET = 'ZAT'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;IS_LAYOUT = ILAYOUT&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = INT_FIELDCAT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = INT_DATA2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ZAT USING RT_EXTAB TYPE SLIS_T_EXTAB.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PF-STATUS 'ZAT' .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do like the above,the default save,back and cancel buttons are getting disabled.Kindly let me know the solutions.I want the print button to be in ALV tool bar without using OOPS.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 09:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796257#M652775</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-17T09:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796258#M652776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check ur PF_STATUS whether it has the PRINT icon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else, do try this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. goto se80, under &amp;lt;b&amp;gt;Function Group --&amp;gt; SALV ---&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. copy the GUI_STATUS named &amp;lt;b&amp;gt;STANDARD&amp;lt;/b&amp;gt; into ur program, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove the unwanted buttons , activate and try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 09:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796258#M652776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T09:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796259#M652777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Pf-status has print both in APPLICATION tool bar as well as in Function keys but still it is not getting displayed in the ALV tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned by you SALV function group is not  having PRINT in the application tool bar.Kindly opine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kiran K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 09:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796259#M652777</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-17T09:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796260#M652778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tell me whther the print icon is disabled or not at all coming ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SALV, under  Function Keys, PRINT is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 09:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796260#M652778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: PRINT  button in ALV output without using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796261#M652779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 06:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-button-in-alv-output-without-using-oops/m-p/2796261#M652779</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-22T06:52:05Z</dc:date>
    </item>
  </channel>
</rss>

