In this step, you assign SAPscript forms
(layout sets) and programs to the individual output (message) types.
Forms determine the layout and content of output documents and programs
control the processing of output (messages).
Assignment of storage location address to a form
If you want to include the address of the storage location on the printout when printing out GR/GI slips (goods-accompanying slips), you can extend the relevant form (layout set) accordingly.
Printing the storage location address is supported for the following:
To include the storage location address in the printout, you must make the following settings:
In Customizing for the enterprise structure,
enter at least one address for a storage location under Definition
-> Materials Management ->
Maintain Storage Location. The address you wish to print must
have the sequential number 001.
Make the following settings in Customizing for Inventory Management:
In the step Define Forms , assign the data you wish to have printed to the desired form (e.g. WESCHEINVERS1) (sub-object Window , text elements under the section "Storage information").
In the case of the output (message) types WE03 and WA03, you must add $*LADR-<field name>$ to the form. In the case of all the other types, you must add $LADR-<field name>$.
In WESCHEINVERS1, $LADR-name1$ is predefined for example purposes. This enables you to print the name of the storage location.
Note:
The $ signs are to be replaced by the &
sign in the SAPscript editor.
You can choose all fields included in the structure SADR (address management: company data). If you wish to print out the postal code, for example, enter $LADR-pstlz$.
In the case of the output (message) types WE03 and WA03, to switch storage locations you must replace the form routine ENTRY_WE03 by ENTRY_WE03L and the routine ENTRY_WA03 by ENTRY_WA03L. As a result, a new GR/GI slip will be printed each time the storage location is changed.
You make this setting in the step
In form WESCHEINVERS3, it is specified for example purposes what you must change when using the form routine ENTRY_WE03L in order to print out the relevant storage location addresses in the event of a change in the storage location.
The header part of the sub-object
Window contains the following for this purpose:
IF NOT $LGORTSPLIT$ IS INITIAL
Lagerort $*MSEG-LGORT$ $*LADR-NAME1$
ENDIF
In the standard system, a form and a program have already been assigned to each of the relevant output (message) types.