Fiori Elemnet- CDS View with BOPF CRUD(2)

light111Part-2 Adding a BOPF Determination to set default order status


In the last post  Fiori Element- CDS View with BOPF CRUD we have created a Fiori App with the help of fiori elements  that used the CDS View[ integrated with BO ]generated oData service . In this post here we will a new BOPF Determination to set the default status in the order header.

Let’s see the fiori app first. Here we have the list report and select create.

1

As we have made the status field as readonly, the user can only fill other fields but not the status field.

2

Fill values in other fields and save.

3

Data Saved and go back.

4

Here the status field is remained blank. So let’s proceed to create a BOPF BO Determination and to set a default status to the order header during creation.

5

Open the BO and go the change mode and right click on the Determinations node and create a new determination. Provide a name and a class name. Double click on the class name to create the determination class.

6

The class appears with related interface already implemented. So here we have to make implementation of the EXECUTE method.

7

Now here we set the status to ‘A’ initially. Save and activate it.

8

Let’s put a trigger condition.

9

Also the evaluation point.

10

Now run the app again and create a new record.

11

Provide details and save.

12

During save the BO determination triggered and the order status is set accordingly. Go back.

1314

See the next post Fiori Element- DS View with BOPF CRUD(3)  for set the domain fixed value text.


 

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s