2009 Feb 04 11:18 AM
hi,
how to write the user command on alv report and the output should ne upload into va02,
My requirement is i have developed a alv report,in that the requiremnt is one pushbutton they want,when they clicked it the output should be upload into va02 transaction.
Thanks and Regards,
thanks boss,
but we have to create the button on pf_statua naa,i will get a error on that,
can you give me a whole example for this ,please
regards,
2009 Feb 04 11:45 AM
Hi Ali,
For user command in alv,
First set the PF Status of that ALV,
and in the FM Reuse_alv_grid_display pass the subroutine name fr user command,
in its parameter --> i_callback_user_command = 'COMM'
Then to catch the function module you have to write like for eg,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
.
That is on that buttons click you can use set parameter id statement to move your
control from this screen to the required screen.
Hope it helps you
Regrds
Mansi
2009 Feb 04 11:50 AM
thanks boss,
but we have to create the button on pf_statua naa,i will get a error on that,
can you give me a whole example for this ,please
regards,
2009 Feb 04 12:50 PM
hi,
Check the demo program BCALV_GRID_08 to add button to the ALV .
2009 Feb 04 12:42 PM
Hi,
create pf-status with upload button.
Then on event,
at user-command,
set parameter id and then call transaction .
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |