cancel
Showing results for 
Search instead for 
Did you mean: 

Which is the user exit or badi for stock posting from quality to unrestricted stock type after usage decision in t code QA32 ?

Former Member
0 Kudos

Hi all experts,

My requirement : In QA32, I have done results recording, Usage decision then stock will be updated in Unrestricted stock type. Now I have to transfer stock of unrestricted stock type to block stock type (movement type 344 E) in background. So for this background transaction I need user exit or badi?

     I have used user exit QEVA0007 - UD: Control of compulsory comment or long text presetting, this user exit is trigger at the time of UD but quality stock not transferred to unrestricted stock (movement type 321).

    I have tried following user exits but not triggered at the time of UD.

QEVA0004  Exit for changing information line in usage decision header

QEVA0005  User subscreen for displaying add. data for usage decision

QEVA0006  Entry to usage decision transactions

QEVA0007  UD: Control of compulsory comment or long text presetting

QEVA0008  Usage decision: Customer function key (e.g. to cancel UD)

QEVA0009  UD: Predefinition of quantity to be posted to sample stock

QEVA0010  UD: Usage decision check

So please tell me about any user exit or badi?

Thanks & regards,

Nitin Nerkar

SAP QM Consultant

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

My dear frnd

Client requirement is one thing and standard practices is another, best you can suggest to ur client that that may adopt stdn practices bcoz it helps them in future as far as performance and other things are concern. enable dirct QA to block posting in selected set and tick the indicator for Direct stck posting W.r.t UD codes.

Now comes to BADi, if ur client want this u need to use MB_GOODSMOVEMENT , but my point of view this is not suggestable bcoz continual updation on MSEG is itself a big risk, and no technical guys either programmer and Basis will suggest it, becoz Read and update of MSEG itself a trouble( as far as performance and data consistency is concern).

now its your choice.

Regards

Former Member
0 Kudos

Hi,

Thanks for your valuable suggestion but following are critical problems.

Case I: As per standard practice concerned client don't want manual transfer entry from unrestricted to block stock.  If I suggest  QI stock to block stock and then block stock to unrestricted stock then t code LX02 for warehouse management (WM) module concerned stock will show in stock category Q ( stock in Quality control ). By using VL01N delivery is not possible because of error shows

"Delivery has not yet been completely processed by WM"


Case II : If badi is not suitable.  Please suggest me other way. 

Regards,

Nitin Nerkar

SAP QM Consultant

former_member184536
Active Contributor
0 Kudos

Dear Nitin

With the help of technial guy/abaper create your own custom function module in which you can write code to transfer the stock from unsrestricted to block stock and define you follow up action and assign that function module to that follow up action.

ans assign that follow up action to Ud code in QS51.

I hope it will help you.

Manish

former_member207800
Active Contributor
0 Kudos

You can use "indicator: function module called after posting" for follow-up action of UD code.

SAP will perform your function module (movement 411 E) after stock posting (from QI to unrestricted).

QCC0 > Quality Inspection > Inspection Lot Completion > Define Follow-Up Actions > Follow-Up Actions

I think you know how set this process. (please refer F1 hep)

Regards, DoWook KIM

Former Member
0 Kudos

Hi,

You can use exit ZXMBCU02, which is called for all goods movements.

Regards.

Former Member
0 Kudos

Hi,

User exit  ZXMBCU02 is not available. So please give correct user exit.

Regards,

Nitin Nerkar

Former Member
0 Kudos

Hi,

This is the name of the include. Name of the enhancement is MBCF0002.

Regards.

Former Member
0 Kudos

Hi,

I used this enhancement MBCF0002 but it triggered before usage decision. I need enhancement after table MSEG updated ( stock updated in unrestricted).

     So please look into this matter.

Regards,

Nitin Nerkar

Former Member
0 Kudos

Check MB_CF001.

But please be alert before implementing this. Read the documentation in SMOD & do it in different server before doing it in live server.

Former Member
0 Kudos

Hi,

Enhancement MB_CF001 is not working properly.

Regards,

Nitin Nerkar

Former Member
0 Kudos

What is meant by Not working properly?? Please update exact problem you facing.

Former Member
0 Kudos

Hi,

After using enhancement MB_CF001, it is not triggered after stock updated in unrestricted stock type. I want such enhancement so that stock transfer from unrestricted to block stock by using t code MB1B with 411 E so that this transfer posting will be done in background.

Regards,

Nitin Nerkar

Former Member
0 Kudos

Hi,

     thanks for reply,

     I check all the badi which is given in cl_exithandler class but all these trigerd befor updating mseg table.

      my requirement is when i do QA32 new material document is created for unrestricted stock and i want to move that stock in blocked stock category therefore I required user exit or badi afer MSEG table update.

Thanks,

Sumit Patil.

Former Member
0 Kudos

Check the BADI MB_GOODSMOVEMENT

http://scn.sap.com/thread/1547752

Former Member
0 Kudos

In QS51, against UD code, you can mention where the stock is to be posted.

In Posting Proposal UD, mention as Unrestricted & in Stock Screen Background, select the tick box.

Former Member
0 Kudos

Hi Maheshwaran,

Thanks for your quick reply but above solution is not proper.

After UD done, material document for movement type 321 is created and after that I have to transfer unrestricted stock type to block stock type in background for that I need user exit or badi whatever suitable for it. So abaper will use that user exit or badi in background program.

Please give me a correct reply.

Regards,

Nitin Nerkar

Former Member
0 Kudos

I read your title & I answered according to that one. But your content is different from the title you gave.

Is there any fixed qty which will be moved from Unrestricted to Blocked stock, once UD is done??

Using user exit as well, how you will pick up the qty which needs to be transferred to blocked stock??

Former Member
0 Kudos

Hi,

I have to move total qty per inspection lot.

Regards,

Nitin Nerkar

Former Member
0 Kudos

If you plan to move total qty, then why you trying to do in 2 steps like Quality to Unrestricted -- Unrestricted to Blocked. You can go for single step from Quality to Blocked stock.

Former Member
0 Kudos

Hi,

Your suggestion is correct but as per the client requirement, they need in 2 steps.

Regards,

Nitin Nerkar