Application Development 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: 

Interactive report for different columns!

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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