cancel
Showing results for 
Search instead for 
Did you mean: 

Lead selection has not been set error

Former Member
0 Kudos

Hi,

I am navigating from one view to another. I know that initially there will not be any data available to the screen elements bound to different nodes and attributes in the destination view. I get a runtime error that lead selection has not been set.

How can i make sure that i dont get this error and rather i can see the fields as blank for which there is no data found.

regards,

Priyank

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Priyank

If your node at a time holds only one element better

make the cardinality 1..1,

it automatically gets initialized

Regards

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you should set your cardinality to 0..N and leadselection abap_false

when you change your nodes in the context menu

grtz

Koen