openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_FORMS:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_FORMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                ACT_TASK:
                  type: string
                  maxLength: 14
                ACT_WFDKEY:
                  type: object
                  properties:
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    EXETYP:
                      type: string
                      maxLength: 1
                      description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                      enum:
                      - E
                      - R
                      - S
                      - D
                      - C
                      - A
                DO_COMMIT:
                  type: string
                  default: ' '
                  maxLength: 1
                ACT_FORMS:
                  type: array
                  items:
                    type: object
                    properties:
                      FORM_NAME:
                        type: string
                        maxLength: 30
                        description: Form
                      EDITELEM:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      PGMNA:
                        type: string
                        maxLength: 40
                        description: Program Name
                      DYPNO:
                        type: string
                        maxLength: 4
                        description: Number of the following screen
                      INCLUDE:
                        type: string
                        maxLength: 40
                        description: Program Name
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_FORMS:
                    type: array
                    items:
                      type: object
                      properties:
                        FORM_NAME:
                          type: string
                          maxLength: 30
                          description: Form
                        EDITELEM:
                          type: string
                          maxLength: 32
                          description: Element name in upper/lower case
                        PGMNA:
                          type: string
                          maxLength: 40
                          description: Program Name
                        DYPNO:
                          type: string
                          maxLength: 4
                          description: Number of the following screen
                        INCLUDE:
                          type: string
                          maxLength: 40
                          description: Program Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
