Skip to Content
author's profile photo Former Member
Former Member

Convert Purchase Order to Requisition when contract void

Hi

We are using SRM 5.0, R/3 Backend is 4.6C.

For purchase orders for items with contracts that are expired or for incoming requests exceeding target quantity in the contract, we intend to have the purchase order converted to a purchase requisistion automatically.

To do this we have activated the BBP_TARGET_OBJTYPE and implemented the DETERMINE_TARGET_OBJECT_TYPES to convert the PO to PReq by doing the following:

wa_item-pack_objtype = 'BUS2105'. "set to PReq

CLEAR: wa_item-ctr_hdr_number,

wa_item-ctr_item_number.

MODIFY ct_item FROM wa_item.

when expired contract or target quantity of contract exceeded is detected.

However, on approving, this results in backend error:

Shopping cart 7100133540 (PReq. 8100022935): 06 722 Source not included in list despite source list requirement

One observation made when debugging the BAdI is that when the BAdI is being run, ct_item is already set to BUS2105 (PR).

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 01, 2006 at 09:21 AM

    Hi Ban,

    I do not understand why you want to convert a PO into a PR as usually it is a PR you one want to convert into a PO ....

    What is the explanation ot this business case ?

    Kind regards,

    Yann

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Yann

      This is because the users would like to automatically create a requisistion when their prior shopping cart ends up in error due to contract expiry or having exceeded target quantity.

      The purchase order would then be converted to a purchase requisition (PR) by removing the source of supply.

      The error seems to arise from attempting to create a PR in the backend. Is there a way of bypassing this source list check and simply create a PR from SRM?

      Removing the source of supply from the shopping cart before approval successfully turns it to a PR. This is what we would want to do, but after approval for situations when contract expires in the midst of approval, or target quantity has been exceeded with this order.

      Thank you

      Message was edited by: Ban Horng Tan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.