Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to use two ALV grids in a single program (pl read below for details)?

Please read thoroughly::

I have an ALV report using REUSE_ALV_GRID_DISPLAY.

On the output of this report, when I click on a "change" button, a couple of columns should be made editable.

I achieved this by modifying the fieldcatalog and triggering the output with another REUSE_ALV_GRID_DISPLAY.

When I click on the back button of this second report, it is still taking me to the first one.

How to over come this?

Note:

I used custom containers etc but the default buttons on the container are not controllable. I added custom buttons but could not suppress the default ones. So I did not pursue this much even though this is more comfortable to use.

I am not able to get into the code in debug to see how the default buttons like COPY, INSERT ROW etc are working.

Can any body throw some inputs into this?

Thanks,

Ven.

Tags:
Former Member
replied

>I achieved this by modifying the fieldcatalog and triggering the >output with another REUSE_ALV_GRID_DISPLAY.

>When I click on the back button of this second report, it is still >taking me to the first one.

>How to over come this?

For this there is a solution

i am thinking you are using user_command and calling the second time ALV Grid if so check this.

form user_command using r_ucomm type sy-ucomm selfield type slis_selfield.

case r_ucomm.
when 'CHANGE'.
 selfield-exit = 'X'.   "use this , this will solve the problem
"i hope you are calling the Function here


endform.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question