Below is a Sample Formula showing How to Call a Fast Formula from another Formula :
DEFAULT FOR ASG_HR_ASG_ID is 0
DEFAULT FOR PAY_EARN_PERIOD_END is '4712/12/31 00:00:00' (date)
SET_INPUT('HR_ASSIGNMENT_ID',ASG_HR_ASG_ID)
v_asg_id = ASG_HR_ASG_ID
l_date_earned = GET_CONTEXT(DATE_EARNED, PAY_EARN_PERIOD_END)
CALL_FORMULA('GET_HR_DATA'
,ASG_HR_ASG_ID > 'HR_ID'
,l_date_earned > 'EFF_DATE'
,'PER_JOB_ATTRIBUTE1' > 'MODE'
,l_OUTPUT_TEXT < 'X_OUTPUT_TEXT' DEFAULT ' ')
v_job_att = l_OUTPUT_TEXT
RETURN v_job_att
DEFAULT FOR ASG_HR_ASG_ID is 0
DEFAULT FOR PAY_EARN_PERIOD_END is '4712/12/31 00:00:00' (date)
SET_INPUT('HR_ASSIGNMENT_ID',ASG_HR_ASG_ID)
v_asg_id = ASG_HR_ASG_ID
l_date_earned = GET_CONTEXT(DATE_EARNED, PAY_EARN_PERIOD_END)
CALL_FORMULA('GET_HR_DATA'
,ASG_HR_ASG_ID > 'HR_ID'
,l_date_earned > 'EFF_DATE'
,'PER_JOB_ATTRIBUTE1' > 'MODE'
,l_OUTPUT_TEXT < 'X_OUTPUT_TEXT' DEFAULT ' ')
v_job_att = l_OUTPUT_TEXT
RETURN v_job_att
:) you got description in it Great :)
ReplyDelete