Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help for Customizing Transport Request Field....

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member

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

0 Kudos

thanks it worked for me

former_member203501
Active Contributor
0 Kudos

hi use TR_F4_REQUESTS ..... dont give the user name it will fetch all the requests..

Former Member
0 Kudos

Hi,

The issue is resolved with the help of FM 'TR_REQUEST_CHOICE' only.

Regards,

Deepthi.