cancel
Showing results for 
Search instead for 
Did you mean: 

If msg is thrown , Selected row disappear in alv

Former Member
0 Kudos

Hi,

I am using ALV to display the data. if i select a record , the corresponding values will be shown in input box.

while saving , i am doing validation , if any mistake is there , i am thro' msg in message class.

My problem.

If msg is thrown , Selected row disappear , How to avoid this ?

Regards,

Rani

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Can you be more clear.

Regards,

Lekha

Former Member
0 Kudos

Hi,

If msg is thrown , Selected row in alv disappers , so i can say Lead selection of a node is set to zero .

So my question is how to set the lead selection?

Before throwing the error i used the stmt:

<node>->set_lead_selection_index( index = < value> .

But stil it is not working.

Regards,

Rani.

Edited by: rani priya on Jun 3, 2009 7:12 AM

Former Member
0 Kudos

Hi,

You can store the lead select index of the row in view attribute or some global variable and in WDDOMODIFYVIEW you can set the lead selection index again.

CALL METHOD LO_NODE->SET_LEAD_SELECTION_INDEX
        EXPORTING
          INDEX = wd_this->index.

Here I've stored the lead selection index of row as view attribute 'Index'.

Hope this helps.

Regards

Manas Dua

Former Member
0 Kudos

Hi,

I tried the same way , But it not working , if i throw the message.

Regards,

Rani.

Former Member
0 Kudos

Hi,

Up on the error, are you deleting the record.

As you said that that row (lead selection) is getting dissappeared.

Are you binding the table (deleting any records) up on error.

And regarding hte lead selection setting, I think after setting the lead selection you are binding the table again. That could be the problem. After biding the table then set the lead selection index.

Regards,

Lekha.