Ansicht
Dokumentation
HELP_VALUES_SHRINK -
rdisp/max_wprun_time - Maximum work process run time rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
Function module: HELP_VALUES_SHRINK
Purpose: Restriction of a specified value set according to a specified
pattern
Function group: SHL3 - Help functions for external use
Responsible: KRAFTT
Release: -
Documentation
Functionality
This function module serves to restrict the contents of table fields
that are indicated as related, by certain, for each field individually specified patterns.
Example
- data: begin of dynpselection occurs 10.
- include structure dselc.
- data: end of dynpselection.
- data: begin of dynpvalues occurs 10.
- include structure dval.
- data: end of dynpvalues.
- data: begin of ivalues occurs 100.
- include structure shvalue.
- data: end of ivalues.
- perform fill_ivalues.
- move 'DEVCLASS' to dynpselection-fldname.
- move 'S*' to dynpselection-fldinh.
- append dynpselection.
- move 'INTSYS' to dynpselection-fldname.
- move 'B*' to dynpselection-fldinh.
- append dynpselection.
- move 'CONSYS' to dynpselection-fldname.
- move 'K*' to dynpselection-fldinh.
- append dynpselection.
- move 'S*' to dynpvalues-lowvalue.
- append dynpvalues.
- move 'B*' to dynpvalues-lowvalue.
- append dynpvalues.
- move 'K*' to dynpvalues-lowvalue
- append dynpvalues.
- call function 'HELP_VALUES_SHRINK'
- tables
- dynpselect = dynpselection
- dynpvaluetab = dynpvalues
- values = ivalues.
Notes
Regarding the dynpro selection, please see also the documentation for HELP_VALUES_GET_EXTEND.
The usage of HELP_VALUES_SHRINK is not limited to the dynpro selection only, rather it allows a general restriction of values, if the values are passed in a table having the same structure as SHVALUE (like in F4 Help).
Parameter description
Parameter Reference field/structure Default
Table parameters
DYNPSELECT DSELC
DYNPVALUETAB DVAL
VALUES SHVALUE
- Table parameters
- DYNPSELECT: Field names and contents
Meaning: Names of the fields and the related contents.
The contents specify the restriction conditions.
The field names in the standard F4 Help refer to
the Dictionary, but do not contain the table
name.
For your own value restriction, the fields can
have a type defined by yourself.
- DYNPVALUETAB: Field contents
Meaning: In standard F4 the field contents match those of
DYNPSELECT-FLDINH; this would be a good idea for
your own value restriction, but is not
mandatory.
- VALUES: Values to be restricted
Meaning: Value table subject to the restriction
conditions.
The values must be defined in a table of the
same type as SHVALUE, containing the fields
LINE, POS and LOW_VALUE.
Parameters
DYNPSELECTDYNPVALUETAB
SPACE_MEANS_GENERIC
VALUES
Exceptions
Function Group
SHL2General Data in Customer Master General Material Data
This documentation is copyright by SAP AG.
Length: 4533 Date: 20240523 Time: 113647 sap01-206 ( 36 ms )