Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member186648
Active Contributor

Hi,

In this document i would show how to add KUT extension query parameter to standard query.

To demonstrate, i have taken Opportunity OWL as example.


Here i would add KUT extension field named "CustomParameter1",
Part1: add this field to the Advanced search pane of the standard Opportunity OWL,
Part2: how to populate the KUT field,

Part3: how to populate the KUT field via SDK.

Part1: Adding KUT extension field to Opportunity OWL Advanced search

1)  Opportunity OWL with only standard query parameters shows the following data:

2)

Select Advanced Search in the OWL (this is important),

select menu Adapt -> Enter Adaptation Mode

select manu Adapt -> Edit screen

select Extension Fields section -> select General -> select Add button:

Here i have added KUT field named "CustomParameter1" which is of type Indicator and with default value as true.

3) For the KUT field added , set Visible to true and select "Further Usage" link:

4) Select "Services" tab , select "Add Field" button to add KUT field to the following service:

Now you should be able to see the KUT field "CustomParameter1 in the OWL Advanced search as query parameter:

Select the query parameter, you will not see any data because the value for this field is empty in all opportunities:

----------------------------------------------------------------------------------------------------------------------------------------------------------------

Part2: How to populate data into the KUT field:

1) Add the KUT field to the Opportunity OIF screen by following the steps:
Navigateto Opportunity OIF screen,

go to Adaptation mode,
select Extension Fields section,

select Untitled Table,
select the KUT field "CustomParameter1",

select the Visible checkbox to true.

Now, the KUT field would be available in the Opportunity OIF List to enter value into the KUT field:

Let's create Opportunity with Description "Test" and set KUT field "CustomParameter1" to true.

2) Now go to the Opportunity OWL

and select the KUT field,

it would display the saved opportunity data in the above step:

------------------------------------------------------------------------------------------------------------------------------------------------------


Part3: Alternatively we could also populate value for the KUT field via SDK


1) For this create Custom Object Reference and include the KUT field:

2) Create XBO on Opportunity:

3) Add event Item->BeforeSave and assign the KUT field:

Note:
Part2 and Part3 would save data into the KUT field only for the opportunities created after adding the KUT field,

If you want to update the KUT field for the existing opportunities, then you could create MDRO.

How to create MDRO:

http://scn.sap.com/thread/3602067

http://scn.sap.com/thread/3901711

Other related links:

How to hide show dropdown option of OWL UI dynamically

Thanks, Pradeep.     

1 Comment