04-17-2009 10:13 AM
Hi,
I need a Function Module for F4 help for Customizing Transport Request field. I have used the below FM but I ma able to get only Customizing TR for only Login User Name only but not other Users. How to get the Customizing TR which are created by other Users(Owner is diferent from Login Owner).
PARAMETERS: p_cts TYPE e070-trkorr OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cts.
PERFORM get_cts CHANGING p_cts.
&----
*& Form get_cts
&----
FORM get_cts CHANGING p_cts.
TYPE-POOLS trwbo.
DATA: lv_cts TYPE trwbo_request_header.
To Get only custimzing requests
CALL FUNCTION 'TR_REQUEST_CHOICE'
EXPORTING
iv_request_types = 'W'
IMPORTING
es_request = lv_cts
EXCEPTIONS
invalid_request = 1
invalid_request_type = 2
user_not_owner = 3
no_objects_appended = 4
enqueue_error = 5
cancelled_by_user = 6
recursive_call = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION 'POPUP_DISPLAY_MESSAGE'
EXPORTING
titel = 'Transport'
msgid = sy-msgid
msgty = sy-msgty
msgno = sy-msgno
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4.
ENDIF.
Pass the selected TR to selection screen
IF sy-subrc = 0.
MOVE lv_cts-trkorr TO p_cts.
ENDIF.
ENDFORM. " get_cts
Regards,
Deepthi.
04-17-2009 10:21 AM
Instead of using FM 'TR_REQUEST_CHOICE', you can have direct database select on table E070 and E071.
In E070, the field TRFUNCTION determine the customizing and workbench request.
K-> Workbench Request
W-> Customizing Request
08-26-2022 1:08 AM
04-17-2009 10:34 AM
hi use TR_F4_REQUESTS ..... dont give the user name it will fetch all the requests..
05-27-2009 9:21 AM
Hi,
The issue is resolved with the help of FM 'TR_REQUEST_CHOICE' only.
Regards,
Deepthi.