Skip to Content
0

Standard Query check if KUT field is Initial

Apr 27, 2017 at 10:34 AM

94

avatar image

Dear Community,

While developing on a ByDesign tenant, I am trying to retrieve all Customers using the standard query Customer.QueryByIdentificaion.

By following these steps, I was able to make it possible to use a a customer-specific field to as a query parameter for the standard query:

https://blogs.sap.com/2016/06/01/how-to-add-custom-field-to-standard-query-as-parameter-2/

The KUT field is of the type "Text".

If I add the following query parameter to my query, all Customer objects are being retrieved.

query_customer_params.Add(query_customer.C4CInternalID_EA8AE8AUBVHCSXVYS0FJ1R3ON, "I", "EQ","")

I want to retrieve all customer objects on which this field is Initial.

Unfortunately

query_customer_params.Add(query_customer.C4CInternalID_EA8AE8AUBVHCSXVYS0FJ1R3ON, "I", "GT","1") 

produces a screen dump.

Can someone help me?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Schaude
Apr 27, 2017 at 11:51 AM
0

Hello Dominik,

Did you add the Extension Field via "References to Customer-Specific Fields" to the solution?

HTH,
. Horst

Share
10 |10000 characters needed characters left characters exceeded
Dominik Gaßl Apr 27, 2017 at 01:00 PM
0

Hello Horst,

thank you for your quick reply. Yes I did.

It is accessible on the node

 Customer.CurrentCommon

Best wishes

Dominik

Share
10 |10000 characters needed characters left characters exceeded