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

Interactive report - Problem in coming back to the same cursor position

Former Member
0 Likes
308

Hi,

I have an interactive report. In the first list of the output, a set of data will be displayed. In that first list, if I double click on a field, it goes to a Custom Screen. There, I have to enter some data and save and come back to the first list of the output. This is what my report does.

I have no issues when the output in the first list is one page. But, when I have the output for more than one page I have a problem. I am going to the 2nd or 3rd page of the output. From there I double click on the field and it goes to the Custom screen. After saving the data in the screen, when I click BACK button, it displays the report from the first page again instead of displaying the output in the 3rd page where I double clicked.

My requirement is, when I come BACK from the screen to the list, the cursor should stay in the same page where I double clicked earlier. It shouldn't go to the first page of the list again.

To my knowledge, we have to use a statement in the code after displaying the output.

Could someone tell me how to do this..?

Thanks in advance.

Best Regards,

Paddu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
283

Have a look at the ABAP command "scroll list"... you will need to hold onto the values of sy-lsind, sy-cpage, and sy-staro prior to the call to your popup, and then after you come "BACK" from this, you will need to re-write your report followed by something like:


scroll list index gs_rpt-lsind   "gs_rpt used to hold the previous SY- values
  to page gs_rpt-cpage
     line gs_rpt-staro.

Jonathan

Hi,

I have an interactive report. In the first list of the output, a set of data will be displayed. In that first list, if I double click on a field, it goes to a Custom Screen. There, I have to enter some data and save and come back to the first list of the output. This is what my report does.

I have no issues when the output in the first list is one page. But, when I have the output for more than one page I have a problem. I am going to the 2nd or 3rd page of the output. From there I double click on the field and it goes to the Custom screen. After saving the data in the screen, when I click BACK button, it displays the report from the first page again instead of displaying the output in the 3rd page where I double clicked.

My requirement is, when I come BACK from the screen to the list, the cursor should stay in the same page where I double clicked earlier. It shouldn't go to the first page of the list again.

To my knowledge, we have to use a statement in the code after displaying the output.

Could someone tell me how to do this..?

Thanks in advance.

Best Regards,

Paddu.

1 REPLY 1
Read only

Former Member
0 Likes
284

Have a look at the ABAP command "scroll list"... you will need to hold onto the values of sy-lsind, sy-cpage, and sy-staro prior to the call to your popup, and then after you come "BACK" from this, you will need to re-write your report followed by something like:


scroll list index gs_rpt-lsind   "gs_rpt used to hold the previous SY- values
  to page gs_rpt-cpage
     line gs_rpt-staro.

Jonathan