MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Reference > Common Features > Key Concepts and Procedures > Sample BPM Extract Programs > Purchase Orders Due Today (CF905E, CF905CLP)

Purchase Orders Due Today (CF905E, CF905CLP)

 

 

This program extracts open or released purchase order release lines which have a non-zero balance due quantity and a due date equal to tomorrow’s date.  Phantom purchase orders are not included. 

On the Event Maintenance Detail screen for this event type, the extract frequency should be daily and the replace flag should be set to Y.

Since the extract frequency for the event type is daily, the extract will be run at the end of the day when the BPM Asynchronous Monitor (BPMASYCMON) shuts down, so notification will not be received in BPM mailboxes until the beginning of the following day.  That is why, although the program actually extracts purchase order lines that are due on the following day, the event is named Purchase Orders Due Today.

Route Based On Information

      Receiving company, receiving warehouse

Event Detail Information (40-character user-defined field)

      Purchase order number, purchase order line number, buyer code, part number, and dock date

Control Value Information

      Balance due quantity

Action Codes and Fast Path Information

 

Conversation

CL Program

Fast Path Information

1.  Purchase Order Inquiry

PO880CLP

(po #/po line #)

2.  Purchase Order Maintenance

PO180CLP

(co/whs/po #/po line #)

3.  PO Receipt Administration

PO210CLP

(co/whs)

4.  Receipt Quantity Control

PO220CLP

(co/whs)

5.  Multi-Line Receipt Maintenance

PO270CLP

(co/whs)

6.  Item/Vendor Relationship Inquiry

PO840CLP

(co/whs/vendor #/item)

7.  Vendor Inquiry

CF810CLP

(vendor #)

 

 

WILLIAMS                 BUSINESS PROCESS MANAGER                     5/12/95

 DSP01                         EVENT MAINTENANCE                   EVENT DETAIL

                                                                               

 Type    PO2  Desc PURCHASE ORDERS DUE TODAY                                   

 Extract Name  CF905CLP                 Extr Type      PGM  RPG PROGRAM        

 Replace       Y                        Extr Freq Cd   DLY DAILY               

 Extr Day Nbr                           Extr Freq Mn                            

 Last Extract   5/11/95 17:00:31        Next Extract    5/12/95  0:00:01       

                                                                               

 Action Code 1 007 PO INQUIRY           Action Code 2  006 PO MAINTENANCE      

 Action Code 3 008 PO RECEIPT ADMIN     Action Code 4  009 PO RECEIPT QTY CTL  

 Action Code 5 015 MULT-LNE QTY CONTROL Action Code 6  012 ITEM/VENDOR ANALYSIS

 Action Code 7 011 VENDOR MASTER INQ    Action Code 8                          

 Action Code 9                          Action Code 10                         

                                                                               

 Auto Action                            Immed Delete                           

 Sort Sequence DSC DESCENDING                                                  

 Control Value Description           Balance Due Qty                           

 Route Based on Description          Receiving Co/Wh                           

 Headings                            PO #    Ln  B   Item #          Dock Dt   

                                                                               

 F3=Exit             F4=Prompt           F10=Function Select F12=Comments      

 F15=Rekey Data                                                                

                                                                               

Event Maintenance Detail Screen for the Purchase Orders Due Tomorrow Event.