Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Popup function with default selection

Former Member
0 Likes
634

I have checked those functions to display a selection table and from there select a line to treat.

     Function POPUP_WITH_TABLE and function REUSE_ALV_POPUP_TO_SELECT.

My problem is that I can't set default line selection. Is there a way to do it with these functions or I should use another function?

Regards,

Daniel Cantin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

Hi Daniel,

Use the FM REUSE_ALV_POPUP_TO_SELECT. In your final internal table, have a additional field "CHECK" with type char01. Make/Display that field as check box through the ALV fieldcatlog.

Set the field "CHECK" to X in your internal table for the needed default row. For example, if you want to set the third row as default, set the field "CHECK" to X for that third row.

Cheers

~Niranjan

1 REPLY 1
Read only

Former Member
0 Likes
468

Hi Daniel,

Use the FM REUSE_ALV_POPUP_TO_SELECT. In your final internal table, have a additional field "CHECK" with type char01. Make/Display that field as check box through the ALV fieldcatlog.

Set the field "CHECK" to X in your internal table for the needed default row. For example, if you want to set the third row as default, set the field "CHECK" to X for that third row.

Cheers

~Niranjan