Skip to Content
author's profile photo Former Member
Former Member

hotspot not getting triggered (REUSE_ALV_GRID_DISPLAY)

here is my code:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

* I_CALLBACK_PROGRAM = GD_REPID

I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'

IS_LAYOUT = LAYOUT

IT_FIELDCAT = FIELDCAT

IT_SORT = I_SORT

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

I_SAVE = 'X'

I_DEFAULT = 'X'

" i_callback_user_command = c_user_command

TABLES

T_OUTTAB = I_FINAL[] " it_sort = sort

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

BREAK-POINT.

* CLEAR DIALOG_BOX.

* CLEAR GRID.

IF DIALOG_BOX IS NOT INITIAL.

PERFORM CHECK_EXISTING_DOCK.

ENDIF.

CASE RS_SELFIELD-FIELDNAME.

WHEN 'TISSUED2'.

CLEAR G_TITLE.

G_TITLE = 'Material Documents For Issue'.

* RS_SELFIELD-EXIT = 'X'.

* RS_SELFIELD-REFRESH = 'X'.

PERFORM DATA_SELECTION_ISSUE.

ENDCASE.

ENDFORM.

i dont know what is the problem...why the hotspot click is not getting triggered.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2012 at 04:42 AM

    Does the HOTSPOT appear in the ALV?

    I assume fieldcat-HOTSPOT = 'X' has been passed.

    Thanks,

    Shambu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2012 at 05:21 AM

    Hi,

    Provide i_callback_program as SY-CPROG .

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    I_CALLBACK_PROGRAM = sy-cprog.

    Regards,

    venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 05, 2012 at 04:31 AM

    Hi Abhishek,

    Can you share your Field Catalog?

    Regards,

    ManuB

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I guess hotspot click trigger does not depend on field catalogue but nevertheless i m sharing that.

      here is the sample and it is exactly same on which i want the hotspot trigger.

      FIELDCATALOG-TABNAME = 'ITAB'.

      FIELDCATALOG-FIELDNAME = 'TISSUED2'.

      FIELDCATALOG-SELTEXT_M = 'Issued'.

      FIELDCATALOG-DO_SUM = 'X'.

      FIELDCATALOG-HOTSPOT = 'X'.

      APPEND FIELDCATALOG TO FIELDCAT.

      CLEAR FIELDCATALOG.

  • Posted on Jun 05, 2012 at 05:12 AM

    Hi Abhishek,

    You have not passed FIELDCATLOF corectly to FM.You need to add bracket parentheses in your FM REUSE_ALV_GRID_DISPLAY . Please check below code :


    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    * I_CALLBACK_PROGRAM = GD_REPID

    I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'

    IS_LAYOUT = LAYOUT

    IT_FIELDCAT = FIELDCAT [ ]

    IT_SORT = I_SORT

    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

    I_SAVE = 'X'

    I_DEFAULT = 'X'

    " i_callback_user_command = c_user_command

    TABLES

    T_OUTTAB = I_FINAL[] " it_sort = sort

    EXCEPTIONS

    PROGRAM_ERROR = 1

    OTHERS = 2.

    Regards,

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.