openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PRGN_RFC_DISTRIBUTE_AGR:
    post:
      tags:
      - PRGN_CATT
      operationId: /rfc/PRGN_RFC_DISTRIBUTE_AGR
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: string
                  default: C
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                L_AGR_DEFINE:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      PARENT_AGR:
                        type: string
                        maxLength: 30
                        description: Name of imparting role
                      CREATE_USR:
                        type: string
                        maxLength: 12
                        description: User Name
                      CREATE_DAT:
                        type: string
                        format: date
                        description: Date of menu generation
                      CREATE_TIM:
                        type: string
                        maxLength: 6
                        description: Time when the menu was generated last
                      CREATE_TMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      CHANGE_USR:
                        type: string
                        maxLength: 12
                        description: User Name
                      CHANGE_DAT:
                        type: string
                        format: date
                        description: Date of menu generation
                      CHANGE_TIM:
                        type: string
                        maxLength: 6
                        description: Time when the menu was generated last
                      CHANGE_TMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      ATTRIBUTES:
                        type: string
                        maxLength: 10
                        description: Attributes of the menu
                L_AGR_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language of menu texts
                      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
                      FOLDER:
                        type: string
                        maxLength: 1
                        description: Customized ('C') or standard menu ('S') flag
                      MENU_LEVEL:
                        type: integer
                        format: int64
                        description: Level in the menu
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      STRING1:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                      STRING2:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                      ICON:
                        type: string
                        maxLength: 128
                        description: Icons for Role Menu Entries
                      FLAGS:
                        type: string
                        maxLength: 16
                        description: Attributes for Menu Entry
                MENU_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language of menu texts
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Menu entry text
                      DESCRIPTION:
                        type: string
                        maxLength: 255
                        description: Long Text for Menu Entry
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  L_AGR_DEFINE:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        PARENT_AGR:
                          type: string
                          maxLength: 30
                          description: Name of imparting role
                        CREATE_USR:
                          type: string
                          maxLength: 12
                          description: User Name
                        CREATE_DAT:
                          type: string
                          format: date
                          description: Date of menu generation
                        CREATE_TIM:
                          type: string
                          maxLength: 6
                          description: Time when the menu was generated last
                        CREATE_TMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        CHANGE_USR:
                          type: string
                          maxLength: 12
                          description: User Name
                        CHANGE_DAT:
                          type: string
                          format: date
                          description: Date of menu generation
                        CHANGE_TIM:
                          type: string
                          maxLength: 6
                          description: Time when the menu was generated last
                        CHANGE_TMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        ATTRIBUTES:
                          type: string
                          maxLength: 10
                          description: Attributes of the menu
                  L_AGR_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language of menu texts
                        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
                        FOLDER:
                          type: string
                          maxLength: 1
                          description: Customized ('C') or standard menu ('S') flag
                        MENU_LEVEL:
                          type: integer
                          format: int64
                          description: Level in the menu
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        STRING1:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                        STRING2:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                        ICON:
                          type: string
                          maxLength: 128
                          description: Icons for Role Menu Entries
                        FLAGS:
                          type: string
                          maxLength: 16
                          description: Attributes for Menu Entry
                  MENU_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language of menu texts
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Menu entry text
                        DESCRIPTION:
                          type: string
                          maxLength: 255
                          description: Long Text for Menu Entry
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
