openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/USERCREATE01/USERCREATE:
    post:
      summary: BAPI to Create a User
      operationId: /idoc/USERCREATE01/USERCREATE
      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
                E1BPBNAME:
                  type: array
                  items:
                    properties:
                      BAPIBNAME:
                        type: string
                        maxLength: 12
                        description: User Name in User Master Record
                E1BPLOGOND:
                  type: array
                  items:
                    properties:
                      GLTGV:
                        type: string
                        format: date
                        maxLength: 8
                        description: User valid from
                      GLTGB:
                        type: string
                        format: date
                        maxLength: 8
                        description: User valid to
                      USTYP:
                        type: string
                        maxLength: 1
                        description: 'User Type: A=Dialog,B=System,C=Communications Data,L=Reference,S=Service'
                        enum:
                        - A
                        - B
                        - C
                        - L
                        - S
                      CLASS:
                        type: string
                        maxLength: 12
                        description: User group in user master maintenance
                      ACCNT:
                        type: string
                        maxLength: 12
                        description: Account ID
                      TZONE:
                        type: string
                        maxLength: 6
                        description: Time Zone
                      LTIME:
                        type: string
                        maxLength: 6
                        description: Last Logon Time
                      BCODE:
                        type: string
                        format: byte
                        maxLength: 16
                        description: Password Hash Key
                      CODVN:
                        type: string
                        maxLength: 1
                        description: 'Code Version of Password Hash Algorithm (Old Systems): A=Code Version A (Obsolete),B=Code Version B (MD5-Based, 8 Characters, Upper-Case, ASCII),C=Code Version C (Not Implemented),D=Code Version D (MD5-Based, 8 Characters, Upper-Case, UTF-8),X=Password Deactivated'
                        enum:
                        - A
                        - B
                        - C
                        - D
                        - X
                      PASSCODE:
                        type: string
                        format: byte
                        maxLength: 40
                        description: Password Hash Value (SHA1, 160 Bit)
                      CODVC:
                        type: string
                        maxLength: 1
                        description: 'Code Version of Password Hash Algorithm (New Systems): A=Code Version A (Obsolete),B=Code Version B (MD5-Based, 8 Characters, Upper-Case, ASCII),C=Code Version C (Not Implemented),D=Code Version D (MD5-Based, 8 Characters, Upper-Case, UTF-8),E=Code Version E (Reserved for Correction of Code Version D),F=Code Version F (SHA1, 40 Characters, Case-Sensitive, UTF-8),G=Code Version G = Code Vers. F + Code Vers. B (2 Hash Values),X=Password Deactivated'
                        enum:
                        - A
                        - B
                        - C
                        - D
                        - E
                        - F
                        - G
                        - X
                E1BPPWD:
                  type: array
                  items:
                    properties:
                      BAPIPWD:
                        type: string
                        maxLength: 40
                        description: New password
                E1BPDEFAUL:
                  type: array
                  items:
                    properties:
                      STCOD:
                        type: string
                        maxLength: 20
                        description: Start menu (old, replaced by XUSTART)
                      SPLD:
                        type: string
                        maxLength: 4
                        description: 'Spool: Output device'
                      SPLG:
                        type: string
                        maxLength: 1
                        description: Print parameter 1
                      SPDB:
                        type: string
                        maxLength: 1
                        description: Print parameter 2
                      SPDA:
                        type: string
                        maxLength: 1
                        description: Print parameter 3
                      DATFM:
                        type: string
                        maxLength: 1
                        description: 'Date format: 1=DD.MM.YYYY,2=MM/DD/YYYY,3=MM-DD-YYYY,4=YYYY.MM.DD,5=YYYY/MM/DD,6=YYYY-MM-DD,7=GYY.MM.DD     (Japanese Date),8=GYY/MM/DD     (Japanese Date),9=GYY-MM-DD     (Japanese Date),A=YYYY/MM/DD   (Islamic Date 1),B=YYYY/MM/DD   (Islamic Date 2),C=YYYY/MM/DD (Iranian Date)'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                        - '4'
                        - '5'
                        - '6'
                        - '7'
                        - '8'
                        - '9'
                        - A
                        - B
                        - C
                      DCPFM:
                        type: string
                        maxLength: 1
                        description: 'Decimal notation: ""=1.234.567,89,X=1,234,567.89,Y=1 234 567,89'
                        enum:
                        - ''
                        - X
                        - Y
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language
                      CATTKENNZ:
                        type: string
                        maxLength: 1
                        description: 'CATT: Test status: X=,""=,.='
                        enum:
                        - X
                        - ''
                        - .
                      KOSTL:
                        type: string
                        maxLength: 8
                        description: Cost center
                      START_MENU:
                        type: string
                        maxLength: 30
                        description: Start menu
                E1BPPARAM:
                  type: array
                  items:
                    properties:
                      PARID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      PARVA:
                        type: string
                        maxLength: 18
                        description: Parameter value
                      PARTXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
