Custom Logic
Custom Logic
1
CREATING CUSTOM LOGIC
In this demo, we will go through the steps of creating a custom logic in the
purchase order in which a simple logic is introduced. Within Purchase
Order processing, a warning is issued once the supplier (customer ID) in
the purchase order is maintained in the Custom Business Objects table
introduced in the demo on Creating, Generating and Assigning Custom
Business Objects.
Would you like to know how a key user creates custom logic for custom
business objects?
2
CREATING CUSTOM LOGIC
(1) To open the app, select the Custom Fields and Logic tile .
3
CREATING CUSTOM LOGIC
4
CREATING CUSTOM LOGIC
5
CREATING CUSTOM LOGIC
6
CREATING CUSTOM LOGIC
(10) To see the code below, select the scroll bar to scroll down.
7
CREATING CUSTOM LOGIC
The default code in the code area here will be replaced by the custom
code that you would need.
Make a note of the message here as this will be displayed when you are
testing your custom logic in the next steps.
8
CREATING CUSTOM LOGIC
Choose Publish.
9
CREATING CUSTOM LOGIC
Before you can test the custom logic you created, ensure that the relevant
customer numbers are maintained in the PO_CHECK table. This is
already done for you here.
10
CREATING CUSTOM LOGIC
(15) To test your custom logic enhancements you create or edit a purchase order with the
supplier code 0017300001.
This should display the same message as maintained in the custom logic code.
11
CREATING CUSTOM LOGIC
When you try to save or edit the purchase order with supplier number
17300001, a message shows as maintained in the custom logic code.
12