cancel
Showing results for 
Search instead for 
Did you mean: 

Filter on OWL

Former Member
0 Kudos

Hi,

I have added the owl screen of custom BO as the new tab in the standard BO.

The data is appearing in this new tab. I have created the filter also as per the "

https://blogs.sap.com/2015/03/03/how-to-create-an-advanced-filter-in-custom-owl-screen/

" is there any way I can create a filter which selects only relavant values not all.

e.g. I have created a CoContactsBO and added this BOs owl screen into the accounts as the new tab. the data appears in the new tab.

here all the data is selected but as the correct data only last line should appear.

in the filter I created works when we enter the filter value in that but not automatically.

is there any way to do it?

regards,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Saurabh,

How can I do that?

Regards,

Amrit

former_member226
Employee
Employee
0 Kudos

Hi Amrit,

We did the similar thing in our project . For your case lets create simple BO with following structure:

import AP.Common.GDT as apCommonGDT;
businessobject ACC {
element AccountID : BusinessPartnerInternalID;
element Value : DecimalValue;
}

step 1.Now Create a EC. Open the EC and Go To ToolBox and Add a 'AdvanceListPane' to your screen.

alp.png

Step 2.Please do bind the newly added List Pane and its corresponding data list as attached:

bindings.png

Step 3.Create a new Inport in your EC. Configure it as follow: (Event Handler Config is explained in following section )

inportconfig.png

Step 4. Create a new Query in your EC and configure it as attached:

queryconfig.png (make sure you bind the result data list which is in this case the same as in step 2.)

Step 5.Configure the Corresponding Event Handler as attached:

eventhandler.png

Step 6. Attached the EC Created to standard Screen.

ec-binding-to-std.png

Thats it!.

my BO Data:

my-bo-data.png

Test Result:

test1.png

test2.png

Thanks

Saurabh

Former Member
0 Kudos

Hi saurabh,

Inport is in .EC and I am getting the standard AccountID there already as in the first screen above

.

Do you mean that I should pass the Account ID in Embedded component Query AccountID as there is no Inport in OWL?

Regards,

Amrit

former_member226
Employee
Employee
0 Kudos

Hi Amrit,

Yes correct , you have to pass the InPort Account ID to the Query Account ID.

Thanks

Saurabh

former_member226
Employee
Employee
0 Kudos

Hi,

When attaching your OWL to Account screen you might have done the binding to pass the parameters for navigation. There you need to pass also AccountID from Standard Outport to Inport of your screen. And the event triggered should have an additional step(In Event Handler) to pass Inport AccountID to Query AccountID Parameter . Please refer the Attached Snap shot for Reference.