May I (hopefully kindly) suggest you read the first posting about asking good questions.
If you are simply looking for the last PYID, there are several methods you can use, including (but not limited to):
* A SQL statement via ODBC - e.g. SELECT MAX(PYID) from F03B13
* Using the Universal Table Browser (UTB), and guessing (e.g., enter >1000 in the PYID column and click find - increase or decrease your guess until you find the largest value)
* Opening an application that has info from F03B13 (including PYID) in a grid, and clicking the Sequence button - move the PYID column to the top of the sorted list, and change its A/D to D (Descending), click OK, then do a find (no QBE entries or limiting header entries). The first record in the grid should be the largest.
* A report could be written that would give you the largest PYID value.
* You could code an Event Rule that would give you the value.
* You could create a new Named Event Rule business function that would give you the value. (Note that there are very specific instructions available on how to create a new library (DLL), and deploying it up through the path codes requires following the instructions carefully. The process is not obvious without the instructions...)
A quick search of business functions does not reveal an existing BF in OW/XE 7333. Hope one of those suggestions helps.