cancel
Showing results for 
Search instead for 
Did you mean: 

Remove [] from context

former_member312864
Active Participant
0 Kudos

Hi,

I am getting a null value("[]") from the output of RFC Lookup[image attached].

I have tried with UDF to remove that still its appearing in the output context.

How to remove that "[]" from context ?

Thanks

Sarojkanta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

It's a empty value not a null value...Use this mapping just after ur RFC lookup:

Input -> equalsS() -> not -> IfwithoutElse (Input -> Then) -> Output

Thanks

Amit Srivastava

Answers (1)

Answers (1)

ambrish_mishra
Active Contributor
0 Kudos

Hi,

You can send the output of the queue to the code below:

String temp = "";

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

    if (input[i].equals(""))

        continue;

    else

        temp = input[i];

}

result.addValue(temp);

Hope it helps!

Ambrish