openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWFMOD_GET_USER_REQUEST:
    post:
      tags:
      - SWFMOD_WORKFLOW
      summary: Gets the customizing requests of the user
      operationId: /rfc/SWFMOD_GET_USER_REQUEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_CATEGORY:
                  type: string
                  default: SYST
                  maxLength: 4
                  description: Request or task category
                IV_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: R/3 System, client number from logon
                IV_ORDER_TYPE:
                  type: string
                  default: K
                  maxLength: 1
                  description: Type of request/task
                IV_USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
                ET_MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                ET_MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                ET_USER_REQUEST:
                  type: array
                  items:
                    type: object
                    properties:
                      USERNAME:
                        type: string
                        maxLength: 12
                        description: Project member of a request
                      TRFUNCTION:
                        type: string
                        maxLength: 1
                        description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                        enum:
                        - P
                        - C
                        - M
                        - K
                        - T
                        - X
                        - Q
                        - S
                        - O
                        - E
                        - G
                        - F
                        - W
                        - R
                        - D
                      CATEGORY:
                        type: string
                        maxLength: 4
                        description: 'Request or task category  enumValues: CUST=Client-specific Customizing,SYST=Repository, cross-client objects'
                        enum:
                        - CUST
                        - SYST
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Source client of request
                      FIXTYPE:
                        type: string
                        maxLength: 1
                        description: Type of setting in the Transport Organizer
                      ORDERNUM:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      TASKNUM:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      VALIDITY:
                        type: string
                        format: date
                        description: Validity period for setting in the Transport Organizer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  ET_MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  ET_MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  ET_USER_REQUEST:
                    type: array
                    items:
                      type: object
                      properties:
                        USERNAME:
                          type: string
                          maxLength: 12
                          description: Project member of a request
                        TRFUNCTION:
                          type: string
                          maxLength: 1
                          description: 'Type of request/task  enumValues: P=Piece List for Upgrade,C=Relocation of Objects Without Package Change,M=Client Transport Request,K=Workbench Request,T=Transport of Copies,X=Unclassified Task,Q=Customizing Task,S=Development/Correction,O=Relocation of Objects with Package Change,E=Relocation of Complete Package,G=Piece List for CTS Project,F=Piece List,W=Customizing Request,R=Repair,D=Piece List for Support Package'
                          enum:
                          - P
                          - C
                          - M
                          - K
                          - T
                          - X
                          - Q
                          - S
                          - O
                          - E
                          - G
                          - F
                          - W
                          - R
                          - D
                        CATEGORY:
                          type: string
                          maxLength: 4
                          description: 'Request or task category  enumValues: CUST=Client-specific Customizing,SYST=Repository, cross-client objects'
                          enum:
                          - CUST
                          - SYST
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Source client of request
                        FIXTYPE:
                          type: string
                          maxLength: 1
                          description: Type of setting in the Transport Organizer
                        ORDERNUM:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        TASKNUM:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        VALIDITY:
                          type: string
                          format: date
                          description: Validity period for setting in the Transport Organizer
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
