BigJohn
8th August 2002, 01:13
Hi,
Does anybody have any info on pmask?
Any docs?
I wanted to know how it works.
Thanks.
NPRao
8th August 2002, 01:27
John,
Can you please clarify, what the pmask is ?
The umask is for the Unix and the bmask is for BaaN option -
-- -set USE_BMASK_AS_ABSOLUTE=1 -set BMASK=02
Baanboozeled
8th August 2002, 01:45
Hi
Are you refering to the procedure mask for order types. If so, a procedure mask is used in conjunction with order types. An order type consists of a number of order steps. Baan provides pre-defined order types/steps and you may also define your own. The procedure mask is used to record what order steps are mandatory for the particular order type and to also track which steps have been executed. There is online help available. For example: navigate from the main menu. BaanIV/Distribution/Purchase Control/Purchase Orders/Miscell/Order Steps-Types/maintain order steps. click the pull-down help/using session and then click the order types help link.
Hope this helps
BB
BigJohn
8th August 2002, 19:13
Hi,
Yes, by pmask I meant Procedure Mask.
I know the basic functionality of it.
But wanted more info from the technical side .
When I look at the scripts it shows stepnos etc.
Just wondering if anybody had modified the pmask in any of
their scripts? Any docs?
Thanks for you posts.
Baanboozeled
8th August 2002, 21:29
here are a few functions that deal with pmask and the stno.####
tcmcs0020 - deal with order line status
tdsls0016 - check particular status on 045
tdpur0014 - deal with order item line status
the stno.#### indicates what session the pmask is being updated/checked from.
I looked into this many years ago in Triton 3.1b.
I don't know if this is an 'answer' but, perhaps a place to start your analysis???
:))
BB
also table tcmcs042 Order types.
evesely
9th August 2002, 01:38
Each position in the pmask refers to the status of a particular step number. For example, in sales orders the first few steps usually refer to:
Print Order Acknowledgement
Print Picking List
Maintain Deliveries
Print Packing List
Print Bill of Lading
Print Sales Invoice
Process Delivered Sales Order
[/list=1]
In the pmask, the following "codes" hold:
[list]
"n" = step not necessary/not used
"y" = step is necessary but not complete
"e" = step is complete
"c" = step has been completed and 'changed'
So, a pmask of "eeynyyy..." would mean that:
Acknowledgement and Picking List have been printed
Maintain Deliveries, Print Sales Invoice, and Process Delivered Sales Orders still need to be done, and
Print Packing List is not a step for this order type
The stno field tells you the current step (what should be exectued next).
Each order type can define different steps to be used. There is a standard list of steps, but you can add new ones if you add the proper step processing code to your script. There is a recent post about this.
I hope this helps.
-Ed
BigJohn
9th August 2002, 01:54
Perfect ... just what i needed.
Now I can get started.
Thanks a lot guys.
Cheers