openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSO_CTO_GET_PACKAGE:
    post:
      tags:
      - RSO_CTO_RFC_API
      operationId: /rfc/RSO_CTO_GET_PACKAGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_OBJNM:
                  type: string
                  maxLength: 40
                I_TLOGO:
                  type: string
                  maxLength: 4
              required:
              - I_OBJNM
              - I_TLOGO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_ERROR:
                    type: string
                    maxLength: 1
                  E_PACKAGE:
                    type: string
                    maxLength: 30
                  E_S_TADIR:
                    type: object
                    properties:
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      KORRNUM:
                        type: string
                        maxLength: 10
                        description: Request/task up to and including Release 3.0
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: Original System of Object
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Person Responsible for a Repository Object
                      SRCDEP:
                        type: string
                        maxLength: 1
                        description: 'Repair Flag for Repository Object  enumValues: R=Object is in a repair in an unreleased request,""=Object is not in a repair in an unreleased request'
                        enum:
                        - R
                        - ''
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                        enum:
                        - X
                        - T
                        - ''
                      EDTFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag: Object can only be edited with a special editor  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      CPROJECT:
                        type: string
                        maxLength: 8
                        description: Internal Use
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      VERSID:
                        type: string
                        maxLength: 20
                        description: Internal Use
                      PAKNOCHECK:
                        type: string
                        maxLength: 1
                        description: 'Exception Indicator for Package Check  enumValues: F=Can be Used as Foreign Key,C=Exception as User: Can call everything (eg system programs),""=No Exception,S=Exception as Provider: Can be Called from Everywhere,X=Exception as User and Provider'
                        enum:
                        - F
                        - C
                        - ''
                        - S
                        - X
                      OBJSTABLTY:
                        type: string
                        maxLength: 1
                        description: 'Release Status of a Development Object  enumValues: ""=Not Supported (Set by Developer),O=Obsolete,N=Not Supported (Set by Default),S=Supported'
                        enum:
                        - ''
                        - O
                        - N
                        - S
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Software Component
                      CRELEASE:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      DELFLAG:
                        type: string
                        maxLength: 1
                        description: 'Deletion Flag  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      TRANSLTTXT:
                        type: string
                        maxLength: 1
                        description: 'Translate Technical Texts into Development Language  enumValues: X=Translation into Development Languages,""=No Translation'
                        enum:
                        - X
                        - ''
                  E_T_BAPI_MSG:
                    type: array
                    items:
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
