Where the data captured data is stored in ALV Interactive
Reports using usercommand??

I_callback_usercommand

Answer Posted / dilip

We need pass a value to user command parameter i.e.
I_callback_user command = 'USER_COMMAND'.

Then we need to explicitly create Form ( subroutine ) with name USER_COMMAND.

FORM USER_COMMAND USING OK_CODE LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
.

CASE COMMAND.
WHEN '&IC1'. " When ever user click on the action will be
" stored under this sy-ucomm value

*--- selfield structure will actually hold the table index of internal table/value base on which we can build our logic furter.

READ TABLE T_EKKO INTO LWA_EKKO INDEX SELFIELD-TABINDEX.
IF SY-SUBRC = 0.

ENDIF.


WHEN OTHERS.
ENDCASE.

ENDFORM

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What primary key and foreign key relationship

1082


What are the problems in processing batch input sessions?

776


Differentiate between abap memory and sap memory?

838


How to convert the Unit for 'Distance' (The value from one Unit to another).

1656


Describe the data classes?

776


What is gui status? How to create /edit gui status?

812


what is the transaction transaction for setting parameters rdisp/buffermode

3959


What is meant by exclusive, not cumulative lock? : sap abap data dictionary

770


What are the uses of the information in the data dictionary? : abap data dictionary

974


How do you move on to the next screen in interactive reporting?

879


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

1120


What is the function of the correction system?

755


How is conversion of data types done between abap/4 & db layer? : abap data dictionary

884


What is help view?

755


Which transaction code is used executing a report (type 1 program)? : abap data dictionary

832