cancel
Showing results for 
Search instead for 
Did you mean: 

Run time error while running a webdynpro - urgent

Former Member
0 Kudos

Hi Guys

I am getting the following error while running the webdynpro.

My Default view is a INPUT_VIEW.

please see below runtime error

Regards,

Rahul

===========================================================

The following error text was processed in the system NSP : The lead selection has not been set. INPUT_VIEW

The error occurred on the application server BomwSAPk210_NSP_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: RAISEELEMENT_NOT_FOUND of program CL_WDR_CONTEXT_NODE===========CP

Method: PATH_TABLE_GET_ELEMENT2 of program CL_WDR_CONTEXT_NODE===========CP

Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP

Accepted Solutions (1)

Accepted Solutions (1)

S-H
Active Participant
0 Kudos

Hi Rahul,

The error appears when a UI element is bound to a context node or attribute on a node , where this node is defined as : cardinality 0..n or 0..1.

The framework will not create a default empty element in this case.

When the view is to be rendered, its source content doesnt exist. AS the node

has no elements. rendering fails.... Now in your case check for the cardinality. You can try with different cardinalities as per your requirements.

Check also the initialization lead selection property:

For cardinality: 0..n, selection: 0..1, initialization lead selection: false

and for cardinality: 1..n or 1..1, selection: 0..1, initialization lead selection: true

Best regards,

Suresh

Former Member
0 Kudos

Thanks a lot Suresh

Problem is solved.

Answers (2)

Answers (2)

roger_sainsbury
Advisor
Advisor
0 Kudos

Thanks guys, this thread helped me too.

In my case I had a table of item data. There won't necessarily be any items, so I had cardinality 0..n.

However it makes sense that you can't bind to a context element if it doesn't exist. So I changed cardinality to 1..n - e.g. I always want at least one instance of the node, even if there's no data in it.

Roger

Former Member
0 Kudos

Hi Rahul,

In the component controller, put a 'tick' mark on the checkbox "Lead selection". Do this for all the context nodes. Then, activate the entire component.

Regards,

Ram