openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_INPUT_ANALYZE:
    post:
      tags:
      - EDI2
      operationId: /rfc/EDI_INPUT_ANALYZE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PARAMETER:
                  type: string
                  maxLength: 79
                  description: 1st control parameter
                PROCESS_DATA:
                  type: object
                  properties:
                    LSYST:
                      type: string
                      maxLength: 10
                      description: 'Workflow: Last change: System'
                    LMANDT:
                      type: integer
                      format: int64
                      description: 'Workflow: Last changed by: Client'
                    LUSER:
                      type: string
                      maxLength: 12
                      description: 'Workflow: SAP name of the user who last changed the process'
                    LDATE:
                      type: string
                      format: date
                      description: 'Workflow: Last changed: Date'
                    LTIME:
                      type: string
                      maxLength: 6
                      description: 'Workflow: Last change: Time'
                    LTEXT:
                      type: string
                      maxLength: 50
                      description: 'Workflow: Short text for log book'
                    PRCTP:
                      type: string
                      maxLength: 10
                      description: 'Workflow: Process type'
                    PRSTAT:
                      type: string
                      maxLength: 14
                      description: 'Workflow: current state'
                    INWORK:
                      type: string
                      maxLength: 1
                      description: 'Workflow: Process is currently being processed (or update)  enumValues: W=In Process,E=Error state (only information function),C=Completed,""=Inactive'
                      enum:
                      - W
                      - E
                      - C
                      - ''
                    PRPRI:
                      type: integer
                      format: int64
                      description: 'Workflow: Process priority  enumValues: 1='
                      enum:
                      - '1'
                    LOEDK:
                      type: string
                      maxLength: 1
                      description: 'Workflow: Deletion or reorganization indicator  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    LRCODE:
                      type: integer
                      format: int64
                      description: 'Workflow: Return code of process FM for selecting new state'
                    NUSERNAM:
                      type: string
                      maxLength: 12
                      description: 'Workflow: Next agent'
                    LUSERNAM:
                      type: string
                      maxLength: 12
                      description: 'Workflow: Last agent'
                    SYSTAT:
                      type: string
                      maxLength: 1
                      description: 'Workflow: Status: Was already outside original system  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                PROCESS_ID:
                  type: object
                  properties:
                    SYST:
                      type: string
                      maxLength: 10
                      description: 'Workflow: Original client of process'
                    MANDT:
                      type: integer
                      format: int64
                      description: 'Workflow: Original client of the process'
                    PRCNR:
                      type: integer
                      format: int64
                      description: 'Workflow: Process number'
                ASSIGNMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ASNUM:
                        type: integer
                        format: int64
                        description: 'Workflow: Sequential link number'
                      ASGTP:
                        type: string
                        maxLength: 10
                        description: 'Workflow: Object type of the link'
                      ASGRL:
                        type: string
                        maxLength: 2
                        description: 'Workflow: Link - object role'
                      ASGKY:
                        type: string
                        maxLength: 70
                        description: 'Workflow: Object key of link'
                      ACTION:
                        type: string
                        maxLength: 1
                        description: 'Workflow: Action indicator (analogous to change doc. mngmt)  enumValues: D=Delete,U=Change,I=Insert,""=Do not change'
                        enum:
                        - D
                        - U
                        - I
                        - ''
                LOGLINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - PARAMETER
              - PROCESS_DATA
              - PROCESS_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PROCESS_DATA_NEXT:
                    type: object
                    properties:
                      LTEXT:
                        type: string
                        maxLength: 50
                        description: 'Workflow: Short text for log book'
                      NUSERNAM:
                        type: string
                        maxLength: 12
                        description: 'Workflow: Agent name (user name or shared distribution list)'
                      NPRCTP:
                        type: string
                        maxLength: 10
                        description: 'Workflow: Next process type'
                      NSTAT:
                        type: string
                        maxLength: 14
                        description: 'Workflow: Next status'
                      STOP:
                        type: string
                        maxLength: 1
                        description: 'Workflow: Stop after next action  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Control return code
                  ASSIGNMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ASNUM:
                          type: integer
                          format: int64
                          description: 'Workflow: Sequential link number'
                        ASGTP:
                          type: string
                          maxLength: 10
                          description: 'Workflow: Object type of the link'
                        ASGRL:
                          type: string
                          maxLength: 2
                          description: 'Workflow: Link - object role'
                        ASGKY:
                          type: string
                          maxLength: 70
                          description: 'Workflow: Object key of link'
                        ACTION:
                          type: string
                          maxLength: 1
                          description: 'Workflow: Action indicator (analogous to change doc. mngmt)  enumValues: D=Delete,U=Change,I=Insert,""=Do not change'
                          enum:
                          - D
                          - U
                          - I
                          - ''
                  LOGLINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
