<?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: Get Print Parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433686#M207022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did u assign any value to the layout 'ZLAY-TST'?? before calling the FM GET_PRINT_PARAMETERS IF not in the popup u will get those values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2006 15:30:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-11T15:30:08Z</dc:date>
    <item>
      <title>Get Print Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433683#M207019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Get_Print_Parameters , if called with parameters as :&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  EXPORTING MODE                  = 'BATCH'&lt;/P&gt;&lt;P&gt;            REPORT                = 'SDBILLDL'&lt;/P&gt;&lt;P&gt;            LAYOUT                = 'ZLAY-TST'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS&lt;/P&gt;&lt;P&gt;            VALID                 = VALID.&lt;/P&gt;&lt;P&gt;get the settings for the layout specified in the Parameter. I tried this and it says the layout is not defined for so and so printer , when i go and see the F4 for layouts it actually pops up the format(X_jjj) not the layout that i have defined and passed in the paramaeter. &lt;/P&gt;&lt;P&gt;Is there any way that we can run a report with a layout , the way we can run it with variant ?? If not then what is the use of layout ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433683#M207019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Print Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433684#M207020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this sample code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest_print.

  DATA:L_PARAMS TYPE PRI_PARAMS,
       L_VALID TYPE C.

    CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         IMMEDIATELY                  = ' '
       &amp;lt;b&amp;gt;  LINE_SIZE                    = 220&amp;lt;/b&amp;gt;         RELEASE                      = 'X'
         MODE                         = 'CURRENT'
         NO_DIALOG                    = ' '
       IMPORTING
*     OUT_ARCHIVE_PARAMETERS       =
         OUT_PARAMETERS               = L_PARAMS
         VALID                        = L_VALID
       EXCEPTIONS
         ARCHIVE_INFO_NOT_FOUND       = 1
         INVALID_PRINT_PARAMS         = 2
         INVALID_ARCHIVE_PARAMS       = 3
         OTHERS                       = 4.
      IF SY-SUBRC &amp;lt;&amp;gt; 0.

      ENDIF.
"But it will take default printer from user settings
      NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.
       write : 'print is on'.
      NEW-PAGE PRINT OFF.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433684#M207020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Print Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433685#M207021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; Check this code too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         IMMEDIATELY                  = C_IMMEDIATELY
         LAYOUT                       = 'Z_48_144'
         LINE_COUNT                   = '48'
         LINE_SIZE                    = '144'
         NEW_LIST_ID                  = C_NEW_LIST_ID
         NO_DIALOG                    = SPACE
         RELEASE                      = 'X'
       IMPORTING
         OUT_PARAMETERS               = WK_PRIPAR
         VALID                        = W_VALID
       EXCEPTIONS
         ARCHIVE_INFO_NOT_FOUND       = 1
         INVALID_PRINT_PARAMS         = 2
         INVALID_ARCHIVE_PARAMS       = 3
         OTHERS                       = 4.
    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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433685#M207021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get Print Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433686#M207022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did u assign any value to the layout 'ZLAY-TST'?? before calling the FM GET_PRINT_PARAMETERS IF not in the popup u will get those values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433686#M207022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Print Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433687#M207023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , I did run the report , sorted the field as per the requirement and save the layout with this name . Now , when i got to RV60SBAT ( to run bill due list in Background ) report , goto-&amp;gt;settings-&amp;gt;layout-&amp;gt;chose , it pops up the new layout that i created and the standard layout too . &lt;/P&gt;&lt;P&gt;But , when i go to the VF04 report and same path , it only shows the standard Layout not mine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code , As this report is scheduled as a background job and is a standard report , So , If i create a program that :&lt;/P&gt;&lt;P&gt;First Fetches the Layout (get_print_parameter) and then submit the job with those parameter , will it call the report and display it as per the layout ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-print-parameters/m-p/1433687#M207023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:40:51Z</dc:date>
    </item>
  </channel>
</rss>

