openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/CLFMAS02/CLFMAS:
    post:
      summary: 'Class system: Classification master'
      operationId: /idoc/CLFMAS02/CLFMAS
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1OCLFM:
                  type: array
                  items:
                    properties:
                      MSGFN:
                        type: string
                        maxLength: 3
                        description: 'Function: 003=Delete: Message contains objects to be deleted,004=Change: Message contains changes,005=Replace: This message replaces previous messages,009=Original: First message for process,023=Wait/Adjust: Data should not be imported,018=Resend'
                        enum:
                        - '003'
                        - '004'
                        - '005'
                        - '009'
                        - '023'
                        - '018'
                      OBTAB:
                        type: string
                        maxLength: 10
                        description: Name of database table for object
                      OBJEK:
                        type: string
                        maxLength: 50
                        description: Key of object to be classified
                      KLART:
                        type: string
                        maxLength: 3
                        description: Class Type
                      MAFID:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Object/Class'
                      OBJECT_TABLE:
                        type: string
                        maxLength: 30
                        description: Name of database table for object
                      E1KSSKM:
                        type: array
                        items:
                          properties:
                            MSGFN:
                              type: string
                              maxLength: 3
                              description: 'Function: 003=Delete: Message contains objects to be deleted,004=Change: Message contains changes,005=Replace: This message replaces previous messages,009=Original: First message for process,023=Wait/Adjust: Data should not be imported,018=Resend'
                              enum:
                              - '003'
                              - '004'
                              - '005'
                              - '009'
                              - '023'
                              - '018'
                            CLASS:
                              type: string
                              maxLength: 18
                              description: Class number
                            AENNR:
                              type: string
                              maxLength: 12
                              description: Change Number
                            DATUV:
                              type: string
                              format: date
                              maxLength: 8
                              description: Valid-From Date
                            STATU:
                              type: string
                              maxLength: 1
                              description: Classification status
                            STDCL:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Standard Class: X=,""='
                              enum:
                              - X
                              - ''
                      E1AUSPM:
                        type: array
                        items:
                          properties:
                            MSGFN:
                              type: string
                              maxLength: 3
                              description: 'Function: 003=Delete: Message contains objects to be deleted,004=Change: Message contains changes,005=Replace: This message replaces previous messages,009=Original: First message for process,023=Wait/Adjust: Data should not be imported,018=Resend'
                              enum:
                              - '003'
                              - '004'
                              - '005'
                              - '009'
                              - '023'
                              - '018'
                            ATNAM:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            AENNR:
                              type: string
                              maxLength: 12
                              description: Change Number
                            DATUV:
                              type: string
                              format: date
                              maxLength: 8
                              description: Valid-From Date
                            ATWRT:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            ATFLV:
                              type: string
                              maxLength: 22
                              description: Internal Floating Point From
                            ATAWE:
                              type: string
                              maxLength: 3
                              description: Unit of Measurement
                            ATFLB:
                              type: string
                              maxLength: 22
                              description: Internal Floating Point Value To
                            ATAW1:
                              type: string
                              maxLength: 3
                              description: Unit of Measurement
                            ATCOD:
                              type: string
                              maxLength: 1
                              description: Code for value dependency
                            ATTLV:
                              type: string
                              maxLength: 22
                              description: Tolerance From
                            ATTLB:
                              type: string
                              maxLength: 22
                              description: Tolerance To
                            ATPRZ:
                              type: string
                              maxLength: 1
                              description: 'Indicator: Tolerance Shown as a Percentage: X=Yes,""=No,*=Reference indicator'
                              enum:
                              - X
                              - ''
                              - '*'
                            ATINC:
                              type: string
                              maxLength: 22
                              description: Increment Within a Specified Interval
                            ATAUT:
                              type: string
                              maxLength: 1
                              description: 'Classification: Author: ""=User Input,1=Action,2=Selection Condition,3=Value Assigned by Classification,4=Constraint,5=Value Assigned Internally (DDB),6=Value Assigned by Configuration,7=Procedure,8=Default Values,X=External System'
                              enum:
                              - ''
                              - '1'
                              - '2'
                              - '3'
                              - '4'
                              - '5'
                              - '6'
                              - '7'
                              - '8'
                              - X
                            ATIMB:
                              type: string
                              maxLength: 10
                              description: Characteristic Number of User-Defined Data Type
                            ATZIS:
                              type: string
                              maxLength: 3
                              description: Instance counter
                            UDEF_CHAR:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                      E1DATEM:
                        type: array
                        items:
                          properties:
                            MSGFN:
                              type: string
                              maxLength: 3
                              description: 'Function: 003=Delete: Message contains objects to be deleted,004=Change: Message contains changes,005=Replace: This message replaces previous messages,009=Original: First message for process,023=Wait/Adjust: Data should not be imported,018=Resend'
                              enum:
                              - '003'
                              - '004'
                              - '005'
                              - '009'
                              - '023'
                              - '018'
                            KEY_DATE:
                              type: string
                              format: date
                              maxLength: 8
                              description: Current Date of Application Server
                            AENNR:
                              type: string
                              maxLength: 12
                              description: Change Number
                            EFFECTIVITY:
                              type: string
                              maxLength: 1
                              description: 'Assign effectivity parameter values/ override change numbers: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                          required:
                          - E1DATEM
                    required:
                    - E1OCLFM
                E1UPSLINK:
                  type: array
                  items:
                    properties:
                      UPSNAM:
                        type: string
                        maxLength: 20
                        description: 'ALE Distribution Packet: Name'
                      ORGNAM:
                        type: string
                        maxLength: 20
                        description: 'ALE Distribution Packet : Original Packet Name'
                      MESTYP:
                        type: string
                        maxLength: 30
                        description: Message Type
                      OBJID:
                        type: string
                        maxLength: 120
                        description: 'ALE Distribution Packet: Object Key'
                      OBJVAL:
                        type: string
                        maxLength: 20
                        description: 'ALE Distribution Package: Object Validity'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
