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

No PO Created in backend system after Bid is accepted

We are on SRM 4.0. using Classic Scenario

We can create a bid invitation in SRM and we have used the BADI - BBP_DETERMINE_LOGSYS to indicate to the system to create a purchase order in the backend system after the bid is accepted. We keep getting the following error in SM21: Purchase orders cannot be created without IPC pricing

Did you have to turn on the IPC in order to create the purchase order in R/3? Also, if you have used the BBP_DETEMINE_LOGSYS Badi and have example code that might be helpful as well.

If anyone has some useful BID INVITATION configuration document or tips that will be appreciated. email id is ashwani.bhalani@gmail.com

Thanks,

Ashwani

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2008 at 11:13 PM

    Hi,

    The BADI is used in case of Backend contract creation.Please read the documentaion of the BADI carefully.

    You can use the Business Add-In BBP_DETERMINE_LOGSYS to define your own

    criteria for determining the backend system / company code. You use thi

    BAdI to determine the source system for

    o Shopping cart items

    In the standard system, the backend system is determined using the

    product category Define Backend Systems. The backend System is

    placed in the field ITEM_DATA-LOGICAL_SYSTEM. Then the system calls

    the Business Add-In BBP_DETERMINE_LOGSYS.

    The company code is put in the field ITEM_DATA-BC_CO_CODE. Then the

    system calls the Business Add-In BBP_DETERMINE_LOGSYS.

    o Contracts

    In the standard system, the system creates contracts locally from

    Sourcing and SAP Bidding Engine You can use this BAdI to determine

    backend system.

    Example

    Shopping Cart:

    Backend system A is determined for product category OFFICEMATERIAL. You

    also want to consider the vendor and purchasing organization fields

    during determination of the backend system. The purchase order is to be

    created in backend system B for the vendor OFFICE1 and purchasing

    organization 0001. You overwrite the field ITEM_DATA-LOGICAL_SYSTEM wit

    B.

    Contract:

    The local system used by the standard system to create contracts is

    XYZ4711. In the field CV_LOGSYS, you enter the logical system ABC0815

    that links to a backend system. In this way, contracts are created in

    the backend system.

    Sample codes for the BADI:

    method IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS.

    data: w_acct_data type enriched_acct_data.

    data: w_acct_icom type BBP_PDS_ACC_ICOM.

    data: w_et_messages type BBP_TMESSAGES_BADI.

    data: re_obj(40).

    data: imkey(8).

    field-symbols: <waItem> type bbp_oci_enritem.

    field-symbols: <waAcct> type bbp_oci_enracct.

    field-symbols: <f1> type any.

    if not acct_data[] is initial.

    loop at item_data assigning <waItem>.

    loop at acct_data assigning <waAcct> where line = <waitem>-line.

    check <waAcct>-acc_cat = 'RE'.

    if not <waAcct>-acc_str is initial.

    CALL FUNCTION 'Z_RE_ACCT_ASSGN'

    EXPORTING

    ACC_STR = <waAcct>-ACC_STR

    BUKRS = <waItem>-BE_CO_CODE

    IMPORTING

    RE_OBJ = RE_OBJ

    IMKEY = IMKEY

    TABLES

    BBP_RETURN = w_et_messages.

    endif.

    if not imkey is initial and w_et_messages[] is initial.

    move imkey to <waAcct>-rl_esk_key.

    move re_obj to <waAcct>-acc_str.

    modify acct_data from <waAcct>.

    endif.

    endloop.

    endloop.

    endif.

    endmethod.

    OR

    method IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS.

    data: ztprod type zprod1.

    data result(4).

    data tline TYPE LINE OF bbpt_detlogsys_item.

    loop at item_data into tline.

    case sy-uname.

    when 'BUYER3'.

    if tline-product eq '69E2D3C8AF4B5C4CBDCC73A50C58EFA2' or

    tline-product eq '6BB856ADA25D584FA0B5A2FDCDA27766' or

    tline-product eq 'F31AD68E8EDCE646A9C7ECC4F24CE464' or

    tline-product eq 'ABC0320E1A37E743B75406DF0B7C53BF' or

    tline-product eq '3C0665006B2D2A43B3A1CC74B560E8A9' or

    tline-product eq '8F97635441496647A69CD021A5FFF4D2'.

    tline-be_co_code = '1000'.

    tline-logical_system = 'F47CLNT800'.

    tline-BE_PUR_ORG = 'O 50000660'.

    tline-BE_PUR_GROUP = 'O 50000662'.

    modify item_data from tline.

    endif.

    when others.

    select single * from zprod1 into ztprod where product eq tline-product.

    if sy-subrc eq 0.

    tline-be_co_code = '3000'.

    tline-logical_system = 'F47CLNT800'.

    modify item_data from tline.

    elseif tline-product is initial.

    tline-be_co_code = '3000'.

    tline-logical_system = 'F47CLNT800'.

    tline-BE_PUR_ORG = 'O 50000612'.

    tline-BE_PUR_GROUP = 'O 50000614'.

    modify item_data from tline.

    endif.

    endcase.

    endloop.

    endmethod.

    Also if you have activated "EXTENDED CLASSIC SCENARIO"( SPRO>Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Activate Extended Classic Scenario),then IPC is mandatory for ECS .

    BR,

    Disha.

    Do reward points for useful answers.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yes - have a look in the Contract transaction - there you'll find the missing contract.

      When you push the Create Contract Button you should get a green message stating, that a contract has been created not complete; something like that. No error, as it is the normal process. Go to the contract transaction and there should be an entry in the overview with a contract in held status. The document type depends on your settings in the customizing for follow on document.

      Cheers,

      Claudia

      P.S.: In case you want to reward the people in the community, open a new thread with your question. All members will be happy to help and also like getting a smile when solutions are found and points are reward 😊

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2008 at 08:50 PM

    Ashwani,

    Refer to SAP Note 539720 (Simplified Pricing - classic scenario)

    Regards,

    Suren

    Add a comment
    10|10000 characters needed characters exceeded

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.