2007 Aug 03 11:58 AM
hi,
i displayed LIFNR, LAND1 ,NAME1 in a output using ALV ( F.M ).Now requirement is ,whenever i double click on LIFNR field i want to goto 'XK02' Transaction to manipulate the data.pls send the relavent code.
2007 Aug 03 12:02 PM
Hi,
Before this set the parameter id of the field LIFNR.
Call transaction XK02 skip first screen.
Reward if helpful.
Hi,
Before this set the parameter id of the field LIFNR.
Call transaction XK02 skip first screen.
Reward if helpful.
2007 Aug 03 12:02 PM
Hi
Use the User_command to goto the interactive list
see the sample code
&----
*& Form user_command
&----
form called on user command from ALV list
----
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'PICK'. " Double click line
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'VBELN'.
Read data table, using index of row user clicked on
READ TABLE t_disp_tab INTO wa_item_tab INDEX
rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'VL' FIELD wa_item_tab-vbeln.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
<b>Reward points for useful Answers</b>
Regards
Anji
2007 Aug 03 12:02 PM
Hi,
Before this set the parameter id of the field LIFNR.
Call transaction XK02 skip first screen.
Reward if helpful.
2007 Aug 03 12:06 PM
FORM callback_ucomm USING ucom LIKE sy-ucomm rs_selfield TYPE
slis_selfield.
CASE ucom.
WHEN '&IC1'.
IF rs_selfield-fieldname = 'LIFNR'.
LEAVE TO TRANSACTION 'XK02'.
ENDIF.
ENDCASE.
ENDFORM.
Where u-com is the field to capture the user action on screen..
and slis_selfield indcates that its the action on alv screen.
Hope this helps.
2007 Aug 03 12:09 PM
hi
good
go to se38 put BCALV* you ll find out the lots of alv demo program ,test them and use them as per your requierement.
thanks
mrutyun^
2007 Aug 03 12:15 PM
Hi,
try BCALVDEMO and SALVDEMO in SE38.
Regards, Dieter
<b>Don't forget reward points and clothing thread if you problem is solved</b>
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |