0% found this document useful (0 votes)
150 views2 pages

GR Exp 1

The document contains code that is setting up variables and logic for processing new employee hires, including variables to track valid transactions, available headcount, target pay rates, and logic to populate employee data fields based on start month, grade, market adjustments, and other attributes from a beginning balance. Conditional logic is used to check for errors, populate default values, and set employee status to active if their start month is in the current fiscal period.

Uploaded by

Reddy Bodhanapu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views2 pages

GR Exp 1

The document contains code that is setting up variables and logic for processing new employee hires, including variables to track valid transactions, available headcount, target pay rates, and logic to populate employee data fields based on start month, grade, market adjustments, and other attributes from a beginning balance. Conditional logic is used to check for errors, populate default values, and set employee status to active if their start month is in the current fiscal period.

Uploaded by

Reddy Bodhanapu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

VAR validTBH = 0 ;

VAR newBlock = 0;
VAR isAvailable = 0;
VAR numTBH = 1 ;
VAR targetRate = 0;
FIX( {Scenario}, {Version} ,"Local","HSP_InputValue")
FIX(@RELATIVE( "New Employees",0), {Department})
FIX({Year},{Job},@LEVMBRS("Period",0))
SET CREATENONMISSINGBLK ON;
"Start Month"(
IF ( @ISMBR( "BegBalance") )
validTBH = 0;
IF ( numTBH > 0 AND "No Year"->"BegBalan
ce"->"IsEmpty" == #MISSING)
IF({FTE}> 1)
@RETURN(@HspMessage("ID_
Err_FTE_VALUE_CANNOT_BE_MORE_THAN_1") , ERROR);
ENDIF
isAvailable = 1;
"BegBalance"->"IsEmpty" = 1;
"Comments" = {Comments};
"Start Month" = {StartMonth}->"C
al TP-Index";
"Health Plan" = {HealthPlan};
"Performance" = #Missing ;
"Hours per Week" = "No Employee"
->"No Job"->"BegBalance"->"Hours per Week";
IF("Hours per Week" == #MISSING)
"Hours per Week" = "No E
ntity"->"No Employee"->"No Job"->"BegBalance"->"Hours per Week" ;
ENDIF
"Working Days" = "No Employee"->
"No Job"->"BegBalance"->"Working Days";
IF("Working Days" == #MISSING)
"Working Days" = "No Ent
ity"->"No Employee"->"No Job"->"BegBalance"->"Working Days" ;
ENDIF
numTBH = numTBH - 1;
validTBH = 1;
ENDIF
ENDIF
)
"Start Month"(
IF ( validTBH == 1 )
"Grade" = {PP_Grade};
targetRate = "No Employee"->"No Job"->"B
egBalance"->@MEMBER(@CONCATENATE("Grade -", @HspNumToString({PP_Grade})));
IF(targetRate == #MISSING)
targetRate = "No Entity"->"No Em
ployee"->"No Job"->"BegBalance"->@MEMBER(@CONCATENATE("Grade -", @HspNumToString
({PP_Grade})));
ENDIF
"Target Rate" = targetRate;
IF ({MarketAdjustment} != 0)
"Market Adjustment" = {MarketAdj
ustment};
ENDIF
"Headcount" = {NumTBH};
"Hiring Status" = [[ApprovalStatus.New]]
;

"FTE" = {FTE}*{NumTBH};
"Tax Region" = {TaxRegion};
"Employee Type" = {EmployeeType};
"Salary Basis" = 1;
"Pay Type" = {PayTypeExempt};
"Start Month" = {StartMonth}->"Cal TP-In
dex";
"Salary Rate" = ("Target Rate" + {Market
Adjustment});
"Health Plan" = {HealthPlan};
"Performance" = #Missing;
IF ( NOT @ISMBR( "BegBalance"))
"Working Days" = "BegBalance"->"
Working Days" / "NumPeriods" ;
ENDIF
IF("Fiscal TP-Index" >= {StartMonth}->"F
iscal TP-Index")
"Action" = [[Status.Active]];
ENDIF
"Hours per Week" = "BegBalance"->"Hours
per Week";
ENDIF
)
SET CREATENONMISSINGBLK OFF;
CALC DIM("Account");
ENDFIX
DATACOPY {Year}->{Job}->"BegBalance"->"IsEmpty" TO "No Year"->{J
ob}->"BegBalance"->"IsEmpty" ;
/*FIX("No Year","No Job","BegBalance","No Project")
"Start Month"(
IF(isAvailable == 0)
@RETURN(@HspMessage("ID_Err_NO_EMPTY_HI
RING_REQUISITIONS_AVAILABLE66_PLEASE_FREE_UP_SOME_HIRING_REQUISITIONS"),ERROR);
ENDIF
)
ENDFIX*/
ENDFIX
ENDFIX

You might also like