‎2008 Jan 17 12:53 PM
Hi experts
i have created report in module pool programming
i.e i have created screen in that created table control with 5 columns and data get displayed in that screen
in that one column is for invoice document
now my requirement is to open document when i click on particular document
i can do this in list report and alv report but how can i do in module pool also debug i'e /h and than clicked but it does go any where
ao how can i generate the event in module pool report
Regards,
Taran
‎2008 Jan 17 12:57 PM
hi,
first make this I/P field 'Respond to Double Click'.
Now make one button in application toolbar with name 'PICK' (compulsary) and assign F2 as its function key.....
now in USER_COMMAND module of PAI,
write like...
MODULE user_command_9000 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'UP' OR 'CNC'.
LEAVE PROGRAM.
WHEN 'MOD'.
ok_code = sy-ucomm.
CLEAR sy-ucomm.
WHEN 'PICK'.
GET CURSOR FIELD matnr VALUE mat_no.
SET PARAMETER ID 'MAT' FIELD mat_no.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
here i am clicking on material number and going to MM03...
u can change ur transaction....and set parameter according to that
reward if usefull....
Edited by: Dhwani shah on Jan 17, 2008 1:59 PM
‎2008 Jan 17 12:57 PM
hi,
first make this I/P field 'Respond to Double Click'.
Now make one button in application toolbar with name 'PICK' (compulsary) and assign F2 as its function key.....
now in USER_COMMAND module of PAI,
write like...
MODULE user_command_9000 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'UP' OR 'CNC'.
LEAVE PROGRAM.
WHEN 'MOD'.
ok_code = sy-ucomm.
CLEAR sy-ucomm.
WHEN 'PICK'.
GET CURSOR FIELD matnr VALUE mat_no.
SET PARAMETER ID 'MAT' FIELD mat_no.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
here i am clicking on material number and going to MM03...
u can change ur transaction....and set parameter according to that
reward if usefull....
Edited by: Dhwani shah on Jan 17, 2008 1:59 PM