Form Personalization on Move Order Form

Basic business need
Department code should be validated against move order transaction type along with location.
Enforce validation if user selects wrong department

Right set of departments will be defined in lookups against transaction type + location

Enable Form Personalization

Sequence: 50
Description: Validate department based on transaction type + location

Trigger event: when-validate-record
Trigger object TOMAI_MAIN_HEADER_BLK

Condition:
   ( SELECT count(lookup_code)
        FROM apps.fnd_lookup_values
       WHERE     lookup_type = 'DCF_INV_MO_DEPT_VALIDATION'
             and description = (:TOMAI_MAIN_HEADER_BLK.TRANSACTION_TYPE_NAME||'+'||:TOMAI_MAIN_HEADER_BLK.TO_LOCATION)
             AND enabled_flag = 'Y'
             AND start_date_active <= SYSDATE
             AND meaning like '%'||:TOMAI_MAIN_HEADER_BLK.ATTRIBUTE1||'%'
             AND NVL (end_date_active, SYSDATE) >= SYSDATE)         = 0


Actions:
Seq: 10
Type: message
Description: Invoke error message
Message type: Error
Message text: Invalid department. Choose correct department for your transaction type and location combination


Lookup type: DCF_INV_MO_DEPT_VALIDATION
Meaning: DCF_INV_MO_DEPT_VALIDATION
Application: dcf custom application
Description: DCF Inventory move order department validation

Code:100
Meaning 10,11
Description: Move Order Issue+Salalah
Tag: 1

Comments

Popular posts from this blog

How to use lexical parameters in Data template (XML document) R12

Query to get FSG report details with row/column set

Sub Inventory Transfer API.