<?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: Printer not located. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883393#M370784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this code to get the user defined printer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single spld into usr01-spld from usr01 where bname eq sy-uname .&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0 .&lt;/P&gt;&lt;P&gt;    move: usr01-spld to loc_dest .&lt;/P&gt;&lt;P&gt;  endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now pass loc_dest to destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2007 08:24:46 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2007-01-22T08:24:46Z</dc:date>
    <item>
      <title>Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883388#M370779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The execution is getting aborted coz printer is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have user profile default set to LOCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am using ht efollowing code to set up printer and spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        copies                 = 1&lt;/P&gt;&lt;P&gt;        department             = 'SYSTEM'&lt;/P&gt;&lt;P&gt;        destination            = 'LOCL'&lt;/P&gt;&lt;P&gt;        expiration             = 2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     immediately            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     in_archive_parameters  = ' '                  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     in_parameters          = ' '                 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        layout                 = 'X_65_255'&lt;/P&gt;&lt;P&gt;        line_count             = 65&lt;/P&gt;&lt;P&gt;        line_size              = 255&lt;/P&gt;&lt;P&gt;        list_name              = 'TEST'&lt;/P&gt;&lt;P&gt;        list_text              = 'TEST'&lt;/P&gt;&lt;P&gt;        mode                   = ' '&lt;/P&gt;&lt;P&gt;        new_list_id            = 'X'&lt;/P&gt;&lt;P&gt;        no_dialog              = 'X'&lt;/P&gt;&lt;P&gt;        receiver               = 'SAP*'&lt;/P&gt;&lt;P&gt;        release                = 'X'&lt;/P&gt;&lt;P&gt;        sap_cover_page         = 'X'&lt;/P&gt;&lt;P&gt;        user                   = sy-uname&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        out_parameters         = l_params&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        archive_info_not_found = 1&lt;/P&gt;&lt;P&gt;        invalid_print_params   = 2&lt;/P&gt;&lt;P&gt;        invalid_archive_params = 3&lt;/P&gt;&lt;P&gt;        OTHERS                 = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0 AND NOT l_params IS INITIAL.&lt;/P&gt;&lt;P&gt;    IF NOT sy-batch IS INITIAL.&lt;/P&gt;&lt;P&gt;      NEW-PAGE PRINT ON PARAMETERS l_params  NO DIALOG NEW-SECTION.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I check the details in SM37, job log says " Printer name "" not defined"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The printer is not getting set to LOCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea??&lt;/P&gt;&lt;P&gt;Solution would definitely be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 14:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883388#M370779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T14:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883389#M370780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin123,&lt;/P&gt;&lt;P&gt;is 'LOCL' the normal or short name?&lt;/P&gt;&lt;P&gt;You have to use the shortname, look with SPAD for the correct name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 14:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883389#M370780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883390#M370781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin123,&lt;/P&gt;&lt;P&gt;i have tried your code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PARAMS      LIKE PRI_PARAMS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    COPIES                 = 1&lt;/P&gt;&lt;P&gt;    DEPARTMENT             = 'SYSTEM'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    DESTINATION            = 'LOCA'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    EXPIRATION             = 2&lt;/P&gt;&lt;P&gt;    LAYOUT                 = 'X_65_255'&lt;/P&gt;&lt;P&gt;    LINE_COUNT             = 65&lt;/P&gt;&lt;P&gt;    LINE_SIZE              = 255&lt;/P&gt;&lt;P&gt;    LIST_NAME              = 'TEST'&lt;/P&gt;&lt;P&gt;    LIST_TEXT              = 'TEST'&lt;/P&gt;&lt;P&gt;    MODE                   = ' '&lt;/P&gt;&lt;P&gt;    NEW_LIST_ID            = 'X'&lt;/P&gt;&lt;P&gt;    NO_DIALOG              = 'X'&lt;/P&gt;&lt;P&gt;    RECEIVER               = 'SAP*'&lt;/P&gt;&lt;P&gt;    RELEASE                = 'X'&lt;/P&gt;&lt;P&gt;    SAP_COVER_PAGE         = 'X'&lt;/P&gt;&lt;P&gt;    USER                   = SY-UNAME&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    OUT_PARAMETERS         = PARAMS&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    ARCHIVE_INFO_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;    INVALID_PRINT_PARAMS   = 2&lt;/P&gt;&lt;P&gt;    INVALID_ARCHIVE_PARAMS = 3&lt;/P&gt;&lt;P&gt;    OTHERS                 = 4.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE: / SY-SUBRC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works, i have only changed the destination to the short name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 14:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883390#M370781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883391#M370782</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;1.can u please check the LOCL is configured or not.&lt;/P&gt;&lt;P&gt;2. if yes... goto SPAD..chek all the parameters have given correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 14:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883391#M370782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T14:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883392#M370783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when I run the program in foreground and also in the background via : Program - &amp;gt; Execute - &amp;gt; background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my program is scheduled to run in background by some other person.&lt;/P&gt;&lt;P&gt;And I think he has not maintained "LOCL" in  System -&amp;gt; User Profile -&amp;gt; Own data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when the program runs at the scheduled time, its throwing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know if htere is any method using which I force the printer to "LOCL" irrespective of what is maintained in the enduser's user profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883392#M370783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T08:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883393#M370784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this code to get the user defined printer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single spld into usr01-spld from usr01 where bname eq sy-uname .&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0 .&lt;/P&gt;&lt;P&gt;    move: usr01-spld to loc_dest .&lt;/P&gt;&lt;P&gt;  endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now pass loc_dest to destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 08:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883393#M370784</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-22T08:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Printer not located.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883394#M370785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But my problem is the entry is not in usr01thus have to force LOCL there....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printer-not-located/m-p/1883394#M370785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:44:21Z</dc:date>
    </item>
  </channel>
</rss>

