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: 

Doubt in ALV

Former Member
0 Kudos

can any one tell ,what is '&IC1' ? why we use that? can any one explain the below code........

FORM DISPLAYDETAILS USING UCOMM LIKE SY-UCOMM

SELFIELD TYPE SLIS_SELFIELD.

IF SELFIELD-FIELDNAME = 'EBELN'.

IF UCOMM = '&IC1'.

READ TABLE I_OUT INDEX SELFIELD-TABINDEX.

PERFORM PORECDNG.

CLEAR BDCDATA[].

ENDIF.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

when ever you double clik on any line item of the alv report

the system will take this '&IC1' as the function code

basically this is a function code by which the system can understood

that you have double cliked on the alv output.

check by cliking /h

and then clik on save button

you will find different funciton code ( ie sy-ucomm in the debugging screen )

regards,

Venkatesh

5 REPLIES 5

Former Member
0 Kudos

Hi,

when ever you double clik on any line item of the alv report

the system will take this '&IC1' as the function code

basically this is a function code by which the system can understood

that you have double cliked on the alv output.

check by cliking /h

and then clik on save button

you will find different funciton code ( ie sy-ucomm in the debugging screen )

regards,

Venkatesh

0 Kudos

Thanks Venkat

I'll do it.....

Former Member
0 Kudos

hi,

it user command on click event,

SO it is used in interactive report.If u want that user clicks on output and it should go to another list or transaction than u have to put this code into one form and give that form name into <b>i_callback_user_command</b> of REUSE_ALV_GRID_LIST

reward if useful.

Former Member
0 Kudos

The Variable UCOMM is the type of SY-UCOMM (System variable).

So the value "&IC1", may be the function code of the button.

SY-UCOMM

Function code that triggered the event PAI. Every user action that triggers PAI is assigned a unique function code, with one exception: Choosing ENTER triggers PAI and different function codes can be transferred to SY-UCOMM:

· If there is an entry in the command field of the standard toolbar, this is transferred to SY-UCOMM as the function code.

· If there is no entry in the command field and a function code is assigned to the ENTER key, this function code is transferred to SY-UCOMM.

· If the command field does not contain an entry and no function code is assigned to the ENTERkey, it is empty and the content of SY-UCOMM is not affected.

Former Member
0 Kudos

thanks for ur answers