Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

get cursor

how to get the cursor value on which user clicked from alv grid display.. my code is below..but still i'm not able to capture any values in fnam or fval.. i have placed my get stmt inside case stmt also..it is not capturing? help me..

&----


*& Form USER_COMMAND

&----


  • text

----


  • -->R_UCOMM text

  • -->RS_SELFIELD text

----


FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

GET CURSOR FIELD FNAM VALUE FVAL.

CASE SY-UCOMM.

WHEN 'CREATE'.

CALL TRANSACTION 'ZKR001'.

WHEN 'AMEND'.

SET PARAMETER ID 'MAT' FIELD FNAM.

CALL TRANSACTION 'ZKR001'.

WHEN 'DISPLAY'.

SET PARAMETER ID 'MAT' FIELD FNAM.

CALL TRANSACTION 'ZKR001'.

WHEN 'COPY'.

WHEN 'PRINT'.

WHEN 'FIND'.

ENDCASE.

ENDFORM. "USER_COMMAND

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question