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: 

interaction with transaction codes with interactive reports

Former Member
0 Kudos

hi..

i want to call a transaction code from the report which i prepared.for example...if im displaying the list of order no.of a customer as output ,then when i want to make some changes in the order details ..instead of going to transcode VA02 ..i want the transcation has to open when i double click the order number.

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

Hi,

you have to do some thing like this ...


REPORT  ZTETS_CURSOR                            .

DATA: FIELD(20),
      VALUE(10).
DATA: BEGIN OF ITAB OCCURS 0,
        VBELN LIKE VBAK-VBELN,
        POSNR LIKE VBAP-POSNR,
       END OF ITAB.


SELECT VBELN
       POSNR
       FROM VBAP
       UP TO 100 ROWS
       INTO TABLE ITAB.

TOP-OF-PAGE.

  WRITE:(10) 'VBELN',
         (6) 'POSNR'.

END-OF-SELECTION.

  LOOP AT ITAB.

    WRITE: /(10) ITAB-VBELN,
             (6) ITAB-POSNR.

  ENDLOOP.



AT LINE-SELECTION.

  GET CURSOR FIELD FIELD VALUE VALUE.

  IF FIELD = 'ITAB-VBELN'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT  = VALUE
      IMPORTING
        OUTPUT = VALUE.

    SET PARAMETER ID 'AUN' FIELD VALUE.
    CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
  ENDIF.

Regards

vijay

0 Kudos

hi,

addition to Babu:

...
LOOP AT ITAB.
 
    WRITE: /(10) ITAB-VBELN,
             (6) ITAB-POSNR.

   <b>hide : itab-vbeln.</b> 
  ENDLOOP.
...

Former Member
0 Kudos

hi,

Set Pf-status to your report.

Set Function code PICK for F2.

In at line-selection section,

call transaction 'ZXYZ'.

ZXYZ is the transaction which you have prepared.

Regards,

Sailaja.