We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Behaviour of LVC_T_Row in Sorted and Filtered ALV Grids?

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from mic-bv on Feb 5 at 4:22 AM
Ok, found the answer already myself:
when layout-SelMode is 'A', the reply of selected lines is regarding to the original / given table. If it's 'D', then it's referring to the displayed table. Maybe that will help others? ;)

---------------Original Message---------------
From: Stefan Vermeulen
Sent: Wednesday, February 05, 2014 3:59 AM
Subject: Behaviour of LVC_T_Row in Sorted and Filtered ALV Grids?

I'm using a ALV-Grid with OO - Container (CL_GUI_ALV_Grid / CL_GUI_Custom_Container).

Within that ALV the user can mark some lines, which I get with "Get_Selected_Rows".

I always thought that the given Rows are still refering to the input-table I handled over with "Set_Table_for_First_Display". However, on one system a user sorted the table and filtered some entries - and strangely the selected rows are referring to the table as it is displayed.

Example

Row Content
1 AA
2 AB
3 AC
4 BA
5 BB
6 AD

The user sorty by Content and filters it on A*, so I is displayed
1 AA
2 AB
3 AC
4 AD
(while the Table in the originating report remains with 6 lines...).

When the user marks the line AD, the result of "Get_Selected_Rows" is 4, not 6 as expected.

Is that depending on some settings?

If not, I would have to copy the original table, sort it and filter the entries - all depending on "Get_Sort_Criteria" and "Get_Filter_Criteria" - and that for every handling of selected rows... :( - or is there another easier way?

Thank you very much!

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
mic-bv  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language