cancel
Showing results for 
Search instead for 
Did you mean: 

Item Category Determination

Former Member
0 Kudos

I'm working on setting up some new item category determination.  I've configured the new item category and item usage and the item category determination.  I've assigned my new item usage to a ship-to customer in the CMIR.  However the new item category is not populating on my sales order.  The new item category pulls in when I assign the item usage to sold-to number in the CMIR, but this is not acceptable.  I need the item category to populate based on the item usage in the ship-to CMIR.  Is there a configuration setting to make this work?  A user exit?

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Peter,

Please try user exit:userexit_cust_material_read in program MV45AFZB to meet your requirement.

Jason.

Former Member
0 Kudos

standard SAP pulls customer Material Info records from the Sold-to.
If you create material info records with the ship-to numbers then you have to
add some code to a user exit to have the system search the records for the
ship-to first. If no ship-to specific record is found then search for sold-to
specific record.

User exit FV45PF0R, USEREXIT_CUST_MATERIAL_READ (SAPMV45A) is
called during determination of the customer material info record. Within this user
exit the available partners can be found in internal table XVBPA where in your
case XVBPA-PARVW = "WE" for ship-to, the table for the reading of the
material-info record is KNMT.

So the suggested logic for the user exit would be as follows.

1. Get ship-to partner number from XVBPA

2. Read table KNMT with ship-to and material number.3. If record
is found move the ship-to number into the field US_KUNNR and exit the routine.

oss note 626931 -FAQ:cust-mat-info-record.

hope it helps

Regards

raj

Answers (0)