openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MENU_GET:
    post:
      tags:
      - SMNU
      summary: Read the menu for user, position, ...
      operationId: /rfc/MENU_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHECK_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Comparison date
                CHECK_TIME:
                  type: string
                  default: SY-UZEIT
                  maxLength: 6
                DOWNLOAD_FILES:
                  type: string
                  default: ' '
                  maxLength: 1
                FORCE_MENU_LOAD:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Force ''X'': menu load'
                MENU_READ_FLAG:
                  type: string
                  default: '  '
                  maxLength: 2
                  description: ''' '': user menu; ''C'': customized; ''S'': standard'
                NEW_LINE:
                  type: string
                  default: ' '
                  maxLength: 1
                SEPARATOR:
                  type: string
                  default: ','
                  maxLength: 1
                SPRAS:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Logon language
                USER_NAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: User ID
                USER_TYPE:
                  type: string
                  default: US
                  maxLength: 2
                  description: 'Type: user, position, (as in HR-ORG)'
                USE_CRLF_SUBSTITUTE:
                  type: string
                  default: X
                  maxLength: 1
                MENU_STRUCTURE:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 8192
                        description: Text 8192 (8k) Character
                MENU_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 8192
                        description: Text 8192 (8k) Character
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MENU_STRUCTURE:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 8192
                          description: Text 8192 (8k) Character
                  MENU_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 8192
                          description: Text 8192 (8k) Character
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
