openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSCRMBW_GENERATE_TG_FROM_VIEW:
    post:
      tags:
      - RSCRMBW_APPL
      operationId: /rfc/RSCRMBW_GENERATE_TG_FROM_VIEW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_JOBSTARTDATA:
                  type: object
                  properties:
                    SDLSTRTDT:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    SDLSTRTTM:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    LASTSTRTDT:
                      type: string
                      format: date
                      description: Latest Execution Date for a Background Job
                    LASTSTRTTM:
                      type: string
                      maxLength: 6
                      description: Latest Execution Time for Background Job
                    PREDJOB:
                      type: string
                      maxLength: 32
                      description: Name of previous job
                    PREDJOBCNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    CHECKSTAT:
                      type: string
                      maxLength: 1
                      description: Job status check indicator for subsequent job start
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    STARTDTTYP:
                      type: string
                      maxLength: 1
                      description: Start date type ID
                    PRDMINS:
                      type: integer
                      format: int64
                      description: Duration period (in minutes) for a batch job
                    PRDHOURS:
                      type: integer
                      format: int64
                      description: Duration period (in hours) for a batch job
                    PRDDAYS:
                      type: integer
                      format: int64
                      description: Duration (in days) of DBA action
                    PRDWEEKS:
                      type: integer
                      format: int64
                      description: Duration period (in weeks) for a batch job
                    PRDMONTHS:
                      type: integer
                      format: int64
                      description: Duration period (in months) for a batch job
                    PERIODIC:
                      type: string
                      maxLength: 1
                      description: Periodic jobs indicator ('X')
                    INSTNAME:
                      type: string
                      maxLength: 20
                      description: Server name
                    CALENDARID:
                      type: string
                      maxLength: 2
                      description: Factory calendar ID for background processing
                    EOMCORRECT:
                      type: integer
                      format: int32
                      description: Correction field for calc. job execution (end-of-mth, cal.)
                    CALCORRECT:
                      type: integer
                      format: int32
                      description: Correction field for calc. job execution (end-of-mth, cal.)
                    IMSTRTPOS:
                      type: string
                      maxLength: 1
                      description: Flag indicating whether job can be started immediately
                    PRDBEHAV:
                      type: string
                      maxLength: 1
                      description: Period behavior of jobs on non-workdays
                    WDAYNO:
                      type: integer
                      format: int64
                      description: No. of workday on which a job is to start
                    WDAYCDIR:
                      type: integer
                      format: int64
                      description: Count direction for 'on workday' start date of a job
                    NOTBEFORE:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                IT_GEN_SERVICE:
                  type: array
                  items:
                    type: object
                    properties:
                      PARID:
                        type: string
                        maxLength: 32
                        description: UUID in character form
                      PARNAME:
                        type: string
                        maxLength: 30
                        description: 'RSCRM: Parameter name'
                      PARVAL:
                        type: string
                        maxLength: 75
                        description: 'RSCRM: Parameter value'
                I_CREATE_BP:
                  type: string
                  default: ' '
                  maxLength: 1
                I_CREATE_TG:
                  type: string
                  default: ' '
                  maxLength: 1
                I_DESCRIPTION:
                  type: string
                  maxLength: 72
                I_DESTINATION:
                  type: string
                  maxLength: 32
                I_DO_IT_IN_BATCH:
                  type: string
                  default: ' '
                  maxLength: 1
                I_EXTIOBJ:
                  type: string
                  maxLength: 30
                I_ISQREFIOBJ:
                  type: string
                  maxLength: 30
                I_LOGSUBOBJECT:
                  type: string
                  default: TGSELECT
                  maxLength: 20
                I_PARTNERIOBJ:
                  type: string
                  default: 0BPARTNER
                  maxLength: 30
                I_REPORTUID:
                  type: string
                  maxLength: 72
                I_TGID:
                  type: string
                  maxLength: 32
                I_TG_FILE:
                  type: string
                  maxLength: 60
                I_TG_PATH:
                  type: string
                  maxLength: 255
                ET_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                IT_USAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      TARGETGRPUSAGE:
                        type: string
                        maxLength: 2
                        description: 'Target Group Usage  enumValues: 01=Shop,02=Telesales'
                        enum:
                        - '01'
                        - '02'
                      TARGETGRPUSID:
                        type: string
                        maxLength: 32
                        description: Usage Object for Target Group (ID)
                IT_VARIABLEVALUE:
                  type: array
                  items:
                    type: object
                    properties:
                      VAR_NAM:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      VARSIGN:
                        type: string
                        maxLength: 1
                        description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                        enum:
                        - E
                        - I
                      VAROPTION:
                        type: string
                        maxLength: 2
                        description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal >=
                          value in field LOW,BT=Between: Range of values'
                        enum:
                        - EQ
                        - LT
                        - NE
                        - GT
                        - NP
                        - NB
                        - CP
                        - LE
                        - GE
                        - BT
                      VARLOW:
                        type: string
                        maxLength: 64
                        description: Member Name
                      VARHIGH:
                        type: string
                        maxLength: 64
                        description: Member Name
              required:
              - I_CREATE_BP
              - I_CREATE_TG
              - I_DESTINATION
              - I_REPORTUID
              - I_TGID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  IT_USAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        TARGETGRPUSAGE:
                          type: string
                          maxLength: 2
                          description: 'Target Group Usage  enumValues: 01=Shop,02=Telesales'
                          enum:
                          - '01'
                          - '02'
                        TARGETGRPUSID:
                          type: string
                          maxLength: 32
                          description: Usage Object for Target Group (ID)
                  IT_VARIABLEVALUE:
                    type: array
                    items:
                      type: object
                      properties:
                        VAR_NAM:
                          type: string
                          maxLength: 8
                          description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                        VARSIGN:
                          type: string
                          maxLength: 1
                          description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                          enum:
                          - E
                          - I
                        VAROPTION:
                          type: string
                          maxLength: 2
                          description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal
                            >= value in field LOW,BT=Between: Range of values'
                          enum:
                          - EQ
                          - LT
                          - NE
                          - GT
                          - NP
                          - NB
                          - CP
                          - LE
                          - GE
                          - BT
                        VARLOW:
                          type: string
                          maxLength: 64
                          description: Member Name
                        VARHIGH:
                          type: string
                          maxLength: 64
                          description: Member Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
