SAP Function SGRC_SET_CUA_STATUS - Set GUI status (for network and bar chart)

Parameter Reference Type Length Default Optional Text
PROGRAM SYST-REPID C 40 SY-REPID X Program name for CUA information
STATUS SYST-PFKEY C 20 SPACE X Status for CUA information
WINID NET_GRAPH-WINID C 8 X Window ID

Parameter Reference Length Optional Text
EXCLUDING SGRCEXCLUD 20 X Table for function code exceptions

Exception Text
INV_CUA_INFO Error in the menu definition


If you have defined interface elements with the Menu Painter,GRAPH_SET_CUA_STATUS sends this information to the graphicsprogram.
Note:
This function module is not available for the SAP BusinessGraphics and SAP HPGL display.
Menu entries which trigger direct actions in the graphics program aredefined by standard function codes. These function codes are defined inthe reference screen.
They can be accessed via Include menus.
The following reference screens are available:
  • SAP Hierarchy Graphics,,,,SAPLHIER / MAIN

  • SAP Network Graphics,,,,,,SAPLCNET / GRAFIK

  • SAP Bar Chart Graphics,,,,SAPLBARC / GRAFIK

  • SAP Statistical Graphics,,,,SAPLSTAT / MAIN

  • SAP Gantt Diagram,,,,,,SAPLGANT / MAIN

  • SAP Pushbutton Graphics,,,,SAPLBMAT / MAIN

  • SAP Text Matrix,,,,,,,,SAPLBMAT / MAIN

  • SAP Portfolio Graphics,,,,SAPLPORT / MAIN

  • To create application-specific menu entries, use function codes thatbegin with the letters X, Y or Z. If the dialog user selects a menuentry, the function code is reported directly to the ABAP program.
    The ABAP program analyzes the function code with the following returnparameters of the respective function module:
    • SAP Network Graphics:,,,,,,GR_MES

    • SAP Bar Chart Graphics:,,,,,,GRAPH_CMD

    • All other graphics programs:,,,,M_TYP = 'I',

    • ,,,,,,,,,,,,,,,,,,x = '0' and
      ,,,,,,,,,,,,,,,,,,CUA_ID =
      Note:
      If you are using a customer-defined user interface, you need to specifythe user interface status before calling the graphics program. To dothis, use the appropriate parameters of the function moduleGRAPH_SET_CUA_STATUS.
      Caution:
      Do not use GRAPH_SET_CUA_STATUS and GRAPH_ACTION (or CNET_GRAPH_ACTION)in the same program since the data for the interface elements will beoverwritten.
      Program name
      Status
      Exception table (e.g. with 1 field C(4))
      Function codes contained in this table will not be transferred to thegraphic.