Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 08:03 PM

    I think you can use FM 'RV_VBAP_PSTYV_DETERMINE'

    make sure you pass correct values in parameters like :

    t184_auart = vbak-auart

    t184_mtpos = mvke-mtpos

    t184_uepst = uepst " item category if high-level item if it's a BOM

    btw, as there are a lot of things which are dependent on item category - make sure you redetermine it in the right place.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 08:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.