UDF can be written for many different purpose, and with many different way of coding. Still, there should be some reusable coding/statement/patterns that keep on occurs again and again. In this document, is my attempt to list down some common coding/statement and patterns that known. Below meant to be building blocks, mean not use it standalone, and should mix and match with other building blocks to come out something useful. It just like LEGO. 🙂
I had made a post in SCN, not going to repeat it here. Click this link to check it out. Like if you like 🙂

UDF Basic Building Block
Tagged on:

5 thoughts on “UDF Basic Building Block

  • October 5, 2015 at 2:00 pm

    It’s remarkable for me to have a website, which is helpful in favor of my know-how.
    thanks admin

  • July 18, 2018 at 10:53 pm

    Great SAP Blog Article for this topic. Very intuitive. THANK YOU!

  • February 11, 2022 at 1:10 am

    Hi Yee,

    I have a doubt on the below UDF.


    for (int i = 0; i < contextValues.length; i++){

    String value = contextValues[i];

    if (!ResultList.CC.equals(value)){



    The about udf is for context or Queue.

    Please check and confirm.

    Thank you

    • February 14, 2022 at 7:40 pm

      Hi Krishna,

      Since is check if is context change or not using ResultList.CC.equals(value), so is for whole queue, not particular context.


Leave a Reply

Your email address will not be published. Required fields are marked *