HT12 - Product History Monthly

APIs For This Group

CALHT12 - Calculate Average From History

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDHISTYPE         'History Type'                   1 0
BOTH            SB01PER01         'History Year 01 Period 01'      7 0 
BOTH            SB01PER02         'History Year 01 Period 02'      7 0
BOTH            SB01PER03         'History Year 01 Period 03'      7 0
BOTH            SB01PER04         'History Year 01 Period  04'     7 0
BOTH            SB01PER05         'History Year 01 Period  05'     7 0
BOTH            SB01PER06         'History Year 01 Period  06'     7 0
BOTH            SB01PER07         'History Year 01 Period  07'     7 0
BOTH            SB01PER08         'History Year 01 Period  08'     7 0
BOTH            SB01PER09         'History Year 01 Period  09'     7 0
BOTH            SB01PER10         'History Year 01 Period  10'     7 0
BOTH            SB01PER11         'History Year 01 Period  11'     7 0
BOTH            SB01PER12         'History Year 01 Period  12'     7 0
BOTH            SB02PER01         'History Year 02 Period 01'      7 0 
BOTH            SB02PER02         'History Year 02 Period 02'      7 0
BOTH            SB02PER03         'History Year 02 Period 03'      7 0
BOTH            SB02PER04         'History Year 02 Period  04'     7 0
BOTH            SB02PER05         'History Year 02 Period  05'     7 0
BOTH            SB02PER06         'History Year 02 Period  06'     7 0
BOTH            SB02PER07         'History Year 02 Period  07'     7 0
BOTH            SB02PER08         'History Year 02 Period  08'     7 0
BOTH            SB02PER09         'History Year 02 Period  09'     7 0
BOTH            SB02PER10         'History Year 02 Period  10'     7 0
BOTH            SB02PER11         'History Year 02 Period  11'     7 0
BOTH            SB02PER12         'History Year 02 Period  12'     7 0
BOTH            SB03PER01         'History Year 03 Period 01'      7 0
BOTH            SB03PER02         'History Year 03 Period 02'      7 0
BOTH            SB03PER03         'History Year 03 Period 03'      7 0
BOTH            SB03PER04         'History Year 03 Period  04'     7 0
BOTH            SB03PER05         'History Year 03 Period  05'     7 0
BOTH            SB03PER06         'History Year 03 Period  06'     7 0
BOTH            SB03PER07         'History Year 03 Period  07'     7 0
BOTH            SB03PER08         'History Year 03 Period  08'     7 0
BOTH            SB03PER09         'History Year 03 Period  09'     7 0
BOTH            SB03PER10         'History Year 03 Period  10'     7 0
BOTH            SB03PER11         'History Year 03 Period  11'     7 0
BOTH            SB03PER12         'History Year 03 Period  12'     7 0
BOTH            SB04PER01         'History Year 04 Period 01'      7 0
BOTH            SB04PER02         'History Year 04 Period 02'      7 0
BOTH            SB04PER03         'History Year 04 Period 03'      7 0
BOTH            SB04PER04         'History Year 04 Period  04'     7 0
BOTH            SB04PER05         'History Year 04 Period  05'     7 0
BOTH            SB04PER06         'History Year 04 Period  06'     7 0
BOTH            SB04PER07         'History Year 04 Period  07'     7 0
BOTH            SB04PER08         'History Year 04 Period  08'     7 0
BOTH            SB04PER09         'History Year 04 Period  09'     7 0
BOTH            SB04PER10         'History Year 04 Period  10'     7 0
BOTH            SB04PER11         'History Year 04 Period  11'     7 0
BOTH            SB04PER12         'History Year 04 Period  12'     7 0
BOTH			OPCMBLOCN		  'Optional Combined Location'     5A
BOTH			OPCMBSUPL		  'Optional Combined Supplier'	  10A
BOTH			OPCMBSUB		  'Optional Combined Sub-Suplier' 10A
BOTH            RVFORCAST         'Average'                        9 2
BOTH            RVFORDEVP         'Deviation %'                    3 1
BOTH            RVTRAKSIG         'Tracking Signal'                3 0
BOTH            RVTRNDDWN         'Trending Down'                  1A

UHSHT12 - Update History Of A Product

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDHISTYPE         'History Type'                   1 0
BOTH            SB01PER01         'History Year 01 Period 01'      7 0 
BOTH            SB01PER02         'History Year 01 Period 02'      7 0
BOTH            SB01PER03         'History Year 01 Period 03'      7 0
BOTH            SB01PER04         'History Year 01 Period  04'     7 0
BOTH            SB01PER05         'History Year 01 Period  05'     7 0
BOTH            SB01PER06         'History Year 01 Period  06'     7 0
BOTH            SB01PER07         'History Year 01 Period  07'     7 0
BOTH            SB01PER08         'History Year 01 Period  08'     7 0
BOTH            SB01PER09         'History Year 01 Period  09'     7 0
BOTH            SB01PER10         'History Year 01 Period  10'     7 0
BOTH            SB01PER11         'History Year 01 Period  11'     7 0
BOTH            SB01PER12         'History Year 01 Period  12'     7 0
BOTH            SB02PER01         'History Year 02 Period 01'      7 0 
BOTH            SB02PER02         'History Year 02 Period 02'      7 0
BOTH            SB02PER03         'History Year 02 Period 03'      7 0
BOTH            SB02PER04         'History Year 02 Period  04'     7 0
BOTH            SB02PER05         'History Year 02 Period  05'     7 0
BOTH            SB02PER06         'History Year 02 Period  06'     7 0
BOTH            SB02PER07         'History Year 02 Period  07'     7 0
BOTH            SB02PER08         'History Year 02 Period  08'     7 0
BOTH            SB02PER09         'History Year 02 Period  09'     7 0
BOTH            SB02PER10         'History Year 02 Period  10'     7 0
BOTH            SB02PER11         'History Year 02 Period  11'     7 0
BOTH            SB02PER12         'History Year 02 Period  12'     7 0
BOTH            SB02PER13         'History Year 02 Period  13'     7 0
BOTH            SB03PER01         'History Year 03 Period 01'      7 0
BOTH            SB03PER02         'History Year 03 Period 02'      7 0
BOTH            SB03PER03         'History Year 03 Period 03'      7 0
BOTH            SB03PER04         'History Year 03 Period  04'     7 0
BOTH            SB03PER05         'History Year 03 Period  05'     7 0
BOTH            SB03PER06         'History Year 03 Period  06'     7 0
BOTH            SB03PER07         'History Year 03 Period  07'     7 0
BOTH            SB03PER08         'History Year 03 Period  08'     7 0
BOTH            SB03PER09         'History Year 03 Period  09'     7 0
BOTH            SB03PER10         'History Year 03 Period  10'     7 0
BOTH            SB03PER11         'History Year 03 Period  11'     7 0
BOTH            SB03PER12         'History Year 03 Period  12'     7 0
BOTH            SB04PER01         'History Year 04 Period 01'      7 0
BOTH            SB04PER02         'History Year 04 Period 02'      7 0
BOTH            SB04PER03         'History Year 04 Period 03'      7 0
BOTH            SB04PER04         'History Year 04 Period  04'     7 0
BOTH            SB04PER05         'History Year 04 Period  05'     7 0
BOTH            SB04PER06         'History Year 04 Period  06'     7 0
BOTH            SB04PER07         'History Year 04 Period  07'     7 0
BOTH            SB04PER08         'History Year 04 Period  08'     7 0
BOTH            SB04PER09         'History Year 04 Period  09'     7 0
BOTH            SB04PER10         'History Year 04 Period  10'     7 0
BOTH            SB04PER11         'History Year 04 Period  11'     7 0
BOTH            SB04PER12         'History Year 04 Period  12'     7 0
BOTH			OPCMBLOCN		  'Optional Combined Location'     5A
BOTH			OPCMBSUPL		  'Optional Combined Supplier'	  10A
BOTH			OPCMBSUB		  'Optional Combined Sub-Suplier' 10A
BOTH            RVFORCAST         'Average'                        9 2
BOTH            RVFORDEVP         'Deviation %'                    3 1
BOTH            RVTRAKSIG         'Tracking Signal'                3 0
BOTH            RVTRNDDWN         'Trending Down'                  1A

FRMHT12 - Calculate Average From A Particular Period On

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A  
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDHISTYPE         'History Type'                   1 0
BOTH            SBFRMYEAR         'Calculate From Year'            4 0
BOTH            SBFRMPERD         'Calculate From Period'          2 0
BOTH			OPCMBLOCN		  'Optional Combined Location'     5A
BOTH			OPCMBSUPL		  'Optional Combined Supplier'	  10A
BOTH			OPCMBSUB		  'Optional Combined Sub-Suplier' 10A
BOTH            RVFORCAST         'Average'                        9 2
BOTH            RVFORDEVP         'Deviation %'                    3 1
BOTH            RVTRAKSIG         'Tracking Signal'                3 0
BOTH            RVTRNDDWN         'Trending Down'                  1A
BOTH            RVPRDUSED         'Periods used'                   2 0

CPYHT12 - Copy History Of A Product

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDSOQSEQN         'Sequence Number'                5 0
BOTH            IDPROD            'Product ID'                    25A
BOTH            SBBUYR            'Buyer ID'                       5A
BOTH            SBLOCN            'Location ID'                    5A
BOTH            SBSUPL            'Supplier ID'                   10A
BOTH            SBSUPLSUB         'Sub supplier ID'               10A
BOTH            SBSOQSEQN         'Sequence Number'                5 0
BOTH            SBPROD            'Product ID'                    25A
BOTH            SBUSRSTAT         'User Status'                    1A 
BOTH            SBFREZEND         'Freeze Until'                  10A
BOTH            SBCLRAVG          'Clear Average 0/1'              1A
BOTH            SBMULTPLY         'Multiplier'                     9 4 
BOTH            SBCPYMODE         'Add(A); Replace(R)'             1A

UFMHT12 - Calculate And Update Average From A Particular Period On

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A  
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDHISTYPE         'History Type'                   1 0
BOTH            SBFRMYEAR         'Calculate From Year'            4 0
BOTH            SBFRMPERD         'Calculate From Period'          2 0
BOTH			OPCMBLOCN		  'Combined Location'			   5A
BOTH			OPCMBSUPL		  'Combined Supplier'			  10A
BOTH			OPCMBSUB		  'Combined Sub-Supplier'		  10A	
BOTH            RVFORCAST         'Average'                        9 2
BOTH            RVFORDEVP         'Deviation %'                    3 1
BOTH            RVTRAKSIG         'Tracking Signal'                3 0
BOTH            RVTRNDDWN         'Trending Down'                  1A

STAHT12 - Statistics For Closed Periods

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDYEAR            'Year ID'                        4A
BOTH            IDPERIOD          'Period ID'                      2A
BOTH            RVSERVICE         'Service Level'                  5 2
BOTH            RVSALES           'Sales Units'                    9 0
BOTH            RVDEMAND          'Demand Units'                   7 0
BOTH            RVBEGIN           'Begin Date Of Period'          10
BOTH            RVEND             'End Date Of Period '           10
BOTH            RVNBRPOP          'Number of POs Placed'           5 0
BOTH            RVNVRPOR          'Number of POs Received'         5 0
BOTH            RVRCVPCT          'Received Percentage'            5 2
BOTH            RVDLYPROD         'Found in K_DLYPROD {Y/N}'       1A
BOTH            RVINTORDD         'Found in K_INTORDD {Y/N}'       1A
BOTH            RVPRODLTM         'Found in K_PRODLTM {Y/N}'       1A
BOTH            RVPRODHIS         'Found in K_PRODHIS {Y/N|'       1A

RTNHT12 - Return Product History

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDBUYR            'Buyer ID'                       5A 
BOTH            IDLOCN            'Location ID'                    5A
BOTH            IDSUPL            'Supplier ID'                   10A
BOTH            IDSUPLSUB         'Sub supplier ID'               10A
BOTH            IDPROD            'Product ID'                    25A
BOTH            IDHISTYPE         'History Type'                   1 0
BOTH            IDYEAR            'History Year'                   5 0
BOTH			OPCMBLOCN		  'Combined Location'			   5A
BOTH			OPCMBSUPL		  'Combined Supplier'			  10A
BOTH			OPCMBSUB		  'Combined Sub-Supplier'		  10A	
BOTH            RVBIRTH           'Product History Birth'         10A
BOTH            RVLASTUPD         'Product History Last'          10A
BOTH            RV01PER01         'History Year 01 Period 01'      7 0
BOTH            RV01PER02         'History Year 01 Period 02'      7 0
BOTH            RV01PER03         'History Year 01 Period 03'      7 0
BOTH            RV01PER04         'History Year 01 Period  04'     7 0
BOTH            RV01PER05         'History Year 01 Period  05'     7 0
BOTH            RV01PER06         'History Year 01 Period  06'     7 0
BOTH            RV01PER07         'History Year 01 Period  07'     7 0
BOTH            RV01PER08         'History Year 01 Period  08'     7 0
BOTH            RV01PER09         'History Year 01 Period  09'     7 0
BOTH            RV01PER10         'History Year 01 Period  10'     7 0
BOTH            RV01PER11         'History Year 01 Period  11'     7 0
BOTH            RV01PER12         'History Year 01 Period  12'     7 0
BOTH            RV01PER13         'History Year 01 Period  13'     7 0
BOTH            RV02PER01         'History Year 02 Period 01'      7 0 
BOTH            RV02PER02         'History Year 02 Period 02'      7 0
BOTH            RV02PER03         'History Year 02 Period 03'      7 0
BOTH            RV02PER04         'History Year 02 Period  04'     7 0
BOTH            RV02PER05         'History Year 02 Period  05'     7 0
BOTH            RV02PER06         'History Year 02 Period  06'     7 0
BOTH            RV02PER07         'History Year 02 Period  07'     7 0
BOTH            RV02PER08         'History Year 02 Period  08'     7 0
BOTH            RV02PER09         'History Year 02 Period  09'     7 0
BOTH            RV02PER10         'History Year 02 Period  10'     7 0
BOTH            RV02PER11         'History Year 02 Period  11'     7 0
BOTH            RV02PER12         'History Year 02 Period  12'     7 0
BOTH            RV02PER13         'History Year 02 Period  13'     7 0
BOTH            RV03PER01         'History Year 03 Period 01'      7 0
BOTH            RV03PER02         'History Year 03 Period 02'      7 0
BOTH            RV03PER03         'History Year 03 Period 03'      7 0
BOTH            RV03PER04         'History Year 03 Period  04'     7 0
BOTH            RV03PER05         'History Year 03 Period  05'     7 0
BOTH            RV03PER06         'History Year 03 Period  06'     7 0
BOTH            RV03PER07         'History Year 03 Period  07'     7 0
BOTH            RV03PER08         'History Year 03 Period  08'     7 0
BOTH            RV03PER09         'History Year 03 Period  09'     7 0
BOTH            RV03PER10         'History Year 03 Period  10'     7 0
BOTH            RV03PER11         'History Year 03 Period  11'     7 0
BOTH            RV03PER12         'History Year 03 Period  12'     7 0
BOTH            RV03PER13         'History Year 03 Period  13'     7 0
BOTH            RV04PER01         'History Year 04 Period 01'      7 0
BOTH            RV04PER02         'History Year 04 Period 02'      7 0
BOTH            RV04PER03         'History Year 04 Period 03'      7 0
BOTH            RV04PER04         'History Year 04 Period  04'     7 0
BOTH            RV04PER05         'History Year 04 Period  05'     7 0
BOTH            RV04PER06         'History Year 04 Period  06'     7 0
BOTH            RV04PER07         'History Year 04 Period  07'     7 0
BOTH            RV04PER08         'History Year 04 Period  08'     7 0
BOTH            RV04PER09         'History Year 04 Period  09'     7 0
BOTH            RV04PER10         'History Year 04 Period  10'     7 0
BOTH            RV04PER11         'History Year 04 Period  11'     7 0
BOTH            RV04PER12         'History Year 04 Period  12'     7 0
BOTH            RV04PER13         'History Year 04 Period  13'     7 0

CPAHT12 - Copy Product History Across Locations

BOTH            K3SOBJ            'K3S Object library'            10A
BOTH            COMP              'Company'                        1A
BOTH            COMPCOD           'Company code'                   3A
BOTH            USER              'User calling the program'      10A
BOTH            ERRORS            'Error indicator'                1A
BOTH            ERRMSG            'Error message'                100A
BOTH            ERRFIELD          'Field in error'                20A
BOTH            IDPROD            'From Product ID'               25A
BOTH            SBPROD            'To Product ID'                 25A
BOTH            SBHISTYPE         'History Type '                  1 0
BOTH            SBUSRSTAT         'From Product User Status'       1A
BOTH            SBFREZEND         'From Product Freeze Until'     10A
BOTH            SBCLRAVG          'From Product Clear Average 0/1' 1A
BOTH            SBMULTPLY         'Multiplier'                     9 4
BOTH            SBCPYMODE         'Add(A); Replace(R)'             1A
BOTH            SBDIFINTR         'To Prod w/other Interval Y/N '  1A