Ansicht
Dokumentation

Changes and Enhancements to Macro Functionality in DP and SNP (Changed) ( RELNAPO_401_FCS_MACROS )

Changes and Enhancements to Macro Functionality in DP and SNP (Changed) ( RELNAPO_401_FCS_MACROS )

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Short text

Changes and Enhancements to Macro Functionality in DP and SNP (Changed)

Use

In Release 4.0 several changes have been made that improve the editing of macros.

Macro Workbench

This replaces the old initial screen of the Macro Builder. It enables you to restrict the macro books to be displayed, for instance

  • Your own books
  • SAP macro books
  • Books that contain macros
  • Books belonging to a particular macro group, a new object particularly designed for sorting purposes.
  • Books for a particular application

The macro workbench is based on the SAP list viewer (ALV), so that you can use standard functions to sort and filter macro books.

Where-used lists enable you to find macros in which certain elements, functions, or key figures are used.

From this overview screen you can of course start actions for individual macros, such as

  • Start Macro Builder
  • Activate macros
  • Create notes for macros (new function in Release 4.0)
  • Generate (activate) one or more macros

Furthermore you can copy macros from one planning book to another, transport macros bboks to other systems, and start semantic checks for macro books or individual macros.

Semantic Checks

Up to now there have only been syntax checks for the coding of macros within the Macro Builder. These checked the formal correctness of the macro coding. There were however some situations that could not be checked, but caused problems when using the macro. This function has been conceived so that new checks can be added as necessary. At the moment the following checks are available:

  • 'Do not initialize aux. table'
The system checks wheteher this indicator at the macro level has been set. If not a warning is displayed.
If the auxiliary table is not initialized when you call up the macro, any values that are in the table from the execution of previous macros remain in the table and can be used in the current macro. All entries in the auxiliary table are lost when you leave the planning book.
  • Layout
The system checks that the correct Change scope has been assigned to a results element in the attributes. If the function that is called changes the attributes of a cell, for instance by changing the background color or setting an icon, the Change scopeshould be Attributes,otherwise Valuesor Fixed values.
  • 'Do not display initial values'
This indicator at macro level affects performance. If it is not set initial values, that is cells that have no entry, are converted to '0', and are taken into consideration during calculations.
  • Logical checks
The system also checks that the parentheses, semi-colons, and single inverted commas have been set correctly.

The semantic check can be started at any one of four levels:

  1. Macro book
  2. Macro
  3. Step
  4. Result

It can be started from either the macro workbench or the macro builder.

Macro Versions

It is now possible to generate versions of macros. This enables you to backup existing macros before making changes. You can specify that the system automatically create a new version of a macro book each time a macro book is included in a transport request or a different user changes macros in the macro book. You access this function from the menu of the MacroBuilder.

Testing Macros

This improvement lets you test macros directly from the MacroBuilder. A new session appears with a planning grid as in interactive planning. You can make some entries in the relevant key figures and then test the macros that have been generated. This means that when you are developing macros, you can quickly switch between editing in the MacroBuilder and the test screen. You access this function from the menu of the MacroBuilder.

Effects on Existing Data

Effects on Data Transfer

Effects on System Administration

Effects on Customizing

Further Information






Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 5059 Date: 20240419 Time: 141945     sap01-206 ( 46 ms )