openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/USER_WPPERSDATASAVE01/USER_WPPERSDATASAVE:
    post:
      summary: Writing the WP personalization data for a user
      operationId: /idoc/USER_WPPERSDATASAVE01/USER_WPPERSDATASAVE
      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
                E1USER_WPP:
                  type: array
                  items:
                    properties:
                      ID:
                        type: string
                        maxLength: 12
                        description: User Name
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country Key
                      DRDIALOG:
                        type: string
                        maxLength: 1
                        description: 'Drag&Relate: Dialog for Relate: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                      E1BPWPUSRM:
                        type: array
                        items:
                          properties:
                            MAPPKEY:
                              type: string
                              maxLength: 255
                              description: Text, 255 Characters
                            MAVERSION:
                              type: string
                              maxLength: 1
                              description: 'MiniApp Version: R=MiniApp stored directly in the role,C=MiniApp from catalog with link to role,M=MiniApp inserted manually'
                              enum:
                              - R
                              - C
                              - M
                            ROLENAME:
                              type: string
                              maxLength: 30
                              description: Role Name
                            MAMINIMIZD:
                              type: string
                              maxLength: 1
                              description: 'Minimalized Start: X=Flag set. Event has occurred.,""=Flag is Not Set'
                              enum:
                              - X
                              - ''
                            MASELECTED:
                              type: string
                              maxLength: 1
                              description: 'General Flag: X=Flag set. Event has occurred.,""=Flag is Not Set'
                              enum:
                              - X
                              - ''
                            USERORDER:
                              type: string
                              maxLength: 5
                              description: Number
                            USERTEXT:
                              type: string
                              maxLength: 75
                              description: MiniApp Short Description
                            USERHEIGHT:
                              type: string
                              maxLength: 10
                              description: Height of the MiniApp
                      E1BPWPUSRG:
                        type: array
                        items:
                          properties:
                            GROUPID:
                              type: string
                              maxLength: 10
                              description: Group Name for System Settings
                            ITEMID:
                              type: string
                              maxLength: 10
                              description: Entry ID for System Settings
                            ITEMVALUE:
                              type: string
                              maxLength: 255
                              description: Workplace Parameter Value (System Settings)
                            ITEMDESCR:
                              type: string
                              maxLength: 80
                              description: Description of Workplace System Settings
                      E1BPWPUSRL:
                        type: array
                        items:
                          properties:
                            LOG_SYSTEM:
                              type: string
                              maxLength: 10
                              description: Logical system
                            LANGUAGE:
                              type: string
                              maxLength: 1
                              description: Logon Language for the Component System
                      E1BPWPUSRO:
                        type: array
                        items:
                          properties:
                            ROLE_NAME:
                              type: string
                              maxLength: 30
                              description: Role Name
                            ROLE_ORDER:
                              type: integer
                              format: int32
                              maxLength: 11
                              description: Index of Internal Tables
                      E1BPWPCHAN:
                        type: array
                        items:
                          properties:
                            CHAN_INFO:
                              type: string
                              maxLength: 255
                              description: Serialized Information
                      E1BPWPSMBC:
                        type: array
                        items:
                          properties:
                            REPORTTYPE:
                              type: string
                              maxLength: 2
                              description: Report type
                            REPORT:
                              type: string
                              maxLength: 48
                              description: Extended Program Name
                            PARENT_ID:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            OBJECT_ID:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            MENU_LEVEL:
                              type: string
                              maxLength: 2
                              description: Level in the menu
                            BOOK_INFO:
                              type: string
                              maxLength: 12
                              description: 'Structures: name of the structure'
                            ATTRIBUTES:
                              type: string
                              maxLength: 10
                              description: Attributes of the menu
                            SORT_ORDER:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            X_POS:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            Y_POS:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            SAP_GUID:
                              type: string
                              maxLength: 32
                              description: Unique ID - 32 characters
                            TEXT:
                              type: string
                              maxLength: 100
                              description: Character 100
                            TARGET_SYS:
                              type: string
                              maxLength: 32
                              description: Logical Destination (Specified in Function Call)
                      E1BPWPSMBI:
                        type: array
                        items:
                          properties:
                            OBJECT_ID:
                              type: string
                              maxLength: 5
                              description: Counter for menu ID
                            LINK_TYPE:
                              type: string
                              maxLength: 1
                              description: Customized ('C') or standard menu ('S') flag
                            URL:
                              type: string
                              maxLength: 255
                              description: URL for the SAP Portal
                            PERS_MINI:
                              type: string
                              maxLength: 1
                              description: 'General Flag: X=Flag set. Event has occurred.,""=Flag is Not Set'
                              enum:
                              - X
                              - ''
                            PERS_WIN:
                              type: string
                              maxLength: 1
                              description: 'General Flag: X=Flag set. Event has occurred.,""=Flag is Not Set'
                              enum:
                              - X
                              - ''
                    required:
                    - E1USER_WPP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
