<?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: Generate PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169071#M996700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Goto SE41 and copy the Status of the Standard progrm.&lt;/P&gt;&lt;P&gt;Program name : SAPLSLVC_FULLSCREEN&lt;/P&gt;&lt;P&gt;Status: STANDARD_FULLSCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the status that you have created, go and add a push button, which would appear on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the FM for calling the ALV, &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       = l_prog_name&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = lc_status " STATUS_SET&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page   = lc_top&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = lc_dclick&lt;/P&gt;&lt;P&gt;      is_layout                = wa_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                 = i_alv&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;where lc_Status contains the name of the Perform which sets the Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Set the status in the STATUS_SET,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM status_set USING fp_extab TYPE slis_t_extab.           "#EC CALLED&lt;/P&gt;&lt;P&gt;  IF fp_extab[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'ZSDSOR_TERMS'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "status_set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 'ZSDSOR_TERMS' is the name of the status you created by copying from the standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the button would appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2008 14:35:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-28T14:35:28Z</dc:date>
    <item>
      <title>Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169066#M996695</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 need to generate PDF of a ALV Report automatically if the user selects a check box on the Selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user does not run the program in background, nor does he select the print option from the Menu. In that case is it possible to get a spool number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the Function module GET_PRINT_PARAMETERS with the no_dialog parameter as 'X', but it did not generate a spool number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the Submit program to spool option also and did not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if we have any other options of getting the spool number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Janani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2008 20:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169066#M996695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-27T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169067#M996696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using get_print_parameters you will get the print parameters like printer etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you have to use the new-page print on and new-page print off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in between on and off you have to call your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for new-page print on you have to pass print parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2008 20:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169067#M996696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-27T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169068#M996697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_TEST_PRINT.
 
 DATA: L_PARAMS TYPE PRI_PARAMS,
            L_VALID TYPE C.
START-OF-SELECTION.
  "get the data etc here
 
END-OF-SELECTION.

      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          IMMEDIATELY            = 'X'
          LINE_SIZE              = 220 
          RELEASE                = 'X'
          MODE                   = 'CURRENT'
          NO_DIALOG              = ' '
        IMPORTING
          OUT_PARAMETERS         = L_PARAMS
          VALID                  = L_VALID
        EXCEPTIONS
          ARCHIVE_INFO_NOT_FOUND = 1
          INVALID_PRINT_PARAMS   = 2
          INVALID_ARCHIVE_PARAMS = 3
          OTHERS                 = 4.
 
      NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.
      PERFORM DISPLAY_REPORT.
      NEW-PAGE PRINT OFF.
 
  ENDCASE.
 
FORM DISPLAY_REPORT .
  " here you call the alv display function
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will generate a spool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2008 20:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169068#M996697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-27T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169069#M996698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read many of your blogs and replies in SDN. Didnt expect an answer from this expert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not try the new page on and off option before. It is perfectly now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Janani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 08:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169069#M996698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169070#M996699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a PDF file from spool...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw this function that Vijay sent for get printer parameters, but I'm trying to use some functions to genarate a PDF file and this functions aren't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some complete example code about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if is possible change the settings in PF-STATUS to put some command in Printer button or in printer options on sap  menu??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando Pena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169070#M996699</guid>
      <dc:creator>fernando_pena</dc:creator>
      <dc:date>2008-07-28T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169071#M996700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Goto SE41 and copy the Status of the Standard progrm.&lt;/P&gt;&lt;P&gt;Program name : SAPLSLVC_FULLSCREEN&lt;/P&gt;&lt;P&gt;Status: STANDARD_FULLSCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the status that you have created, go and add a push button, which would appear on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the FM for calling the ALV, &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       = l_prog_name&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = lc_status " STATUS_SET&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page   = lc_top&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = lc_dclick&lt;/P&gt;&lt;P&gt;      is_layout                = wa_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                 = i_alv&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;where lc_Status contains the name of the Perform which sets the Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Set the status in the STATUS_SET,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM status_set USING fp_extab TYPE slis_t_extab.           "#EC CALLED&lt;/P&gt;&lt;P&gt;  IF fp_extab[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'ZSDSOR_TERMS'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "status_set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 'ZSDSOR_TERMS' is the name of the status you created by copying from the standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the button would appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169071#M996700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169072#M996701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please create a new thread, if it does not solve ur problem still, and we would be ready to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-pdf/m-p/4169072#M996701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T14:36:17Z</dc:date>
    </item>
  </channel>
</rss>

