2007 Jul 20 7:58 PM
hi all,
while creating variants
1. what does the significance of fields attributes
- required field
- switch gpa off
- save field without values
- selection variables
- hide field 'bis'
- hide field
- protect field
can anyone explain with an examples.
regds
hari
2007 Jul 20 8:02 PM
2007 Jul 20 8:06 PM
Hi,
On this screen, you can define the attributes for the variant. Make sure
that you enter a meaningful short text.
- Only for background processing
If you select this option, the variant can only be used in
background processing. You will not be able to start the program
with this variant in dialog mode.
- Protect variant
If you select this option, the variant can only be changed by the
person who created it or the last person to change it. If you start
a program using a protected variant, none of the fields on the
selection screen accept user input.
- Only display in catalog
If you select this option, the variant is not displayed in the input
help list; it is only displayed in the catalog.
- System variant
This option is set automatically, and cannot be changed. For details
of how to create and maintain system variables, refer to the
documentation for the initial variant maintenance screne.
The selection screen(s) you have chosen for the program are displayed
one after the other. Since a parameter or selection option can occur on
more than one screen, the attribute fields for that field only accept
input the first time it occurs.
- Type
The field type indicates whether the field is a parameter (P) or a
selection option (S).
- Protected
If you select this option, the user cannot overwrite the value in
the field on the selection screen.
- Invisible
If you select this option, the corresponding field is not displayed
when the user starts the program using this variant. However, you
can still assign a value to the field in the variant.
- Selection variable
If you select this field, the field on the selection screen is
assigned a value from a variant variable.
To select variant variables, choose SELECTION VARIABLES.
- Without values
If you select this field, the value of the corresponding field on
the selection screen is not affected when you start the program
using a variant.
Example:
A program has selection screens 1000 and 200. Both screens contain a
select-option SELOP. When the program is started, selection screen 1000
is used. Selection screen 200 has a variant in which SELOP has the value
'val'. When the program runs, the user enters 'xxx' in SELOP on
selection screen 1000. Then, selection screen 200 is called with its
variant.
- 1st case: The 'without values' option is not set in the variant for
SELOP:
When the variant for selection screen 200 is loaded, SELOP has the
value 'val', as defined in the variant.
- 2nd case: The 'without values' option is set in the variant for
SELOP:
When the variant for selection screen 200 is loaded, SELOP retains
the value 'xxx' that it had before the selection screen was called.
- SPA/GPA
This option is selected by default, that is, the fields are filled
using SPA/GPA parameters.
Note: Suppose you have a selection field MEMO with the memory ID pid. In
the variant, you store the initial value (space) for the field. If you
then start the program using the variant, MEMO will contain the last
value entered by the user in a field with the memory ID pid. If you do
not want this to happen, but want the value of MEMO always to be intial
when you run the program, you m,ust deselect the SPA/GPA option in the
variant. SPA/GPA is not active in background processing.
Regards.
Marcelo Ramos
2007 Jul 20 8:12 PM
Hi,
Please check this document.
http://help.sap.com/saphelp_nw04/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm
Regards,
Ferry Lianto