openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/VTMMAS02/VTMMAS:
    post:
      summary: Contents of variant table
      operationId: /idoc/VTMMAS02/VTMMAS
      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
                E1CUVTM:
                  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'
                      VAR_TAB:
                        type: string
                        maxLength: 18
                        description: Table Name of Variant Table
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Variant table status
                      VTGROUP:
                        type: string
                        maxLength: 10
                        description: Group for variant tables
                      AUTHSTRUC:
                        type: string
                        maxLength: 3
                        description: Authorization group for variant table structure
                      AUTHENTRY:
                        type: string
                        maxLength: 3
                        description: Authorization Group for Maintaining Table Contents
                      FLDELETE:
                        type: string
                        maxLength: 1
                        description: 'Deletion Indicator: X=Yes,""=No'
                        enum:
                        - X
                        - ''
                      DBTABNAME:
                        type: string
                        maxLength: 16
                        description: Table name, 16 characters
                      DBCONACTIVE:
                        type: string
                        maxLength: 1
                        description: 'Ind. link between variant table and database table active: X=Yes,""=No'
                        enum:
                        - X
                        - ''
                      PRESDEC:
                        type: string
                        maxLength: 1
                        description: 'Display Format: Decision Table: X=Yes,""=No'
                        enum:
                        - X
                        - ''
                      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
                      E1CUV1M:
                        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'
                            VTLINENO:
                              type: string
                              maxLength: 4
                              description: Sort String for Characteristics in a Row
                            VTCHARACT:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            ATWRT:
                              type: string
                              maxLength: 30
                              description: Characteristic Value
                            ATFLV:
                              type: number
                              maxLength: 22
                              description: Internal floating point from
                            ATAWE:
                              type: string
                              maxLength: 3
                              description: Unit of Measurement
                            ATFLB:
                              type: number
                              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: number
                              maxLength: 22
                              description: Tolerance from
                            ATTLB:
                              type: number
                              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: number
                              maxLength: 22
                              description: Increment Within a Specified Interval
                            VTLINENO5:
                              type: string
                              maxLength: 5
                              description: Sort String for Characteristics in a Row
                            E1CUKBM:
                              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'
                                  DEP_INTERN:
                                    type: string
                                    maxLength: 30
                                    description: Internal name of dependency
                                  DEP_EXTERN:
                                    type: string
                                    maxLength: 30
                                    description: External Dependency Name
                                  DEP_TYPE:
                                    type: string
                                    maxLength: 4
                                    description: 'Dependency type: 1=Constraint,2=Precondition,3=Action,4=Rule,5=Selection condition,6=Dependency net,7=Procedure'
                                    enum:
                                    - '1'
                                    - '2'
                                    - '3'
                                    - '4'
                                    - '5'
                                    - '6'
                                    - '7'
                                  STATUS:
                                    type: string
                                    maxLength: 1
                                    description: Dependency status
                                  GROUP:
                                    type: string
                                    maxLength: 10
                                    description: Dependency Group
                                  WHR_TO_USE:
                                    type: string
                                    maxLength: 3
                                    description: Authorization to Maintain Object Dependencies for Objects
                                  DEP_LINENO:
                                    type: string
                                    maxLength: 4
                                    description: Counter for sorting object allocations
                                  FLDELETE:
                                    type: string
                                    maxLength: 1
                                    description: 'Deletion Indicator: X=Yes,""=No'
                                    enum:
                                    - X
                                    - ''
                                  DEP_TYPE2:
                                    type: string
                                    maxLength: 1
                                    description: 'Dependency type - supplement: ""=Standard,1=Event-controlled,2=Monitoring'
                                    enum:
                                    - ''
                                    - '1'
                                    - '2'
                                  SCE_FLAG:
                                    type: string
                                    maxLength: 1
                                    description: 'Indicator: Dependencies for SCE Format: X=Yes,""=No'
                                    enum:
                                    - X
                                    - ''
                                  E1CUKBT:
                                    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'
                                        LANGUAGE:
                                          type: string
                                          maxLength: 1
                                          description: Language Key
                                        DESCRIPT:
                                          type: string
                                          maxLength: 30
                                          description: Dependency Description
                                        FLDELETE:
                                          type: string
                                          maxLength: 1
                                          description: 'Deletion Indicator: X=Yes,""=No'
                                          enum:
                                          - X
                                          - ''
                                        LANGUAGE_ISO:
                                          type: string
                                          maxLength: 2
                                          description: Language according to ISO 639
                                  E1CUKNM:
                                    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'
                                        LINE:
                                          type: string
                                          maxLength: 72
                                          description: Line of object dependency source (72 characters)
                                  E1CUTXM:
                                    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'
                                        LANGUAGE:
                                          type: string
                                          maxLength: 1
                                          description: Language Key
                                        TXT_FORM:
                                          type: string
                                          maxLength: 2
                                          description: Tag column
                                        TXT_LINE:
                                          type: string
                                          maxLength: 132
                                          description: Text Line
                                        LANGUAGE_ISO:
                                          type: string
                                          maxLength: 2
                                          description: Language according to ISO 639
                                required:
                                - E1CUKBM
                          required:
                          - E1CUV1M
                    required:
                    - E1CUVTM
                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.
