cancel
Showing results for 
Search instead for 
Did you mean: 

Store the BAPI return Value IN Java Object

Former Member
0 Kudos

Dear All,

I return the BAPI value by Adaptive RFC. The Return Node contains the value Attributes.

While I set the value attribute(String) bind as DropDown Value all the values are shown in the DdropDow at run time.

Now I want to concatenate the value.But I am unable to get the all values return from BAPI to store in local String or List.

How Could I Store the value in Local Java Objects

Best Regards

Mukesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

here is the code you had asked for.

String concatenatedValue = "";

for(int i=0;i<wdContext.node<node_name>().size();i++) {

concatenatedValue += ((IPublic<controller_name>.I<node_name>Element)(wdContext.node<node_name>().getElementAt(i))).get<attribute_name>());

}

Hoping that this helps.

Thanks and regards

RK

Former Member
0 Kudos

Hi,

I Solved the Problem.

Thank You Very Much

Best Regards

Mukesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Run a loop thru all the model node elements an get each individual element. And then get the value of each element's attribute and concatenate them.

If you wanna code snippet kindly let me know.

Thanks and regards

RK

Former Member
0 Kudos

Hi,

I need the code snippet .Please send it to me

Thanking You

Best Regards

Mukesh