Automate

 View Only
  • 1.  Form field If conditions

    Posted 26 days ago

    Hi all,

    I have a BAPI Studio script being used within a form. When I try to add an if condition around some of the fields and use Plant as the identifying form field I am getting the attached error "Error: form field values are invalid. Please correct the field name". Plant is a valid form field so I am confused why this is occurring. Does it need to be the name of the field under "Promote to Solution Field"?

    The documentation is not helpful. Hoping someone from Precisely knows.

    Thanks,



    ------------------------------
    Shelby Murrell
    SAP Functional Lead
    MONSTER ENERGY
    [USA]
    ------------------------------


  • 2.  RE: Form field If conditions

    Employee
    Posted 23 days ago

    Hi Shelby

    Happy New Year!

    I think you cannot use field names you already have, like Plant.  For example, you can use something like IfPlant or FormPlant.  Please note this field will become another field in the script if you are testing in Studio, so if Plant is 1000, set FormPlant/IfPlant to 1000.

    When you import the script in an Evolve form, you can map the IF field to the original field on the form - aka Plant - so that you don't have to worry about rules or defaults to set your IF field.

    Hope that helps!

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: Form field If conditions

    Posted 23 days ago

    Hi Sigrid,

    Happy new year! Thank you for the explanation. That makes sense and I tested with a couple other fields in the script and saw the same behavior. Using something like "IfPlant" should work for this.

    Thanks!



    ------------------------------
    Shelby Murrell
    SAP Functional Lead
    MONSTER ENERGY
    [USA]
    ------------------------------



  • 4.  RE: Form field If conditions

    Employee
    Posted 23 days ago

    Excellent, Shelby!  Hope it will work for you!

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------