2009 Feb 19 2:30 PM
Hi,
I need to SET PARAMETER ID to acess the transaction CJ40, in an ALV grid program with screen container for the ALV.
I'm using a method handle_double_click to select a line and pass the value to the parameter ID like this:
METHOD handle_double_click.
DATA: l_project TYPE prps-pspnr.
READ TABLE it_out INDEX e_row-index INTO wa_out.
CHECK sy-subrc = 0.
WRITE wa_out-pspnr TO l_project.
SET PARAMETER ID 'PRD' FIELD l_project.
CALL TRANSACTION 'CJ40' AND SKIP FIRST SCREEN.
CLEAR wa_out-pspnr.
ENDMETHOD. "handle_double_click
But this doesn't work. No value at all is passed to the transaction.
What is missing?
Thanks in advance,
Rui
2009 Feb 19 2:37 PM
Parameter ID PSP is attached to the Project Definition field.
SET PARAMETER ID 'PSP' FIELD l_project.
CALL TRANSACTION 'CJ40' AND SKIP FIRST SCREEN.
Regards,
Naimesh Patel
2009 Feb 19 2:37 PM
Parameter ID PSP is attached to the Project Definition field.
SET PARAMETER ID 'PSP' FIELD l_project.
CALL TRANSACTION 'CJ40' AND SKIP FIRST SCREEN.
Regards,
Naimesh Patel
2009 Feb 19 3:00 PM