openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TWPN_GET_ROLE:
    post:
      tags:
      - PWP2
      operationId: /rfc/TWPN_GET_ROLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ENABLE_LOGGING:
                  type: string
                  default: X
                  maxLength: 1
                MENUTEXTS_ONLY_IN_MASTERLANG:
                  type: string
                  default: X
                  maxLength: 1
                ROLENAME:
                  type: string
                  maxLength: 30
                MESSAGE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGDATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      MSGTIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Entry type (I/W/E)
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Message long text
                ROLE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRKEY:
                        type: string
                        maxLength: 30
                        description: Entry key
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Object ID of a menu entry
                      ATTRLANGU:
                        type: string
                        maxLength: 1
                        description: Language Key of Current Text Environment
                      ATTRVALUE:
                        type: string
                        maxLength: 255
                        description: Entry value
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: ID of the superior node
                      TYPE:
                        type: string
                        maxLength: 15
                        description: Menu entry type
                      SUBTYPE:
                        type: string
                        maxLength: 15
                        description: Menu entry subtype
                      SERVICEID:
                        type: string
                        maxLength: 255
                        description: ID of a service in the menu
                      ATTRIBUTES:
                        type: string
                        maxLength: 255
                        description: Entry attributes
                      TARGET_SYS:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Sort sequence
                      ITEMNUMBER:
                        type: integer
                        format: int64
                        description: Sequence in entire menu
              required:
              - ROLENAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGE_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGDATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        MSGTIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Entry type (I/W/E)
                        MESSAGE:
                          type: string
                          maxLength: 255
                          description: Message long text
                  ROLE_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRKEY:
                          type: string
                          maxLength: 30
                          description: Entry key
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Object ID of a menu entry
                        ATTRLANGU:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        ATTRVALUE:
                          type: string
                          maxLength: 255
                          description: Entry value
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: ID of the superior node
                        TYPE:
                          type: string
                          maxLength: 15
                          description: Menu entry type
                        SUBTYPE:
                          type: string
                          maxLength: 15
                          description: Menu entry subtype
                        SERVICEID:
                          type: string
                          maxLength: 255
                          description: ID of a service in the menu
                        ATTRIBUTES:
                          type: string
                          maxLength: 255
                          description: Entry attributes
                        TARGET_SYS:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Sort sequence
                        ITEMNUMBER:
                          type: integer
                          format: int64
                          description: Sequence in entire menu
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
