cancel
Showing results for 
Search instead for 
Did you mean: 

Instantiating Model Node in Component Controller with new Abstractlist()

Former Member
0 Kudos

Hi All,

We have the following issue.

When we instantiate a Node - Po_Items using Element.setPo_Items( new AbstractList() )

We get an error "The Type AbstractList Cannot be instantiate" .

So how to successfully instantiate AbstractList() so that ultimately the BAPI_NODE_INPUT can be instantiated.

Best Regards,

Roby...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Just check, do you have Element.addPo_Items(<Po_Item>);

Use this method for adding values to your parameters.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza,

Thanks alot for the response.

I tried initializing Node using

Element.addPo_Items(new Bapiekpoc());

But its not getting initialized and I get following errror when I run the application.

-


500 Internal Server Error

Web Dynpro Container/SAP J2EE Engine/6.40

Failed to process request. Please contact your system administrator

-


Is there any other way to initialize the Po_Items Node which which is inside the Model Node BAPI_PO_CREATE_INPUT.

BAPI_PO_CREATE_INPUT ( Model Node )

-- Po_Items ( Subnode which is an input table inside the BAPI )

Thanks again & Best Regards,

Roby....

Former Member
0 Kudos

Hi,

BAPI_PO_CREATE_INPUT input = new BAPI_PO_CREATE_INPUT();

wdContext.nodeBAPI_PO_CREATE_INPUT().bind(input);

Bapiekpoc ele = new Bapiekpoc();

ele.set<attribute>(<value>);

input.addPo_Items(ele);

Just see if you are missing any of the line of code.

Regards,

Murtuza