We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Block Sales Order Creation Based On Material Status

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from R. N. Wilhite on Dec 17 at 11:17 AM
There are a few hundred, maybe 1000 exits that are truly available in core SAP (I don't know the number, but it pretty small.) Each one id designed for a specific function. This makes them safe. They resist tampering to make them useful for other functions. You can take a pick Axe and open holes to make them more useful but then you make them much less safe. There millions of reasonable changes that you might want to make but only the "1000 exits" to support them. You do the math and I think that you can see where I'm going.

In my current implementation, I've introduced around 100 Implicit enhancements with no ill effects in the last 5 years. To me it sounds like you are allowing a junior ABAPer tinker with implicit enhancements. Not so wise. I'd suggest hiring someone with actual experience.

But your question is what standard user exits exist for your purpose. Since you are working in VA01, they are all in a very few includes to VA01. I for the life of me can't think of any of them that suit. That would then entail your hacking several interfaces between those that you have. It's rather un-safe, but since you don't want to use an implicit enhancement, that's what you are left with.

Now, others may come up with an exit that suits better than I think. I hope that you encounter them.

Neal

---------------Original Message---------------
From: Aritra Biswas
Sent: Friday, December 14, 2012 5:24 AM
Subject: Block Sales Order Creation Based On Material Status

Hi All,

My problem scenario is as follows:

We create sales orders in VA01. One of the options for doing so is by referencing an existing quote ('Create with reference' button).

The requirement is that if any material in the quote is blocked for ordering via an order status in sales area view (DChain-spec. status, MVKE-VMSTA), then the system should throw an error message.

In Standard SAP, this can be achieved via config by maintaining table TVMS (Materials: Status in Sales and Distribution) for that D-chain status . Putting a value of 'B' against TVMS-SPVBC (Blocked for sales order), will ensure that an error message automatically shows up, saying :
"Material XYZ has status: Block"

However, we need to maintain TVMS-SPVBC as A (Warning) due to some business scenario setup. In this case, system will throw a WARNING only, and allow order creation w.r.t. the quote. But the requirement is that an error message should be thrown and further processing should stop (even though SPRO setting says 'throw warning' and not 'throw error'). The warning message is generated in FM RV_MATERIAL_STATUS_CHECK.

So, my question is, is there an exit/BADI where I can override the SPVBC from A to B for this particular Material status?

Thanks
Aritra

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
R. N. Wilhite  

Senior Project Manager
32 achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language