07-08-2008 8:38 AM
hi experts,
for line selection ...we use an event called at line selection...
how can v select a field for a drop down list??
by selecting a field in a row..in the report o/p...it should should call some transaction??
how can these 2 things b done...
code provided will b scored well..
07-08-2008 8:39 AM
Hi,
This statement ends the calling program and starts transaction tcod. This deletes the call stack (internal sessions) of all previous programs. At the end of the transaction, the system returns to the area menu from which the original program in the call stack was started.
If, on the other hand, you do not want to return to the calling program at the end of the new transaction, use the statement:
CALL TRANSACTION tcod [AND SKIP FIRST SCREEN]
Best regards,
raam
07-08-2008 8:39 AM
Hi,
This statement ends the calling program and starts transaction tcod. This deletes the call stack (internal sessions) of all previous programs. At the end of the transaction, the system returns to the area menu from which the original program in the call stack was started.
If, on the other hand, you do not want to return to the calling program at the end of the new transaction, use the statement:
CALL TRANSACTION tcod [AND SKIP FIRST SCREEN]
Best regards,
raam
07-08-2008 8:40 AM
hiiii
you can do it by using following code
DATA:
w_kunnr TYPE kunnr,
w_vbeln TYPE vbeln,
w_kna1 TYPE kunnr,
w_vbak TYPE vbeln.
CASE sy-ucomm.
WHEN 'CUSTOMER'.
GET CURSOR FIELD fs_kna1-kunnr
VALUE w_kunnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_kunnr
IMPORTING
output = w_kunnr.
SELECT SINGLE kunnr
FROM kna1
INTO w_kna1
WHERE kunnr = w_kunnr.
IF sy-subrc <> 0.
MESSAGE e015(zmsg9).
ENDIF.
SET PARAMETER ID 'KUN' FIELD w_kunnr.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
WHEN 'ORDER'.
GET CURSOR FIELD fs_kna1-vbeln
VALUE w_vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_vbeln
IMPORTING
output = w_vbeln.
SELECT SINGLE vbeln
FROM vbak
INTO w_vbak
WHERE vbeln = w_vbeln.
IF sy-subrc <> 0.
MESSAGE e015(zmsg9).
ENDIF.
SET PARAMETER ID 'AUN' FIELD w_vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. " get_data_vbap1
regards
twinkal
07-08-2008 8:40 AM
Hi kanika use this code.
AT LINE-SELECTION.
GET CURSOR FIELD f VALUE v.
IF f = 'T_OUTPUT-ITRAINNO'.
CALL TRANSACTION 'Z84126'.
ENDIF.
07-08-2008 8:40 AM
07-08-2008 8:43 AM
Hi,
VRM_SET_VALUES
CALL TRANSACTION <transaction name>.
Check this link:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/content.htm
Regards
Adil
07-08-2008 8:49 AM
Hi,
try this short example:
TABLES: EKKO.
DATA: CURSORFIELD(20).
*
SELECT * FROM EKKO UP TO 20 ROWS.
*
WRITE: / EKKO-EBELN, EKKO-LIFNR.
*
ENDSELECT.
*
AT LINE-SELECTION.
*
GET CURSOR FIELD CURSORFIELD.
*
CASE CURSORFIELD.
WHEN 'EKKO-EBELN'.
READ CURRENT LINE FIELD VALUE EKKO-EBELN.
SET PARAMETER ID 'BES' FIELD EKKO-EBELN.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
WHEN 'EKKO-LIFNR'.
READ CURRENT LINE FIELD VALUE EKKO-LIFNR.
WRITE: / 'Lieferant:', EKKO-LIFNR.
ENDCASE.
*
Hope it helps.
Regards, Dieter
07-08-2008 9:08 AM