Macro

Administration > System Initialization > Report settings > Macros > Macro Definition > Macro

Top  Previous  Next
Expand/Collapse Toggles

In this window the Macro is defined. Select one and click Edit.

For further information see Macro structure.

 

Field

Description

Number

Creating new, a number can be entered manually. You can define number ranges.

 

Allowed range:

100.000 – 99.999.999

 

If no number is entered, the next free number will be used.

Screen

Window title (psr-file) in which the Macro will be executed. Filled automatically.

Name

A unique name is to be entered (mandatory field).

 

The entered text is not translated into user´s language.

Left to the entry field there is a script-icon. Click it to open a script editor. There you can define using script, which report to be used. Use the variable "value".

 

Example:

setvar=value=Report Name from Script

 

If a script is stored, the icon is displayed in red.
The script is executed at call up of a pre-view / print function or via menu entries "Master data report", "Production report".

 

Simple entry

Disabled: in case of Crystal-Reports. This can be selected directly. Enter only variables (see Variables).

Enabled: Different types of output can be defined. see: macro structure, Output formats.

Type

System macro: Updated automatically with each Beas update. Please do not change it.

Standard macro: Standard report which is imported at initial installation or selecting Report administration -  Reset standard. Changes are allowed.

Customer macro: customized macro which can be changed. Default setting.

Sorting

Determines the order of display.

macro selectable with

Determines, at which action ( with which application) the macro may be selected: view, print, Fax, E-mail, PDF, Excel, Word.

Authorization

Select authorization.

Business partner

Select business partner. Report available only if the business partner is active. This works only for SAP Business One sales and purchase documents.

Stations

Select stations where the macro is available.

User

Select authorized users for this macro.

Script

Ending the script with "return failure" makes the report invisible.

 

The script is called up in parent-window that means from the window ich which the printing was started. If this was done from the menu, the script is called up in reports list.

 

As the script is already edited you cannot use < and >. Please use replacement characters { and }.

 

Example: Only user "manager" is allowed to print the report

 

if {currentuser} = manager then

 return success

end if

return failure

Module

Enter the name of a registered module.

Start before extension: API

Functions to be executed in advance: eg. process data in temporary tables. Which API's are available depend on the current screen. See API

Set print sign

Print: Only for direct printing the printing ID is set, not for preview.

Always: Also for preview  the printing ID is set in work order.

Print planned order

No: Work order of the "planned" type cannot be printed, even if marked (default setting).

Yes: Planned work orders can be printed, as well.

 

 

Tabs

Name

Description

Definition

Defines the macro and the pre-generating function (this window).

Variables

Defines variables to be set up or queried in advance.

macro step

Defines the sequence of a macro.

Scripts

Scripts can be stored, which are executed before or after the macro is called. Loop statements are also possible.


Help URL: https://help.beascloud.com/beas202102/index.html?makro.htm