‎2008 Jun 27 7:09 AM
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.
‎2008 Jun 27 7:16 AM
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.
‎2008 Jun 27 7:16 AM
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.