Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in Structure of callable object output parameter

Hi all,

Could anybody help me solve my problem?

I have created one Web Dynpro project and created callable object in GP

for this project. In Web Dynpro project one multi row select table is there. So, I want to expose the values of multiple selected rows in GP as output parameter. For this situation I have created a structure within Web Dynpro “getDescription()” method

as a list and the attributes are added within the structure.

Within another custom method(which is called by a button) I am fetching the values of selected rows from the table and setting those values to the attributes of the structure. But in GP we are getting the value of only one selected row as the output parameter. I think the problem is coming from binding the values of selected rows of table to the attributes of the structure.

The code for that particular areas :

Within “getDescription()” method ->

//Pre-existing structure for output parameters

IStructureInfo output =


//Create the attributes in the output structure

IStructureInfo accountStructure = output.addStructure("NameOutPutData");


accountStructure.addAttribute("Name", IAttributeInfo.BASE_STRING);

Within the custom method which is called by a button ->

IStructure output = executionContext.getOutputStructure();

IStructure accntstr= output.addStructure("NameOutPutData");

//For fetching the data from multiple selected rows

IPublicSelectTableCompInterface.IDetailElement DetEle = null;

int leadSelection = wdContext.nodeDetail().getLeadSelection();

for(int p = 0; p < wdContext.nodeDetail().size(); p++)


if( leadSelection == p || wdContext.nodeDetail().isMultiSelected( p ) )


DetEle = wdContext.nodeDetail().getDetailElementAt(p);

//For setting the data to attributes of structure

accntstr.setAttributeValue("Name" , DetEle.getAttributeAsText("name"));



Former Member
Not what you were looking for? View more on this topic or Ask a question