openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ABAP4_CALL_TRANSACTION:
    post:
      tags:
      - SBDC
      operationId: /rfc/ABAP4_CALL_TRANSACTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MODE_VAL:
                  type: string
                  default: A
                  maxLength: 1
                SKIP_SCREEN:
                  type: string
                  default: ' '
                  maxLength: 1
                TCODE:
                  type: string
                  maxLength: 20
                  description: Transaction Code
                UPDATE_VAL:
                  type: string
                  default: A
                  maxLength: 1
                MESS_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      TCODE:
                        type: string
                        maxLength: 20
                        description: BDC Transaction code
                      DYNAME:
                        type: string
                        maxLength: 40
                        description: Batch input module name
                      DYNUMB:
                        type: string
                        maxLength: 4
                        description: Batch input screen number
                      MSGTYP:
                        type: string
                        maxLength: 1
                        description: Batch input message type
                      MSGSPRA:
                        type: string
                        maxLength: 1
                        description: Language ID of a message
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Batch input message ID
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Batch input message number
                      MSGV1:
                        type: string
                        maxLength: 100
                        description: Variable part of a message
                      MSGV2:
                        type: string
                        maxLength: 100
                        description: Variable part of a message
                      MSGV3:
                        type: string
                        maxLength: 100
                        description: Variable part of a message
                      MSGV4:
                        type: string
                        maxLength: 100
                        description: Variable part of a message
                      ENV:
                        type: string
                        maxLength: 4
                        description: 'Batch input monitoring activity  enumValues: ABTC=Transfer sessions to background processing,AONL=Process sessions online,ANAL=Analyze sessions and logs,LOCK=Lock and release sessions,EXPO=Export Folders,FREE=Release sessions,DELE=Delete sessions,REOG=Reorganize sessions and logs,IMPO=Import Folders'
                        enum:
                        - ABTC
                        - AONL
                        - ANAL
                        - LOCK
                        - EXPO
                        - FREE
                        - DELE
                        - REOG
                        - IMPO
                      FLDNAME:
                        type: string
                        maxLength: 132
                        description: Field name
                SPAGPA_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PARID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      PARVAL:
                        type: string
                        maxLength: 255
                        description: Set/Get Parameter Value (Char 255)
                USING_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: BDC module pool
                      DYNPRO:
                        type: integer
                        format: int64
                        description: BDC Screen number
                      DYNBEGIN:
                        type: string
                        maxLength: 1
                        description: BDC screen start
                      FNAM:
                        type: string
                        maxLength: 132
                        description: Field name
                      FVAL:
                        type: string
                        maxLength: 132
                        description: BDC field value
              required:
              - TCODE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SUBRC:
                    type: integer
                    format: int32
                  MESS_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        TCODE:
                          type: string
                          maxLength: 20
                          description: BDC Transaction code
                        DYNAME:
                          type: string
                          maxLength: 40
                          description: Batch input module name
                        DYNUMB:
                          type: string
                          maxLength: 4
                          description: Batch input screen number
                        MSGTYP:
                          type: string
                          maxLength: 1
                          description: Batch input message type
                        MSGSPRA:
                          type: string
                          maxLength: 1
                          description: Language ID of a message
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Batch input message ID
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Batch input message number
                        MSGV1:
                          type: string
                          maxLength: 100
                          description: Variable part of a message
                        MSGV2:
                          type: string
                          maxLength: 100
                          description: Variable part of a message
                        MSGV3:
                          type: string
                          maxLength: 100
                          description: Variable part of a message
                        MSGV4:
                          type: string
                          maxLength: 100
                          description: Variable part of a message
                        ENV:
                          type: string
                          maxLength: 4
                          description: 'Batch input monitoring activity  enumValues: ABTC=Transfer sessions to background processing,AONL=Process sessions online,ANAL=Analyze sessions and logs,LOCK=Lock and release sessions,EXPO=Export Folders,FREE=Release sessions,DELE=Delete sessions,REOG=Reorganize sessions and logs,IMPO=Import Folders'
                          enum:
                          - ABTC
                          - AONL
                          - ANAL
                          - LOCK
                          - EXPO
                          - FREE
                          - DELE
                          - REOG
                          - IMPO
                        FLDNAME:
                          type: string
                          maxLength: 132
                          description: Field name
                  SPAGPA_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PARID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        PARVAL:
                          type: string
                          maxLength: 255
                          description: Set/Get Parameter Value (Char 255)
                  USING_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: BDC module pool
                        DYNPRO:
                          type: integer
                          format: int64
                          description: BDC Screen number
                        DYNBEGIN:
                          type: string
                          maxLength: 1
                          description: BDC screen start
                        FNAM:
                          type: string
                          maxLength: 132
                          description: Field name
                        FVAL:
                          type: string
                          maxLength: 132
                          description: BDC field value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
