openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/API_SEMBPS_AREA_GETDETAIL:
    post:
      tags:
      - UPC_API
      summary: Read Metadata on Planning Area
      operationId: /rfc/API_SEMBPS_AREA_GETDETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_AREA:
                  type: string
                  maxLength: 8
                  description: Planning Area
                ETK_CHACMP:
                  type: array
                  items:
                    type: object
                    properties:
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      CHANMCMP:
                        type: string
                        maxLength: 30
                        description: Characteristic
                ETK_CHAPRO:
                  type: array
                  items:
                    type: object
                    properties:
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      IOBJTP:
                        type: string
                        maxLength: 3
                        description: 'InfoObject Type  enumValues: KYF=Key figure,CHA=Characteristic,UNI=Unit,TIM=Time characteristic'
                        enum:
                        - KYF
                        - CHA
                        - UNI
                        - TIM
                      DATATP:
                        type: string
                        maxLength: 4
                        description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                          accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                          field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      INTTP:
                        type: string
                        maxLength: 1
                        description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                          (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      DIGITS:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short Description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long Description
                      HIETABFL:
                        type: string
                        maxLength: 1
                        description: 'Characteristic with hierarchies  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      HIEVERFL:
                        type: string
                        maxLength: 1
                        description: 'Hierarchies can have several versions  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      HIENMTFL:
                        type: string
                        maxLength: 1
                        description: 'Hierarchy is Time-Dependent  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LEVOBLI:
                        type: string
                        maxLength: 1
                        description: 'Characteristic Mandatory in Planning Level  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      BDSFL:
                        type: string
                        maxLength: 1
                        description: 'Comment Facility for Characteristics  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                ETK_KYFPRO:
                  type: array
                  items:
                    type: object
                    properties:
                      KYFNM:
                        type: string
                        maxLength: 30
                        description: Key Figure
                      KYFTP:
                        type: string
                        maxLength: 3
                        description: 'Key Figure Type  enumValues: FLO=Floating point number (without unit),AMO=Amount,INT=Whole number,QUA=Quantity,TIM=Time,NUM=Number (without unit),DAT=Date'
                        enum:
                        - FLO
                        - AMO
                        - INT
                        - QUA
                        - TIM
                        - NUM
                        - DAT
                      DATATP:
                        type: string
                        maxLength: 4
                        description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                          accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                          field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      INTTP:
                        type: string
                        maxLength: 1
                        description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                          (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      DIGITS:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short Description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long Description
                      FIXCUKY:
                        type: string
                        maxLength: 5
                        description: Fixed currency
                      FIXUNIT:
                        type: string
                        maxLength: 3
                        description: Fixed Unit of Measure
                      FIXUNITEXT:
                        type: string
                        maxLength: 3
                        description: External Unit of Measurement in Commercial Format (3-Char.)
                      KYFDECIM:
                        type: string
                        maxLength: 1
                        description: 'Display Decimal Places of a Key Figure  enumValues: 0=0,1=0.0,6=0,000000,7=0,0000000,8=0,00000000,4=0,0000,2=0.00,9=0,000000000,""=Not defined,3=0,000,5=0,00000'
                        enum:
                        - '0'
                        - '1'
                        - '6'
                        - '7'
                        - '8'
                        - '4'
                        - '2'
                        - '9'
                        - ''
                        - '3'
                        - '5'
                      KYFPRSNT:
                        type: string
                        maxLength: 1
                        description: 'Display a Key Figure  enumValues: 1=in 10,3=in 1,000,5=in 100,000,0=in 1,6=in 1,000,000,8=in 100,000,000,""=Not defined,2=in 100,4=in 10,000,7=in 10,000,000,9=in 1,000,000,000'
                        enum:
                        - '1'
                        - '3'
                        - '5'
                        - '0'
                        - '6'
                        - '8'
                        - ''
                        - '2'
                        - '4'
                        - '7'
                        - '9'
                      UNINM:
                        type: string
                        maxLength: 30
                        description: Characteristic units (currency / unit of measure)
                      AGGR:
                        type: string
                        maxLength: 1
                        description: 'Key Figure can be Aggregated  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
              required:
              - I_AREA
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  E_SUBRC:
                    type: integer
                    format: int32
                    description: Return Code
                  ETK_CHACMP:
                    type: array
                    items:
                      type: object
                      properties:
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        CHANMCMP:
                          type: string
                          maxLength: 30
                          description: Characteristic
                  ETK_CHAPRO:
                    type: array
                    items:
                      type: object
                      properties:
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        IOBJTP:
                          type: string
                          maxLength: 3
                          description: 'InfoObject Type  enumValues: KYF=Key figure,CHA=Characteristic,UNI=Unit,TIM=Time characteristic'
                          enum:
                          - KYF
                          - CHA
                          - UNI
                          - TIM
                        DATATP:
                          type: string
                          maxLength: 4
                          description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                            accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                            field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        INTTP:
                          type: string
                          maxLength: 1
                          description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character
                            string (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DIGITS:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short Description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long Description
                        HIETABFL:
                          type: string
                          maxLength: 1
                          description: 'Characteristic with hierarchies  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        HIEVERFL:
                          type: string
                          maxLength: 1
                          description: 'Hierarchies can have several versions  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        HIENMTFL:
                          type: string
                          maxLength: 1
                          description: 'Hierarchy is Time-Dependent  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        LEVOBLI:
                          type: string
                          maxLength: 1
                          description: 'Characteristic Mandatory in Planning Level  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        BDSFL:
                          type: string
                          maxLength: 1
                          description: 'Comment Facility for Characteristics  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  ETK_KYFPRO:
                    type: array
                    items:
                      type: object
                      properties:
                        KYFNM:
                          type: string
                          maxLength: 30
                          description: Key Figure
                        KYFTP:
                          type: string
                          maxLength: 3
                          description: 'Key Figure Type  enumValues: FLO=Floating point number (without unit),AMO=Amount,INT=Whole number,QUA=Quantity,TIM=Time,NUM=Number (without unit),DAT=Date'
                          enum:
                          - FLO
                          - AMO
                          - INT
                          - QUA
                          - TIM
                          - NUM
                          - DAT
                        DATATP:
                          type: string
                          maxLength: 4
                          description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                            accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                            field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        INTTP:
                          type: string
                          maxLength: 1
                          description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character
                            string (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DIGITS:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short Description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long Description
                        FIXCUKY:
                          type: string
                          maxLength: 5
                          description: Fixed currency
                        FIXUNIT:
                          type: string
                          maxLength: 3
                          description: Fixed Unit of Measure
                        FIXUNITEXT:
                          type: string
                          maxLength: 3
                          description: External Unit of Measurement in Commercial Format (3-Char.)
                        KYFDECIM:
                          type: string
                          maxLength: 1
                          description: 'Display Decimal Places of a Key Figure  enumValues: 0=0,1=0.0,6=0,000000,7=0,0000000,8=0,00000000,4=0,0000,2=0.00,9=0,000000000,""=Not defined,3=0,000,5=0,00000'
                          enum:
                          - '0'
                          - '1'
                          - '6'
                          - '7'
                          - '8'
                          - '4'
                          - '2'
                          - '9'
                          - ''
                          - '3'
                          - '5'
                        KYFPRSNT:
                          type: string
                          maxLength: 1
                          description: 'Display a Key Figure  enumValues: 1=in 10,3=in 1,000,5=in 100,000,0=in 1,6=in 1,000,000,8=in 100,000,000,""=Not defined,2=in 100,4=in 10,000,7=in 10,000,000,9=in 1,000,000,000'
                          enum:
                          - '1'
                          - '3'
                          - '5'
                          - '0'
                          - '6'
                          - '8'
                          - ''
                          - '2'
                          - '4'
                          - '7'
                          - '9'
                        UNINM:
                          type: string
                          maxLength: 30
                          description: Characteristic units (currency / unit of measure)
                        AGGR:
                          type: string
                          maxLength: 1
                          description: 'Key Figure can be Aggregated  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
