Вы находитесь на странице: 1из 2

Hi All,

Our HR department required to create a custom form in order to records all employee's expenses.
You may find detail on requirements below.

We have table (you can describe in database EBSDEMO122.STONE-APPLE.COM):


- XX_EMP_EXPENSES_HDR
- XX_EMP_EXPENSE_LINES

Build the form as master detail form.

=====================================================================================
=
For Header table (XX_EMP_EXPENSES_HDR) below is the requirement

1. EXP_HEADER_ID derived from sequence XX_EMP_EXPENSES_HDR_SEQ


Do not displayed.

2. EMP_ID from table employee (XX_EMP.EMP_ID). Make it as LOV


Please display the employee name instead the item ID.
EMP_ID will be not displayed and required.
EMP_NAME will be displayed and required.

3. EXPENSE_NUM = CURRENT_DATE,'YYMMDDHH24MI'||'-'||MAX(expense_num of employee + 1)


Displayed and Required.
Last digit after '-' is unique per employee.
How to derive expense num by examples:
example:
-------------- --------------
A B
-------------- --------------
1511231100-1 1511201215-1
1511211315-2
1511221415-3
1511241700-4

4. DESCRIPTION = free text


Displayed and optional

5. DEPARTMENT_NAME
Derived from employee (XX_EMP) join with department (XX_DEPT).
Displayed and not editable.

=====================================================================================
=
For Header lines (XX_EMP_EXPENSE_LINES) below is the requirement
1. EXP_HEADER_ID derived from header table (XX_EMP_EXPENSES_HDR.EXP_HEADER_ID)
Do not displayed and required

2. EXP_LINE_ID derived from sequence XX_EMP_EXPENSES_LINE_SEQ


Do not displayed and required

3. LINE_NUM will be FREE NUMBER, but try to make it running number per expense header
Displayed and required

4. ITEM_ID from table expense items (XX_EMP_EXPENSE_ITEMS.ITEM_ID). Make it as LOV


Please display the item name instead the item ID.
ITEM_ID will be not displayed and required.
ITEM_NAME will be displayed and required.

5. DESCRIPTION = FREE TEXT


Displayed and optional.

5. QUANTITY = POSITIVE INTEGER


Displayed and required.

6. UNIT_PRICE = POSITIVE INTEGER


Displayed and required.

7. AMOUNT = QUANTITY * UNIT_PRICE (NON-EDITABLE)


Displayed and not editable.

8. Validation:
ITEM per expense header must be unique.
2nd entry should pop up error message: The item has been entered

Please name your form with prefix: XXEXP

With suffix:
1 – Hardi
2 – Andre
3 – Andhika
4 – Hery
5 – Herlina
6 – Indah

Вам также может понравиться