cancel
Showing results for 
Search instead for 
Did you mean: 

Blocking of Stock Posting after doing Usage Decision

0 Kudos

Hi Gurus

How to make a setting for the following scenario?

1. When user is doing UD as Accepted

          a. Then he would be able to do stock posting only to Unrestricted Use and rest of the fields to be greyed out or system should restrict him to do stock posting in another field.

2. When user is doing UD as Rejected

          a. Then he would be able to do stock posting only to blocked stock and rest of the fields to be greyed out or system should restrict him to do stock posting in another field.

3. When user is doing UD as Partial Acceptance

          a. Then he would be able to do stock posting only to Unrestricted Use and blocked stock and rest of the fields to be greyed out or system should restrict him to do stock posting in another field.

I am waiting for your valuable suggestions

Thanks

Aditya

Accepted Solutions (1)

Accepted Solutions (1)

anand_rao3
Active Contributor
0 Kudos

Hi Aditya,

You have to go for custom development for this! Explore exit QEVA0001 - Enhancement: Quantity posting for usage decision. You can set above logic with ABAP help

Anand

0 Kudos

Hi Anand,

Can you provide me how I should proceed further for doing the custom development for -

{QEVA0001 - Enhancement: Quantity posting for usage decision}

Please Explain me in detail

Thanks

Aditya

anand_rao3
Active Contributor
0 Kudos

H Aditya,

I just am trying to recall the information! But I would request you to verify the fields mentioned below in QALS and QAVE table, as I am not in front of the system right-now!

You need to have discussion with ABAP consultant to map it appropriately.

I assume you are posting the stock after UD is given. Convey the above exit to ABAPer. Build following logic in to it at the time of saving stock posting event.

  1. Pick inspection lot (IL) number in run time against which stock posting is being done
  2. Pass this IL number in to QAVE table and fetch value against field VCODE.
  3. I believe this field QAVE-VCODE represents the UD code
  4. Then check values in below fields in QALS table
  • QALS - LMENGE01 - Unrestricted use stock
  • QALS - LMENGE04 - Block stock

  1. If the UD code is "A" (the UD code that corresponds as Accepted in your system) then system should allow entry to be posted against LEMGE01 field. For all other stock posting options it should throw error message stopping the transaction
  2. On the similar lines if the UD code is "R" i.e. Reject,  then LMENGE01 should throw error.
  3. For partial UD code, entries should be permitted in above fields.
  4. If you don't find any value in VCODE, that indicates no UD is done. You can restrict the movements here!


I also liked Craig's idea to suppress rest of the fields of stock posting (e.g. Return Delivery, Scrap) if you are not using them at all. But kindly remember this would be client level effect.


Please verify and confirm the field names in system!


Anand

0 Kudos

Dear Anand,

Can you kindly explain me what logic I should give for stock posting when there is a partial acceptance.

Thanks

Aditya

Answers (2)

Answers (2)

0 Kudos

Thanks Anand & Craig for such a quick response...

But can you please explain me the enhancement logic which i had to provide to ABAP for QEVA0001 - Enhancement: Quantity posting for usage decision.

If possible can you provide step by step method how to do this.

Hi Craig

As per your solution provided by you "assign background postings to your UD codes for A and R so the user doesn't even have to go to the stock posting screen".

How this setting is possible. Can you please explain me the steps.

But there is one more scenario for Partial Acceptance where user transfer stock to both UR and blocked Stock.

So the solution which you have provided can also be applied in this case also.

How this setting is possible.

Thanks

Aditya

former_member42743
Active Contributor
0 Kudos

Many thread on automatic stock posting in Usage decisions are available.

In the selected set that you use for you UD's there is a check box labelled "Stock Screen backgr.".  If this is checked, the stock posting proposal selected will happen automatically in the background when the user saves the UD.

For Partial Acceptance, you cannot use this since the system would have no clue as to how much should to unrestricted and how much should go to blocked.

Craig

former_member42743
Active Contributor
0 Kudos

It sounds like you only allow posting to blocked or UR.  You can remove all the other posting lines via configuration if you want to so that they never show up.

You can also assign background postings to your UD codes for A and R so the user doesn't even have to go to the stock posting screen.  But it wouldn't prevent them from doing so.  For that you'd have to use the enhancement Anand proposed.

Craig