openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CRM_IC_SCRIPTING_GET_SCRIPT:
    post:
      tags:
      - CRM_IC_SCRIPTING_PERSIST
      summary: Open a scripting object (Survey/Script/Objection Script)
      operationId: /rfc/CRM_IC_SCRIPTING_GET_SCRIPT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  maxLength: 2
                  description: Language Key
                LOCKOBJECT:
                  type: string
                  maxLength: 1
                  description: Single-character flag
                OBJECTNAME:
                  type: string
                  maxLength: 32
                  description: XML document name
                OBJECTTYPE:
                  type: string
                  maxLength: 2
                  description: IS=Regular OS=Objection SU=Survey
                BUTTON_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODEID:
                        type: string
                        maxLength: 32
                        description: XML Document Name
                      SURVEYID:
                        type: string
                        maxLength: 32
                        description: XML Document Name
                      COMMAND:
                        type: string
                        maxLength: 32
                        description: Label ID (Interactive Script Editor)
                      BUTTONTEXT:
                        type: string
                        maxLength: 64
                        description: Label Description (Interactive Script Editor)
                EDIT_GROUPS:
                  type: array
                  items:
                    type: object
                    properties:
                      SCR_GROUP:
                        type: string
                        maxLength: 1
                        description: Script Authorization Group ID
                OBJECTSDESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      DESCRIPTION:
                        type: string
                        maxLength: 64
                        description: Interactive Scripting Object Description
                REQUEST_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      REQUEST:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                        enum:
                        - N
                        - L
                        - R
                        - O
                        - D
                      OWNER:
                        type: string
                        maxLength: 12
                        description: Owner of a Request or Task
                      DESCRIPTION:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
              required:
              - LOCKOBJECT
              - OBJECTNAME
              - OBJECTTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BEGINDATE:
                    type: string
                    format: date
                    description: Date
                  CATEGORYID:
                    type: string
                    maxLength: 32
                    description: Category ID (Interactive Script editor repository)
                  CURRENT_GROUP:
                    type: string
                    maxLength: 1
                    description: script group
                  ENDDATE:
                    type: string
                    format: date
                    description: Date
                  INACTIVE:
                    type: string
                    maxLength: 1
                    description: Single-Character Flag
                  ISDELETABLE:
                    type: string
                    maxLength: 1
                    description: General Flag
                  ISEDITABLE:
                    type: string
                    maxLength: 1
                    description: Is editable
                  LASTCHANGE:
                    type: string
                    maxLength: 12
                    description: User Name
                  LOCKEDBY:
                    type: string
                    maxLength: 12
                    description: User name
                  READONLY:
                    type: string
                    maxLength: 1
                    description: Single-character flag
                  XMLDATA:
                    type: string
                    description: XML Data
                  BUTTON_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODEID:
                          type: string
                          maxLength: 32
                          description: XML Document Name
                        SURVEYID:
                          type: string
                          maxLength: 32
                          description: XML Document Name
                        COMMAND:
                          type: string
                          maxLength: 32
                          description: Label ID (Interactive Script Editor)
                        BUTTONTEXT:
                          type: string
                          maxLength: 64
                          description: Label Description (Interactive Script Editor)
                  EDIT_GROUPS:
                    type: array
                    items:
                      type: object
                      properties:
                        SCR_GROUP:
                          type: string
                          maxLength: 1
                          description: Script Authorization Group ID
                  OBJECTSDESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        DESCRIPTION:
                          type: string
                          maxLength: 64
                          description: Interactive Scripting Object Description
                  REQUEST_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        REQUEST:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'Status of request/task  enumValues: N=Released (with Import Protection for Repaired Objects),L=Modifiable, Protected,R=Released,O=Release Started,D=Modifiable'
                          enum:
                          - N
                          - L
                          - R
                          - O
                          - D
                        OWNER:
                          type: string
                          maxLength: 12
                          description: Owner of a Request or Task
                        DESCRIPTION:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
