02-26-2007 3:57 PM
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
02-26-2007 8: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.
02-26-2007 8: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.
02-27-2007 4:46 AM
Hi Siarhei,
I guess this is what we are looking for. This would serve our purpose.
Thanks,
KC
02-26-2007 8: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