Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from CWKorn on Dec 12 at 8:34 AM Amysen -- We use EXIT_SAPLCOBT_001 to execute processes that occur after the production order has been successfully processed. There are many tables that are input to the exit with the before and after images of most of the relevant fields that can be updated on a production order. You'll have to do some experimentation, but you can tell when a given record has been created, changed, or deleted and compare the old and new images of the record for change conditions -- and act accordingly. We've learned some hard lessons over the course of time because we have MANY customized post-save processes for various flavors of orders. This exit is used by many order-related processes for many order categories (you're working with category 10, production orders, AUFK-AUFTYP). If you're not careful, your production order code will execute for other order types. My recommendation is that you don't try to put all of your code in the exit's include (ZXCO1U01). The only thing you want in the Include is a CASE or IF statement that checks the order category and executes a separate function for each category that requires post-processing. For example, you might have a function Z_CAT10_POST_PROCESSING. The input to the function is every relevant table passed into the Exit and simply passed down to the called function. (You may find that your quantity change email inspires ideas for other kinds of post-processing -- so I recommend you get organized now.) We have Internal Orders (category 01), production orders (10), network orders (20), and maintenance orders (30) and we require (or don't require) different kinds of post-processing for each. The EXIT must be shared cross-functionally and one easy way to make sure you don't step on each other is to use the Exit only to call Category-specific functionality. Don't put any "real" logic inside the exit's Include. Good luck, Carl
| | | ---------------Original Message--------------- From: Amysen Sent: Thursday, December 11, 2014 11:45 PM Subject: User Exit For Sending An Email When Production Order Change Quantity Hi, I need a user exit for sending an email when production order changes quantity Thanks | | Reply to this email to post your response. __.____._ | _.____.__ |