<?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>Question Re: Wrong SAP user associated to spool request SP01 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/wrong-sap-user-associated-to-spool-request-sp01/qaa-p/14123540#M4916463</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Late on this.&lt;/P&gt;&lt;P&gt;I used, JOP OPEN....SUBMIT &amp;lt;program&amp;gt; USER &amp;lt;user&amp;gt; JOB CLOSE and EXPORT TO SHARED MEMORY to send complex data to the job.&lt;/P&gt;&lt;P&gt;With this, everything was done with the relevant user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 06:51:01 GMT</pubDate>
    <dc:creator>alexandreourth</dc:creator>
    <dc:date>2025-06-10T06:51:01Z</dc:date>
    <item>
      <title>Wrong SAP user associated to spool request SP01</title>
      <link>https://community.sap.com/t5/technology-q-a/wrong-sap-user-associated-to-spool-request-sp01/qaq-p/14095348</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;We have a web application which communicates with SAP using Rest ABAP API. The user set for communications is a global web user. At some point, when creating object in SAP, like deliveries, sales order, we have to set NOT the web user but another sap user (&lt;STRONG&gt;which can vary&lt;/STRONG&gt;) which i get from a custom function. What i do simply is before calling my function module, i check if the interface of the FM contains a parameter like UNAME i fill it, but sometimes it doesn't exists so i tried changing the SY-UNAME with the OTHER_USER_SAP that i have.&lt;/P&gt;&lt;P&gt;It was working until i changed some functions modules (&lt;STRONG&gt;WS_DELIVERY_UPDATE&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;WS_LM_TRANSFER_ORDER_CREATE&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;WS_LM_GOODS_MOVEMENT&lt;/STRONG&gt;) to update delivery, make the goods issue and do the transfert order by one function module (&lt;STRONG&gt;L_TO_CREATE_DN&lt;/STRONG&gt;) which does everything listed above plus it was handling splitting batches on the delivery so it was a good finding.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;When the good issue is done on the delivery, a custom output message is triggered on the delivery, to print a sapscript using a custom program. Even though i have setted the sy-uname = OTHER_USER_SAP and passed the parameter&amp;nbsp;i_bname = OTHER_USER_SAP to FM L_TO_CREATE_DN, all my objects are created in association to the OTHER_USER_SAP &lt;STRONG&gt;except&amp;nbsp;&lt;/STRONG&gt;the spool in SP01 which is associated to th web user (TSP01-RQOWNER = WEB_USER_SAP) and i don't understand why...&lt;/P&gt;&lt;P&gt;NAST entries contain only my OTHER_USER_SAP reference so i don't understand why the spool is associated to the WEB_SAP_USER.&lt;/P&gt;&lt;P&gt;I tried the ST12 to check where the insert is done, but it seems it's a kernel function trigger while handling the sapscript and i don't have the hand on the RQOWNER field...&lt;/P&gt;&lt;P&gt;Any idea on how to do this please?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 11:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wrong-sap-user-associated-to-spool-request-sp01/qaq-p/14095348</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2025-05-07T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong SAP user associated to spool request SP01</title>
      <link>https://community.sap.com/t5/technology-q-a/wrong-sap-user-associated-to-spool-request-sp01/qaa-p/14123540#M4916463</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Late on this.&lt;/P&gt;&lt;P&gt;I used, JOP OPEN....SUBMIT &amp;lt;program&amp;gt; USER &amp;lt;user&amp;gt; JOB CLOSE and EXPORT TO SHARED MEMORY to send complex data to the job.&lt;/P&gt;&lt;P&gt;With this, everything was done with the relevant user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 06:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wrong-sap-user-associated-to-spool-request-sp01/qaa-p/14123540#M4916463</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2025-06-10T06:51:01Z</dc:date>
    </item>
  </channel>
</rss>

