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: 

very urgent help needed

Former Member
0 Kudos

can any tell me : in ALV list, when i double click on the order number, its get hyper linked to va03 and in the same list, when i double click on sold to /ship to (kunnr), it is hyperlinked to vd03.

please write the code for the same. I'm using the Reuse_alv_grid_display FM.

thanks,

shamim

5 REPLIES 5

Former Member
0 Kudos

Hi,

Populate the 'User_command' Parameter in "Reuse_alv_grid_display".

Regards,

Suresh

Former Member
0 Kudos

TRY LIKE THIS

IN REUSE_ALV_GRID_DISPLAY FM PASS

I_CALLBACK_USER_COMMAND = 'USERCOMMAND'

FORM USERCOMMAND USING PUCOM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

CASE PUCOM.

WHEN '&IC1'.

IF SELFIELD-FIELDNAME = 'VBELN'.

SET PARAMETER ID 'AUN' FIELD SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ELSEIF SELFIELD-FIELDNAME = 'KUNNR'."OR WAHT THE FIELD NAME

SET PARAMETER ID 'KUN' FIELD SELFIELD-VALUE.

CALL TRANSACTION 'VD03' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

REGARDS

SHIBA DUTTA

0 Kudos

Thanks a lot Shiba...Can u tell me what's the hyper link associated for the transaction VA03 or VD03 and if possible..write the code for the same..

Thanks again..

shamim

0 Kudos

FORM USERCOMMAND USING PUCOM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

CASE PUCOM.

WHEN '&IC1'.

IF SELFIELD-FIELDNAME = 'VBELN'.

SET PARAMETER ID 'AUN' FIELD SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ELSEIF SELFIELD-FIELDNAME = 'KUNNR'."OR WAHT THE FIELD NAME

SET PARAMETER ID 'KUN' FIELD SELFIELD-VALUE.

<b>CALL TRANSACTION 'VD03' AND SKIP FIRST SCREEN.---> here u are calling Transaction VD03 providing KUNNR as a Input.</b>

ENDIF.

ENDCASE.

ENDFORM.

Regards

Prabhu

Former Member
0 Kudos

Hi Shamim,

please refer this code.

FORM USERCOMMAND USING PUCOM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

CASE PUCOM.

WHEN '&IC1'. "<b>IC1 is fcode for double click</b>

IF SELFIELD-FIELDNAME = 'VBELN'.

SET PARAMETER ID 'AUN' FIELD SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

*here input value to va03 will the value on which u will double click

ELSEIF SELFIELD-FIELDNAME = 'KUNNR'."

SET PARAMETER ID 'KUN' FIELD SELFIELD-VALUE.

CALL TRANSACTION 'VD03' AND SKIP FIRST SCREENENDIF.

ENDCASE.

*here input value to vd03 will the value on which u will double click

ENDFORM.

Reward points if helpful.

Regards,

Hemant