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: 

Go to transaction after user clicks on report.

aris_hidalgo
Contributor
0 Kudos

Hello experts,

Our users want that when they click on the report output, they want to go to a particular

transaction in this case transaction AW01N(Asset Explorer) to see the values of that asset.

So what I want to do is that I would make the assets displayed in the report to be a hotspot

and when the users click on them it would call the AW01N and fill in the company code and asset. How do I do this guys?

Thanks a lot!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi viraylab,

problem solved?

Regards, Dieter

8 REPLIES 8

andreas_mann3
Active Contributor
0 Kudos

in your loop:

1) write itab-anln1 format HOTSPOT ON.

2) hide: itab-anln1,itab-bukrs,itab-anln2.

3) AT LINE-SELECTION.

GET CURSOR FIELD position.
  CASE position.
 WHEN 'ITAB-ANLN1'.
      SET PARAMETER ID 'BUK' FIELD itab-bukrs.
      SET PARAMETER ID 'AN1' FIELD itab-anln1.
      SET PARAMETER ID 'AN2' FIELD itab-anln2.

      CALL TRANSACTION 'AW01N'.

Message was edited by: Andreas Mann

Former Member
0 Kudos

When alrady you have hotspot on.

Check id parameters for fields. (f1 on input field for your transactionn)

in abap:

SET PARAMETER ID 'AUN' FIELD wa_t-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

(example for va03- transaction)

BR, AJcek

Message was edited by: Jacek Slowikowski

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check this program :

demo_program_call_transaction

code :

REPORT  demo_program_call_transaction .

NODES spfli.

START-OF-SELECTION.
  WRITE: 'Select a flight',
       / '----------------'.
  SKIP.

  GET spfli FIELDS carrid connid.
  WRITE: spfli-carrid, spfli-connid.
  HIDE:  spfli-carrid, spfli-connid.

AT LINE-SELECTION.
  SET PARAMETER ID: 'CAR' FIELD spfli-carrid,
                    'CON' FIELD spfli-connid.
  CALL TRANSACTION  'DEMO_TRANSACTION'.

Regards

Appana

Former Member
0 Kudos

HI,

HANDLE THIS IN

AT USER-COMMAND.

ucomm = sy-ucomm.

case ucomm.

when'&IC1'.

case fieldname.

when 'IT_VBAP-VBELN'.

set parameter id 'AUN' field it_vbap-vbeln.

call transaction 'VA03' and skip first screen.

Regards,

Sowjanya

Former Member
0 Kudos

while displaying your internal table use HIDE to store the value of the field which user selects.

LOOP AT ITAB.

write 😕 itab1-f1,itab-f2...

hide itab-f1.

endloop.

when ever user selects that value will come into ITAB-F1 field.

then use

AT LINE SELECTION EVENT,

to trigger that transaction

for that first you have to populate Company code & asset no of that transaction initial screen with the user selected values. for that what you have to do is send these values to memory using

SET PARAMETER ID 'BUK' FIELD itab-bukrs

SET PARAMETER ID 'AN1' FIELD itab-ASSETNO

then

use CALL TRANSACTION 'code'....

Regards

Srikanth

Message was edited by: Srikanth Kidambi

Former Member
0 Kudos

Hi ,

You can retrieve the value on which the user clicked and then use the command CALL TRANSACTION , along with the addition WITH ITAB containing the value retrieved , and SKIP FIRST SCREEN.

Thanks

Arun

Former Member
0 Kudos

Hi Viraylab,

here a short example. Hope it helps.

REPORT ZGRO_TEST MESSAGE-ID ZZ.

*

TABLES: ANLA.

*

DATA: CURSORFIELD(20).

*

START-OF-SELECTION.

*

SELECT * FROM ANLA.

*

WRITE: / ANLA-ANLN1 HOTSPOT ON COLOR COL_NEGATIVE,

ANLA-BUKRS.

HIDE: ANLA-ANLN1.

*

ENDSELECT.

*

END-OF-SELECTION.

*

AT LINE-SELECTION.

  • Ausführung beim Doppelklick auf ein Feld.

GET CURSOR FIELD CURSORFIELD.

*

CASE CURSORFIELD.

*

WHEN 'ANLA-ANLN1'.

SET PARAMETER ID 'AN1' FIELD ANLA-ANLN1.

CALL TRANSACTION 'AW01N'.

*

WHEN OTHERS.

MESSAGE I010 WITH 'No Action!'.

*

ENDCASE.

*

Regards, Dieter

Former Member
0 Kudos

Hi viraylab,

problem solved?

Regards, Dieter