Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Module-Pool application toolbar

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

In PBO

Use

SET Pf-STATUS 'STATUS' excluding itab.

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

Former Member
0 Kudos

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