08-10-2006 12:56 PM
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.
08-10-2006 1:03 PM
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
08-10-2006 2:01 PM
hi,
addition to Babu:
...
LOOP AT ITAB.
WRITE: /(10) ITAB-VBELN,
(6) ITAB-POSNR.
<b>hide : itab-vbeln.</b>
ENDLOOP.
...
08-10-2006 1:05 PM
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.