Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Plant determination based on line item usage indicator in USEREXIT_SOURCE_DETERMINATION.

former_member213450
Participant
0 Kudos

Hi All,

we have a requirement to redetermine the plant based on line item usage indicator. we thought of writing the logic in user exit "

USEREXIT_SOURCE_DETERMINATION", but the user exit is not getting executed whenever we change the usage indicator (VBAP-VKAUS). can anybody give some inputs to solve this issue ?

Regards,

Ramesh

4 REPLIES 4

Jelena
Active Contributor
0 Kudos

It seems rather obvious that you need to find a user exit that is called when the field value changes and trigger determination from there... Not sure it's a good idea though. Maybe ask the SD consultant to reconsider? What exactly is the business requirement for this?

0 Kudos

Hi Jelena Perfiljeva ,

Thank you for your reply,

Business requires the Plant and profit center at the line item to be determined based on the Zip code of End Customer (Custom Partner type) so that profit center of the selling office received credit for the sales.

Ease of data maintenance was another reason why it has been decided not to store Plant and Profit center in the Master Data and be determined automatically in the transactional data. (Not sure how the data maintenance is easy)

this logic should trigger when the for specific usage indicator.

Regards,

Ramesh

Jelena
Active Contributor
0 Kudos

Not sure what "received credit for the sales" means exactly in this case. How are you planning to accomplish that?

What you're saying sounds like for the same customer/material combination plant A is assigned but then someone is supposed to enter a different "usage" and suddenly it's a different plant? Sorry but this doesn't make a lot of sense. I can understand determining plant based on what's closest to the customer or based on the product availability. All that can be achieved in standard SAP, I believe.

But by introducing usage field I'm afraid you'd be shooting yourself in the foot here. How would the sales reps know when to use that indicator? If it's someone has to remember to do then might as well create a new customer account and use that instead. It still involves a human making a choice but at least you don't have to introduce ZSAP. Although I very much suspect that "received credit" part can be accomplished completely differently in this case.

Lakshmipathi
Active Contributor
0 Kudos
based on the Zip code of End Customer (Custom Partner type) so that profit center of the selling office received credit for the sales.

Does it mean that one zip code will have only one selling office?