cancel
Showing results for 
Search instead for 
Did you mean: 

Doc. type for each order type

former_member226856
Participant
0 Kudos

I want to configure individual PR Document type for each order type. I checked the config. but it shows only one PR Document type for all the orders. Is there any way to do so ?

Regards,

VM

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor
0 Kudos

VM,

This is not a common requirements.

For future reference, could you please explain why you want this functionality??

PeteA

former_member226856
Participant
0 Kudos

Whenever Service PR triggered from order, system should ask the user to select the document type, Will it be possible with user exit COZF0001.

Regards,

VM

peter_atkin
Active Contributor
0 Kudos

VM,

Yes, via the specified user-exit above..

It would be interesting to know WHY you want to do this i.e. the business reasoning???

PeteA

former_member226856
Participant
0 Kudos

Yes, Pete

This is requriment of business. I am working on Shared Services Division. The holding company will charge the affiliate company on the basis of PR doc Type.

Regards,

VM

peter_atkin
Active Contributor
0 Kudos

VM,

Thanks - I understand the business requirement now...

I guess this means that a single PM/CS Order may be charged to several affiliate companies???

PeteA

former_member226856
Participant
0 Kudos

I have applied the user exit COZF0001. I have not changed the standard settings of doc type for maintenance order. We have assigned individual PR document type for each order type. but PR document is picking from standard settings. Then we changed the standard setting and kept doc. type field blank. This time PR is not triggering from order. Kindly tell me where I am missing setting.

Regards,

VM

former_member226856
Participant
0 Kudos

hello Pete,

Services will be charged on the basis of Plant and PR doc type.

Regards,

VM

peter_atkin
Active Contributor
0 Kudos

VM,

Is this for a free-text PO, or for a non-stock material?

Did you change the data in EBAN_ORD_CUST_CHG?

Can you post your COZF0001 ABAP code?

PeteA

former_member226856
Participant
0 Kudos

This is for both PRs services and non stock material.

ABAP code as follows:

ZTAR is the PR doc type for PM06 order type. In the standard setting we have used NB as PR doc type for order category '30'.

BREAK-POINT.

DATA : V_AUART LIKE AUFK-AUART.

CLEAR : V_AUART.

SELECT SINGLE AUART FROM AUFK INTO V_AUART

WHERE AUFNR = EBKN_IMP-AUFNR.

IF V_AUART = 'PM06'.

EBAN_IMP-BSART = 'ZTAR'.

ENDIF.

BREAK-POINT.

peter_atkin
Active Contributor
0 Kudos

Change this code: EBAN_IMP-BSART = 'ZTAR'.

To this code: EBAN_ORD_CUST_CHG-BSART = 'ZTAR'.

PeteA

[www.pjas.com]

former_member226856
Participant
0 Kudos

hello Pete,

Problem is solved.

Thanx and Regards

VM

peter_atkin
Active Contributor
0 Kudos

VM,

Just one more point.

Personally, I wouldn't hard-code these values. I would put them in a table e.g.

OrType PRTyp

PM06 ZTAR

former_member226856
Participant
0 Kudos

hello Pete,

I have applied the code given by you and problem is solved.

Regards,

VM

Edited by: V M on Oct 6, 2008 10:49 AM

Answers (3)

Answers (3)

former_member226856
Participant
0 Kudos

Is it possible when ever a PR get triggered from PM Order, system ask what PR type you would like to select ?

peter_atkin
Active Contributor
0 Kudos

VM,

Yes, this should be possible.

You need to get your ABAP programmers to call a standard function module popup such as POPUP_TO_DECIDE_LIST.

PeteA

former_member226856
Participant
0 Kudos

hello,

The user exit is working only for service PR not for non-stock material PR. For non stock PR the system is picking NB as PR doc type. What should I do so that system picks same PR doc type 'ZTAR' for both type of PRs.

Regards,

VM

peter_atkin
Active Contributor
0 Kudos

User-exit [COZF0002: Change purchase req. for externally procured component|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf]

former_member226856
Participant
0 Kudos

Thanx,

it is working.

VM

Former Member
0 Kudos

HI

generally for 30 PM order we have one doc type only

-ashok

former_member187991
Active Contributor
0 Kudos

hi

in standard it is not possible, you have to use user exit COZF0001 for the same

regards

thyagarajan