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

Regarding user command

Former Member
0 Likes
536

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,

4 REPLIES 4
Read only

Former Member
0 Likes
515

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

Read only

0 Likes
515

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,

Read only

0 Likes
515

hi,

Check the demo program BCALV_GRID_08 to add button to the ALV .

Read only

Former Member
0 Likes
515

Hi,

create pf-status with upload button.

Then on event,

at user-command,

set parameter id and then call transaction .