‎2007 May 09 7:47 AM
Hi experts,
i have to make changes in a classical report.
the output will have two fiels ie, Functional Location and Equipment.
for example: New delhi | MM-Q6788.
When i double click on Functional location(New delhi ) it should call tcode IL03 and when double cliked on Equipment( MM-Q6788) it should call tcode IE03.
plz let me know how to solve this.
thanks and regards
alson
‎2007 May 09 7:52 AM
Hi Alson,
Use <b>at line-selection.</b> event in report.
at line-selection.
get cursor field d_field value d_value.
case d_field.
when'Functional Location'.
call transaction 'IL03'
when'Equipment'.
call transaction 'IE03'.
endcase.
Reward points if helpful.
Regards,
Hemant
‎2007 May 09 7:53 AM
u set the PF-STATUS
AT USER-COMMAND.
WHEN <SOMETHING>.
CALL TRANSACTION TCODE.
but i think what u r saying is an alv report,
‎2007 May 09 7:53 AM
Hi,
Lets say youur function location field is FUN_LOC and equipment number field name is EQUNR
the code is like this.
AT LINE SELECTION.
GET CURSOR FIELD <FILD_NAME> VALUE <VALUE>.
IF FILD_NAME = FUN_LOC.
SET PARAMETER ID <ID>. " Parameter id for FILD_NAME
CALL TRANSACTION IL03 and SKIP FIRST SCREEN.
ELSEIF FILD_NAME = EQUNR. " Parameter id for EQUNR
CALL TRANSACTION IE03 and SKIP FIRST SCREEN.
ENDIF.Regards
Sudheer
‎2007 May 09 7:54 AM
Hi alson,
U can use at line selection event for triggering this functianality. For this activate F2 code of the status of the report. You should also use the Hide statement to store the values of the list in the memory area after the primary list display. This will help u to capture values after double clicking on the particular field of the list display.
Regards,
Pulokesh
‎2007 May 09 7:55 AM
‎2007 May 09 7:56 AM
Hi,
Calling a transaction from a report will make your classical report to interactive report.
Hide those two fields in the loop that you display the first list. Now, At Line-selection event - trap the user click postion and call the transcation you require.
Hope you get it. If you require further details do mail back.
Raj