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: 

Regarding Interactive report

Former Member
0 Kudos

Hi Experts,

I am creating one Interactive report, my output is 2 fileds only let's say

Col-A and Col-B

I want when i will click on Col-A i SE11 will come and When i click on Col-B SE38 will come.

Is it possible?

Urgent............

8 REPLIES 8

prasanth_kasturi
Active Contributor
0 Kudos

hi use

in at line selection event use statement get cursor

data : fnam(10) type c.

at line-selection.

get cursor filed fnam.

if fnam = 'ITAB-COL1'.

call transaction 'SE11'.

else.

call transaction 'SE38'.

endif.

REWARD IF HELPFUL

prasanth

Former Member
0 Kudos

Yes its possible--->

At line selection.

case sy-ucomm.

when 'PICK'.

call transaction se11 and skip first screen.

hope it helps

Former Member
0 Kudos

Hi,

Please refer the SAP standard demo program DEMO_LIST_HIDE.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

Hi ,

at line selection

Get cursomr field fnam value fval .

when f1

call transaction se11 .

when f2 .

call transaction se38 .

Former Member
0 Kudos

Hi,

U can use HIDE( for the respective fields) and then use AT LINE-SELECTION command.

AT LINE-SELECTION.

call transaction SE11.

Hope it helps u.

Regards,

Ramya

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Yes it is possible. Put this piece of code in ur program

AT LINE-SELECTION.

GET CURSOR FIELD w_field VALUE w_value.

CASE w_field.

WHEN wa-f1

SET PARAMETER ID 'DTB' VALUE w_value.

CALL TRANSACTION 'SE11' AND SKIP FIRST SCREEN.

WHEN wa-f2.

SET PARAMETER ID 'RID' VALUE w_value.

CALL TRANSACTION 'SE11' AND SKIP FIRST SCREEN.

ENDCASE.

Here wa-f1 is col-A and wa-f2 is col-b. Check the exact field names in debug mode.

Make sure that w_field and w_value is od sufficient length.

I think for SE38 u can't skip first screen. U have to do BDC for this.

Thanks,

Vinod.

0 Kudos

Hi,

Create two button using set pf-status 'ZABC'.

but1 = 'ZB1. bu2 = 'ZB2'.

then,

at line selection.

case sy-ucomm.

when 'ZB1'.

call transaction 'SE11'.

when 'ZB2'.

call transaction 'SE38'.

endcase.

Former Member
0 Kudos

Hi,

Try this code

Variable 'fldname' will have the field name that you have clicked and 'fldval' will have its corresponding value.

Set parameter id is used to pass the value to the transaction if required.

AT LINE-SELECTION.

GET CURSOR FIELD fldname VALUE fldval.

CASE fldname.

WHEN 'COL-A'.

SET PARAMETER ID 'MAT' FIELD fldval.

CALL TRANSACTION 'SE11' AND SKIP FIRST SCREEN.

WHEN 'COL-B'.

CALL TRANSACTION 'SE38' AND SKIP FIRST SCREEN.

ENDCASE.

Regards,

Hema.