openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPTA_RFC_INVOKE_INTERNAL:
    post:
      tags:
      - SPTA_NEW
      operationId: /rfc/SPTA_RFC_INVOKE_INTERNAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALLBACK_FORM:
                  type: string
                  maxLength: 30
                CALLBACK_PROG:
                  type: string
                  maxLength: 40
                EVENTCONTEXTDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      RELID:
                        type: string
                        maxLength: 2
                        description: Region in IMPORT/EXPORT Data Table
                      SRTFD:
                        type: string
                        maxLength: 22
                        description: User-defined key in table INDX
                      SRTF2:
                        type: integer
                        format: int32
                        description: Next record counter in EXPORT/IMPORT data tables
                      LOEKZ:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      SPERR:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      AEDAT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      USERA:
                        type: string
                        maxLength: 12
                        description: User name
                      PGMID:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      BEGDT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      ENDDT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      CLUSTR:
                        type: integer
                        format: int32
                        description: Length field for user data in EXPORT/IMPORT tables
                      CLUSTD:
                        type: string
                        format: byte
                        description: Data field for IMPORT/EXPORT database tables
                USERDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      RELID:
                        type: string
                        maxLength: 2
                        description: Region in IMPORT/EXPORT Data Table
                      SRTFD:
                        type: string
                        maxLength: 22
                        description: User-defined key in table INDX
                      SRTF2:
                        type: integer
                        format: int32
                        description: Next record counter in EXPORT/IMPORT data tables
                      LOEKZ:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      SPERR:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      AEDAT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      USERA:
                        type: string
                        maxLength: 12
                        description: User name
                      PGMID:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      BEGDT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      ENDDT:
                        type: string
                        format: date
                        description: (8-character) Date for SYST
                      CLUSTR:
                        type: integer
                        format: int32
                        description: Length field for user data in EXPORT/IMPORT tables
                      CLUSTD:
                        type: string
                        format: byte
                        description: Data field for IMPORT/EXPORT database tables
              required:
              - CALLBACK_FORM
              - CALLBACK_PROG
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RUNTIME:
                    type: integer
                    format: int32
                  EVENTCONTEXTDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        RELID:
                          type: string
                          maxLength: 2
                          description: Region in IMPORT/EXPORT Data Table
                        SRTFD:
                          type: string
                          maxLength: 22
                          description: User-defined key in table INDX
                        SRTF2:
                          type: integer
                          format: int32
                          description: Next record counter in EXPORT/IMPORT data tables
                        LOEKZ:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        SPERR:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        AEDAT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        USERA:
                          type: string
                          maxLength: 12
                          description: User name
                        PGMID:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        BEGDT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        ENDDT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        CLUSTR:
                          type: integer
                          format: int32
                          description: Length field for user data in EXPORT/IMPORT tables
                        CLUSTD:
                          type: string
                          format: byte
                          description: Data field for IMPORT/EXPORT database tables
                  USERDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        RELID:
                          type: string
                          maxLength: 2
                          description: Region in IMPORT/EXPORT Data Table
                        SRTFD:
                          type: string
                          maxLength: 22
                          description: User-defined key in table INDX
                        SRTF2:
                          type: integer
                          format: int32
                          description: Next record counter in EXPORT/IMPORT data tables
                        LOEKZ:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        SPERR:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        AEDAT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        USERA:
                          type: string
                          maxLength: 12
                          description: User name
                        PGMID:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        BEGDT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        ENDDT:
                          type: string
                          format: date
                          description: (8-character) Date for SYST
                        CLUSTR:
                          type: integer
                          format: int32
                          description: Length field for user data in EXPORT/IMPORT tables
                        CLUSTD:
                          type: string
                          format: byte
                          description: Data field for IMPORT/EXPORT database tables
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
