cancel
Showing results for 
Search instead for 
Did you mean: 

Table binding Problem................

Former Member
0 Kudos

Hi all,

i want to bind ABAPstructure bind into webdynpro table ui element.If i statically bind I will get all the values.But I don't want all the filelds of that structure.How can i bind those fields into my table.

I f any body have idea plz send the code/Document.

Thanks,

santhosh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Santosh,

At the time of binding of table with model, just select only the required variables.

Other approch is to create a new valuenode with attributes for the table as per the requirement. Then Call RFC.After that, copy the values from model node to this value node.

Eg:-

Let ur model node contains ID,FirstName,Last Name, Age out of which u need only ID and FirtsName.

Then create a value node (Say MyTab) with attributes ID and FirstName.

Then copy the values to this node using the following code

IPrivate<View>.I<MyTab>Node tNode=wdContext.nodeMyTab();

IPrivate<View>.I<MyTab>Element tEl;

for(int i=0;i<modelNode.size();i++)

{

tEl=tNode.createMyTabElement();

tNode.addElement(tEl);

tEl.setID(modelNode.get<modelNode>ElementAt(i).getID());

tEl.setFirstName(modelNode.get<modelNode>ElementAt(i).getFirstName());

}

Regards

Fahad Hamsa

arun_srinivasan
Contributor
0 Kudos

HI Santhosh

In the outline tab

Select the RootUIElementcontainer > Right click > Select Apply templete

Select the table from the list of template , In the table binding wizard select the context from the structure which ever you want to bind and click next and select the properties table column like textview , input field etc . Move the column up and don as you like and click finish

Thanks and Regards,

Arun