dataTransfer

When using the dataTransfer request type, refer the following sample code and element structure.

Element Structure

  1. The login section is for authentication.

    • The username field is the username of a valid, active buyer or supplier user in SAP Fieldglass.

    • The password is the license key associated with the username. This field isn't required when using certificate-based authentication.

  2. The connector section is the name of the SAP Fieldglass connector configured for data upload or download.

  3. The systemId section is supported for clients who have multiple instances in SAP Fieldglass and multiple instances in the client system, but only one SAP Fieldglass account. Each client system may have ‘n‘ cost centers, where each cost center in SAP Fieldglass is identified and related to its respective client system based on the system ID. This allows clients to download a subset of invoices by filtering on the system ID. This is currently supported for cXML Invoice Download only.

    • The system ID must already be populated on all admin objects, such as sites, cost centers, business units, and so forth. If the system ID doesn't exist on the admin objects, then it must be populated via data upload.

    • The system ID can be defined as a connector argument or as a separate element in the systemId field (<systemId>?</systemId>).

    • If sending the system ID as a connector argument, then systemId field can be removed.

    • If sending the system ID as separate element, then connector argument section can be removed.

    • If systemId element is present, even if it's empty, and any parameter is given, then the parameter is ignored.

    • If systemId element is blank, it's assumed the client wants to download all invoices and the system returns all invoices.

  4. The parameters in connectorArguments section allows passing parameter values for data upload or download. Consult the respective connector document for connector names and parameters. To view connector documentation, go to SAP Fieldglass Connector Library.

  5. The clientReferenceId section is a unique ID provided by the client to retrieve the transaction response.

  6. The upload section defines the request format for an upload request, such as data format, encoding, and file formats, including cXML, XML, CDATA, and textdata.

  7. The download section defines the request format of a download request, such as data format, data encoding, and data marker.

  8. The dataMarker section defines the markers that limit the number of records to download. Currently only supported for cXML Invoice Connector. Support for other connectors may be available in the future.