cancel
Showing results for 
Search instead for 
Did you mean: 

Lead Selection Error

Former Member
0 Kudos

Hi i am trying to create an alv table to my view ADMIN_VIEW....and when i test the application i am getting the follwing error:The lead selection has not been set.ADMIN_VIEW

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Suma,

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.

As per my understanding the reason for to get this dump is that you have set

the property "Initialization Lead Selection" to true of a context node in the

CALLED view.. now since initially there is no data in your context the system

is not able to perform this action and hence you get this dump. Uncheck this

and it should work fine.

Please go to transaction ST22, select your dump and have a deeper look at it.

I assume that the dump occurs during the rendering phase (some classes containing something with "..adapter".

In most of these cases the data of a deepter node should be rendered. But if the parent node is empty, no lead selection can be set, and the rendering class has nothing to render, because the node, where the data should be, does not exist.

In this case you should make the ui elements invisible, which bind to the deeper node. You can do so either by context binding to a context attribute at the root node or a node in first level.

Another possibility is to call CL_WD_DYNAMIC_TOOL=>SET_VISIBLE_FROM_ELEMENT in the WDDOMODIFYVIEW method.

Hope this answer will help you.

Cheers,

Darshna.

Answers (0)