openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PRGN_RFC_CREATE_ACTIVITY_GROUP:
    post:
      tags:
      - PRGN_CATT
      operationId: /rfc/PRGN_RFC_CREATE_ACTIVITY_GROUP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVITY_GROUP:
                  type: string
                  maxLength: 30
                  description: Role Name
                ACTIVITY_GROUP_TEXT:
                  type: string
                  default: ' '
                  maxLength: 80
                COMMENT_TEXT_LINE_1:
                  type: string
                  default: ' '
                  maxLength: 80
                COMMENT_TEXT_LINE_2:
                  type: string
                  default: ' '
                  maxLength: 80
                COMMENT_TEXT_LINE_3:
                  type: string
                  default: ' '
                  maxLength: 80
                COMMENT_TEXT_LINE_4:
                  type: string
                  default: ' '
                  maxLength: 80
                EXTERNAL_AUTH_DATA:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Internal Use
                NO_CHECK_ON_TCODES:
                  type: string
                  default: ' '
                  maxLength: 1
                NO_POPUP_FOR_ORG_LEVELS:
                  type: string
                  default: ' '
                  maxLength: 1
                ONLY_TCODE_ASSIGNMENT:
                  type: string
                  default: ' '
                  maxLength: 1
                ORG_LEVELS_WITH_STAR:
                  type: string
                  default: X
                  maxLength: 1
                PROFILE_NAME:
                  type: string
                  default: ' '
                  maxLength: 12
                PROFILE_TEXT:
                  type: string
                  default: ' '
                  maxLength: 60
                TEMPLATE:
                  type: string
                  default: SAP_USER_B
                  maxLength: 20
                UNMAINTAINED_FIELDS_WITH_STAR:
                  type: string
                  default: X
                  maxLength: 1
                HIERARCHY_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
                      FOLDER:
                        type: string
                        maxLength: 1
                        description: Customized ('C') or standard menu ('S') flag
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Current Transaction Code
                      TARGET_SYS:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                HIERARCHY_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
                TCODES:
                  type: array
                  items:
                    type: object
                    properties:
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Transaction Code
              required:
              - ACTIVITY_GROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HIERARCHY_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
                        FOLDER:
                          type: string
                          maxLength: 1
                          description: Customized ('C') or standard menu ('S') flag
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Current Transaction Code
                        TARGET_SYS:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                  HIERARCHY_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
                  TCODES:
                    type: array
                    items:
                      type: object
                      properties:
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Transaction Code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
