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: 

alv

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Before this set the parameter id of the field LIFNR.

Call transaction XK02 skip first screen.

Reward if helpful.

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Before this set the parameter id of the field LIFNR.

Call transaction XK02 skip first screen.

Reward if helpful.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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^

Former Member
0 Kudos

Hi,

try BCALVDEMO and SALVDEMO in SE38.

Regards, Dieter

<b>Don't forget reward points and clothing thread if you problem is solved</b>