Fonction SAP API_SEMBPS_PLANSTRUCTURE_GET - Read Plan Structure

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AREA UPC_AREA-AREA C 8 X Planning Area
I_PLEVEL UPC_PLEVEL-PLEVEL C 8 X Planning Level
I_PROFILE UPC_PROFILE-PROFILE C 8 X Planning profile
I_READ_FUNCTION BOOLE-BOOLE C 1 SPACE X Read Planning Functions
I_READ_LAYOUT BOOLE-BOOLE C 1 SPACE X Read Layouts
I_READ_PACKAGE BOOLE-BOOLE C 1 SPACE X Read Planning Packages
I_READ_PARAM BOOLE-BOOLE C 1 SPACE X Read Parameter Groups
I_READ_PLEVEL BOOLE-BOOLE C 1 SPACE X Read Planning Levels
I_READ_SEQUENCE BOOLE-BOOLE C 1 SPACE X Read Planning Sequences
I_READ_VARIABLE BOOLE-BOOLE C 1 SPACE X Read Variables
I_USE_DEFAULT BOOLE-BOOLE C 1 X User's Default Profile

Paramètre Reférence Type Long. Description
ES_RETURN BAPIRET2 u 548 Return Parameter
E_SUBRC SYST-SUBRC I 4 Return Code

Paramètre Reférence Long. Facultatif Description
ETK_AREA UPC_YS_API_AREA 48 X Planning Areas
ETK_FUNCTION UPC_YS_API_FUNCTION 64 X Planning Functions
ETK_LAYOUT UPC_YS_API_LAYOUT 64 X Planning layouts
ETK_PACKAGE UPC_YS_API_PACKAGE 64 X Planning Packages
ETK_PARAM UPC_YS_API_PARAM 72 X Parameter Groups
ETK_PLEVEL UPC_YS_API_PLEVEL 56 X Planning Levels
ETK_SEQUENCE UPC_YS_API_SEQUENCE 64 X Planning Sequences
ETK_VARIABLE UPC_YS_API_VARIABLE 56 X Variable

Functionality
The planning structure can be read with this function module, thismeans the available planning areas, levels, packages, layouts,sequences, functions, parameter groups and variables.

  • If the parameter I_AREA is filled, only this one planning area is read.

  • If in addition the parameter I_PLEVEL is filled, only this planning
  • level is read.
    • If the parameter I_USE_DEFAULT is filled, the default planning profile
    • of the user is used.
      • If the parameter I_PROFILE is filled, the planning structure is read on
      • the specified planning profile.
        • If all parameters are empty, the complete planning structure is read.

        • You control which return parameters should be filled with the
        • parameters I_READ_*.

          Description
          This structure can contain a message. In the case of E_SUBRC <> 0 itcontains an error message, in the case of E_SUBRC = 0 an informationmessage can be in this structure.

          Description
          This return parameter contains the value 0, when the module could beexecuted without any errors, otherwise the value of the returnparameter is larger than 0.