2 Replies Latest reply: Jan 17, 2008 3:33 PM by Vinodh Balakrishnan RSS

Module-Pool application toolbar

sandeep shambharkar
Currently Being Moderated

Respected SAP guru,

 

  I like to know how Application Toolbar button should be disabled or enabled in Module-Pool Programming plz, explain with example.

 

Sincerly,

sandeep

  • Re: Module-Pool application toolbar
    Vasu Gunda
    Currently Being Moderated

    In PBO

     

    Use

    SET Pf-STATUS 'STATUS' excluding itab.

     

    itab should contain the fcodes that need to be disabled.....

  • Re: Module-Pool application toolbar
    Vinodh Balakrishnan
    Currently Being Moderated

    As mentioned in the Thread, use the Syntax

     

    SET Pf-STATUS 'STATUS' excluding itab

     

     

     

    Example:

     

    data: BEGIN OF MTAB_UCOMM_EXCLUDE OCCURS 0,

            VALUE(4) TYPE C,

          END OF MTAB_UCOMM.

    AT USER-COMMAND.

      PERFORM SET_PF_STATUS. ...

    ----


    • FORM SET_PF_STATUS *

    ----


    • Set up the menus/buttons for the report *

    ----


    FORM SET_PF_STATUS.

      CLEAR MTAB_UCOMM_EXCLUDE.

      REFRESH MTAB_UCOMM_EXCLUDE.

      CASE MI_CURRENT_PAGE.

        WHEN 1.

    *-- Do not want any pushbuttons that point to items to the right

    *-- since the list is at its rightmost position

        MTAB_UCOMM_EXCLUDE-UCOMM = 'FRST'.

        APPEND MTAB_UCOMM_EXCLUDE.

        MTAB_UCOMM_EXCLUDE-UCOMM = 'PREV'.

        APPEND MTAB_UCOMM_EXCLUDE.

      WHEN MI_TOTAL_PAGES.

    *-- Do not want any pushbuttons that point to items to the left

    *-- since the list is at its leftmost position

        MTAB_UCOMM_EXCLUDE-UCOMM = 'LAST'.

        APPEND MTAB_UCOMM_EXCLUDE.

        MTAB_UCOMM_EXCLUDE-UCOMM = 'NEXT'.

        APPEND MTAB_UCOMM_EXCLUDE.

      WHEN OTHERS.

    *-- Want all pushbuttons to appear on any other page

      ENDCASE.

      SET PF-STATUS 'MAIN' EXCLUDING MTAB_UCOMM_EXCLUDE.

    ENDFORM. " SET_PF_STATUS

     

     

    Hope this helps

     

    Vinodh Balakrishnan

Actions