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

customer fields MEREQ001

Former Member
0 Likes
480

Hi experts,

I have added customer fields with the Enhancement MEREQ001. How is it possible to darken this fields when I switch from edit to view in transaction ME52N/ME53N?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
417

Hi,

assign a value to your screen fields (see attributes) eg to screen-group1.

in the EXIT_SAPLMEREQ_001 you check for the activity type:

DATA: ls_mereq_item TYPE mereq_item.

ls_mereq_item = im_req_item->get_data( ).

IF NOT im_req_item IS INITIAL.

gf_aktyp = im_req_item->GET_ACTIVITY( ).

endif.

In the PBO of your cutomer screen you use following to switch to "no input":

IF gf_aktvt = 'A' "Display mode

LOOP AT SCREEN.

if screen-group1 = 'ZNO'

screen-input = 0.

MODIFY SCREEN.

endif.

ENDLOOP.

ENDIF.

Rgds,

JP

Hi experts,

I have added customer fields with the Enhancement MEREQ001. How is it possible to darken this fields when I switch from edit to view in transaction ME52N/ME53N?

Thanks in advance

1 REPLY 1
Read only

Former Member
0 Likes
418

Hi,

assign a value to your screen fields (see attributes) eg to screen-group1.

in the EXIT_SAPLMEREQ_001 you check for the activity type:

DATA: ls_mereq_item TYPE mereq_item.

ls_mereq_item = im_req_item->get_data( ).

IF NOT im_req_item IS INITIAL.

gf_aktyp = im_req_item->GET_ACTIVITY( ).

endif.

In the PBO of your cutomer screen you use following to switch to "no input":

IF gf_aktvt = 'A' "Display mode

LOOP AT SCREEN.

if screen-group1 = 'ZNO'

screen-input = 0.

MODIFY SCREEN.

endif.

ENDLOOP.

ENDIF.

Rgds,

JP