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 is the purpose of at first and at last?

701


performance tuning concepts

1045


What is the difference between synchronous and asynchronous updates?

693


What is lock object ? : abap data dictionary

696


What is meant by hot spots? : abap data dictionary

739






A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

655


In order to upload purchase order details, how you handle multiple values for a single field?

643


What are the different types of abap/4 programs?

702


Can you define a field without a data element? : abap data dictionary

721


What is the difference between synchronous and asynchronous update? : abap bdc

727


What are the function modules used in a sap script driver program?

691


How can we send data to external programs?

725


How many structures can be created in a Ztable ?

3223


Explain how to create any functions? How to go about it?

628


What is the difference between abap and hr abap? : abap hr

700