PROCESSING DETAILS

Processing Details

When you select Process Manual Bill Input File from the drop-down list, the following actions take place:

  1. Costpoint checks the input CSV file. If this file does not exist or is formatted incorrectly, you will not be able to upload the worktables.

  2. Costpoint reads each record in the input file. Any record with missing values in the mandatory fields or with invalid values will be flagged as an error. Validations are performed for the following columns:

  3. Error information is inserted into the Z_BLPUMB_ERRORS table. If there are no errors, then the Z_BLPUMB_EDIT table will be populated with the Z_BLPUMB_INPUT table.

Import Details

When you select Import Manual Bills from the drop-down list, the following actions take place:

  1. If there are errors loaded into the Z_BLPUMB_ERRORS table or if there are no rows in the Z_BLPUMB_EDIT table, then Costpoint displays a message stating that errors exist or there are no records to process. If there are no errors, then Costpoint assigns a unique numeric value to the MANUAL_BILL_SRL column and updates each row in the Z_BLPUMB_EDIT table that belongs to the company of the logged-in user.

  2. Costpoint populates the MANUAL_BILL_EDIT production table with the Z_BLPUMB_EDIT table for the records from the company being imported.

  3. Worktables are truncated from the database for the company being imported.

Input Costpoint Database Tables

Input tables are used for validation and/or obtaining current information from Costpoint. This application reads the following Costpoint tables:

Input File Layout

The input file must be a standard CSV file. Each record that will be uploaded must be on a separate line in the input file, separated with a combination of carriage return and line feed. Some fields in the input file can be empty but none should have a value of NULL. The following table shows the input file layout the application expects.

Column Name

Data Type (Length)

Required?

Notes

BILL_NO_ID

VARCHAR (15)

N

If this is already used for the project, then the system displays a warning but does not prevent upload.

CUST_ID

VARCHAR (12)

N

If blank, the system retrieves it from the PROJ table using the Project ID.

ADDR_DC

VARCHAR (10)

N

If blank, the system retrieves it from the CUST_ADDR table.

CUST_PO_ID

VARCHAR (20)

N

 

DISC_AVAIL_AMT

DECIMAL (14,2)

N

 

DUE_DT

DATE

N

The system uses the information from the input file if provided; otherwise, it uses the screen defaults. This uses the format MM/DD/YYYY.

ENTR_DTT

DATE

N

If blank, today’s date will be inserted. This uses the format MM/DD/YYYY.

ENTR_USER_ID

VARCHAR (12)

N

If blank, USER_ID will be inserted.

FY_CD

VARCHAR (6)

N

This is the fiscal year for which the bill will be applied. If blank, the system uses the default value from the screen.

PD_NO

SMALLINT

N

This is the period for which the bill will be applied. If blank, the system uses the default value from the screen.

SUB_PD

SMALLINT

N

This is the subperiod for which the bill will be applied. If blank, the system uses the default value from the screen.

INVC_DT

DATE

N

This is the invoice date and uses the format MM/DD/YYYY. If blank, the system uses the default value from the screen, which is today's date.

INVC_ID

VARCHAR (15)

Y/N

See the Invoice Numbering Method section in Import Manual Bills.

PROJ_ID

VARCHAR (30)

Y/N

This is required if PROJ_ABBRV_CD is not provided.

PROJ_ABBRV_CD

VARCHAR (6)

N/Y

This is required if PROJ_ID is not provided.

SALES_TAX_AMT

DECIMAL (14,2)

N

If present, SALES_TAX_CD must also be present.

SALES_TAX_CD

VARCHAR (6)

N

If present, this must be in the SALES_TAX table.

OTH_CHG_AMT1

DECIMAL (14,2)

N

If present, OTH_CHG_CD1 must also be present.

OTH_CHG_CD1

VARCHAR (6)

N

If present, this must be in the BILL_OTH_CHGS table.

OTH_CHG_AMT2

DECIMAL (14,2)

N

If present, OTH_CHG_CD2 must also be present.

OTH_CHG_CD2

VARCHAR (6)

N

If present, this must be in the BILL_OTH_CHGS table.

OTH_CHG_AMT3

DECIMAL (14,2)

N

If present, OTH_CHG_CD3 must also be present.

OTH_CHG_CD3

VARCHAR (6)

N

If present, this must be in the BILL_OTH_CHGS table.

TOT_INVC_AMT

DECIMAL (14,2)

Y

 

BILL_RMT_ADDR_CD

VARCHAR (6)

N

If present, this must be in the BILL_REMIT_ADDR table. If blank, leave as NULL.

NOTES

VARCHAR (254)

N

If blank, leave as NULL.

DOC_LOCATION

VARCHAR (254)

N

If blank, leave as NULL.

 

Output File Layout

The following table shows how the application populates every column of the MANUAL_BILL_EDIT table.

Column Name

Data Source or Value

ADDR_DC

Input File or default from ADDR_DC table (if blank)

BILL_NO_ID

Input File or null (if blank)

BILL_RMT_ADDR_CD

Input File or null (if blank)

CUST_ID

Input File or from PROJ table (if blank)

CUST_PO_ID

Input File or null (if blank)

DISC_AVAIL_AMT

Input File or 0 (if blank)

DUE_DT

Input File or default (if provided and Input File is blank)

ENTR_DTT

Input File or System Date (if blank)

ENTR_USER_ID

Input File or Database connection ID for user running the application (if blank)

FY_CD

Input File or default (if blank)

INVC_DT

Input File or default (if blank) or system date

INVC_ID

Input File or other. See description of invoice number.

MANUAL_BILL_SRL

Unique numeric value generated by the system

MODIFIED_BY

"BLPUMB"

OTH_CHG_AMT1

Input File

OTH_CHG_AMT2

Input File

OTH_CHG_AMT3

Input File

OTH_CHG_CD1

Input File

OTH_CHG_CD2

Input File

OTH_CHG_CD3

Input File

PD_NO

Input File or default

POST_SEQ_NO

(null)

PROJ_ABBRV_CD

Input File or space (if blank)

PROJ_ID

Input File or PROJ_ID from the PROJ table, where PROJ_ABBRV_CD = PROJ_ABBRV_CD input file field

ROWVERSION

0

SALES_TAX_AMT

Input File else 0

SALES_TAX_CD

Input File else null

SUB_PD_NO

Input File or default

S_JNL_CD

"BJ"

TIME_STAMP

Current system date/time value

TOT_INVC_AMT

Input File

COMPANY_ID

Logged-in company ID

NOTES

Input File or blank

DOC_LOCATION

Input File or blank