SAP Function TR_EXT_GET_REQUESTS - Get changeable requests of given user

Parameter Reference Type Length Default Optional Text
IV_ALL_REQ_AND_ALL_OWN_TASK TRPARI-FLAG C 1 ' ' X All request of user, all requests with tasks of user
IV_ALL_REQ_WITH_OWN_TASK TRPARI-FLAG C 1 ' ' X All requests with tasks of user, NO requests without task
IV_ATTR_REF E070A-REFERENCE C 32 ' ' X Attribute value
IV_AUTHOR TREXREQHD-AUTHOR C 12 ' ' X User who owns a request or task
IV_REQ_ATTR E070A-ATTRIBUTE C 30 ' ' X Request attribute
IV_REQ_STATUS TREXREQHD-STATUS C 1 'C' X Status of requests: C changeable, R released, A all
IV_REQ_TYPE TREXREQHD-TYPE C 1 'K' X Type of request/task; K,T,W possible here

Parameter Reference Type Length Text
ES_MSG TR004-MSGTEXT C 200 Log line
EV_EXCEPTION TR007-EXCEPTION C 50 Name of exception

Parameter Reference Length Optional Text
ET_REQUESTS TREXREQHD 121 Correction Requests: Request Short Text

Functionality
Selects all chageable change requests from this system, which match

  • the owner specified in IV_AUTHER

  • if no user is specified, requests of any user are selected
    • the request type specified in IV_REQ_TYPE

    • the status of requests specified in IV_REQ_STATUS

    • the request attribute specified in IV_REQ_ATTR if no attribute is
    • specified, requests without and with any attribute are selected.
      • the attribute-value specified in IV_ATTR_REF if no value is specified
      • all requests with attribute specified in IV_REQ_ATTR and any value areselected.
        The selection is restricted to requests of type K,T or W.
        The selection can be modified
        • either to get all own requests plus all requests of other users which
        • contain a task fullfilling the above conditions, by settingIV_ALL_REQ_AND_ALL_OWN_TASK = 'X'.
          • or to get all request which contain a task fullfilling the above
          • conditions, by setting IV_ALL_REQ_WITH_OWN_TASK = 'X'.
            I.e. no own requests without tasks are selected
            The module is remote-enabled, no exceptions are raised.
            If any error occurs the export-parameter ev_exception returns
            'CALL_FUNCTION_ERROR'.
            In this case the export-parameter es_msg contains the error message.