10-17-2007 4:39 PM
Hi Experts,
I am displaying 8 different columns in a report output. I need to make it interactive like for 1st 4 columns i need to call a different transaction codes..etc and for next 4 columns i need to call a different transaction.
How do i do that?
thanks
Dany
10-17-2007 4:43 PM
Yes, you can do that.
In the interactive part, get the cursor value and check if it is any of first 4 columns then call first tcode.
If it is any of the remaining 4 columns, then call second tcode.
Is it a ALV report?
ashish
10-17-2007 4:43 PM
Yes, you can do that.
In the interactive part, get the cursor value and check if it is any of first 4 columns then call first tcode.
If it is any of the remaining 4 columns, then call second tcode.
Is it a ALV report?
ashish
10-17-2007 4:46 PM
Hi,
Thanks. It is not NOT an ALV report. Its a NORMAL one.
Do i need to use at-selection followed by case..endcase..or get cursor.
Can you elaborate more?
Thanks
Dan
10-17-2007 4:45 PM
at line-selection.
get cursor field v_field.
case v_field.
when 'FIELD1'.
call transaction tcode1......
when 'FIELD5'.
call transaction tcode2.....
endcase.
proceed like this way......
Regards
Vasu
10-17-2007 4:47 PM
Hi
U need to get information about the field selected by doubleclick, you can use the comand GET CURSOR FIELD:
DATA: FIELDNAME(30).
AT LINE-SELECTION.
GET CURSORD FIELD FIELDNAME.
CASE FIELDNAME.
WHEN 'COL1' OR 'COL4'.
CALL TRANSACTION <TRAN 1>.
WHEN OTHERS,
CALL TRANSACTION <TRAN 2>.
ENDCASE.
U can use the event AT USER-COMMAND instead of AT LINE-SELECTION.
If you're using ALV fm to display the output, the name of the selected field is in the parameter of the interface of the routine USER_COMAND
Max