08-13-2007 11:15 AM
i have copied the standard alv pf-status 'STANDARD' using se41 and then added my own buttons in that as 'DISPLAY MATERIAL' That is if i select the material 'MATNR' and press the button then it has take me to the interface of 'MM03' .
i have used 'i_callback_usercommand' export parameter of reuse_alv_grid_display
and assigned a subroutien 'user_command'. when i am pressing the button created by me on the interface the program is falling in short dump n giving the error as 'perform not found' .
please help
08-13-2007 11:19 AM
Hi Sami
can u post u r function modile code
have u passed u r prog name in reuse_alv_grid_display in parameter i_callback_progname = 'zprogname'
reward points to all helpful answers
kiran.M
08-13-2007 11:20 AM
Hello Sami,
I got your problem.
When you create that button, You need to assign one Function code ( Suppose MM03 ) for that button.
And As you are saying...
In USER_COMMAND form,
In Case Statement, you need to write :
Case ok_code.
..............
...............
when 'MM03'.
perform navigate_mm03.
...............
.............
endcase.
in navigate_mm03 form, you need to write BDC COde.
Reward If Helpfull.
Regards
--
Sasidhar Reddy Matli.
08-13-2007 11:21 AM
Check if the form name specified in the i_callback_usercommand is in upper case?
It should be 'USER_COMMAND' and not 'user_command'.
Hope this helps.
Sudha
08-13-2007 12:41 PM
in se41 pfstatus 'STANDARD' and program name 'SAPSALV' to your program name and your own pfstatus and add your own button and activate it .
in the FM REUSE_ALV_GRID_DISPLAY pass any value to parameter call_back_pf-status.
it is going to be your PERFORM statement. and write FORM value(SUBROUTINE).for button pressing write code in another SUBROUTINE (pass any value to a parameter call_back_user_command).
For this refer documentation and where used list of FM REUSE_ALV_GRID_DISPLAY.
reward points to all helpful answers.
p.surendarreddy.