‎2010 Oct 26 3:09 PM
Hello Everyone,
I am using ALVs in my Project (OO Approach). I have two different ALVs on two different Screens. I am selecting some rows and clicking on a Button (PRINT) and performing the required action.
Everything is fine with the ALV on one Screen, but on the other Screen starts the problem.
When i click on the Button for the first time, get_selected_rows is returning the rows that have been selected, but when i come back and click on the Button for the second time it is returning empty rows. Even if i select different rows and click on the Button, the method still returns empty rows.
How come it works fine on one Screen and not on the other? Any idea of solving this issue?
Thanks in Advance,
r a m a . .
‎2010 Oct 28 10:08 AM
Hello
I am almost sure that you do the execute your PRINT logic within the event handler method without going through PAI afterwards.
The solution to your problem is described in blog:
[Against All Odds - Programming of Communicating ALV Grid Controls|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/21504] [original link is broken] [original link is broken] [original link is broken];
Regards
Uwe
‎2010 Oct 27 3:44 PM
Haii All,
One small diference i could notice is: The Grid with which i am having the problem is placed in a Container of type CL_GUI_CUSTOM_CONTAINER, whereas the other Grid which is working fine is placed in a Container of type CL_GUI_CONTAINER. Ofcourse i tried to change the container to type CL_GUI_CONTAINER but still the problem persists.
Best regards,
r a m a . .
‎2010 Oct 27 3:58 PM
‎2010 Oct 28 6:33 AM
‎2010 Oct 28 8:56 AM
Ooops, because you moved the thread to the right Section:). Btw how can i delete my posts if i want to?
Best Regards,
r a m a . .
‎2010 Oct 28 10:08 AM
Hello
I am almost sure that you do the execute your PRINT logic within the event handler method without going through PAI afterwards.
The solution to your problem is described in blog:
[Against All Odds - Programming of Communicating ALV Grid Controls|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/21504] [original link is broken] [original link is broken] [original link is broken];
Regards
Uwe
‎2010 Nov 04 3:06 PM
Hello Mr. Uwe,
Thanks for your reply, gone through your wonderful piece of Blog..got to know some cool things
Best Regards,
rama