GetList
This method returns the possible entries (F4) for a BAPI parameter field. The name of the field which the posibleentries are for must be entered.The field can be identified by its object type/object name, methods andparameters in the associated parameters of the Helpvalues.GetList method.
Alternatively specific search help can be transferred in the paramater ExplicitShlp. The possible values are based on check tables, domain fixed values orpossible values defined for the data element in the ABAP Dictionary. The method can only be used for fields in BAPI parameters. The system
checks that the field exists in the named parameter, method and object. The help values together with other useful information is returned in the parameter Helpvalues. The parameter Description4HV contains the metainformation with whichthe column contents returned in the parameter Helpvalues is described.
The parameter Values4Field contains the input values only. Possible entries can only be displayed after an authorization check(see section "Authorization Check". Type A tables (master and transaction data) and type L tables (temporary data) cannot be viewed
using method Helpvalues.GetList.
Example You want to display the possible entries for the field "National",(country key). The field is located in the PersonalData parameter, in the Employee.GetList BAPI.
You need the following parameters for the method call:
ObjType
ObjName 'Employee' Method 'GetList' Parameter 'PersonalData' Field 'National' MaxOfRows '0' DescriptionOnly 'X'
The parameter Description4HV contains: TABNAME (Table) FIELDNAME (Field) ... FIELDTEXT (Description)----------------------------------------------------------------------- H_T005 LAND1 Country key H_T005 LANDX Country H_T005 NATIO Nationality
Note: If you use the test environment of the Function Builder for testing, you must mark upper/lower case. The possible entries are returned in the parameter Helpvalues. Thisparameter also contains other useful information, such as text. The parameter contains the following values: ...
AT Austria Austrian AU Australia Australian ... The parameter Values4Field, on the other hand, contains only the possible values for the field: ... AT AU ... The application can provide the information from the Helpvalues parameter for selection.
If you select a parameter line, you can display the correct possible entries from the Values4Field parameter. If only countries beginning with 'A' are to be selected, the parameter Selection4Helpvalues must contain the following data: SELECT_FLD SIGN OPTION LOW HIGH
-------------------------------------------------------------------- LANDX I CP A* Messages are returned in the Return parameter. The documentation onthis parameter contains the return values and their descriptions. Authorization Check
The possible values are only returned, if the caller has the correctauthorization. If not, an error message is displayed (see the Returnparameter). The required authorization is documented in the BAPI. Using table BAPIF4T you can also restrict access to F4 possible entries
to people with a specific user profile. For further information see "BAPI Programming". Further InformationFor further information see the application help, "BAPI Progamming".
|