on 10-01-2008 10:44 AM
Hi Gurus,
My client has multiple company code and has different document type for PR and PO as per the company code. For generating the service PR from maintenance order system take the document type of PR defined in the config.
Is it possible to define multiple document type for service PR depend on the company code/ Plant level?
Kindly help.
Regards
DP
DP,
Yes it is possible. Have a look at the following user-exits:
- COZF0001 Change purchase req. for externally processed operation
- COZF0002 Change purchase req. for externally procured component
Or BADI IWO1_PREQ_BADI BADI for Manipulation of Purch.Reqs from Orders + Networks
PeteA
[www.pjas.com]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SINGH,
I am struggling with same problem, changing the document type of PR (ME52N) which is created from Maintenance Order. But I am not able to change the document type by using the above given details. Can you plz suggest me in this, as you have already solved this type of problem.
Thanks,
Ravi.
Hi Ravi,
I used the User Exit COZF0001 . Since we can assign only one PR doc type in the config .
I have assigned one PR doc type in configuration which will work for a company code and all their respective plant. So in this case user exit wont do any job for changing the doc type.
You will defined a condition in the User exit saying that if company code /plant which you get it from maintenance order is not same (Config ) then provide the PR doc type which you want to create for respect plant or company code.
I dont have coding right now with me. You need a small coding to be done to create the separate PR doc type in EBAN-BSART
with respect to plant . Check in your configuration at what point of time you are creating the PR either in saving or release of MO. You can take the even to activate the User exit.
Consult your ABAPer they can do in 10 min.
DP
Thank you very much SINGH, I will check that. Actually my requirement is to enable the PR Document Type in ME52n (at PR level, for PR which is created from MO which is actually in disable mode) and user can able to change the PR document type which is created from MO and able to save it.
Thanks,
Ravi.
Hi Ravi,
I am not sure about your requirement detail. Generally the PR which is created by the system from MO is already taken a PR doc type with its number range and it should be grey out. Even if you change the doc type of the PR you cant generate a PR of different number range where the user is willing to assign.
Have a great day
DP
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.