Application Development and Automation 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: 
Read only

Defaulting the value ina screen

Former Member
0 Likes
536

Hi,

I want to default the field "Requisitioner" in the transaction CJ20N and for this I have the user exit CNEX0002, but I have no idea how to do this. Can anyone help please.There is one more transaction for creating a Purchase

Requisition called ME51N and the user exit for this is

Enhancement name is : u2018MEREQ001u2019.

Function Exit name : u2018EXIT_SAPLMEREQ_005u2019.

I have no idea whether to use u2018MEREQ001u2019 or CNEX0002.

Hi,

I want to default the field "Requisitioner" in the transaction CJ20N and for this I have the user exit CNEX0002, but I have no idea how to do this. Can anyone help please.There is one more transaction for creating a Purchase

Requisition called ME51N and the user exit for this is

Enhancement name is : u2018MEREQ001u2019.

Function Exit name : u2018EXIT_SAPLMEREQ_005u2019.

I have no idea whether to use u2018MEREQ001u2019 or CNEX0002.

2 REPLIES 2
Read only

Former Member
0 Likes
500

goto CMOD... create a project...specify the enhancement name... Inside you will see the FM where you need to add the code...Activate the project.

Read only

0 Likes
500

Yep in the function module there is a include and I think I need to add the code in the include.

This is the FM

FUNCTION EXIT_SAPLMEREQ_005.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM

*" REFERENCE(IM_DATA_NEW) TYPE MEREQ_ITEM

*" REFERENCE(IM_DATA_OLD) TYPE MEREQ_ITEM

*" REFERENCE(IM_DATA_PERSISTENT) TYPE MEREQ_ITEM

*" REFERENCE(IM_FULL_CHECK) TYPE SY-CALLD

*" REFERENCE(IM_ITEM_HAS_ERRORS) TYPE SY-CALLD

*" EXPORTING

*" REFERENCE(EX_MESSAGES) TYPE MEREQ_T_BAPIRET2

*" REFERENCE(EX_RECHECK_ITEM) TYPE SY-CALLD

*"----


INCLUDE ZXM02U05 .

ENDFUNCTION.

But out of all these fields wich one should I use?