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 structure of bdcmsgcoll? : abap bdc

948


What is an Unpack command?

796


Which database object is used for storing the system variables? : abap data dictionary

1004


Why cant we use Normal function module for data transfer?

1874


What is the use of a pretty printer?

819






Can you define a field without a data element?

692


What are datasets in abap?

825


Explain the difference between tables and structures?

633


What are the events in abap/4 language? : abap hr

753


What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary

845


hi,i worked mostly in core abap.know iam assigned to XI utility project.can u experts let me know what r the basic things i need to learn to work in XI utility project.i already searched in forum.thanks in advance.

1729


How can we set the tablespaces and extent sizes ?

696


SAP Script for Billing in which Billing document number was displayed as header, Bill Type, Bill Category, Bill Item, Cost, Base Unit of Measurement and Material number were categorically displayed for each billing document number. plz mention the detail coding Tahnks, Rahul

2232


What are differences between at selection-screen and at selection-screen output?

941


Why grouping of fields is required? What is the max no of modification groups for each field?

727