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

Convert Purchase Order to Requisition when contract void


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,


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 comment
10|10000 characters needed characters exceeded

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,


    Add 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