openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCI_REMOTE_SQL_STMNTS_ANALYZE:
    post:
      tags:
      - S_CODE_INSPECTOR
      operationId: /rfc/SCI_REMOTE_SQL_STMNTS_ANALYZE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                P_DELDATE:
                  type: string
                  format: date
                P_DEST:
                  type: string
                  maxLength: 32
                P_DISPLAY_SQL:
                  type: string
                  default: ''
                  maxLength: 1
                P_DISPLAY_STAT:
                  type: string
                  default: ''
                  maxLength: 1
                P_END_DATE:
                  type: string
                  format: date
                P_END_TIME:
                  type: string
                  maxLength: 6
                P_PERSIST:
                  type: string
                  default: ''
                  maxLength: 1
                P_SCI_CHKV_SQL:
                  type: string
                  maxLength: 30
                P_SCI_CHKV_STAT:
                  type: string
                  maxLength: 30
                P_SCI_USER_SQL:
                  type: string
                  maxLength: 12
                P_SCI_USER_STAT:
                  type: string
                  maxLength: 12
                P_SNAME:
                  type: string
                  maxLength: 40
                P_SQL_CHECK:
                  type: string
                  default: ''
                  maxLength: 1
                P_START_DATE:
                  type: string
                  format: date
                P_START_TIME:
                  type: string
                  maxLength: 6
                P_STAT_PROG_CHECK:
                  type: string
                  default: ''
                  maxLength: 1
                P_STMNTS:
                  type: array
                  items:
                    type: object
                    properties:
                      STMNT:
                        type: string
                        description: ''
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      OFFSET:
                        type: integer
                        format: int32
                        description: ''
                      VALUES:
                        type: array
                        items:
                          type: object
                          properties:
                            TYPE:
                              type: string
                              maxLength: 2
                              description: ''
                            LENGTH:
                              type: integer
                              format: int32
                              description: ''
                            VALUE:
                              type: string
                              maxLength: 512
                              description: ''
                P_TRACE_USER:
                  type: string
                  maxLength: 12
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  P_INSP_SQL:
                    type: object
                    properties:
                      INSPECID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      INSPECVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      CIUSER:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Person Responsible'
                      INSPECNAME:
                        type: string
                        maxLength: 30
                        description: 'Code Inspector: Element Name of an Inspection'
                      TEXT:
                        type: string
                        maxLength: 60
                        description: 'Code Inspector: Element Text (Chk, ChkV, ObjS, INSP)'
                      OBJTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJNAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      OBJSID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      OBJSVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      OBJSUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      CHECKVID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      CHECKUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      CREADATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Changed On'
                      EXECDATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Executed On'
                      DELDATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Deleted On'
                      EXECSTATUS:
                        type: string
                        maxLength: 1
                        description: '''O'' Not Done, ''B'' Batch Planned, ''R'' Running, ''X'' Performed'
                      RESTRICTED:
                        type: string
                        maxLength: 1
                        description: 'Code Inspector: ''General Restrictions'' Flag'
                      NOSUPPRESS:
                        type: string
                        maxLength: 1
                        description: 'Code Inspector: ''Also Display Hidden Info'' Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                      UNAM:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Last Changed by'
                  P_INSP_STAT:
                    type: object
                    properties:
                      INSPECID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      INSPECVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      CIUSER:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Person Responsible'
                      INSPECNAME:
                        type: string
                        maxLength: 30
                        description: 'Code Inspector: Element Name of an Inspection'
                      TEXT:
                        type: string
                        maxLength: 60
                        description: 'Code Inspector: Element Text (Chk, ChkV, ObjS, INSP)'
                      OBJTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJNAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      OBJSID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      OBJSVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      OBJSUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      CHECKVID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      CHECKUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      CREADATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Changed On'
                      EXECDATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Executed On'
                      DELDATE:
                        type: string
                        format: date
                        description: 'Code Inspector: Deleted On'
                      EXECSTATUS:
                        type: string
                        maxLength: 1
                        description: '''O'' Not Done, ''B'' Batch Planned, ''R'' Running, ''X'' Performed'
                      RESTRICTED:
                        type: string
                        maxLength: 1
                        description: 'Code Inspector: ''General Restrictions'' Flag'
                      NOSUPPRESS:
                        type: string
                        maxLength: 1
                        description: 'Code Inspector: ''Also Display Hidden Info'' Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                      UNAM:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Last Changed by'
                  P_PERF_CHKLST:
                    type: object
                    properties:
                      APPR_INDEXES:
                        type: string
                        maxLength: 1
                        description: 'Evaluate Programming Guidelines "Matching Index"  enumValues: E=Except -> Not applicable,C=Confirmed -> Yes,D=Delayed -> Not yet tested,A=A-class test -> Premium check ok,F=Failed -> No,B=Basic test -> Basic check ok'
                        enum:
                        - E
                        - C
                        - D
                        - A
                        - F
                        - B
                      COMP_WHERE:
                        type: string
                        maxLength: 1
                        description: 'Evaluate Programming Guidelines "Complete WHERE Cond."  enumValues: E=Except -> Not applicable,C=Confirmed -> Yes,D=Delayed -> Not yet tested,A=A-class test -> Premium check ok,F=Failed -> No,B=Basic test -> Basic check ok'
                        enum:
                        - E
                        - C
                        - D
                        - A
                        - F
                        - B
                      BUFF_CACHES:
                        type: string
                        maxLength: 1
                        description: 'Evaluate Programming Guidelines "Buffer and Caches"  enumValues: E=Except -> Not applicable,C=Confirmed -> Yes,D=Delayed -> Not yet tested,A=A-class test -> Premium check ok,F=Failed -> No,B=Basic test -> Basic check ok'
                        enum:
                        - E
                        - C
                        - D
                        - A
                        - F
                        - B
                  P_RESULT_SQL:
                    type: object
                    properties:
                      INSPECID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      INSPECVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      CIUSER:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Person Responsible'
                      TEST:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      CODE:
                        type: string
                        maxLength: 10
                        description: 'Code Inspector: ID for Message Code'
                      CNT_ERROR:
                        type: integer
                        format: int32
                        description: 'Code Inspector: Number of Error Messages in SQL Trace Check'
                      CNT_WARN:
                        type: integer
                        format: int32
                        description: 'Code Inspector: No. of Warning Messages of SQL Trace Check'
                      CNT_INFO:
                        type: integer
                        format: int32
                        description: 'Code Inspector: Number of Info. Messages of SQL Trace Check'
                  P_RESULT_STAT:
                    type: object
                    properties:
                      INSPECID:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                      INSPECVERS:
                        type: integer
                        format: int64
                        description: 'Code Inspector: Version Number of Element'
                      CIUSER:
                        type: string
                        maxLength: 12
                        description: 'Code Inspector: Person Responsible'
                      TEST:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      CODE:
                        type: string
                        maxLength: 10
                        description: 'Code Inspector: ID for Message Code'
                      CNT_ERROR:
                        type: integer
                        format: int32
                        description: 'Code Inspector: Number of Error Messages in Static Analysis'
                      CNT_WARN:
                        type: integer
                        format: int32
                        description: 'Code Inspector: No. of Warning Messages in Static Analysis'
                      CNT_INFO:
                        type: integer
                        format: int32
                        description: 'Code Inspector: Number of Info. Messages in Static Analysis'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
