Application Development and Automation 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: 
Read only

calling a transaction

Former Member
0 Likes
979

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

6 REPLIES 6
Read only

Former Member
0 Likes
911

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

Read only

hymavathi_oruganti
Active Contributor
0 Likes
911

u set the PF-STATUS

AT USER-COMMAND.

WHEN <SOMETHING>.

CALL TRANSACTION TCODE.

but i think what u r saying is an alv report,

Read only

Former Member
0 Likes
911

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

Read only

Former Member
0 Likes
911

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

Read only

Former Member
0 Likes
911

try

GET CURSOR field CURSORFIELD value value

Regards

Prabhu

Read only

Former Member
0 Likes
911

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