Application Development and Automation 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: 
Read only

interactive alv..

0 Likes
579

Hi

Kindly check my code below and suggest the changes to be done as it is not working..

FORM USECOMM USING UCOMM LIKE SY-UCOMM

FIELDS TYPE SLIS_SELFIELD.

DATA: FCODE TYPE SY-UCOMM.

CLEAR FCODE.

FCODE = UCOMM.

CASE FCODE.

WHEN '&Ic1'.

SET PARAMETER ID 'BES' FIELD 'GT_FINAL-EBELN'.

CALL_TRANSACTION 'ME23N'.

ENDCASE.

ENDFORM.

this form name 'USECOMM' goes to i_callback_user_command field of reuse_alv_grid_display function module..

GT_FINAL -EBELN is the field that is captured on the basic alv list.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

hi,

try this

FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

WHEN '&IC1'.

CASE RS_SELFIELD-FIELDNAME. "sel_tab_field .

WHEN 'VBELN'.

SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDCASE.

hope this solves your issue

4 REPLIES 4
Read only

Former Member
0 Likes
542

Hi,

Write the UCOMM code in CAPS..

When '&IC1& and check it will work..

Regards,

Prashant

Read only

Former Member
0 Likes
542

hi

Check This one '&IC1'

Sample coding:

FORM user_command USING r_ucomm LIKE sy-ucomm

s_data TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

CASE s_data-fieldname.

WHEN 'VBELN'.

SET PARAMETER ID 'AUN' FIELD wa_vbak-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDCASE.

ENDCASE.

ENDFORM.

Thanks

Read only

Former Member
0 Likes
543

hi,

try this

FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

WHEN '&IC1'.

CASE RS_SELFIELD-FIELDNAME. "sel_tab_field .

WHEN 'VBELN'.

SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDCASE.

hope this solves your issue

Read only

0 Likes
542

solved .. Thank you all..!!