openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ADDRESS_COM_MAINTAIN:
    post:
      tags:
      - SAD1
      operationId: /rfc/ADDRESS_COM_MAINTAIN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADRNR:
                  type: string
                  maxLength: 10
                  description: Address number
                COMAUTH:
                  type: object
                  properties:
                    TEL:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for telephone  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    FAX:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for fax  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    TLX:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for telex  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    TTX:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for Teletext  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    RML:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for R/Mail  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    X40:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for X.400  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    EDI:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for EDI  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    SSW:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for Soft*Switch  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    CS1:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for CS1  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    CS2:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for CS2  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    CS3:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for CS3  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    CS4:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for CS4  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                    CS5:
                      type: string
                      maxLength: 1
                      description: 'Addresses: Authorization for CS5  enumValues: 1=Read authorization,""=All authorizations,2=No authorizations'
                      enum:
                      - '1'
                      - ''
                      - '2'
                IN_COMSYS:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Only select this type of communication
                IN_LFDNR:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Preselection
                MODE:
                  type: string
                  default: MAIN
                  maxLength: 70
                  description: Function code
                USED_TSADC_FIELD:
                  type: string
                  default: '1'
                  maxLength: 1
                  description: Used flag of ATAB MLEX
              required:
              - ADRNR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EX_COMSYS:
                    type: string
                    maxLength: 3
                    description: Selected type of communication
                  EX_LFDNR:
                    type: string
                    maxLength: 3
                    description: Number of selected type of communication
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
