Skip to Content
0
Feb 19, 2009 at 02:30 PM

SET parameter on ALV grid with container

678 Views

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