<?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 SAP spool request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571519#M257977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed one development regarding send mail notification. when ever PO created alert mail will trigger to some users mail id . I should send all the PO item details as attachment. It was working fine but some cases is not working correctly. In table i maintained more than one user different material types. If material type satisfies then mail should trigger other wise no need. when i debugging mode it was working fine but it is not working correctly in direct execute. both user having different material type but both getting same details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 08:47:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T08:47:20Z</dc:date>
    <item>
      <title>SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571519#M257977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed one development regarding send mail notification. when ever PO created alert mail will trigger to some users mail id . I should send all the PO item details as attachment. It was working fine but some cases is not working correctly. In table i maintained more than one user different material types. If material type satisfies then mail should trigger other wise no need. when i debugging mode it was working fine but it is not working correctly in direct execute. both user having different material type but both getting same details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571519#M257977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571520#M257978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the follwoing code,it may help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM write_to_spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : l_f_list_name LIKE pri_params-plist,&lt;/P&gt;&lt;P&gt;         l_f_destination LIKE pri_params-pdest,&lt;/P&gt;&lt;P&gt;         l_f_spld LIKE usr01-spld,&lt;/P&gt;&lt;P&gt;         l_f_layout LIKE pri_params-paart,&lt;/P&gt;&lt;P&gt;         l_f_line_count LIKE pri_params-linct,&lt;/P&gt;&lt;P&gt;         l_f_line_size LIKE pri_params-linsz,&lt;/P&gt;&lt;P&gt;         l_f_out_parameters LIKE pri_params,&lt;/P&gt;&lt;P&gt;         l_f_valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_f_line_size = 255.&lt;/P&gt;&lt;P&gt;  l_f_line_count = 65.&lt;/P&gt;&lt;P&gt;  l_f_layout = 'X_65_255'.&lt;/P&gt;&lt;P&gt;  l_f_list_name = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to get defult spool device for the user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE spld INTO l_f_spld FROM usr01 WHERE bname = sy-uname.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    MOVE l_f_spld TO l_f_destination.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_ID             = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_INFO           = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_MODE           = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_TEXT           = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        AR_OBJECT              = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_REPORT         = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        AUTHORITY              = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        COPIES                 = C_NUM3_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        COVER_PAGE             = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DATA_SET               = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DEPARTMENT             = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           destination            = l_f_destination&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXPIRATION             = C_NUM1_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           immediately            = 'X'&lt;/P&gt;&lt;UL&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                 = l_f_layout&lt;/P&gt;&lt;P&gt;           line_count             = l_f_line_count&lt;/P&gt;&lt;P&gt;           line_size              = l_f_line_size&lt;/P&gt;&lt;P&gt;           list_name              = l_f_list_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LIST_TEXT              = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MODE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NEW_LIST_ID            = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NO_DIALOG              = C_FALSE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        RECEIVER               = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        RELEASE                = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        REPORT                 = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        SAP_COVER_PAGE         = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        HOST_COVER_PAGE        = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PRIORITY               = C_NUM1_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        SAP_OBJECT             = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TYPE                   = C_CHAR_UNKNOWN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        USER                   = SY-UNAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OUT_ARCHIVE_PARAMETERS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           out_parameters         = l_f_out_parameters&lt;/P&gt;&lt;P&gt;           valid                  = l_f_valid&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 &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;&lt;/P&gt;&lt;P&gt;  IF l_f_valid NE space.&lt;/P&gt;&lt;P&gt;    NEW-PAGE PRINT ON PARAMETERS l_f_out_parameters.&lt;/P&gt;&lt;P&gt;    WRITE : /5 'Material No.',&lt;/P&gt;&lt;P&gt;             25 'Message Type',&lt;/P&gt;&lt;P&gt;             40 'Message Issued'.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;    LOOP AT g_t_message_table WHERE type = 'E'.&lt;/P&gt;&lt;P&gt;      WRITE : / g_t_message_table-matnr UNDER 'Material No.',&lt;/P&gt;&lt;P&gt;                g_t_message_table-type UNDER 'Message Type',&lt;/P&gt;&lt;P&gt;                g_t_message_table-message UNDER 'Message Issued'.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    NEW-PAGE PRINT OFF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " WRITE_TO_SPOOL&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, 18 Sep 2006 08:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571520#M257978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571521#M257979</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;Mail sending Process will take some time. I don't know how are you sending the mail. What ever may be the method , You need to specity "commit work and wait".  once you say send mail it will be in continuous loop for  while until it get's network resouces. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check few examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Bapi_transaction_commit  parameter 'Wait', &lt;/P&gt;&lt;P&gt;2. SO_NEW_DOCUMENT_SEND_API1 parameter 'Commit'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaffer VAli shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571521#M257979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571522#M257980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    when you debug implicit commit work may trigger&lt;/P&gt;&lt;P&gt;    thats why your code was working fine in debug mode&lt;/P&gt;&lt;P&gt;    but in foreground use explicit commit work.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    use commit work and wait.&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;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571522#M257980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571523#M257981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is solved by me. problem in spool titleand spool Ids&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571523#M257981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T06:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAP spool request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571524#M257982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is solved by me. problem in spool titleand spool Ids&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 04:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-spool-request/m-p/1571524#M257982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T04:28:29Z</dc:date>
    </item>
  </channel>
</rss>

