cancel
Showing results for 
Search instead for 
Did you mean: 

item category usage in item category determination

Former Member
0 Kudos

hi

item category in sales documents is determined by the system depending on the fllowing criteria

1.sales document type (source: order type)

2.item category group (source: material master)

3.item category of the higher-level item (source: user defined)

4.item category usage (source:????? from where is system determining the item category usage)

in spro i could only find setting for defining new item category usage. but where do we assign item category usage.

in case it is system determined, then why there is the functionality of creating new item category usage? do we need to do some coding?

can i manipulate the item category usage in a sales document?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Koustav

The usage is defined by SAP and is hard coded in the programs. Although there is a place to enter new entries it does not work.

Example is batch determination. If batch determination is active then the usage is set as CHSP and when a transaction is processed the item category is determined using the usage CHSP along with other parameters. You can come to the conclusion that the USage is used only in certain business Scenarios.

Reward if this helps.

Thanks

Former Member
0 Kudos

hi richard

is it possible to manipulate the way SAP determines item category usage?

Former Member
0 Kudos

Hi Koustav

It is not possible to manipulate the way SAP determines item category usage as it is Hardcoded. What exactly is your requirement. If you want to default a different item category in certain cases then you can do the following.

1. Configure the Item category.

2. Assign it as the second item category in the Item category determination.

3. Modify the user exit MV45AFZZ in the form move to VBAP.

if x = y.

VBAP-PSTYV = 'ZTAN'.

endif.

Only if you send in your requirement I will be able to advise.

Reward if this helps

Thanks

Former Member
0 Kudos

hi

my requirement is that i have same document type,item category group & higher level item for two materials and i want to manipulate the item category determination using item usage field.

Former Member
0 Kudos

Hi Koustav

Do as mentioned in my previous post and you should be fine.

1.Define a New item category.

2In the Item category determination add this as the Manual Item category.

3. In the user exit write logic to overwrite the determined one with the manual item category assinged in step2.

This will work

Reward if this helps.

Thanks

Former Member
0 Kudos

hi richard

this is a very old issue. i want some more clarification.

you had suggested using user exits to overwrite value of <b>vbap-pstyv</b>

instead of overwriting item category value in <b>vbap-pstyv</b>, i wish i could pass on the <b>item usage</b> value to relevant structure/program while item category is determined.

is it possibel to achieve the same

thanks in advance

koustav

Former Member
0 Kudos

Hi koustav

I don't think you can influence vwpos during item category determination

but you can :

1) use userexit 'userexit_source_determination' in MV45AFZB

Here you can indeed safely set vbap-pstyv yourself ( you could first read table T184 yourself with the usage that you want so you still use that table but you only harcode the determination yourself in this userexit.

You can even use the SAP function here to predetermine pstyv :

CALL FUNCTION 'RV_VBAP_PSTYV_DETERMINE'

EXPORTING

T184_AUART = TVAK-AUART

T184_MTPOS = MAAPV-MTPOS

T184_UEPST = HVBAP-PSTYV

T184_VWPOS = T184_VWPOS

VBAP_PSTYV_I = VBAP-PSTYV

IMPORTING

VBAP_PSTYV = VBAP-PSTYV

EXCEPTIONS

OTHERS = 1.

PS Theoretically you could just change the variable T184_VWPOS usage in that userexit and then the default sap function will use it but that might be more error prone in upgrades etc...

2) If this is only necessary for certain customers, you can save a usage type in the customer-material info record ( see VD51/VD52/VD53 )

This usage will then be used to determine item category : no coding required

rgds

Dirk

Former Member
0 Kudos

hi Dirk

thanks a lot again for your suggestions.

regards

koustav

former_member204600
Discoverer
0 Kudos

Hi Dirk,

So happy to read thia and know that the usage can be entered in the cust mat info record. It solved my problem.

Thanks a lot

Francis

Answers (6)

Answers (6)

Former Member
0 Kudos

Hello ,

Usage is a field on CMIR - Customer Material Info Record (t-code: VD51/2/3)

When clicking on the item , you enter the item usage in Control data.

Also from the SAP Help text for it is :

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

Regards

Former Member
0 Kudos

i would like to get more suggestions on the ssue

Former Member
0 Kudos

Hi,

What specifically is not clear yet ? What would you like to see elaborated ?

Dirk

Former Member
0 Kudos

hi

i thought marking the issue as solved nobody else would be able to post any reply.

regards

koustav

Former Member
0 Kudos

Dear Koustav ,

Can you pls guide me ..i am stuck with same problem ..

Regards

Satish

Former Member
0 Kudos

Dear Koustav,

You can also use the USEREXIT - MV45AFZZ, move the value of VBAP-CHARG.

Hope this helps.

Thanks

Augustine Ponraj

Former Member
0 Kudos

Dear Koustav,

Normally the Item Category for Batch is taken only in the Delivery item Category Determination.

You can see this in under the Logistic Execution part :

SPRO--> Logistic Execution ->Shipping->Deliveries ->Define Item category Determination in Deliveries.

Here if you set that usuage, automatically the Batch will be asked in the Delivery creation.

Hope this helps. Reward if satisfied.

Thanks and regards.

Augustine Ponraj

0 Kudos

Hi

I have the same scenario. STO with delivery.

While doing the delivery with reference of STO. System is showing item determination issue.

I have maintain

Delivery type(ZNL) + Item category group(NORM) + Usage(CHSP) + Higher lever item cat (ZNLN)+ item catgory(YNLN).

In delivery system will pick the (delivery type, item cat. group, higher. level item cat & item category. But how will system will get the Usage information (CHSP) in delivery, if we maintain the above item cat determination for delivery for batch split.

So that system should determine the correct item cat. determination.

As this is STO delivery . So, no need to maintain the CMIR (VD51).

for fetching the batch split in STO delivery ,  Pls suggest

Former Member
0 Kudos

Hi Koustav ,

In SPRO you can <b>Assign Item Category Usage</b> for a combination of -

1] Sales Document Type

2] Item Category Group and

3] High level Item Category etc.

The path in SPRO is Sales and Dist --> Sales --> Sales Documents --> Sales Document Item --> Assign Item Categories.

Just below "Define Item Category Usage"

Hope this helps

Regards

Nilesh

Former Member
0 Kudos

Hi koustav biswas,

Item category in SD is used as an indicator that defines the characteristics of a document item.

For example, the item category controls the type and scope of: Pricing, Billing, Delivery,Inventory posting, Transfer of requirements,Items in stock, and value and text items are item categories.

As a customizing part you can define and assign item categories.

As an assignment process follow the steps as below:

Transaction SPRO- IMG->Sales and Distribution->Sales->Sales Documents->Sales Document Item->Assign Item categories.

Hope this helps.

Thanks and Regards,

Sambhaji.

<b>Don't forget to mark answers as helpful answers or problem solved.</b>