cancel
Showing results for 
Search instead for 
Did you mean: 

The lead selection has not been set

Former Member
0 Kudos

All,

I am a newbie in ABAP WebDynpro and I looked at the forum for any specific answers. Though there were several postings on this subject,none of them solved my error, so i thought of asking directly to the forum.

I have my main view with selection fields allowing the users to put in employee number and click on the button to query the data. Same view also contains the 'Employee name' field that is going to be populated from the table value returned by BAPI. In the view context, i have set in the node properties as:

Cardinality - 0..n

selection - 0..1

lead selection - checked

Singleton - Checked

While loading the application, i get an error: The lead selection has not been set. MAINVIEW

The understanding i got from the forum is, this issue is to do with mapping of a table field to an element (employee name). Though i tried to correct this, the error still remains. Also to point out, i have no coding done in WDOINIT method. Should i be looping in this case ? If so how do i do ? Any documentation that can point me an example ? I appreciate any guidance on this.

Thanks

Padma S

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hai,

change the cardinality as 1...1.

Former Member
0 Kudos

Thanks Abhi and Dinesh. That was useful,

Padma S

abhimanyu_lagishetti7
Active Contributor
0 Kudos

change the cardinality to 1..n

Abhi