Item Category determination based on Order Reason

Hi experts,
There is a requirement where for a particular sale order type ( ZSC in this case ), there are 6 types of order reasons available.
And depending upon the order reason chosen, the corresponding item category needs to be determined automatically. It is a 1:1 relationship. That is for each order reason, there is an item category. This is not defined anywhere yet.
Is there any way of configuring this through customization or programatically in any user-exit available?
The user is ok with creating a customization table for mapping the order reason to item category. In this case, which exit should I write the code to automatically assign the item category according to the order reason chosen by checking this table.
Please help.
Thanks.

Since the Order Reason (AUGRU) is at header level (VBAK) and Item Category (PSTYV) at item level and the requirement is to check both these fields, you can try with any of the following exits:-
=>  User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP
=>  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
Also I am not clear on this
That is for each order reason, there is an item category. This is not defined anywhere yet
Do you mean to say that you have not made assignment in VOV4 ??  If so, what assignment is made. 
In fact, in the exit, the coding should be in such a way that system should ignore this table T184, and check for the combination you mentioned for which you need to have a zee table with the combination of
a)  Sale Order Type
b)  Order Reason
c)  Default Item Category and
d)  Manual Item Category
thanks
G. Lakshmipathi

Similar Messages

  • Item Category determination in Sales Order

    Hi
    How to know, how item category determined in Sales Order.  Is there any analysis available in Sales Order level, similar to output or text determination.
    Problem here is in a particular sales order, item category is different compared to configuration.  Nothing is recorded in change log.  How to know, whether system determined this item category or user changed manually.
    Regards
    Uma

    Hi
    Problem here is in a particular sales order, item category is
    different compared to configuration
    I cant take this arguement
    Sales order item cate will picked via the config maintained in VOV4
    item category is different compared to configuration
    Configuration someone might have changed after that sales order created
    Nothing is recorded in change log. How to know,
    whether system
    determined this item category or user changed manually.
    During order creation if you are inputting the allowed manual item category manually in salesorder then that is not a change
    Hence it doesnot get recorded (VA01 T code)
    During order creation  a default item cate gets determined if you chnge that to manual, then that is also not a change
    Hence it also doesnot get recorded (VA01 T code)
    But in VA02 if you change the item category manually then it is recorded in change log
    No item category determination analysis is available in standard and not reqd too
    In your case only this could have happened
    Configuration someone might have changed after that sales order created
    Regards
    Raja

  • Clarification in item category determination based on Usage

    Hi
    We are having one quotation document (ZXYZ) and the item category determination we maintained is as below
    SALES  Doc +   ITEM.C . Group +  USAGE  +   H.L.ITEM   =    ITEM Category
    ZXYZ  +   NORM   +     SENI  +  -
      =    AES
    ZXYZ   +   NORM   +     SEIN  +  -
      =   AEN
    (SENI = D.ITEM IS NOT BILLING RELEVANT)
    (SEIN = D.ITEM IS BILLING RELEVANT)
    We created many Service quotations , say some 1000 quotations till date . In some quotations system is taking AES as item category and in some cases system is taking AEN as item category . and in all the cases the Quotation document type is ZXYZ and the item category group maintained in the Material master is NORM only .
    On what basis system is determining my item category in the quotation . If it is determining based on Usage then where we maintain the Usage (either SENI or SEIN)
    Thanks in Advance & Regards

    Hi,
    Please find below the explaination for your query.
    Item usage
    The item usage indicator controls the system reaction when you process a sales document item in a certain context.
    Use
    This indicator can be used for determination of item categories, where you can use it to control which other item categories are to be found in a certain environment (text items and packing items, for example).
    It can also control which items are to be billed in a service quotation or the corresponding sales order and which are only there for statistical reasons.
    The item category usage can be defined using transaction 0VVW.
    I hope this gives you sufficient information on the usage in item categories.

  • Item Category Determination during Sales Order Creation

    Dear All,
    This is Chee Wee, i'm new to SD, i would like to seek for an advice for the topic related to Item Category in Sales Order.
    We have a material "Mat005" define as "Stocked" Item category in MM03,
    *Stocked means our MM team will always keep stock for the material.
    The document Item category assigned to this "Stocked" are "NoPo" --> No Auto Po creation and "AuPO" --> AutoPo  creation.
    During the SO creation for Mat005 with Qty50 and warehouse stock availale for 60, i'm wondering when i select the itemCat "AuPO", the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    Can any Guru advice me what is the actual setting or configuration behind to determine which are the correct Item Category that i can choose?
    Thank you very much,
    Regards,
    Chee Wee

    Dear Chee Wee,
    Basically tem category will determine based on these key combination
    Item category group(Material master)+Sales document type(We enter doc type in the creation initial screen)--->Item category
    For Example NORM+OR--->TAN.
    As per your explanation
    I hope In your case stock availability also one of the factor in the item category determination.This might have done some enhancement.
    There are two item categories in your process one is  "NoPo" --> No Auto Po creation and  second one is "AuPO" --> AutoPo creation.
    the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    60 Qty Stock available, you have created sales order for 50 Qt here requirement is less than stock availability so system will not allow you to enter AuPo item category Because there no need of auto PO creation for stock.
    When you created sales order for 70 Qty, stock available only 60 so there is shortage of 10 Qty.now system needs to allow to create Auto PO to procure the shortage stock of 10 Qty, so system is allowing you to enter Yaupon item category.
    There might be some work around kind take help of ABAPer to get the more details about your item category determination.
    I hope this will help you,
    Regards,
    Murali.

  • Trigger Item Category determination in sales order via program

    Hi,
    We are changing item category through an exit based on a field at item level, which the user would enter manually.
    However once the exit changes the item category, if the user reverses his selection or gives another value for which item category should be the orginal one, i need to change the item category back to what was originally determined.
    Rather than looking up the config tables of item category determination, we would like to trigger item category determination through the exit itself.
    Can someone suggest if this is possible, if so what is the code to be written.
    Regards,
    KC
    SAP SD

    Hi,
    You can use the following user exit to change the item category in the include MV45AFZB..
    *&      Form  USEREXIT_SOURCE_DETERMINATION
    <b>*       This Userexit is used to add additional logic for finding      *
          the source of the plant or the item category.</b>                  *
          This form is called from form VBAP_FUELLEN                     *
    FORM userexit_source_determination.
    Thanks,
    Naren

  • User Exits for Item Category Determination based on Item Category Usage

    Hi Gurus,
    If I need to create a new item category usage code and perform item category determination using the new item category usage code, is there a user exit or function module which is able to perform this?
    Thanks & Regards

    Hi Lawrence Tam,
             If you are going to create a new item category usage to determine an item category, you need to add a new line in transaction VOV4 for the new combination of sales document type + Item Cat. group + usage + high leve item cat. to determine the item category.
    Thanks in advance,
    Mariano.

  • Returnable Packing - Sales order maintainance / Item Category determination

    Gurus,
    I have question about returnable packing regarding sales order entry and item category determination
    1) Sales order : Should we do entry of returnable packing in Sales Order as a regular item
    Example : The material M1 - 100unites needs returnable packing materials PK1 5 unites.
    Therefore in sales order it should be entered as below
    M1 - 100unites
    PK1 - 5unites
    Please commnet.
    2) Item category determination should be done at sales document level
    Sales document type + Item category group (LEIH) + Usage (PACK) + Higher lever item Cat (???) = TAL
    Please commnet.
    Regards,
    Ashish

    Hi
    Yes Ashish you need to enter the returnable as a separate item in the sales order
    For qn no 2 the item categories of higher levelitems can be TAN and TAX
    Sales document type + Item category group (LEIH) + Usage (PACK) + Higher lever item Cat (blank) =TAL
    Sales document type + Item category group (LEIH) + Usage (PACK) + Higher lever item Cat (TAN) =TAL
    Sales document type + Item category group (LEIH) + Usage (PACK) + Higher lever item Cat (TAX)=TAL
    Note returnable packing items are creates as a separate materials with material type as LEIH and item category group as LEIH
    How to bring back the returnable packaging stocks to your plant
    Creating a Returnable Packaging Pick-Up
    Create a sales order using order type LA /AT.
    Enter the required data on the customer, the returnable packaging, and the plant to which the materials are to be returned.
    Enter all other relevant data and save the order.
    Create a returns delivery for the sales order when the materials reach your company.
    The system proposes delivery type LR automatically. The transaction is completed by the goods receipt posting which initiates a transfer posting from the customer's special stock to your plant stock.
    Regards
    Raja

  • Item Category Determination for a service order

    Hello experts;
    I have the following funny issue, When i try to create a service order my item category doesn't get determined properly: specifically when i fill in the product in the SAP GUI the item category field doesn't get populated automatically...funny thing is that i do the exact same thing in the Web UI the very same field Does get populated correctly!
    The following are the customizations i have on SPRO: The all thing is copied from the standard but in the GUI the standard doesn't work either! and it does in the WEB UI. Any lights????
    Trans Type:ZSVO     
    Desc:DSGi Service Order     
    Item CtgGroup:NORM Sales Item (Norm)                                                                                Item Category:ZRVS     
    Desc:DSGi Product     
    Alternative Category: SRVS     Desc:Product

    I don't get it...
    It's as simple as that: the item i'm adding in the service order has Ctg Group DIEN and it was correctly downloaded from R3. The Item Category Determination is as follow:
    Trans Type: ZRVO     
    Desc: DSG T Service Order     
    Itm Ctg Group: DIEN Service w/ Delivery                                                                                Item Category: ZTVS     Service Sales Item
    Where ZTVS is the copy of the item category SRVS (Standard) which for some reason if i put instead of the ZTVS doesn't work either!
    What am i doing wrong?

  • Item Category Determination- Usage

    Hi All,
             I am looking into my system configuration for item category determination.
    I know that Item category is determined based on
    1. Sales document type
    2. Item category group
    3. Usage and
    4. Higher level item cat group
    Here, I came to know that Usage is determined from Customer material info record. But in my system, I see a Line item with out usage maintained in CMIR but detemined the item category relevant for usage.
    Any of you guys have a thought on this?
    Thank you
    Kris

    Item Usage is not a mandatory field in CMIR (T.Code: VD51). Hence the same can be left blank and item category will be determined accordingly.
    From configuration point of view, I was refering to as under:
    Sales Order Type | Item Category Group | Usage | H.L. Item cate | Default Item Category
    OR | NORM | blank | blank | TAN
    OR | NORM | blank | TAP | TAN
    OR | NORM | APO0 | TAPA | TAN
    Regards,
    Rajesh banka

  • Item category determined by sold to account

    Hi
    I have a client who wants to determine the item category in a sales order based on the sold to account. In most cases this client is using the TAS process for all materials, (they have 10000u2019s of materials) but for one specific sold to account they want to use TAB.  The only solution I can propose is the creation of an own table where the sold to account and item category can be defined and then a small development in a user exit which reads this table to determine if item category should be different to the one proposed in the material master.  I can not believe that there is not a standard off the shelf solution in SAP. 
    Has any one else experienced this problem.
    Thanks for a short reply.
    Steve

    Hi,
    you have to go with your solution, there is no other way for item categorydetemination depend on sold to party.
    We did same depends on plant, if intercompany plant then TAB/ Same copany plant TAS.

  • Regarding usage in item category determination

    what the use of usage in item category determination,how many types are usages are there in sap sd item category  determination

    Hi,
    An item categories usage is defined by SAP when creating a sales order. The system determines,
    for example, that the usage refers to a text item as opposed to a deliverable item when you enter test in the order item rather than a material number. Based on this usage, the system will use the item category determination to propose an item category.
    You can see all of the item category usage indicators in SPRO, SD > Sales > Sales Docs > Sales doc items > Define Item cat usage.
    Example:
    For Material Determination
    Usage we use is PSHP for Displaying Main Items
    Usage we use is PSEL for Displaying Sub Items
    This usage we use for OUTCOME
    Outcome: outcome controls whether substituted material
    Should be replaced or displayed as sub items.
    For Free Goods
    Usage is free
    Configure these usages in vov4.
    Regards,
    Abhee.

  • Not able to change item category of a sales order in VA02

    Hi,
    When I am going to transaction VA02 for changing an sales order it is not allowing me to change z item category of the line item. Can someone tell me if it is a configuration or some User exit/BADI might be there behind this behavior.
    Note: Recently the system was upgraded to ECC 6.0 and after that only this problem was coming.
    Thanks,
    Chinmay

    Hi Chinmay,
    Based on your question, I assume you need to go through this links:
    http://www.magnatraining.com/sap-item-category-determination-manual-vs-automatic/
    http://help.sap.com/saphelp_46c/helpdata/en/dd/55fb13545a11d1a7020000e829fd11/content.htm
    Also search this forum and if you dont find an answer then get back.
    Please help yourselves with this link and if you still have further questions..get back.
    Regards,
    Raghu.

  • CRM item category determination

    Hi,
    When copying a sales order, which includes a BOM, from R/3 to CRM the item category for the lower level item is not correct. This appears to be because the higher level line is not recognised.
    The item category determination is defined to select the item category for the lower level item based on the item category of the higher level item.
    Any ideas?
    Thanks,
    Audrey.

    Hi,
    Have you maintained the item cat determination for the higher level item as well???
    Secondly have you maintained the copy controls for the item cat from source doc to target transaction type
    Maybe these will help
    Regards
    Rekha Dadwal

  • Item category determination for Free Goods

    Hi
    I have configured inclusive Free Goods and have a second line correctly determined when I create a quotation or a sales order for a particular product.
    However, I keep getting the error "Item 20: No item category could be determined".
    I have created an entry in item category determination with TAN as my main item category and TANN as the item category for the free goods.
    Any ideas?
    regards
    Tim

    I forgot to specify that the usage was for Free Goods in the item category determination.
    It now works.

  • Item category TAK in sales order.

    Hi all,
    Actually i am a PP guy. One of out user want customer specific planned and production order. For that he want to change item category in sales order From TAN to TAK. he want the system should directly create sales order for that item with item category TAK.  I manually changrd item category to TAK tested this in sanbox but system is not creating sales order specific planned and production orders after changing item category to TAK also. I also tried changing strategy to 20, 40, 82 but item category was not TAK.
    Does item category is determined by strategy group in MRP 3.
    When I changed item category to TAK why planned and production order were NOT sales order specific.
    Pl explain
    Thanks

    Hi,
    how system come to know which item catwegory is to be used in sales order.
    In your case, for TAK..if u check in VOV4 the item category determination must be like this...
    Sales Order typeItem category grp(from Mat.master)UsageHigher level item cat.grpDefault item categ
    OR0001(make to order) BlankBlankTAK
    This ishow ur item categ wud get determined in sales orders...
    i wanted to know waht ia significance of TAK as item category in sales order
    I beleive TAK does not have any specific settings for MTO scnario..it's merely a copy of TAN..Only Item cat.grp 0001 does matter in MTO scenario...and ofcourse strat.type from PP perspective..
    Reg,
    JJ
    Edited by: Jagsap on Apr 21, 2010 12:11 PM

Maybe you are looking for