<?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: Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202671#M1203618</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;&amp;nbsp; Am also facing same issue . While approving or rejecting time i have to pass message to&lt;/P&gt;&lt;P&gt;ptarq_notice tabble. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ypu resolved this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 18:22:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-23T18:22:51Z</dc:date>
    <item>
      <title>Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202667#M1203614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a screen to approve or reject multiple leave requests using function module PT_ARQ_REQUEST_EXECUTE as the SAP standard program RPTARQAPP does, and this seems to be working fine.  However, I also need to include a note from the approver which is a bit of long text that ends up in table PTREQ_NOTICE.  This is something that RPTARQAPP does not do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find any way of passing this text into PT_ARQ_REQUEST_EXECUTE.  The only way I can find of doing this is to call FM PT_ARQ_REQUEST_PREPARE first (command = PREPARE_APPROVE), update the CURR_NOTICE field it sends back in structure EX_REQUEST, then pass the changed EX_REQUEST structure into FM PT_ARQ_REQUEST_CHECK (command = CHECK_APPROVE)  and then call PT_ARQ_REQUEST_EXECUTE (command = EXECUTE_APPROVE).  This works fine for a single leave request, but when I try to use this process to approve two leave requests the CHECK FM gives me an error on the second record with a message referring to a time conflict with the first message even though the dates on each are not the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched and there are a few posts about these FMs, but I still can't fix this problem.  Has anyone ever dealt with this situation before and found a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 12:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202667#M1203614</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-02-19T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202668#M1203615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've replaced the call to FM PT_ARQ_REQUEST_CHECK with the following and it seems to work pretty well.  Though of course it will need a lot more testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;STATICS:
    request TYPE REF TO if_pt_req_request.

  CALL METHOD ca_pt_req_header=&amp;gt;agent-&amp;gt;get_request
      EXPORTING
        im_request_id     = p_im_request_id
      IMPORTING
        ex_request        = request
      EXCEPTIONS
        request_not_found = 1.

  CALL METHOD request-&amp;gt;set_notice
      EXPORTING
        IM_NOTICE               = p_approver_text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 17:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202668#M1203615</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-02-20T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202669#M1203616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can u explain little more on this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202669#M1203616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202670#M1203617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how did u solve that issue can u share the solution me too.,.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Thirukumaran. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 12:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202670#M1203617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202671#M1203618</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;&amp;nbsp; Am also facing same issue . While approving or rejecting time i have to pass message to&lt;/P&gt;&lt;P&gt;ptarq_notice tabble. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ypu resolved this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-pt-arq-request-execute-to-approve-leave-requests/m-p/5202671#M1203618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-23T18:22:51Z</dc:date>
    </item>
  </channel>
</rss>

