M3_H5_Shortcut

Use this H5 script to open an M3 program, and simultaneously transfer values from the current program to the target program. The script must be added as a shortcut to a specific panel. When you click the shortcut, the script gets activated and the Mforms automation runs in the background following the provided argument.
Note: This script only works in the new H5 UI.

Script arguments

Examples of arguments are as follows:

  • Argument to be used in 'Balance Identity. Open Toolbox' (MWS068) to navigate to (PPS320) and perform goods putaway.
    • PPS320,P,REPN,WWREPN
    • PPS320,P,REPN,WWREPN:10
    Argument Example Optional Descriptions
    Program PPS320 No The program for this argument is the target program to open.
    Option P Yes This argument can indicate one of these:
    • Empty string: ENTER after opening the argument Program and performing tasks
    • P: No ENTER after opening the prior program and performing tasks
    • F<number>: Function key or the action menu to perform, for example, F2.
    • <number>: Related option to perform and must have a value between -1 to 99.
    Source REPN Yes This argument indicates the field, list, or hard-coded value to use as input to the Target argument.

    For the given example, the receiving number's Field help from (MWS068) is taken since this value is coming from the grid.

    Target or Target:MaxLength number

    WWREPN OR WWREPN:10 Yes

    This argument indicates the field that must be populated with the previous, Source argument.

    For the given example, the receiving number's field Name from (PPS320) is taken.

    You can also use this format <Target>:<MaxLength> N, for example, WWREPN:10. If Max Length is specified, the script adds zeros in the front of the source value to meet the maximum length, for example, 40000167 becomes 00040000167.

  • Argument to be used in 'Material Plan. Open' (MMS080) to navigate to 'Item. Connect Warehouse' (MMS002) and transfer multiple values.

    MMS002,13,WWWHLO,W1OBKV,WWITNO,W2OBKV

    Argument Example Optional Descriptions
    Program MMS002 No The program for this argument is the target program.
    Option 13 Yes This argument can indicate one of these:
    • Empty string: ENTER after opening the argument Program and performing tasks
    • P: No ENTER after opening the prior program and performing tasks
    • F<number>: Function key or the action menu to perform, for example, F2.
    • <number>: Related option to perform and must have a value between -1 to 99.

    For the given example, 13 indicates the related option 13='Item Location' from (MMS002).

    Source WWWHLO Yes This argument indicates the field, list, or hard-coded value to use as input to the Target argument.

    For the given example, WWWHLO is the field that contains the warehouse number to be transferred to the target field. The field Name is the value taken since the value is coming from the Filter options.

    Target or Target:MaxLength value

    W1OBKV Yes

    This argument indicates the field that must be populated with the previous, Source argument.

    For the given example, W1OBKV is the target warehouse field Name in (MMS002).

    Source WWITNO Yes This argument indicates the field, list, or hard-coded value to use as input to the Target argument.

    For the given example, WWITNO is the second field that contains the item number to be transferred to the target field. The field Name is the value taken since the value is coming from the Filter options.

    Target or Target:MaxLength value

    W2OBKV Yes

    This argument indicates the field that must be populated with the previous, Source argument.

    For the given example, W2OBKV is the target item number field Name in (MMS002).

Activating the script

See information about adding shortcuts in the M3 Core User and Administration Library (Cloud). After opening the Shortcuts dialog from the toolbox area, you only need to know the Advanced section steps.