openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_JOBROLE_CLONE:
    post:
      tags:
      - PRGN_BAPIS
      summary: Create a User Role in Another System By Copying
      operationId: /rfc/BAPI_JOBROLE_CLONE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                JOBROLE:
                  type: object
                  properties:
                    AGR_NAME:
                      type: string
                      maxLength: 30
                      description: Role Name
                METHOD:
                  type: object
                  properties:
                    USMETHOD:
                      type: string
                      maxLength: 30
                      description: Method to be called when distributing users
                PARENT:
                  type: object
                  properties:
                    AGR_NAME:
                      type: string
                      maxLength: 30
                      description: Role Name
                LONGTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      LINE:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Role name
                MENU_NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      MENU_LEVEL:
                        type: integer
                        format: int64
                        description: Level in the menu
                      NODE_TYPE:
                        type: string
                        maxLength: 1
                        description: Type of node ( U = URL, F = folder, T = transaction)
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Current Transaction Code
                      SAP_GUID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      TARGET_SYS:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      X_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      Y_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      INFOS:
                        type: string
                        maxLength: 12
                        description: 'Structures: name of the structure'
                      URL_TYPE:
                        type: string
                        maxLength: 20
                        description: Type of URL
                      URL:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                MENU_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Menu entry text
                SHORTTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Role name
              required:
              - JOBROLE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LONGTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        LINE:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Role name
                  MENU_NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        MENU_LEVEL:
                          type: integer
                          format: int64
                          description: Level in the menu
                        NODE_TYPE:
                          type: string
                          maxLength: 1
                          description: Type of node ( U = URL, F = folder, T = transaction)
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Current Transaction Code
                        SAP_GUID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        TARGET_SYS:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        X_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        Y_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        INFOS:
                          type: string
                          maxLength: 12
                          description: 'Structures: name of the structure'
                        URL_TYPE:
                          type: string
                          maxLength: 20
                          description: Type of URL
                        URL:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                  MENU_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Menu entry text
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  SHORTTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Role name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
