cancel
Showing results for 
Search instead for 
Did you mean: 

Valuation type in QMLR_BLOCKED_TO_FREE_STOCK

Former Member
0 Kudos

Hi All,

We have assigned two actions in action box to our QM notification. One allows to post 344 movement[Stock from Unrestricted to Blocked] and the other allows to post 343[From Blocked to Unrestricted.]

Material is valid for Split Valuation. Action of "344" movement is triggered successfully, but when trying to trigger "343" movement we get error# M7347 [enter valuation type]. There is no direct field in QM notification where, valuation type can be entered, also to my understanding it should be determined automatically.

Notfication type being used is "Q1".

Same movement from MIGO is posted successfully.

For posting of 343 movement type, FM# QMLR_BLOCKED_TO_FREE_STOCK is being used, and execution from SE37 also gives the same problem.

Please help in identfying the possible causes and how we can fix this.

Regards,

Avinash

Accepted Solutions (1)

Accepted Solutions (1)

former_member42743
Active Contributor
0 Kudos

I recommend you get with a developer and use debug to see the issue. The FM is clearly doing something different. If you look at the code of the FM it's clear it uses MB1B. Try using MB1B and see if you get the error.

Craig

Answers (2)

Answers (2)

Former Member
0 Kudos

We created a FM, copy of "QMLR_BLOCKED_TO_FREE_STOCK" and made sure to pass "Valuation Type" in the Batch field.

JL23
Active Contributor
0 Kudos

why should a valuation type be determined automatically?

If you work with batches, then the valuation type is a field in the batch record and you will not have a problem with the valuation type if this field is maintained and you enter the correct batch number in the function module.

If you do not work with batches, then the valuation type is the batch number itself. Based on what info or customizing should SAP pick valuation type X if you have multiple valuation types? Did you do anything for that determination?

former_member42743
Active Contributor
0 Kudos

Is it possible to set blocked stock inventory as non-valued across the board?

I.e. when they move into blocked stock they write-off the value for all batches to zero value? So there is no need to select a valuation type?

But when they move the stock back to unrestricted, they have to specifiy the valuation?

I'm not sure why it would behave differently in MIGO unless in MIGO something gets defaulted in from say a PID value or something.

But to debug, they need to run the same transaction the FM does. Which is not MIGO but MB1b.

Craig