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

Regarding lock objects

Former Member
0 Likes
359

Hi All,

On double click on material, check if the material is locked. If not navigate to MM02 transaction with the material number. If the material is locked, navigate to MM03 transaction. The display should take to the basic data 1 screen of the material.

Please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
334

set paarmeter id 'MAT' field MATNR.

Call function module "ENQUEUE_EMMARAE". Parameters pass the value of MATNR.

If sy-subrc = 0

call 'MM02' and skip first screen.

else.

Call 'MM03' and skip first screen.

endif.

FM :ENQUEUE_EMMARAE will lock a particulat MATNR.

If sy-subrc = 0 - Lock is successful else it is already locked.

Reward if useful.

1 REPLY 1
Read only

Former Member
0 Likes
335

set paarmeter id 'MAT' field MATNR.

Call function module "ENQUEUE_EMMARAE". Parameters pass the value of MATNR.

If sy-subrc = 0

call 'MM02' and skip first screen.

else.

Call 'MM03' and skip first screen.

endif.

FM :ENQUEUE_EMMARAE will lock a particulat MATNR.

If sy-subrc = 0 - Lock is successful else it is already locked.

Reward if useful.