Skip to Content
author's profile photo Former Member
Former Member

UDF help required

Hi experts,

Can you please help in UDF where I have two inputs, Field 1 and Field 2 each context may have values from 1 to many. I want output of Field 2 based on removing or suppressing how many values are there in Field1 context.


attached in screenshot where field 1 i have only one value in context and field 2 i have three values so i want to eliminate or suppress first value in field 2

since the field 1 is having one value.

If field 1 is having two values in a context and field 2 has three values in a context then i want output as field 2 with last third value only.

UDF_Queue.jpg (31.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 03, 2014 at 05:44 PM

    Hi Prasad,

    Did you check the node function OneAsMany ?

    useOneAsMany (SAP Library - Partner Connectivity Kit)

    Kind regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 06:56 PM

    You can also do simple java mapping for this. Create one list for the field1 and second list for the field2. The third ouput list will do for loop to read the first list and check each content in the second list using another for loop and if matches don't add in the third list and if no match found then add it .

    Basically you create java.list

    List (Java Platform SE 7 )

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.