openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SEGMENT_READ_COMPLETE:
    post:
      tags:
      - EDIMEXT
      summary: Read segment structure in one release (RFC-compatible)
      operationId: /rfc/SEGMENT_READ_COMPLETE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PI_APPLREL:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: 'IDoc Development: Application Release of Segment Definition'
                PI_RELEASE:
                  type: string
                  default: SY-SAPRL
                  maxLength: 4
                  description: Release
                PI_SEGTYP:
                  type: string
                  maxLength: 30
                  description: Segment type
                PI_VERSION:
                  type: string
                  default: '3'
                  maxLength: 1
                  description: Version of IDoc record types
                PT_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGMENTTYP:
                        type: string
                        maxLength: 30
                        description: Segment type in 30-character format
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      EXTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      FIELD_POS:
                        type: integer
                        format: int64
                        description: Position number of field
                      BYTE_FIRST:
                        type: integer
                        format: int64
                        description: Position of first byte
                      BYTE_LAST:
                        type: integer
                        format: int64
                        description: Position of last byte
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      ISOCODE:
                        type: string
                        maxLength: 1
                        description: 'IDoc development: ISO code ID in field  enumValues: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
                      VALUETAB:
                        type: string
                        maxLength: 30
                        description: Value table for IDoc segm. field
                PT_FVALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      STRNAME:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      FLDVALUE_L:
                        type: string
                        maxLength: 10
                        description: Lower value/single value
                      FLDVALUE_H:
                        type: string
                        maxLength: 10
                        description: Upper value
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
              required:
              - PI_SEGTYP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PE_HEADER:
                    type: object
                    properties:
                      SEGMENTTYP:
                        type: string
                        maxLength: 30
                        description: Segment type in 30-character format
                      QUALIFIER:
                        type: string
                        maxLength: 1
                        description: 'Flag: Qualified segment in IDoc  enumValues: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      PRESP:
                        type: string
                        maxLength: 30
                        description: Person Responsible
                      PWORK:
                        type: string
                        maxLength: 30
                        description: Processing person
                      PLAST:
                        type: string
                        maxLength: 12
                        description: 'Last change: Person'
                      SEGMENTDEF:
                        type: string
                        maxLength: 30
                        description: 'IDoc Development : Segment definition'
                      VERSION:
                        type: integer
                        format: int64
                        description: 'IDoc development: Segment version'
                      RELEASED:
                        type: string
                        maxLength: 4
                        description: 'IDoc development: Release of segment definition'
                      FIELDNUM:
                        type: integer
                        format: int64
                        description: 'Idoc development: No.of fields in IDoc segment definition'
                      EXPLENG:
                        type: integer
                        format: int64
                        description: 'IDoc development: Export length of segment definition'
                      APPLREL:
                        type: string
                        maxLength: 10
                        description: 'IDoc Development: Application Release of Segment Definition'
                  PT_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGMENTTYP:
                          type: string
                          maxLength: 30
                          description: Segment type in 30-character format
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        EXTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        FIELD_POS:
                          type: integer
                          format: int64
                          description: Position number of field
                        BYTE_FIRST:
                          type: integer
                          format: int64
                          description: Position of first byte
                        BYTE_LAST:
                          type: integer
                          format: int64
                          description: Position of last byte
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Short description of object
                        ISOCODE:
                          type: string
                          maxLength: 1
                          description: 'IDoc development: ISO code ID in field  enumValues: ""=Blank,X=Selection flag'
                          enum:
                          - ''
                          - X
                        VALUETAB:
                          type: string
                          maxLength: 30
                          description: Value table for IDoc segm. field
                  PT_FVALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        STRNAME:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        FLDVALUE_L:
                          type: string
                          maxLength: 10
                          description: Lower value/single value
                        FLDVALUE_H:
                          type: string
                          maxLength: 10
                          description: Upper value
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
