Navigation: Help>Diagnostics>Custom Code > Personalize.
1. Enter Seq:10
Description : Warehouse Mandatory
Level:Function
Condition:
Trigger Event:WHEN-NEW-FORM-INSTANCE
process:Both
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGAzfWnMHUo_UG9wxU5IFd4C9EmVFMmzW_9hxTlgNnH_YF3tPA-LnkVKhmK76Woyu6mUVIYt9yKVPaC3MXjq9DlF0vtfye3gskV8mGxC9qThR9v2pb9_AJgQzdyORWqBU2QYYV8BW2zKci/s400/1.jpg)
Context:
Responsibilites: please assign the responsibilites (order management) as required.
Actions Tab:
Seq:1
Type: Property
Language: All
Enabled:Checked
Object Type:Item
Target Object:LINE.SHIP_FROM_MIR
Porperty Name:Required
Value:TRUE
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOvZJm-thzaQZVMHoyxDK3AFcNbrs3AlIr9vACSPCsoDHv6D5p39F_f9myXHmeXfvAuRagTH3nne8RtFNakxVDfikOr0q41D8qysegRMgE1F8nuKQbFJLhCyNjAYqs6z-YiydFJdqMnr05/s400/2.jpg)
2.Enter Seq:20
Description:Show message when trying to save with null value in mandatory warehouse field
level:Function
Condition:
Trigger Event:WHEN-VALIDATE-RECORD
Trigger Object:Line
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOtcLI8WZcIBw8_C2PfBfpg5JjiAqGQOlmubC3SyrdTaGmnfqZgeMGwBuSiy3CuVerALl-qNByEnUA-E88Cp3VFGYWKZtIhv5GubkBJC4XaqkUoMRcHtNUdYfgkKNV2BW9yQ-bspiZu8F3/s400/5.jpg)
Condition:
:LINE.SHIP_FROM_MIR IS NULL
and ((:LINE.ORG_ID=X and :LINE_TYPE<>1001)
OR(:LINE.ORG_ID=Y and :LINE_TYPE<>1025
Processing Mode: Both
Note: please check the line_type or order type id which need to be included in the above condition in this for back order line type id.
Context:
Responsibility: assign the list of responsibilities as required.
Action Tab:
Enter Seq:10
Type:Message
Language: All
Enabled:checked
Message Type:error
Message Text:Please Enter a Warehouse
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvlxWEvcL0VwpBFWoU6r_r-nC3NBnZLSJuuqbsp53pZP03iLbPDuYub45sOg10asFdlQtafTG4vBXv6fbVuzfOQRmqpjWkFc88N_pmwsY7XJOK_lCFacCd3gvg8oe_0cHx8VO6pXMbcsqK/s400/4.jpg)
When users enter orders with out a warehouse they cannot book the order and they get a popup message please enter a warehouse.
No comments:
Post a Comment