cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple PR doc type for Maintenance order - Non stock item category

Former Member
0 Kudos

For non-stock item requirement in PM, we create a maintenance order and indicate item category as "N" in components tab. Accordingly a purchase requisition is created as per configuration. We have assigned PR doc. Type “FO – Framework requisition” for Maintenance Order Category.

SPRO - PLANT MAINTENANCE & CS - Maintenance and Service Processing - Maintenance and Service Orders - General Data - Define Account Assignment Cat. and Document Type for Purchase Requisitions

Now according to the new requirement, we need to have different PR Doc type as per CONTROL KEY mentioned in the Maintenance Order.

Example:

If the Control Key is “PM01 - Plant maintenance – internal” the purchase requisition document type should be “NB – Purchase Requisition”. If the Control Key is “PM03 - Plant maintenance-External(services)” the purchase requisition document type should be “FO – Framework Requisition”.

Please advise how to configure the same.

Regards

Sathish Kumar Balakrishnan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Above requirement was completed using enhancement "COZF0002 Maintenance order: Change purchase requisition for external component Area".

Issue resolved.

Regards

Sathish Kumar Balakrishnan

Former Member
0 Kudos

Hi Satish

Thanks for the post. It seems like no easy way to deal with this problem. I am working with a Construction company have a huge spend on the PM/CS side.  This problem surfaced out while we are implementing the Requisition process (Use to be direct PO creation and manual process).

My question is How big is the enhancement?

Is it possible to share any technical documents with us?

my mail id is

Partha_kashyap@infosys.com

Thanks again

Partha

Former Member
0 Kudos

Hi Partha,

This is a simple enhancement. In our scenario, we had configured PR document type "FO" in SPRO settings for "Document Type for Purchase Requisitions".

Hence to have "NB" PR document type whenever material components are being indented through maintenance order, we used this enhancement COZF0002

Please instruct your abaper to add similar logic, as shown below.

Enhancement:COZF0002

Functional module:EXIT_SAPLCOZF_002

Include: ZXCOZU02

Logic:

IF sy-tcode eq 'IW21' or sy-tcode eq 'IW22' OR sy-tcode eq 'IW28'  OR sy-tcode eq 'IW31' or sy-tcode eq 'IW32'  OR sy-tcode eq 'IW38' .

  IF resbd_imp-postp = 'N'.
    eban_ord_cust_chg-bsart = 'NB'.
  ENDIF.

endif.


Hope this helps.


Regards


Sathish K B

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sathish,

Just a related inquiry on this.  Do you know how it's done to have the same logic applied to a specific operation control key? 

So, if I have an operation with PM02 and I want this to create a different type of purchase requisition from what is defined in my configuration.  How do I do this?  I have the config set to 'FO' type as you mentioned above and for PM02, we'd like SAP to create an NB type. 

Thanks!