Show TOC

Object documentationPending Transaction batch feed application

 

This related application facilitates external entry of Pending Transactions into the database. It is a Windows command line utility that takes a text file as input and creates the required database entries using the Pending Transaction (PT) object. The application supports both XML format text files and comma separated files. The response XML from the PT object is parsed for error messages and these are displayed to the console window. Processing stops when the first error is detected (for more details, see the command line options below).

Command line format

PtBatch [/X] [/U] [/I] <filename>

  • Square brackets [ ] surround optional parameters

  • /X — Indicates that the contents of file <filename> are to be interpreted as XML (the default if the filename ends with '.xml' )

  • /U — Indicates that this is an 'update' request rather than a request to insert new pending transactions. If /U is not specified and any of the supplied transaction records already exist at the XPS server, the process is aborted.

  • /I — Indicates that processing of the input file should continue even if an error is returned by the PT object. Errors within the input file itself cannot be ignored.

  • <filename> — The path name of the text file containing the pending transactions to be inserted. If the file has a .xml extension or the /X option is used, the contents are expected to be in XML format. Otherwise, the contents are expected to be in comma separated field format, as described below. In either case, the file may contain multiple pending transactions.

XML File Format

XML input files are expected to follow the format of the Pending Transaction Request XML Schema, as defined in documents trv_ptd_request_0.xml and trversity_data_dictionary_0.xml. However, the file does not require an XML version indicator (' ') and can contain multiple transactions, one following the other. PtBatch simply breaks the file into individual requests and submit each in turn to the Pending Transaction object.

More Information

For more information, see the SAP Point-of-Sale 2.3 SDK Technical Reference in Expert Knowledge Corner on the SAP Service Marketplace.