‎2010 Mar 09 7:20 PM
Hi,
I am displaying the report using ALV grid FM. I have added the button in application toolbar with my own PF status.
I want to write another report when user click on this button. But write statements are not working when i click that button. No new screen gets displyed. In debug mode i can see it is writting.
looks problem with events.
any suggestions???
‎2010 Mar 09 8:05 PM
If the new report goes into ALV, I think you would need to duplicate your various ALV elements. I once had a tabstrip with four tabs and four different ALVs, and thus had four sets of objects. On the other hand, if you're doing a list report, you're not going to see that until you exit the ALV...( and you may have to adjust how you leave that...)/
‎2010 Mar 09 8:57 PM
hello,
first it will be displayed after pressing back from ALV...
second why do not you go for ALV in second report also?
that time there will be no problem...
Thanks
K.
‎2010 Mar 10 5:05 AM
Hi
Please mention your logic under the event AT USER-COMMAND. It will works fine.
‎2010 Mar 10 5:27 AM
Hi,
Refer the below code snippet:-
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_callback_pf_status_set = 'PF'
i_callback_user_command = 'COMMAND'
it_fieldcat = it_field_catalog
TABLES
t_outtab = it_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
FORM pf USING im_extab TYPE slis_t_extab.
SET PF-STATUS 'TEST1'.
ENDFORM. "pf
FORM command USING im_ucomm TYPE sy-ucomm
im_selfield TYPE slis_selfield.
CASE im_ucomm .
WHEN 'REPORT'.
LEAVE TO LIST-PROCESSING.
WRITE / 'hello'.
ENDCASE.
ENDFORM. "command
Hope this helps you.
Regards,
Tarun