|
Back to |
If your environment includes Winshuttle CENTRAL with Winshuttle SERVER, you can publish a TRANSACTION script as a web service. TRANSACTION scripts that are based on DIRECT templates can also be published as web services. The script, or web service, can then be consumed by any forms designer application to create forms that are based on TRANSACTION script fields. Examples of forms designer programs include InfoPath and Adobe LiveCycle (and Adobe Acrobat Pro to enter data into the finished form). End users can then easily fill out these forms and run them to upload data to SAP.
To create a script for web publishing
Because no data is attached, the review process is set to "No data review". However, you must still select a reviewer for the TRANSACTION script. You will receive a task notification email to complete this task.
When you publish your web service, you can specify how the data submitted through the web service is posted. Posting can be delegated to the user who submits the data via the form or posting can be conducted through one of the system post accounts that are available for the selected SAP system.
If you are not a system post designer or no system accounts exist for the selected SAP system, the system post option is not available. For more information on system posts, see the CENTRAL Help.
The web service, or WSDL, URL is generated. Use this URL to create your form in a form designer program.
Before you submit a file for approval or while reviewing a file, or after the file is approved but before it is published, you can test the TRANSACTION script. Use the in-built form and, based on the status of the file, run the form on a either a non-production system or a production system. Note that your test data is uploaded to SAP.
To test a script using the in-built form
Scripts that contain IF conditions can be used in web services. Custom field names are required and fields can be compared. For more information, see Setting conditions—IF statements.
If the Winshuttle Function Module is installed on your SAP system, you can add F4 lookup capability to your web services. Search options include an exact match, a pattern match using the star symbol (*), all values using either the star symbol (*) or a blank field.
If the TRANSACTION script has Validate enabled, validate will be available in the data fields section in the forms designer application. You can drag it to the form to make it appear in the form as a check box. When you use the Submit button on the form with the Validate option checked, data is not posted into SAP, but the form data is validated. To submit the data to SAP, clear the Validate check box.
We do not recommend that you use for Read list BAPI or function modules for publishing a web service.
During the web service call, date and decimals formats are converted to the format defined in SAP. Conversion applies to all t-codes in all locales. However, fields marked in the TRANSACTION Mapper for "convert to string" are not converted.
In scripts for web services, it is particularly important to use the skip field indicator "\" because empty fields are uploaded to SAP as blanks and are not skipped.
When creating forms, you may want to add text boxes in place of the SAP data types. You specify the conversion to strings for each field in the Advanced Mapper pane. Convert to string is available in all data sources, but can apply only to rows that are mapped for upload.
When working with legacy scripts or for other reasons, such as after converting data types to strings, you may want to display SAP data types. You do this through the Synchronize function in the Mapper. You can synchronize selected fields or Synchronize All fields.
Run a form in InfoPath or LiveCycle. To run a form, the following must be true:
You can post forms data in two ways:
-or-
Also in this section Submitting a file for approval Approving, rejecting, and reassigning .TXR files Approving, rejecting, and reassigning data files |