cancel
Showing results for 
Search instead for 
Did you mean: 

Binding of an inputfield to a value

Former Member
0 Kudos

Hi,

I've been able to bind tables, but am absolutely clueless on binding an inputfield to a value. Here's the scenario. I've four input fields, where I'm entering values in the first three to get the fourth. The fourth value is an export (return) parameter of the BAPI. After the BAPI is called, i need to display the value returned by the BAPI in the fourth inputfield. Hope this information is enough.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi lloyd.........

create 4 attributes...... either in a single node or different nodes.

all are bound to 4 input fields........

attr1 and attr2 are exported to the bapi.....

so when a button is clicked..... read teh 2 attributes using code wizard and pass it tot he bapi....

once the bapi is executed it retursns var1 and var2.

now write the coding as:

<reference>->set_attribute(

name = <attribute name>

value =var1).

do the same for the var2 also.

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex,

You're solution worked out. Thanx a lot

Regards,

Lloyd

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lloyd Aloysius King ,

Do like this

Create a nodeA with three attributes:

Create a node B with one attribute

then bind these attributes(of node A) to your input fields:: go to layout->go to the properties-> click data source and then map the attributes.

then on the third input field on the 'on enter event' create a method.. inside the method. read the node A. Now call the bapi with the parameters read, it will give you the result to be displayed in inputfield 4.

now bind the value to the attribute of node B.

Note:bind the attribute od Node B to inputfield4.

Regards

Sarath