0% found this document useful (0 votes)
51 views12 pages

Custom Logic

This document demonstrates how to create a custom logic in a purchase order application. It shows the steps to introduce a simple logic that issues a warning if the supplier in the purchase order matches one in a custom table. The steps include opening the custom fields and logic area, creating new custom logic, selecting the purchase document and enhancement option, adding code, saving and publishing the logic, and then testing it by creating a purchase order for a supplier in the custom table.

Uploaded by

Raghubir Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views12 pages

Custom Logic

This document demonstrates how to create a custom logic in a purchase order application. It shows the steps to introduce a simple logic that issues a warning if the supplier in the purchase order matches one in a custom table. The steps include opening the custom fields and logic area, creating new custom logic, selecting the purchase document and enhancement option, adding code, saving and publishing the logic, and then testing it by creating a purchase order for a supplier in the custom table.

Uploaded by

Raghubir Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Creating 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?

If so, follow this interactive demo.

2
CREATING CUSTOM LOGIC

(1) To open the app, select the Custom Fields and Logic tile .

(2) Choose Custom Logic.

3
CREATING CUSTOM LOGIC

(3) Choose the Plus icon to create new custom logic.

(4) Open the Business Context list.

4
CREATING CUSTOM LOGIC

(5) Select Purchasing Document.

(6) Open the Enhancement Option list.

5
CREATING CUSTOM LOGIC

(7) Select the Final Check in Purchase Order Before Saving.

(8) In the Name field, enter PO_CHECK and press Enter.

6
CREATING CUSTOM LOGIC

(9) Choose Create.

(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.

The new updated code is now available here.

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

(11) Choose Save Draft.

(12) The save success message displays.

Choose Publish.

9
CREATING CUSTOM LOGIC

(13) Choose OK.

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

(14) Choose Home.

(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.

To open the app, select the Create Purchase Order tile.

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.

This concludes the interactive demo.

12

You might also like