4 Replies Latest reply: Aug 7, 2014 12:11 PM by 1614782 RSS

    AWE approval from application package

    963379

      i am trying to create custom web services  awe approval using EOAW_CORE:ApprovalManager package.

      in application package called the delivered doapprove() method . i wrote below code in my application package.

       

      import PS_PT:Integration:IRequestHandler;

      import EOAW_CORE:ApprovalManager;

      class APPROVAL implements PS_PT:Integration:IRequestHandler
         method OnRequest(&MSG As Message) Returns Message;
         method OnError(&MSG As Message) Returns string;
      end-class;

      method OnRequest

         &hdr_record = CreateRecord(Record.EX_ER_HDR_AW_VW);

         &hdr_record.SHEET_ID.Value = "0000000488";

         &hdr_record.EMPLID.Value = "KU0010";

      /* passed harcode value for testing */

      &apprManager = create EOAW_CORE:ApprovalManager("ERApproval", &hdr_record, "BS824381");

         If (&apprManager.hasAppInst) Then

            &apprManager.DoApprove(&hdr_record);

           

               &rslevel1(1).EX_APPR_MO_RSP.DESCR100.Value = "approved";

         Else

            REM ** return error message;

            &rslevel1(1).EX_APPR_MO_RSP.DESCR100.Value = "error else";

         End-If;

      Return &mResp;

      end-method;

       

      after testing my web services in soapui i am getting approved message but still that transaction is pending for approval.

      Kindly suggest me any solution.

      Thanks in advance.

        • 1. Re: AWE approval from application package
          1000452

          Do you mean that your transaction is still pending in your XREF record or in your header record?

           

          In your header record you should do it yourseld in the Application Package that is attached to the transaction.

          • 2. Re: AWE approval from application package
            1614782

            Hi,

            Thnaks for reply.

            yes i checked the XREF Table in that header level status is "suspended" and line level status is "pending". when it is going success atleast XREF record change but for both XREF and header record pending.

            • 3. Re: AWE approval from application package
              1000452

              when it is going success atleast XREF record change but for both XREF and header record pending.


              What do you mean? Is your XREF record correctly changed or not? As far as your header record, this should be done in your Application Package that you attach to this transaction.

              • 4. Re: AWE approval from application package
                1614782

                Hi Thnaks for reply.

                i was trying approval for Expense so in that neither XREF nor Header record status is changing but the same code i used for absence approval and it is working fine it is changing XREF reference table.

                the difference between expense and absence approval is that expense having two record header and line  while absence having only header record.

                can you please tell me do i write separate code for line level record or same code will take care (expense XREF status not changing).

                Thanks for your help i will write code in application package for header record update.