Import Purchase Order - Open/Close

This feature allows for the updating of open/close status on Purchase Orders via an import. Only POs with a status of "OPEN" or "CLOSED" can be imported. If you open a PO, then all of the detail lines for that PO and approved Mods are also opened (even if the original PO was already open). This is different from the user interface where you can specify which lines to open. If you open a detail line that is closed and the PO is also closed, then both the PO summary and the PO line will be opened.

If you close a PO that is currently open, then all of the detail lines for the approved PO and Mods will be closed as well.

The following validations apply to this import as well as when opening/closing via the user interface:

POs (or PO lines where applicable) cannot be closed if there are any outstanding documents:

 

The close date must follow these rules:

 

Roles

This screen is available to users having the following role: Administrator.

License

This feature is available with the Project Financials family of Unanet licenses.

Performance Tip Note:  Depending on the number of users in your installation and other factors such as the overall performance of your platform, the activity of importing one or many files may take up to several minutes.  Should this be the case with your installation, you may want to consider running these processes at non-peak times to minimize database contention.

 

Topics covered on this help page include:

 

You may also be interested in:

 


Import File Record Layout

 

 

Field Header Name

Required/Comments

1

A

Orig_Document_Number

ALWAYS REQUIRED. The document number of the original PO.
 

Maximum Length: 15 characters

2

B

Dtl_Line_Type

CONDITIONALLY REQUIRED. This is the PO detail line type. Allowed values are "L" for labor, "E" for expense, "I" for item, or blank. This field is required if Dtl_Line_Id is populated. If this field is blank, then the PO will be opened/closed at the summary level.

3

C

Dtl_Line_Id

CONDITIONALLY REQUIRED. The existing detail line number. This field is required if Dtl_Line_Type is populated. Valid values are any numbers from 1 to 9999.

4

D

Open_Close

ALWAYS REQUIRED. Valid values are "OPEN" or "CLOSE".

5

E

Close_Date

CONDITIONALLY REQUIRED. This field is required if the Open_Close field is "CLOSE". If you try to close a PO that is already closed with a different close date, you will get an error.
 

Recommended date format:   MM/dd/yyyy    

 

Note: Check out the Unanet Data Model for specific field data types, lengths, and other attributes. Navigate to Unanet Support and search for "Data Model".

 

Following are some examples of import records:


Import File Format

The file to import must be saved in a comma delimited format.   

Importing a Sub-Set of Columns using a Field Header Record

If you are not using the default column layout sequence as defined above, you must include a header record (prefixed with an asterisk *), containing the column Header Names for those columns you are including in the import file (to indicate what data is contained in each column).  The specific Header Names for each column are listed in the table above.

Example:

#Open example
*Orig_Document_Number,Open_Close
0000001234,OPEN


Excel Template

You can create the comma delimited import file with any number of tools.  For those interested in using an Excel spreadsheet to create the file, you can download an Excel Template with predefined headers.  

Note: We recommend against using Excel for the PO imports. It tends to truncate the leading zeros from the document number fields.

See the Excel Tips regarding the use of double quotes and more.


Import Screen

Depending on your property settings the Import Purchase Order - Originals screen may look like:

Field Descriptions:

Field

Description

Type of Import

Select the appropriate import type from the list of available types of imports.

File to Import

Enter (or browse for) the file that you would like to import.

Output Options

Specify the level of detail included in the output.

 

The import process is triggered by pressing the Import button.  All Warnings and Error messages are written to the screen and can then be saved if desired.  While some line items may be found invalid and rejected, the remaining line items will be successfully imported and saved in the database.  The rejected line items will be written out to a file on the Unanet server as well as displayed at the bottom of the Import results page. The rejected record file name will be the import name (from the Type of Import drop-down on the Admin>> Import page) , concatenated with a space and "Errors.csv" (e.g., Item - Master Errors.csv, Alternate.csv, etc.). The file will be placed in the Unanet temporary directory (which is defined by the Temp Directory (Fully Qualified Directory Name) (unanet.temp_directory) Unanet property). You can also click on the Download the error file link at the bottom of the Import results page (sample image follows).

 

 

Related Topics