openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/USERCLONE01/USERCLONE:
    post:
      summary: Create user with template in another system
      operationId: /idoc/USERCLONE01/USERCLONE
      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
                E1BPMETHOD:
                  type: array
                  items:
                    properties:
                      USMETHOD:
                        type: string
                        maxLength: 30
                        description: Method to be called when distributing users
                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
                E1BPADDR3:
                  type: array
                  items:
                    properties:
                      PERS_NO:
                        type: string
                        maxLength: 10
                        description: Person number
                      ADDR_NO:
                        type: string
                        maxLength: 10
                        description: Address number
                      TITLE_P:
                        type: string
                        maxLength: 30
                        description: Title text
                      FIRSTNAME:
                        type: string
                        maxLength: 40
                        description: First name
                      LASTNAME:
                        type: string
                        maxLength: 40
                        description: Last name
                      BIRTH_NAME:
                        type: string
                        maxLength: 40
                        description: Name of person at birth
                      MIDDLENAME:
                        type: string
                        maxLength: 40
                        description: Middle name or second forename of a person
                      SECONDNAME:
                        type: string
                        maxLength: 40
                        description: Second surname of a person
                      FULLNAME:
                        type: string
                        maxLength: 80
                        description: Full Name of Person
                      FULLNAME_X:
                        type: string
                        maxLength: 1
                        description: 'Status of Field ''Full Name'' NAME_TEXT: ""=Generated from the parts of the name,X=Converted from the previous release,M=Maintained manually'
                        enum:
                        - ''
                        - X
                        - M
                      TITLE_ACA1:
                        type: string
                        maxLength: 20
                        description: 'Academic Title: Written Form'
                      TITLE_ACA2:
                        type: string
                        maxLength: 20
                        description: 'Academic Title: Written Form'
                      PREFIX1:
                        type: string
                        maxLength: 20
                        description: Name prefix
                      PREFIX2:
                        type: string
                        maxLength: 20
                        description: Name prefix
                      TITLE_SPPL:
                        type: string
                        maxLength: 20
                        description: Name supplement, e.g. noble title (written form)
                      NICKNAME:
                        type: string
                        maxLength: 40
                        description: Nickname or name used
                      INITIALS:
                        type: string
                        maxLength: 10
                        description: '"Middle Initial" or personal initials'
                      NAMEFORMAT:
                        type: string
                        maxLength: 2
                        description: Name format
                      NAMCOUNTRY:
                        type: string
                        maxLength: 3
                        description: Country for name format rule
                      LANGU_P:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGUP_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      SORT1_P:
                        type: string
                        maxLength: 20
                        description: Search Term 1
                      SORT2_P:
                        type: string
                        maxLength: 20
                        description: Search Term 2
                      DEPARTMENT:
                        type: string
                        maxLength: 40
                        description: Department
                      FUNCTION:
                        type: string
                        maxLength: 40
                        description: Function
                      BUILDING_P:
                        type: string
                        maxLength: 10
                        description: Building (number or code)
                      FLOOR_P:
                        type: string
                        maxLength: 10
                        description: Floor in building
                      ROOM_NO_P:
                        type: string
                        maxLength: 10
                        description: Room or Appartment Number
                      INITS_SIG:
                        type: string
                        maxLength: 10
                        description: Short name for correspondence
                      INHOUSE_ML:
                        type: string
                        maxLength: 10
                        description: Int. mail postal code
                      COMM_TYPE:
                        type: string
                        maxLength: 3
                        description: Communication Method (Key) (Business Address Services)
                      TITLE:
                        type: string
                        maxLength: 30
                        description: Title text
                      NAME:
                        type: string
                        maxLength: 40
                        description: Name 1
                      NAME_2:
                        type: string
                        maxLength: 40
                        description: Name 2
                      NAME_3:
                        type: string
                        maxLength: 40
                        description: Name 3
                      NAME_4:
                        type: string
                        maxLength: 40
                        description: Name 4
                      C_O_NAME:
                        type: string
                        maxLength: 40
                        description: c/o name
                      CITY:
                        type: string
                        maxLength: 40
                        description: City
                      DISTRICT:
                        type: string
                        maxLength: 40
                        description: District
                      CITY_NO:
                        type: string
                        maxLength: 12
                        description: City code for city/street file
                      DISTRCT_NO:
                        type: string
                        maxLength: 8
                        description: District code for City and Street file
                      CHCKSTATUS:
                        type: string
                        maxLength: 1
                        description: 'City file test status: ""=Not checked,C=checked against city index,D=differs from city index'
                        enum:
                        - ''
                        - C
                        - D
                      E1BPADDR1:
                        type: array
                        items:
                          properties:
                            POSTL_COD1:
                              type: string
                              maxLength: 10
                              description: City postal code
                            POSTL_COD2:
                              type: string
                              maxLength: 10
                              description: PO Box postal code
                            POSTL_COD3:
                              type: string
                              maxLength: 10
                              description: Company postal code (for large customers)
                            PO_BOX:
                              type: string
                              maxLength: 10
                              description: PO Box
                            PO_BOX_CIT:
                              type: string
                              maxLength: 40
                              description: PO Box city
                            PBOXCIT_NO:
                              type: string
                              maxLength: 12
                              description: City PO box code (City file)
                            DELIV_DIS:
                              type: string
                              maxLength: 15
                              description: (Not Supported) Post Delivery District
                            TRANSPZONE:
                              type: string
                              maxLength: 10
                              description: Transportation zone to or from which the goods are delivered
                            STREET:
                              type: string
                              maxLength: 60
                              description: Street
                            STREET_NO:
                              type: string
                              maxLength: 12
                              description: Street Number for City/Street File
                            STR_ABBR:
                              type: string
                              maxLength: 2
                              description: (Not Supported) Abbreviation of Street Name
                            HOUSE_NO:
                              type: string
                              maxLength: 10
                              description: House Number
                            HOUSE_NO2:
                              type: string
                              maxLength: 10
                              description: House number supplement
                            STR_SUPPL1:
                              type: string
                              maxLength: 40
                              description: Street 2
                            STR_SUPPL2:
                              type: string
                              maxLength: 40
                              description: Street 3
                            STR_SUPPL3:
                              type: string
                              maxLength: 40
                              description: Street 4
                            LOCATION:
                              type: string
                              maxLength: 40
                              description: Street 5
                            BUILDING:
                              type: string
                              maxLength: 10
                              description: 'old: building (no. or abbreviation)'
                            FLOOR:
                              type: string
                              maxLength: 10
                              description: Floor in building
                            ROOM_NO:
                              type: string
                              maxLength: 10
                              description: Room or Appartment Number
                            COUNTRY:
                              type: string
                              maxLength: 3
                              description: Country Key
                            COUNTRYISO:
                              type: string
                              maxLength: 2
                              description: Country ISO code
                            LANGU:
                              type: string
                              maxLength: 1
                              description: Language Key
                            LANGU_ISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            REGION:
                              type: string
                              maxLength: 3
                              description: Region (State, Province, County)
                            SORT1:
                              type: string
                              maxLength: 20
                              description: Search Term 1
                            SORT2:
                              type: string
                              maxLength: 20
                              description: Search Term 2
                            TIME_ZONE:
                              type: string
                              maxLength: 6
                              description: Address time zone
                            TAXJURCODE:
                              type: string
                              maxLength: 15
                              description: Tax Jurisdiction
                            ADR_NOTES:
                              type: string
                              maxLength: 50
                              description: Address notes
                            TEL1_NUMBR:
                              type: string
                              maxLength: 30
                              description: 'First telephone no.: dialling code+number'
                            TEL1_EXT:
                              type: string
                              maxLength: 10
                              description: 'First Telephone No.: Extension'
                            FAX_NUMBER:
                              type: string
                              maxLength: 30
                              description: 'First fax no.: dialling code+number'
                            FAX_EXTENS:
                              type: string
                              maxLength: 10
                              description: 'First fax no.: extension'
                            E_MAIL:
                              type: string
                              maxLength: 241
                              description: E-Mail Address
                            BUILD_LONG:
                              type: string
                              maxLength: 20
                              description: Building (Number or Code)
                            REGIOGROUP:
                              type: string
                              maxLength: 8
                              description: Regional structure grouping
                            HOME_CITY:
                              type: string
                              maxLength: 40
                              description: City (different from postal city)
                            HOMECITYNO:
                              type: string
                              maxLength: 12
                              description: Different city for city/street file
                            PCODE1_EXT:
                              type: string
                              maxLength: 10
                              description: (Not Supported)City Postal Code Extension, e.g. ZIP+4+2 Code
                            PCODE2_EXT:
                              type: string
                              maxLength: 10
                              description: (Not Supported) PO Box Postal Code Extension
                            PCODE3_EXT:
                              type: string
                              maxLength: 10
                              description: (Not Supported) Major Customer Postal Code Extension
                            PO_W_O_NO:
                              type: string
                              maxLength: 1
                              description: 'Flag: PO Box without number: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            PO_BOX_REG:
                              type: string
                              maxLength: 3
                              description: Region for PO Box (Country, State, Province, ...)
                            POBOX_CTRY:
                              type: string
                              maxLength: 3
                              description: PO box country
                            PO_CTRYISO:
                              type: string
                              maxLength: 2
                              description: Country ISO code
                            DONT_USE_S:
                              type: string
                              maxLength: 4
                              description: Street Address Undeliverable Flag
                            DONT_USE_P:
                              type: string
                              maxLength: 4
                              description: PO Box Address Undeliverable Flag
                            HOUSE_NO3:
                              type: string
                              maxLength: 10
                              description: (Not supported) House Number Range
                            LANGU_CR_P:
                              type: string
                              maxLength: 1
                              description: Address record creation original language
                            LANGUCPISO:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                    required:
                    - E1BPADDR3
                E1BPUSCOMP:
                  type: array
                  items:
                    properties:
                      COMPANY:
                        type: string
                        maxLength: 42
                        description: Company address, cross-system key
                E1BPSNCU:
                  type: array
                  items:
                    properties:
                      GUIFLAG:
                        type: string
                        maxLength: 1
                        description: 'Unsecure communication permitted (user-specific): ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      PNAME:
                        type: string
                        maxLength: 255
                        description: 'SNC: Printable name'
                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
                E1BPPROF:
                  type: array
                  items:
                    properties:
                      BAPIPROF:
                        type: string
                        maxLength: 12
                        description: Profile name
                      BAPIPTEXT:
                        type: string
                        maxLength: 60
                        description: Texts in user master/authorizations
                      BAPITYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of Profile (Composite or Single): C=Composite Profile,G=Generates Profile,S=Single profile'
                        enum:
                        - C
                        - G
                        - S
                      BAPIAKTPS:
                        type: string
                        maxLength: 1
                        description: Active or maintenance version
                E1BPAGR:
                  type: array
                  items:
                    properties:
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      FROM_DAT:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date of menu generation
                      TO_DAT:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date of menu generation
                      AGR_TEXT:
                        type: string
                        maxLength: 80
                        description: Role name
                      ORG_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag: Assignment Comes From HR Organization Management'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
