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: 

FM for material unlock in MM02 after creating cost estimation in CK11N??

Former Member
0 Kudos

Hi,

I need to unlock material after creating recipe in creating cost estimation in CK11N..

i tried with all the possibilities available by following SDN and Google Posts..

Please help me by providing helpful hints ..

Rgds,

Lokesh .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

solved myself.....!

Thanks for all......

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos

Hi

it's with the classical BAPI : BAPI_MATERIAL_SAVEDATA

you have to set the value space in the CLIENT_DATA-MATERIAL_FIXED

(don't forget the CLIENT_DATAX)

regads

Fred

0 Kudos

Hi Fred,

Thanks for ur reply ,

But m not able to unlock material, please help me

what i need to enter details in clientdatax : im passing MATNR/Plant ..

Is it ok or i need to enter somemore details..,

Rgds,

Lokesh

former_member212002
Active Contributor
0 Kudos

Why force unlocking, why not wait till SAP releases the lock?

This may be risky but have you tried the function module "DEQUEUE_EMMARAE"?

    CALL FUNCTION 'DEQUEUE_EMMARAE'

      EXPORTING

        MODE_MARA = 'E'

        MANDT     = SY-MANDT

        MATNR     = IN_TB_COSTING-matnr.

Cheers!

Abhinab.

0 Kudos

Hi Abhinab Mishra,

Thanks for ur valuable reply,

Here SAP wont release Cost Estimation Lock after cost estimation done with CK11N,

I need to release Lock in MM02(there is a field Plant-spec MAT Status , here i need to unlock material).

Rgds,

Lokesh.

0 Kudos

Did you try the FM "DEQUEUE_EMMARAE" ?

-Mishra

0 Kudos

Hi,

Then why don't you do a BDC to simulate your steps to unlock it via the transaction MM02.

Cheers,

Arindam

Former Member
0 Kudos

solved myself.....!

Thanks for all......