Home » Categories » Solutions by Business Process » E-Business » XML |
Path and File Names |
Article Number: 1816 | Rating: Unrated | Last Updated: Thu, Jun 22, 2023 at 4:56 PM
|
Datafile Software Path and File Names Although a full path and filename must be given in the transaction definition, a batch run could well create XML files for different trading partners. It is often the case that trading partners will dictate the format of the filename of XML files to be sent to them. Also, it is helpful to be able to separate the files that are being sent to different trading partners. Two processing commands exist that allow you to define both the path and the filename structure of output XML files for each trading partner. These are: <?pathname path="xxxxxx$$$xxx" $$$="aaa,Dnnn-Data-Item"?> <?filename file="xxxxxx$$$xxx" $$$="aaa,Dnnn-Data-Item"?> The path and filenames are defined by xxxx, which can be anything legal for path and filenames. $$$ within the path and filenames gets replaced by whatever is contained in the data item Dnnn-Data-Item from the file aaa (one of the files defined by the dfd processing commands). The key to the file aaa is the current sales or purchase account as defined for the XML transaction. There is a further wrinkle here. If there is a sequence of 9s with the filename, whether that be within the filename defined by the command, or within the data that is substituted for $$$, then the next file sequence number for that transaction replaces this sequence. The sequence number itself is maintained with the transaction definition (see above). The XML file creation process actually creates each file with the file and pathname defined within the template itself. As each file is created, then its name is changed according to the filename command above, and the file is moved from its current location to the location as given by the pathname command. If the pathname location doesn’t exist, the folder is created if, possible. If the file already exists, then you are asked if it’s OK to overwrite it — unless in auto-run mode, when it will give a warning message and abandon the run. If the filename cannot be changed (probably because a file already exists with that name) then the file is left unchanged with the name and in the location as defined by the template itself. |
Attachments
![]() There are no attachments for this article.
|
Application Considerations - Document Definition Parameters
Viewed 1801 times since Tue, Jul 10, 2012
Linking to POP Document Layouts
Viewed 1891 times since Mon, Jul 9, 2012
Log File
Viewed 1912 times since Mon, Jul 9, 2012
Supplier Codes
Viewed 1738 times since Tue, Jul 10, 2012
Typical XML Purchase Order Cycle
Viewed 1600 times since Mon, Jul 9, 2012
Call XML Option From ProFiler Queued Menu
Viewed 1698 times since Tue, Jul 10, 2012
EAN/Locns (Incoming Messages)
Viewed 4113 times since Thu, Jul 5, 2012
XML Application Options
Viewed 1851 times since Mon, Jul 9, 2012
Missing Element Tags
Viewed 1794 times since Mon, Jul 9, 2012
Archive XML Orders
Viewed 1622 times since Mon, Jul 9, 2012
|