openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDS_BUSINESSDOCUMENT_GET_TP:
    post:
      tags:
      - BDS_BAPI
      operationId: /rfc/BDS_BUSINESSDOCUMENT_GET_TP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSNAME:
                  type: string
                  maxLength: 30
                CLASSTYPE:
                  type: string
                  maxLength: 2
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                LOGICAL_SYSTEM:
                  type: string
                  maxLength: 10
                OBJECT_KEY:
                  type: string
                  maxLength: 70
                COMMFILE_ENTRIES:
                  type: array
                  items:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      AS4POS:
                        type: integer
                        format: int64
                        description: 'Dictionary: Line item'
                      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: 120
                        description: Object Name in Object List
                      OBJFUNC:
                        type: string
                        maxLength: 1
                        description: 'Object function  enumValues: M=Delete and recreate on the database,""=Normally: transport to the target system (see F1 help),D=The object was deleted (only functions with deleted objects),K=Object keys according to entries in the key list'
                        enum:
                        - M
                        - ''
                        - D
                        - K
                      LOCKFLAG:
                        type: string
                        maxLength: 1
                        description: 'Lock status or import status of an object entry  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      GENNUM:
                        type: string
                        maxLength: 3
                        description: Language information for object entry in Transport Organizer
                      LANG:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ACTIVITY:
                        type: string
                        maxLength: 20
                        description: Activity that wrote the entry to the object list
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Person Responsible for a Repository Object
                      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
                        - ''
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      OPERATION:
                        type: string
                        maxLength: 1
                        description: 'Object operation for correction interface  enumValues: ""=Default operation,I=Insert object'
                        enum:
                        - ''
                        - I
                      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
                SIGNATURE:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document counter'
                      DOC_ID:
                        type: string
                        maxLength: 42
                        description: 'Business Document Service: Document ID'
                      DOC_VER_NO:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document version number'
                      DOC_VAR_ID:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document variant ID'
                      DOC_VAR_TG:
                        type: string
                        maxLength: 2
                        description: 'Business Document Service: Document Variant Tag'
                      COMP_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Number of components'
                      PROP_NAME:
                        type: string
                        maxLength: 25
                        description: 'Business Document Service: Attribute Name'
                      PROP_VALUE:
                        type: string
                        maxLength: 64
                        description: 'Business Document Service: Attribute value'
              required:
              - CLASSNAME
              - CLASSTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMMFILE_ENTRIES:
                    type: array
                    items:
                      type: object
                      properties:
                        TRKORR:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        AS4POS:
                          type: integer
                          format: int64
                          description: 'Dictionary: Line item'
                        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: 120
                          description: Object Name in Object List
                        OBJFUNC:
                          type: string
                          maxLength: 1
                          description: 'Object function  enumValues: M=Delete and recreate on the database,""=Normally: transport to the target system (see F1 help),D=The object was deleted (only functions with deleted objects),K=Object keys according to entries in the key list'
                          enum:
                          - M
                          - ''
                          - D
                          - K
                        LOCKFLAG:
                          type: string
                          maxLength: 1
                          description: 'Lock status or import status of an object entry  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        GENNUM:
                          type: string
                          maxLength: 3
                          description: Language information for object entry in Transport Organizer
                        LANG:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ACTIVITY:
                          type: string
                          maxLength: 20
                          description: Activity that wrote the entry to the object list
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Person Responsible for a Repository Object
                        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
                          - ''
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: Original Language in Repository objects
                        OPERATION:
                          type: string
                          maxLength: 1
                          description: 'Object operation for correction interface  enumValues: ""=Default operation,I=Insert object'
                          enum:
                          - ''
                          - I
                        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
                  SIGNATURE:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document counter'
                        DOC_ID:
                          type: string
                          maxLength: 42
                          description: 'Business Document Service: Document ID'
                        DOC_VER_NO:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document version number'
                        DOC_VAR_ID:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document variant ID'
                        DOC_VAR_TG:
                          type: string
                          maxLength: 2
                          description: 'Business Document Service: Document Variant Tag'
                        COMP_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Number of components'
                        PROP_NAME:
                          type: string
                          maxLength: 25
                          description: 'Business Document Service: Attribute Name'
                        PROP_VALUE:
                          type: string
                          maxLength: 64
                          description: 'Business Document Service: Attribute value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
