2006 Jul 24 3:05 PM
Hi
I have a WRITE-list with the opportunity to choose a line over 'AT LINE-SELECTION'. In the 'AT LINE-SELECTION' a Dynpro is called to make database-changes. After changing the dataset, you get back to the list-output. But after changing the dataset, the list-output should be refreshed. So I have to rewrite the list and therefore I have to rerun the hole procedure to create the list-output.
How can I realize this?
thx
2006 Jul 24 3:11 PM
Hi
I have a WRITE-list with the opportunity to choose a line over 'AT LINE-SELECTION'. In the 'AT LINE-SELECTION' a Dynpro is called to make database-changes. After changing the dataset, you get back to the list-output. But after changing the dataset, the list-output should be refreshed. So I have to rewrite the list and therefore I have to rerun the hole procedure to create the list-output.
How can I realize this?
thx
2006 Jul 24 3:07 PM
Hi mike,
1. when we COME BACK
(after line-selection),
2. we cannot trace that event.
3. Hence, if we make our own toolbar,
only then can we DETECT,
the BACK Button,
and write our own code.
regards,
amit m.
2006 Jul 24 3:10 PM
Hi,
After changing the dataset, store the sy-subrc value in some global variable, at the event when back or cancel pressed, if the stored sy-subrc value is zero then submit the same report. U will get ur problem solved.
Sreedhar
2006 Jul 24 3:21 PM
@Sreedhar Kanchanapalli
I also tried to solve the problem in this way. I used the function 'RS_REFRESH_FROM_SELECTOPTIONS' to get the actual selection-criteria and then submitted the program again. It worked!
But don't you think it may cause a problem, after submitting the program multiple times?
2006 Jul 24 3:11 PM
2006 Jul 24 3:54 PM
... another question: Which sy-parameter do I have to change, that the list-header works correctly, after generating the list again? It doesn't appear after performing list-output again.
2006 Jul 24 4:03 PM
2006 Jul 24 3:27 PM
Hi,
Yes it does.....but again it depends on the complexity of the program and how many no of times this program would be re-run if it is less u can very much use this if not try the logic as said by Rich.
Sreedhar
2006 Jul 24 3:37 PM
@rich heilman
ok, i also tried your solution, before I posted in forum, but I didn't no how to realise to jump back correctly.
'sy-lsind = sy-lsing - 1.' is the solution for my problem.
thx
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |