openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/VTAMAS01/VTAMAS:
    post:
      summary: Structure of variant table
      operationId: /idoc/VTAMAS01/VTAMAS
      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
                      E1CUVCM:
                        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'
                            CHARACT:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            FLDELETE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DBTABFIELDNAME:
                              type: string
                              maxLength: 30
                              description: Field name
                      E1CUVAM:
                        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'
                            VL_ASSG_NO:
                              type: string
                              maxLength: 4
                              description: Value assignment alternative number
                            CHARACT:
                              type: string
                              maxLength: 30
                              description: Characteristic Name
                            FLDELETE:
                              type: string
                              maxLength: 1
                              description: 'Deletion Indicator: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                      E1CUVTT:
                        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: 40
                              description: Variant Table 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
                    required:
                    - E1CUVTM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
