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

event in module pool programing

Former Member
0 Likes
351

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
319

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

1 REPLY 1
Read only

Former Member
0 Likes
320

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