<?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: Hardcoding User while executing HR_INFOTYPE_OPERATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010482#M1496532</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;you can create a RFC destination which will have predefined user. You also need to define a RFC enabled FM. This FM will be called from your report instead of current update logic with your new RFC destination. It will perform same function calls as you have right now directly in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jun 2010 01:15:26 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2010-06-16T01:15:26Z</dc:date>
    <item>
      <title>Hardcoding User while executing HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010481#M1496531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that performs various functions. At the end of this report, I am updating IT 2001 using HR_INFOTYPE_OPERATION as below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        NUMBER = PERNR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I am populating P2001 with appropriate data &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;          INFTY                  = '2001'&lt;/P&gt;&lt;P&gt;          NUMBER                 = PERNR1&lt;/P&gt;&lt;P&gt;          SUBTYPE                = &lt;STRONG&gt;suitable value given&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          VALIDITYEND            = DATE1&lt;/P&gt;&lt;P&gt;          VALIDITYBEGIN          = DATE1&lt;/P&gt;&lt;P&gt;          RECORD                 = P2001&lt;/P&gt;&lt;P&gt;          OPERATION              = 'INS'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         RETURN                 = RETURN1.&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        NUMBER        = PERNR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working well. My requirement is that this last part of the report needs to be executed by a specific User. Is there a way I can hardcode the USERID while calling this function module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have tried is putting this code within a separate program - ztest and calling that with a job as follows -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZTEST&lt;/P&gt;&lt;P&gt;         VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;             NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;             USER    i_user&lt;/P&gt;&lt;P&gt;         AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I could hardcode i_user. But somehow this method doesnt work and IT 2001 dint get updated. The Job ran successfully though. Any ideas how to proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Thks in advance! Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010481#M1496531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-15T21:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hardcoding User while executing HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010482#M1496532</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;you can create a RFC destination which will have predefined user. You also need to define a RFC enabled FM. This FM will be called from your report instead of current update logic with your new RFC destination. It will perform same function calls as you have right now directly in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 01:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010482#M1496532</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-06-16T01:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hardcoding User while executing HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010483#M1496533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another way before trying out your method..&lt;/P&gt;&lt;P&gt;i have a custom report that I am calling using a batch job. Here I can specify the user who should be running the job. this works &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt; I am going to give your method a try and see which is better in terms of performance..&lt;/P&gt;&lt;P&gt;Thanks a lot for your input&lt;/P&gt;&lt;P&gt;Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 18:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcoding-user-while-executing-hr-infotype-operation/m-p/7010483#M1496533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T18:18:21Z</dc:date>
    </item>
  </channel>
</rss>

