MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference and Help > Technical Support > Key Concepts and Procedures > Windows Processing > MAC-PAC Window Description

MAC-PAC Window Description

 

 

Windows are used in MAC-PAC much the same as screens.  They display in maintenance and inquiry programs when you press a command key or enter an action code.  The difference between windows and screens is that you can maintain windows without recompiling them or making program changes.  Additionally, any user on the system can create customer windows.

There are three elements that make up a window:  window indicators, field sets, and action codes.  The combination of these three allows you to display a window in a typical program.  These windows are designed for easy maintenance; changing and selecting the fields that display, changing the order of the displayed fields, and maintaining the field literals.  Tasks such as these are considered basic maintenance tasks and can be performed by any user.  Administrative maintenance tasks, tasks that should be performed by your system administrator, are also possible.  These tasks include adding or removing fields from a field set and creating a new field set.

MAC-PAC comes with several default windows.  These windows are supplied to give you a general feel for the processing and use of windows.  They should serve as a basis for your window use.  You may never need to change them or add to them; however, you may maintain these windows just as you would those you created from scratch.

Elements of a Window

A window consists of three elements:  a  field set, a window indicator, and an action code.  The field set is a pre-defined list of fields that are used for a MAC-PAC function.  You may select all of these fields or a subset for display in your window.  You will always use the window indicator WN (generic windows program) for basic windows.  The window indicator dictates what will be displayed in your window.  You define the two-digit action code that ties the field set and window indicator together.  You enter action codes on the application screens to display windows.  Using these three elements you may create your own window by selecting the fields you want to be displayed, sequencing them, and choosing an action code that displays them.

Field Sets

Field sets consist of a grouping of fields with a single functional use; these fields usually exist on a single master file.  For example, all the maintainable MAC-PAC fields for Sales Order Line Maintenance are grouped on the SOLINE field set.  Field sets are maintainable, however some maintenance tasks are more difficult than others.  The basic maintenance task for a field set is to change a literal.  Administrative maintenance tasks for a field sets include adding or removing fields.  You can maintain field sets through the Field Set Maintenance conversation on the System Processing menu.  The figure below shows the Sales Order Line field set as it displays on the Field Set Maintenance detail screen.

 

WILLIAMS                      COMMON FEATURES                           5/23/94

 DSP01                     FIELD SET MAINTENANCE                          DETAIL

                                                                               

 Field Set  SOLINE    Sales Order Line Maintenance                          

                                                                                

 Field                     Help   Field   --Valid Values-        Ref   External

  Name       Literal       Tag    Ln Typ   Program    Occ Decode Cat   Program 

 WNFL01  Company          CZCO     3  C   VVIC170MW    1   N                   

 WNFL02  Warehouse        CZWHNO   3  C   VVIC170MW    2   N                   

 WNFL03  Part Number      CZPN    15  C   VVDE100MW    1   D  1                

 WNFL04  Description      CZPN     1  C                    D  2                

 WNFL05  Plant            CZPLNT   3  C                    N                   

 WNFL06  Line number      CZLNNO   3  C                    N                   

 WNFL07  Part Type        TYPDSC   3  C                    N                   

 WNFL08  Order Quantity   CZRQTY  10  N                    N                   

 WNFL09  Release Qty      CZRQTY  10  N                    N                   

 WNFL10  Order UOM        CZUNMS   2  C   VVREFERW1    1   Y     005            

 WNFL11  Reserved Qty     CRLQO   10  N                    N                   

 WNFL12  Unit Price       CUNPR   15  N                    N                   

 WNFL13  Pricing UOM      CPRUM    2  C   VVREFERW1    2   Y     005           

                                                                        More...

 F3=Exit             F10=Function Select F15=Rekey Data      F22=End Transaction

                                                                               

        Fields on the Sales Order Line Field Set (SOLINE).

   You may easily maintain literals associated with these fields.

Field Sets Supplied with MAC-PAC

MAC-PAC comes with ten standard field sets.  They include:

 

Field Set

Description

CUSTITEM

Customer/Item Relationship

LDCONSOL

Load Consolidation

LODMAINT

Load Maintenance

OBHEADER

Shipping/Billing Header Maintenance

OBLINE

Shipping/Billing Line Maintenance

PBHEADER

Postbilling Header Maintenance

PBLINE

Postbilling Line Maintenance

SHPWRKBN

Shipping Workbench

SOHEAD

Sales Order Header

SOLINE

Sales Order Line

          Field Sets Supplied with MAC-PAC.

            Each of these field sets corresponds to a master file.

Using the Window Definition conversation, you may select specific fields from a field set to display in your window.  The subset you select may be as few as one field or as many as all of the fields from the field set.  The figure below shows five fields selected from the SOLINE field set for action code KN.

 

WILLIAMS                      COMMON FEATURES                           5/24/94

 DSP01                        WINDOW DEFINITION                           DETAIL

                                                                               

 Field Set     SOLINE    Sales Order Line Maintenance                          

 Action Code   KN        Kenning Order Fields                                  

 Renumber by    10                                                             

                                                                                

                              Literal             Seq                          

                          Order Number             10                          

                          Company                  20                          

                          Warehouse                30                          

                          Part Number              40                          

                          Description              50                          

                          Plant                                                

                          Line number                                          

                          Part Type                                            

                          Order Quantity                                       

                          Release Qty                                          

                          Order UOM                                            

                          Reserved Qty                                         

                                                                        More...

 F3=Exit             F10=Function Select F15=Rekey Data      F18=Renumber      

 F22=End Transaction                                                           

                                                                               

   Fields on the Sales Order Line Maintenance Field Set (SOLINE) for the Custom

          Action Code (KN)

  The user-defined action KN is arbitrary; you may select any two-character action code

     you wish.

Window indicators

MAC-PAC is installed with fourteen window indicators; WN, CP, and 01 though 12.  You enter these window indicators on Reference File category 032 when defining a window to dictate what the window will display.  For example, entering a window indicator of WN (generic windows program) will display the window you have defined.  If you entered a window indicator of CP (Custom Program) a custom program will display.  Window indicators of 01 through 12 (pre-defined MAC-PAC programs) display an existing MAC-PAC program in the window.  See Reference File category 030 for all valid Window indicator/field set combinations.

Note:    All windows that you maintain through general, basic maintenance tasks will use the generic windows program (window indicator of WN).  Windows that use custom programs or pre-defined MAC-PAC programs are only maintainable through more advanced, administrative maintenance.

The figure below shows a sample detail screen from Reference File category 032.  This category is where you define which window indicator will be used with your window.  The first maintainable field on the screen holds the window indicator.  Notice that the indicator used here is WN, the generic windows program.  You will use this indicator for all basic window maintenance.  This is probably the only indicator you will ever use.

 

WILLIAMS                       COMMON FEATURES                         5/23/94

 DSP01                    REFERENCE FILE CATEGORY 032                   INQUIRE

                                                                               

                   Category Name        Window Action Codes                    

                                                                               

                                        Field Set(8) Action Cd(2)              

                   Category Key         SOLINE  KN                             

                                                                                

                                                                               

            Window Ind               Window Title                              

       Data   WN                    Kenning Window                             

              XX         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX              

                                                                               

            Start Pos.      Size     External Pgm.   Alternate Set             

       Data   0205           L                                                 

              NNNN           X        XXXXXXXXXX         XXXXXXXX              

                                                                               

               Prompt Description         Dsp 50 Char field                    

       Data Kenning Order Fields                  Y                            

            XXXXXXXXXXXXXXXXXXXXXXXX              Y                            

                                                                                

 F2=Command          F3=Exit             F9=Inquiry          F10=Function Select

                                                                               

   Window Indicators as Entered on Reference File Category 032.

        These window indicators dictate what the window will display.

Action Codes

Action codes are two-digit codes that you define on Reference File category 032.  They tie a field set to a window indicator to define a window.  For your window, you can define which fields from the field set will appear and their sequence.  You may create any number of action codes per conversation, and therefore any number of windows.  The figure below shows the select screen from Reference File category 032.  Here you combine a field set, in this case the Sales Order Line Maintenance field set (SOLINE), with an action code.  A custom action code, Kenning Order Fields (KN), is shown here.

 

WILLIAMS                       COMMON FEATURES                         5/23/94

 DSP01                    REFERENCE FILE CATEGORY 032           FUNCTION SELECT

                                                                               

                                                                               

                   Category Name        Windows Action Codes                   

                                                                               

                                                                               

                                        Field Set(8) Action Cd(2)              

                   Category Key         SOLINE  KN                             

                                        XXXXXXXXXX                             

                                                                               

                                                                               

                   Request Code         4                                      

                                                                                

                                        1 - Add                                

                                        2 - Change                             

                                        3 - Delete                             

                                        4 - Inquire                            

                                                                               

                                                                                

                                                                               

 F3=Exit             F7=End Category     F9=Inquiry          F8=Display List   

                                                                               

       A Field Set and Action Code Combination that Creates a Window.