SUB1006 - BPA Galley Export Report
When the BPA circulation statement is generated, there is an electronic
export file, called the Qualified Galley, that must be submitted to BPA.
BPA900 selects records to be processed
from Sub_Issue_Fulfillment and Sub_Audit_Stats so that individual paragraph
reports can be generated. As part of running BPA900, a data file
is generated as one of the outputs. This Data
Analyzer query report has an export file layout and has the same fields
as in the BPA900 galley export file .
Parameters
- Subscription Product Parent Product
- Subscription Product Product Code
- Issue Date Begin Date
- Issue Date End Date
Selection Logic
Select order and fulfillment information
From Sub_Issue_Fulfillment sif,
Sub_Audit_Stats sas,
Customer c
Where sif.ORG_ID = ORG_ID of user running report
And sif.ORG_UNIT_ID = ORG_UNIT_ID of user running
report
And sif.SUB_ISSUE_FULFILLMENT_ID = sas.SUB_ISSUE_FULFILLMENT_ID
And sif.MASTER_CUSTOMER_ID = c.MASTER_CUSTOMER_ID
And sif.SUB_CUSTOMER_ID = c.SUB_CUSTOMER_ID
And sif.PRODUCT_ID = p.PRODUCT_ID
And sif.PARENT_PRODUCT = @ParentProduct parameter
And sif.PRODUCT_CODE = @ProductCode parameter
And sif.ISSUE_DATE <= @IssueEndDate parameter
And sif.ISSUE_DATE >= @IssueBeginDate parameter
Fields in Export File
- Sub_Issue_Fulfillment.MASTER_CUSTOMER_ID
- Sub_Issue_Fulfillment.SUB_CUSTOMER_ID
- Customer.FIRST_NAME
- Customer.LAST_NAME
- Customer.PRIMARY_JOB_TITLE
- Sub_Issue_Fulfillment.PARENT_PRODUCT
- Sub_Issue_Fulfillment.PRODUCT_CODE
- Sub_Issue_Fulfillment.ORDER_NO
- Sub_Issue_Fulfillment.ORDER_LINE_NO
- Sub_Issue_Fulfillment.ISSUE_SEQ
- Sub_Issue_Fulfillment.SUPPLEMENT_SEQ
- Sub_Issue_Fulfillment.ISSUE_DATE
- Sub_Issue_Fulfillment.SUB_RATE_STRUCTURE
- Sub_Issue_Fulfillment.SUB_RATE_CODE
- Sub_Issue_Fulfillment.FULFILLED_QTY
- Sub_Issue_Fulfillment.FULFILL_DATE
- Sub_Issue_Fulfillment.ISSUE_FULFILL_TYPE_CODE
- Sub_Issue_Fulfillment.DIGITAL_SUBSCRIBER_EMAIL_ADDRESS
- Sub_Audit_Stats.SUB_AUDIT_STATS_ID
- Sub_Audit_Stats.SUB_ISSUE_FULFILLMENT_ID
- Sub_Audit_Stats.ORG_ID
- Sub_Audit_Stats.ORG_UNIT_ID
- Sub_Audit_Stats.MARKET_CODE
- Sub_Audit_Stats.NTH_CONTROL_SEQ
- Sub_Audit_Stats.PAID_FLAG
- Sub_Audit_Stats.ORDER_LINE_STATUS
- Sub_Audit_Stats.ORDER_DATE
- Sub_Audit_Stats.CYCLE_BEGIN_DATE
- Sub_Audit_Stats.CYCLE_END_DATE
- Sub_Audit_Stats.SUBSCRIPTION_LENGTH
- Sub_Audit_Stats.ORDER_QTY
- Sub_Audit_Stats.PAYMENT_TOTAL
- Sub_Audit_Stats.RATE_AMOUNT
- Sub_Audit_Stats.LAST_PAYMENT_DATE
- Sub_Audit_Stats.POST_EXPIRE_FLAG
- Sub_Audit_Stats.COUNTRY_CODE
- Sub_Audit_Stats.STATE_CODE
- Sub_Audit_Stats.POSTAL_CODE
- Sub_Audit_Stats.QUALIFICATION_DATE
- Sub_Audit_Stats.INDUSTRY_CODE
- Sub_Audit_Stats.COMPANY_SIZE_CODE
- Sub_Audit_Stats.QUALIFICATION_METHOD_CODE
- Sub_Audit_Stats.QUALIFICATION_SOURCE_CODE
- Sub_Audit_Stats.QUALIFICATION_CODE
- Sub_Audit_Stats.JOB_TITLE_CODE
- Sub_Audit_Stats.JOB_FUNCTION_CODE
- Sub_Audit_Stats.SIC_CODE
- Sub_Audit_Stats.ADDRESS_ANALYSIS_CODE
- Sub_Audit_Stats.AUDIT_TYPE_CODE
- Sub_Audit_Stats.ADD_FLAG
- Sub_Audit_Stats.AUDIT_REGION_BREAK_CODE
- Sub_Audit_Stats.AUDIT_REGION_CODE
- Sub_Audit_Stats.AUDIT_REGION_SUB_CODE
- Sub_Audit_Stats.ADDOPER
- Sub_Audit_Stats.ADDDATE
- Sub_Audit_Stats.MODOPER
- Sub_Audit_Stats.MODDATE
- Sub_Audit_Stats.CONCURRENCY_ID
- Sub_Audit_Stats.ADDRESS_ID
- Sub_Audit_Stats.ADDRESS_TYPE_CODE
- Sub_Audit_Stats.ADDRESS_1
- Sub_Audit_Stats.ADDRESS_2
- Sub_Audit_Stats.ADDRESS_3
- Sub_Audit_Stats.ADDRESS_4
- Sub_Audit_Stats.CITY
- Sub_Audit_Stats.COUNTY
- Sub_Audit_Stats.ORIGINAL_AUDIT_TYPE_CODE