Automate

 View Only
  • 1.  Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Posted 08-27-2019 16:16

    Greetings;


    We're using Winshuttle Composer Version 11.2.1, and I have questions as to how I can reuse existing XPath Form Field Mapping Parameter  Form Field Names in the same Form View Group after I re-import a Transaction Script for a Web Service call.

    For example, if I have a Transaction Script / Web Service, let's say Pricing.Txr, that expects three XPath field values to be passed when calling the web service:

    Customer_No_1
    Material_No_1
    Price_1

    ... in addition to the SAPUsername and SAPPassword values for authenticating my call to the web service, how can I keep and use the same three XPath field value names in my Composer Solution for the same Form View Group without Composer issuing an error that "Customer_No_1" is already use? What I have been doing to get around this when I need to reset or change the name on a Field Mapping Parameter is:

    1.) Restore, set the Deployment Variant and Re-Deploy the original Composer Solution without the Transaction Script Web Service, Pricing.Txr.

    2.) Re-import the Transaction Script, Pricing.Txr into my Winshuttle Composer Solution and re-deploy the Solution and Web service using Composer.

    3.) Reset my Field Mapping Parameter values from scratch for the Form Group Name to use Customer_No_1, Material_No_1 and Price_1.

    4.) Re-add from scratch my Form View Group that uses the XPath Field Mapping Parameter values.

    Any guidance or suggestions on how I can simplify this process would be appreciated.

    Thank you in advance for your time and help.

    ------------------------------
    Bill Wonneberger
    bill.wonneberger@versummaterials.com
    ------------------------------


  • 2.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Employee
    Posted 08-27-2019 19:01
    Hi Bill

    For a re-import, i.e. update, it should automatically re-use the fields.  In v12.x, it automatically checks the use existing input and output fields on the mapping step.

    If you are adding scripts, or if the update script is generating new fields, check the use existing input fields
    For scripts that do different activities but you want to re-use fields, make sure you use the same group name when you add the script, and then check use existing input/output fields.

    The only caveat to this - if you are using a repeating web service.  That script needs to have all of the fields in the same repeating group, so it cannot be scattered outside of the repeating group.

    Hope that helps!
    Sigrid


    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------



  • 3.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Posted 08-28-2019 21:27

    Hi, SIgrid;

    Thank you very, very much for getting back to me with your explanations and descriptions on how existing field mappings can be maintained when re-importing a transaction script.

    Your time and help are very much appreciated.



    ------------------------------
    Bill Wonneberger bill.wonneberger@versummaterials.com
    ------------------------------



  • 4.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Employee
    Posted 08-28-2019 21:31
    My pleasure, Bill!

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------



  • 5.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Posted 09-04-2019 17:03

    Hi, SIgrid:

    I'd like to ask a follow-up question with a slight variation.

    Lets suppose my Transaction Script has been updated to include one new parameter, but all of the other parameters for the Transaction are the same
    (e.g., my new version of CreateCustomer.Txr has all of the same fields; we just added a new field in the SAP Transaction for "Warranty_Period", an input field or transaction parameter. )

    Would your previous set of instructions on Updating the Transaction Script with Use Existing Input Fields and Use Existing Output Fields checked or enabled still allow the Web Service call to work as before, provided I provided Form Field Name mapping for the new "Warranty_Period" Web Service Field?   Are there any other settings or items I need to review and modify as part of performing a Transaction Script Update in this manner?

    Again, many thanks for your time, help and patience.



    ------------------------------
    Bill Wonneberger
    bill.wonneberger@versummaterials.com
    ------------------------------



  • 6.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Employee
    Posted 09-04-2019 17:35
    Yes, Bill - you got it.  Right click on the script, click Update.  It should default to use existing input/output fields, and if not you can check it.  Then you should only see an asterisk next to the new fields you added to the script.  

    Best of luck!
    Sigrid

    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------



  • 7.  RE: Keep and Reuse Form Field Mapping Parameter Names When Updating an Existing Transaction Script and Web Service Call

    Posted 09-04-2019 17:46

    Hi, Sigrid;

    Thank you!



    ------------------------------
    Bill Wonneberger
    bill.wonneberger@versummaterials.com
    ------------------------------