Fonction SAP API_SEMBPS_VARIABLE_GETDETAIL - Detail on a Variable

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AREA UPC_AREA-AREA C 8 X Planning Area
I_VARIABLE UPC_VAR-VAR C 8 X Variable

Paramètre Reférence Type Long. Description
ES_HIEKEY UPC_YS_HIE_KEY u 71 Hierarchy Key
ES_HIESEL UPC_YS_API_HIESEL u 105 Hierarchy Node Selection
ES_RETURN BAPIRET2 u 548 Return Parameter
E_NOVALUE UPC_VAR_NUM_SEL-NO_VALUE C 1 No Restriction Executed
E_NUMVALUE UPC_VAR_NUM_SEL-NUMVALUE P 16 Numeric Value for Variable
E_SUBRC SYST-SUBRC I 4 Return Code
E_TYPE UPC_VAR-VARTYPE C 10 Variable Type
E_USER_RESTRICTION UPC_VAR-USERRESTRICTION C 1 Restriction of Selection Required by User
E_USER_VALUES UPC_VAR-USERSEL C 1 Input Allowed by User

Paramètre Reférence Long. Facultatif Description
ETK_CHA UPC_YS_CHA 30 X Characteristic
ETK_HIEDEP UPC_YS_API_HIEDEP 104 X Values of Compound Characteristics
ETK_HIEDEP_ALL UPC_YS_API_HIEDEP 104 X Values of Compound Characteristics
ETK_HIESEL_ALL UPC_YS_API_HIESEL 105 X All Hierarchy Nodes
ETK_VARSEL UPC_YS_API_VARSEL 177 X Restricted Variable Values
ETK_VARSEL_ALL UPC_YS_API_VARSEL 177 X All Variable Values

Functionality
This function module delivers detailed information on a variable.

  • E_USER_VALUES delivers the value of the indicator "Input allowed by
  • user"
    • E_USER_RESTRICTION delivers the value of the indicator "Restriction of
    • values required by user"
      • E_TYPE delivers the type of variables: 'CHAR', 'HIERARCHY' or 'NUMBER'

      • E_NUMVALUE is filled with type 'NUMBER'

      • ETK_VARSEL_ALL delivers all possible values of variables, is only
      • filled with type 'CHAR'
        The sequence number SEQNO is sequentially numbered per row of theselection condition
        The other fields are filled as in the table ITK_CHASEL in functionmodule API_SEMBPS_ADHOCPACKAGE_SET.
        • ETK_VARSEL delivers the values of the variables restricted by the user

        • ETK_HIESEL_ALL delivers all hierarchy nodes of variables, is only
        • filled with E_TYPE 'HIERARCHY'
          • ETK_HIEDEP_ALL delivers the values of higher-level characteristics in
          • compounded characteristics
            • ES_HIESEL and ETK_HIEDEP deliver the hierarchy nodes selected by the
            • user
              • ETK_CHA delivers the characteristics of the variables