PO23 Must inquire error message

 10 Replies
 0 Subscribed to this topic
 1 Subscribed to this forum
Sort:
Author
Messages
golfer24
Advanced Member
Posts: 46
Advanced Member
    I have a Processflow that is triggered based on a user action. When this particular flow is triggered, I get the following error when it is trying to do an add via an AGS into PO23.

    Here is the error message: AGS error: Must Inquire before using this function code when an ags call is triggered from PO23. How can I fix it?

    Sam Simpson
    Veteran Member
    Posts: 239
    Veteran Member
      You have to include the AGS call here.
      golfer24
      Advanced Member
      Posts: 46
      Advanced Member
        Here is the ags call for the add right now.

        _PDL=&_TKN=PO23.1&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Add&PIF-PROCURE-GROUP=SCS&PIF-COMPANY=&FIL-SOURCE-DOC=&FIL-ORIGIN-CD=OE&SORT-OPTION=V&PCR-VENDOR=&PCR-BUYER-CODE=&PCR-PO-CODE=&LINE-FCr0=S&PIF-COST-OPTIONr0=&PCR-DFLT-DL-DATE=&OVERRIDE-COSTr0=&PIF-ITEMr0=&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
        Ragu Raghavan
        Veteran Member
        Posts: 476
        Veteran Member
          Try setting the field SAVE-FC to A.

          Extract from PO23PD

          **** must inquire before using this function code
          170200 IF (PO23F1-FC = "A" OR "C" OR "R")
          172604 AND (PO23F1-SAVE-FC = SPACES)
          170200 AND (PO23F1-FROM-SS-FLAG = 0)
          170200 MOVE 206 TO CRT-ERROR-NBR
          170200 MOVE "PO23" TO CRT-ERROR-CAT
          170200 GO TO 150-END.
          Sam Simpson
          Veteran Member
          Posts: 239
          Veteran Member
            EVT should be ADD when adding a record or CHG when changing a record. You will need 2 AGS nodes for both fucntions.
            golfer24
            Advanced Member
            Posts: 46
            Advanced Member
              Ok, let me try the ADD changes.
              golfer24
              Advanced Member
              Posts: 46
              Advanced Member
                I'm still getting the same error after those two modifications.
                Ragu Raghavan
                Veteran Member
                Posts: 476
                Veteran Member
                  Try setting the field SAVE-SOURCE-DOC to the same value as FIL-SOURCE-DOC

                  72604 IF (PO23F1-FIL-SOURCE-DOC NOT = PO23F1-SAVE-SOURCE-DOC)
                  172604 INITIALIZE PO23F1-SAVE-FC.
                  golfer24
                  Advanced Member
                  Posts: 46
                  Advanced Member
                    Ok, here is the ags call for ADD after the modifications:

                    Transaction Call String: _PDL=LSFPROD&_TKN=PO23.1&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=A&PIF-PROCURE-GROUP=SCS&PIF-COMPANY=0010&FIL-SOURCE-DOC=00112614&SAVE-SOURCE-DOC=00112614&FIL-ORIGIN-CD=OE&PIF-SOURCE-DOC-N=00112614&PIF-SOURCE_DOC_A=00112614&PIF-OPER-COMPANY=0010&PIF-LINE-NBR=&PCR-PURCH-FR-LOC=&PO-NUMBER=&PO-RELEASE=&SORT-OPTION=V&PCR-VENDOR= 103638&PCR-BUYER-CODE=XS&PCR-PO-CODE=&LINE-FCr0=S&PIF-COST-OPTIONr0=3&PCR-DFLT-DL-DATE=20110420&OVERRIDE-COSTr0=170.48&PIF-ITEMr0=VCQFX580-PCIE-PB&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
                    Error while Executing activity : Type=AGS, ActivityName=PO23ADD, ActivityId=AGS305, WorkUnit=81260 Date:04/21/2011 Time:16:18:39
                    AGS error: Must Inquire before using this function code
                    Ragu Raghavan
                    Veteran Member
                    Posts: 476
                    Veteran Member
                      From Design Studio, I could get past this error by setting the field FROM-SS-FLAG to 1. Don't know what that field means. Also that gave some more errors. Since I do not know enough about PO23......

                      /servlet/Router/Transaction/Erp?_PDL=LIVE&_TKN=PO23.1&_LFN=ALL&_RTN=DATA&_TDS=IGNORE&_OUT=XML&_EVT=ADD&FC=A&PIF-PROCURE-GROUP=1&PIF-COMPANY=1&FIL-SOURCE-DOC=723&FIL-ORIGIN-CD=RQ&PCR-BUYER-CODE=1&FIL-FRM-PRI=&PCR-PO-CODE=CAP&LINE-FCr0=S&PCR-DFLT-DL-DATE=20110421&FIL-PURCH-MINCL=&SAVE-FC=A&SAVE-SOURCE-DOC=723&PIF-ITEMr0=343749&PLI-QUANTITYr0=1&PLI-ENT-BUY-UOMr0=EA&OVERRIDE-COSTr0=142.95&PIF-LOCATIONr0=1&FROM-SS-FLAG=1&PCR-VENDOR=156&PIF-COMPANY-1r0=1&_EOT=TRUE
                      Lynne
                      Veteran Member
                      Posts: 122
                      Veteran Member
                        This post is over a year old, but I am trying to do the same thing with no luck. Did you ever get this add on PO23 to work?