PO29 Need Process Level

 3 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Kate Liamero
Veteran Member
Posts: 70
Veteran Member
    PO Header Process level very important to us because it determines from which bank account the po invoices will be paid. This is a fairly new process for us.  Thanks god we have such a crack AP team and they noticed the account coding on the invoice didn't gel with the process level. This invoice would have been cut from the wromng client account.
    When procurement uses the PO29 to copy a purchase order the process level field from puchorder is not on the po 29 so they don't even think to look at the new po and change it.
    We need the process level from the "Fom" PO to display and an input field to update the new po on the PO29 just like all the other fields.  I'm clueless how to get the fields on the form. 
    Thanks Kate
    Robert Spurr
    Veteran Member
    Posts: 130
    Veteran Member
      Process Level does not appear to even be a hidden value on the form, so creating an additional field most likely will not work. One option is to update the PO after the add or during the release. Depends on what works for you. You could do a DME call back the original PO to get the process level and then an AGS to update the new PO. This sounds like it should work but I have not tested this specific scenario.
      Kate Liamero
      Veteran Member
      Posts: 70
      Veteran Member
        looks like our PO29 is behaving erratically. it should put the correct process level on the copied PO based on the ship location as long as you have the process level defined in the IC02 which we do. Sometimes it changes the process level to the correct one and sometimes it leaves the old process level. We've changed courses. What we would like to do is have a message popup in PO20 when a user tries to release a po where the PO header ship to is different from the PO Header Process Level. Not a hard stop just a popup box saying Hey these are different are you sure this is what you want. I don't know how to do this one either. We already have the followint script on the PO20
        to check that if the accounting units fall between a range then an asset template is required but I believe this one is a hard stop. I just want an alert box not a stop.
        function FORM_OnBeforeTransaction(fc)
        {
        if (fc != "A" && fc != "C")
        return true;

        var Error="N";

        for (i=0; i <= 5; i++)
        {
        var Account=lawForm.getFormValue("text20",i);

        if (Account < 16000 || Account > 16999)
        {
        return true;
        }

        if (Account >= 16000 || Account <= 16999)
        {
        var Template=lawForm.getFormValue("text27",i);

        if (Template == "")
        {
        /* lawForm.setActiveTab("TF0-1"); */
        lawForm.positionInFieldById("text27",i);
        lawForm.setMessage("Asset Template is Required for Account");
        alert("Asset Template is Required for Account");
        var Error="Y";
        return false;
        }
        if (Error == "N")
        return true;
        }
        if (Error == "N")
        return true;
        }
        if (Error == "N")
        return true;
        }
        Robert Spurr
        Veteran Member
        Posts: 130
        Veteran Member
          OK, if I'm following...you just want to notify the buyer when a process level is (Wrong or missing) but you want the PO to still release? Correct? Do you use PO100, PO23 or PO29 to release a PO because if this is going to be a design studio script you will need to account for those forms also? What I would do is check/validate and if it isn't correct automatically change the value behind the scenes. One issue is that an older PO that had this issue might cause you so grief when attempting to re-release. If you still just want the alert you could try something like what is below. This example is triggered by a button click but could also be trigger by an action.

          p.show(175,205,300,50,document.body) - This is the positioning of the message so the numbers will be different for you.

          Play around with it and let me know.


          function BUTTON_OnClick(id, row)
          {
          //Create pop ups
          var p=window.createPopup();
          var pbody=p.document.body;
          pbody.style.backgroundColor="lightgreen";
          pbody.style.border="solid black 3px";

          if (id == "push1")
          {
          pbody.innerHTML="This is the published list selling price of the item if there is one.";
          p.show(175,205,300,50,document.body);
          }

          if (id == "push2")
          {
          pbody.innerHTML="This is the selling price of the item through the distributor.";
          p.show(175,230,300,50,document.body);
          }

          if (id == "push3")
          {
          pbody.innerHTML="This is the contractual cost of the item if it is different when buying the item through a distributor.";
          p.show(175,253,300,70,document.body);
          }

          if (id == "push4")
          {
          pbody.innerHTML="This is the contractual cost of the item from the original manufacturer.";
          p.show(510,90,300,50,document.body);
          }
          return true;
          }