10-22-2007 12:03 PM
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.
10-22-2007 12:08 PM
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
10-22-2007 12:08 PM
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
10-22-2007 12:16 PM
10-22-2007 12:13 PM
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.
10-22-2007 12:15 PM
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.
11-12-2007 11:18 AM