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:
OWLResult.PNG

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:

AddKUT.PNG

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

3) For the KUT field added , set Visible to true and select “Further Usage” link:
FurtherUsage.PNG

4) Select “Services” tab , select “Add Field” button to add KUT field to the following service:
EnhanceService.PNG

Now you should be able to see the KUT field “CustomParameter1 in the OWL Advanced search as query parameter:
QueryParameter.PNG

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

—————————————————————————————————————————————————————-

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.

OppItemUI.PNG

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

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:

QueryResultWithVaue.PNG

——————————————————————————————————————————————————


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:

ObjReference.PNG

2) Create XBO on Opportunity:

XBO.PNG

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

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.     

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply