P 2 K_PU.GET_PPH

Get Employee GET_PPH#

Functionality:#

The purpose of this function is to Capture the PPH_ID for use in UPGLF G/L interface processing. This value is not available as part of the variable package in the IDIF

Parameters:#

PERSON_CODERequired. Person_code from IEID.
PAY_NUMBERRequired. Pay Number from IPPH.
BATCH_NUMBERRequired. Batch Number from IPBE.

Returns: #

Numeric

Errors: #

Example: #

FUNCTION GET_PPH(SUBSTR(~,119,16),SUBSTR(~,135,4),SUBSTR(~,623,10))

Using the G/L buffer(info) as the parameter capture the PPH_ID for the matching Batch number and Pay number for the employee

Captured ValueG/L Buffer Derivation
PERSON_CODE SUBSTR(~,119,16)
PAY_NUMBER SUBSTR(~,135,4)
BATCH_NUMBER SUBSTR(~,623,10)

The function will return the matching PPH_ID

Notes#