openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_AGREE_IN_MESSTYPE_READ:
    post:
      tags:
      - EDI6
      summary: Read inbound data (EDI/ALE) from EDP21
      operationId: /rfc/EDI_AGREE_IN_MESSTYPE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                REC_EDK21:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of sender
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message function
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Flag for test mode  enumValues: ""=Blank,X=Selection flag'
                      enum:
                      - ''
                      - X
              required:
              - REC_EDK21
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  REC_EDD21:
                    type: object
                    properties:
                      EVCODE:
                        type: string
                        maxLength: 30
                        description: Inbound Process Code
                      SYNCHK:
                        type: string
                        maxLength: 1
                        description: 'Cancel Processing After Syntax Error  enumValues: X=Syntax check on,""=Syntax check off'
                        enum:
                        - X
                        - ''
                      METHOD:
                        type: string
                        maxLength: 1
                        description: 'Choice: EDI or ALE (no longer used)'
                      USRTYP:
                        type: string
                        maxLength: 10
                        description: User Type
                      USRKEY:
                        type: string
                        maxLength: 70
                        description: 'Permitted users: ID'
                      USRLNG:
                        type: string
                        maxLength: 1
                        description: Language of notification
                      INMOD:
                        type: string
                        maxLength: 1
                        description: 'IDoc processing immediate or via queue  enumValues: 3=Trigger by background program,1=Trigger immediately,2=Obsolete, replaced by 3'
                        enum:
                        - '3'
                        - '1'
                        - '2'
                      DCART:
                        type: string
                        maxLength: 1
                        description: 'Type of data transfer to the application  enumValues: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
