Professional Documents
Culture Documents
Tasn 6800
Tasn 6800
Pre-conditions:
There are ASNs in the database that have not been interfaced yet (interface=' ') and have
a status of 'CR', 'RC', 'CK', or 'RL'.
The user wants to extract ASNs for all entities (direct, retail, or both).
The user wants to include ASNs with missing PO line numbers in the vendor ASN file (JP-
PARM-MISSING-PO-RC='Y').
Test Steps:
1. Submit the TASN6800 job with JCL parameter JP-PARM-ENTITY set to 'BOTH' and JP-
PARM-MISSING-PO-RC set to 'Y'.
2. The SNB6800 program will execute and extract ASNs for both direct and retail entities.
3. The program will include ASNs with missing PO line numbers in the vendor ASN file
(TASNP.TASN6800.VENDOR.ASNS).
4. The program will update the 'interfaced' column in the TSNASN table to 'V' for each
extracted ASN.
5. The program will update the 'CANCEL_CODE' column in the TSNASR table to 'Y' for
each extracted ASN's sub-receipt number.
Expected Results:
TSNASN table with ASNs having ' ' in the 'interfaced' column and status 'CR', 'RC', 'CK',
or 'RL'.
TSNASR table with corresponding sub-receipt numbers for the ASNs.
TPO_MATRIX table with PO line numbers for some ASNs.
TPO_VENDOR_PACK table with vendor pack information for some ASNs (relevant for
ASNs with missing PO line numbers).
TCODEPT table with department information.
The program should use the following code tables for data validation and
insertions/updates:
o ASNVEND - Copybook for the vendor ASN file layout.
o TSNASN - Table containing ASN information.
o TSNASR - Table containing ASN detail information.
o TPOMTRX - Table containing PO matrix information (PO line numbers).
o TPOVPCK - Table containing vendor pack information.
o TCOSKU - Table containing color and size information for SKUs.
o TCODEPT - Table containing department information (used to determine brand ID).
Data Explanation:
The program will extract ASNs from the TSNASN table based on the specified criteria (not
interfaced, status 'CR', 'RC', 'CK', or 'RL').
The program will use the TSNASR table to get details about the ASN, such as sub-receipt
number and carton number.
The program will use the TPOMTRX table to get the PO line number for the ASN. If the
PO line number is missing in TPOMTRX, the program will attempt to get the vendor pack
SKU from the TPO_VENDOR_PACK table and use it to construct a PO line number.
The program will use the TCOSKU table to get the size information for the SKU.
The program will use the TCODEPT table to determine the brand ID based on the
department number and order type of the ASN.
The extracted ASN data will be formatted into vendor ASN records according to the
ASNVEND copybook layout and written to the TASNP.TASN6800.VENDOR.ASNS file.
Pre-conditions:
Test Steps:
2.
Pre-conditions:
There are ASNs in the database that have not been interfaced yet (interface=' ') and have
a status of 'CR', 'RC', 'CK', or 'RL'.
The user wants to extract ASNs for all entities (direct, retail, or both).
The user wants to include ASNs with missing PO line numbers in the vendor ASN file (JP-
PARM-MISSING-PO-RC='Y').
Test steps:
Expected results:
Pre-conditions:
Test steps:
1. The TAMKSFTW program (JSTP020) will be automatically executed if the return code
from SNB6800 (JSTP010) is 0.
2. The TAMKSFTW program will:
o Use the information in the JCL parameters to connect to the Ascenda server.
o Read the vendor ASN file from PSTEP050.ASNLOAD DD dataset.
o Send the vendor ASN data to the Ascenda server using SFTP protocol.
o Rename the vendor ASN file in the SFTP directory to indicate successful transfer
(optional).
Expected results:
The vendor ASN file will be transferred to the Ascena server using SFTP.
The vendor ASN file in PSTEP050.ASNLOAD DD dataset will remain unchanged
(simulated in this test case).
3.
Pre-conditions:
There are ASNs in the database that have not been interfaced yet (interface=' ') and have
a status of 'CR', 'RC', 'CK', or 'RL'.
The user wants to extract and create vendor ASN records for both 'DIRECT' and 'RETAIL'
entities.
The user wants missing PO line numbers to be reported (JP-PARM-MISSING-PO-
RC='Y').
Test steps:
1. Submit the TASN6800 job with JCL parameter JP-PARM-ENTITY='BOTH' and JP-
PARM-MISSING-PO-RC='Y'.
2. The SNB6800 program will execute and extract ASN data from the database based on
the selection criteria.
3. For each extracted ASN, the program will determine the entity type (DIRECT or
RETAIL) based on the order type and create a vendor ASN record.
4. The vendor ASN record will include details like PO number, warehouse, SKU number,
unit quantity, etc.
5. The program will attempt to find the corresponding line number and row number from
the TPO_MATRIX table for 'R' type PO packs and from the TPO_VENDOR_PACK table
for 'V' type PO packs.
6. If a line number and row number are not found, the program will report the missing
information but continue processing other ASNs.
7. The program will update the 'INTERFACED' field in the TSNASN table to 'V' for each
processed ASN.
8. The program will write the vendor ASN records to the output file
TASNP.TASN6800.VENDOR.ASNS.
9. The program will display the number of ASN records created and any errors
encountered.
Expected results:
A vendor ASN file named TASNP.TASN6800.VENDOR.ASNS is created containing ASN
records for both 'DIRECT' and 'RETAIL' entities.
The ASN records include details like PO number, warehouse, SKU number, unit quantity,
etc.
Any missing line numbers and row numbers are reported in the program output.
The 'INTERFACED' field in the TSNASN table is updated to 'V' for each processed ASN.
Pre-conditions:
The TASN6800 job has successfully completed, and the vendor ASN file
(TASNP.TASN6800.VENDOR.ASNS) has been created.
The SFTP server is configured correctly to transfer files to Ascenda.
Test steps:
Expected results:
The SNB6800 program uses several code tables to validate data and perform lookups.
Here's a breakdown of some key tables and their usage:
TSNASN: This table stores ASN header information like PO number, country code,
status, etc.
TSNASR: This table stores ASN detail information like carton number, SKU number, and
unit quantity.
TCOITEM: This table stores item information like style name and color code.
TPOMTRX: This table stores the relationship between POs, styles, colors, sizes, and
line/row numbers.
TPO_VENDOR_PACK: This table stores information about vendor packs associated with
POs.
TCOSKU: This table stores size information for SKUs.
TCODEPT: This table stores department information, including category code.
The program uses these tables to retrieve data relevant to creating vendor ASN records. For
example, it uses TSNASN to get the PO number and status, TSNASR to get the carton
number and SKU, TPOMTRX to get the line/row number for 'R' type PO packs, and
TPO_VENDOR_PACK to get the master SKU for 'V' type PO packs.
The program also performs validations based on the data retrieved from these tables. For
instance, it checks the 'INTERFACED' field in TSNASN to ensure it'