Skip to Content

SAP C4C - Use KUT field in ABSL query

Hello experts,

I'm looking for a way to use a custom field defined via KUT in an ABSL query in the Cloud Application Studio.

I've read the following posts, but they don't give a definitive answer:

The field is an extension field on the Customer Business Object and is already made available via a .ref file in the Cloud Application Studio.

query2 = Customer.QueryByIdentification;
param2 = query2.CreateSelectionParams();
param2.Add(query2.HeaderExtSubChannel.content, "I", "EQ", this.AccountType.content);
result2 = query2.Execute(param2);

Above code is what I'm trying.

Where "HeaderExtSubChannel" is the extension field defined via KUT.
But... It's not working.

Any suggestions are more than welcome!

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 25, 2017 at 09:26 AM

    Hi Glenn,

    Add the KUT field to the QueryCustomerIn Service by going into KUT field definition -> Services tab. Once field is added to the query, you can check the same in Code completion in SDK as well



    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2017 at 08:04 AM

    Hello Glenn,

    You have to implement a reference to Customer-Specific Fields. This is an object addable in the add new item Pop-Up.

    There you have to select the Key User Tool created fields.

    Now you should be able to select them.

    Kind Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Johannes,

      No that's not the problem...

      In code below when I type "query2." and use code completion, the field isn't even showing up.
      While all other extension fields are showing up. That's because they are made with the Studio and are included in the Extension Scenairo.

      param2.Add(query2.HeaderExtSubChannel.content, "I", "EQ", this.AccountType.content); 
  • Feb 04 at 12:26 PM


    I am using also KUT fields in my QuerybyElements.

    My impression is, that KUT fields are not indexed, so full table scan happens, If I rund a query on such field.

    How can I add the KUT to be indexed by the HANA DB?


    Add comment
    10|10000 characters needed characters exceeded