Purchase Contract creation in SRM

Hi everybody,
I have a requirement. I need to create purchase contracts in SRM. Data is comming as a file from Oracle server. I tried searching for a BAPI to create contract, not able to find it out. Tring to use eCATT for this. Transaction BBP_CTR_MAIN is giving error in the recording of eCATT.
Pleae advice we how can I create the contracts in background from flat file.
Thanks in advance.
Mahitha

Hi all experts,
I was unsuccessful like some of the users here in trying to create a contract at the backend. I have tried using "BBP_PD_CTR_CREATE" but i alway get 2 error message: create exactly one vendor and create exactly one employee. What could be wrong with the codes??
data: pc_id like CRMD_ORDERADM_H-OBJECT_ID.
data: pc_header_out like BBP_PDS_CTR_HEADER_IC.
data: pc_header_in like BBP_PDS_CTR_HEADER_D.
*data: pc_item type table of BBP_PDS_CTR_ITEM_D with header line.
data: pc_item type table of BBP_PDS_CTR_ITEM_ICU with header line.
data: pc_text type table of BBP_PDS_LONGTEXT.
data: pc_partner type table of BBP_PDS_PARTNER.
data: wa_part like line of pc_partner.
data: pc_org type table of BBP_PDS_ORG with header line.
data: pc_message type table of BBP_PDS_MESSAGES with header line.
Insert dummy data*****************************************************
pc_header_out-CURRENCY = 'SGD'.
pc_header_out-PROCESS_TYPE = 'PCTR'.
Insert Purchase Org data *********************************************
pc_org-PROC_ORG_RESP_ID = 'O 50000026'.
pc_org-PROC_ORG_ID = 'O 50000025'.
pc_org-PROC_GROUP_ID = 'O 50000026'.
Insert BP data - vendor, employee Purch Org and DSTA******************
*DSTA
wa_part-PARTNER_ID = '0000000001'.
wa_part-PARTNER_GUID = '4BD22A16AFA2B74D844E1595998AE7E5'.
wa_part-PARTNER_FCT = '00000038'.
wa_part-ADDR_TYPE = '1'.
wa_part-ADDR_NO = '0000010469'.
append wa_part to pc_partner.
clear wa_part.
*employee
wa_part-PARTNER_ID = '0000000006'.
wa_part-PARTNER_GUID = 'E3D4AAE842930D41B7B107F3CC60B44D'.
wa_part-PARTNER_FCT = '00000026'.
wa_part-ADDR_TYPE = '3'.
wa_part-ADDR_NO = '0000010472'.
wa_part-PERS_NO = '0000010474'.
append wa_part to pc_partner.
clear wa_part.
*vendor
wa_part-PARTNER_ID = '0000000311'.
wa_part-PARTNER_GUID = 'F0BC646129BE2D4BB7E301F8F3708B1E'.
wa_part-PARTNER_FCT = '00000019'.
wa_part-ADDR_TYPE = '1'.
append wa_part to pc_partner.
clear wa_part.
*purch org
wa_part-PARTNER_ID = '0000000002'.
wa_part-PARTNER_GUID = '48459C575651D04091BAF1B9A554CF51'.
wa_part-PARTNER_FCT = '00000051'.
wa_part-ADDR_TYPE = '1'.
wa_part-ADDR_NO = '0000010470'.
append wa_part to pc_partner.
clear wa_part.
Item data
pc_item-CATEGORY_ID = 'ARMOUR'.
pc_item-QUANTITY = '233'.
pc_item-PRICE = '1234'.
pc_item-VALUE = '4321'.
pc_item-UNIT = 'EA'.
pc_item-PRODUCT = 'B78A60018B6018418F6D0F1632E10F69'.
pc_item-DESCRIPTION = 'Russian T72 Tanks'.
*--Reset Buffer Tables
CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'.
Create PC*************************************************************
call function 'BBP_PD_CTR_CREATE'
  exporting
    I_HEADER = pc_header_out
  importing
    E_HEADER = pc_header_in
  tables
    I_ITEM = pc_item
    E_PARTNER = pc_partner
    I_ORGDATA = pc_org
    I_LONGTEXT = pc_text
    E_MESSAGES = pc_message.
write: pc_header_in-guid.
the guid will be all 0s due to the error..... Thanks for taking time to read this. I will really appreciate if anyone is able to help me solve this. Of course point will be rewarded. Thanks again!

Similar Messages

  • Contract Creation in SRM 7.0 classic scenario

    Hi All,
    We are using SRM 7.0 Classic scenario with ECC 6.0 EHP 4 and CLM 2. We are creating contracts in SAP CLM and pushing into as Global outline agreement.
    Question is  -
    1)  Can we  create  contracts in SRM 7.0 Classic scenario ?
    2) Instead of transfering the ECC outline agreement to SRM , can we directly use ECC outline agreement as a source of supply in SRM while creating a SC.
    3) How  we can  transfer the SAP CLM 2.0 contracts into SRM 7.0 and use a source of supply there while creating a SC ( Considereing that these CLM contratcs are also transfered to ECC as a outline agreement)
    What are the mandatory fields required to transfer the CLM contracts contracts to ECC  outline agreement -  I know ,Vendor, Purchase org, Pur grp, company code are required - is product catagory is also a mandatory field.
    Rgds/Pawan

    Hi Pawan,
    Please find the answered for your questions:
    Question is -
    1) Can we create contracts in SRM 7.0 Classic scenario ?
    Mitesh: Yes we can very well create in Classic Scenario as well in SRM 7.0.SC can be pushed to SOCO based on the Prod Category configuration in SPRO.From SOCO PO, Contract and RFX can be created for SC.
    2) Instead of transfering the ECC outline agreement to SRM , can we directly use ECC outline agreement as a source of supply in SRM while creating a SC.
    Mitesh: I dont think we can use ECC outline agreement as source of supply in SRM while creating SC.Contract replication in SRM 7.0 with EHP 4 ECC is eSOA based and ONLY Outbound to SRM (inbound to ECC).Contract cannot be replicated from ECC to SRM.
    3) How we can transfer the SAP CLM 2.0 contracts into SRM 7.0 and use a source of supply there while creating a SC ( Considereing that these CLM contratcs are also transfered to ECC as a outline agreement)
    +Mitesh: Standard intergeration of CLM/ESO to SRM 7.0 is very much there in roadmap for future releases of SRM/ESO.+
    +As of now there is a consulting solution available to integerate ECC and ESO/CLM.+
    +This logic can be leveraged to integrate ESO/CLM to SMR 7.0 (or lower version) requiring Developement effort from SRM functional,SRM technical,PI, Basis,ESO and java consultants.+
    +Such contracts can be forced to be used as Source of Supply or alternatively replicated to ECC Via standard repliation scenario.+
    Hope this helps.
    Regards,
    Mitesh

  • Create Purchasing Contracts on SAP SRM system

    Hi all,
    I need to know how can I create purchasing contracts on SRM system: I must do it only through web portal or can I create them through SRM Transactions? What are the transactions which allow me to do this?
    Thanks in advance, best regards,
    Maria

    Hi Maria,
    In addition to what Masa has replied, the system does not allow the transaction to be processed in GUI once it is classified as Easy web transaction.
    BBP_CTR_MAIN is the transaction for Processing contracts. You can maintain the transaction using SE93 txn code.
    If you click on display button you can see that the transaction is classified as Easy web transaction by activating the radio button.Once this setting is deactivated the transaction can be processed in GUI.
    You can test the transaction by clicking on the Test icon on the menu bar.
    Hope this makes you more clear.
    Award points for helpful answers.
    Rgds,
    Teja

  • Contract creation in SRM 7.0

    Hi,
         We are using SRM 7.0 as backend ECC EH4. I want to create Global Outline Agreement (GCTR) in SRM which will replicate on ECC but I donu2019t want to use PI so thatu2019s why I mentioned system type ERP_2.0 instead of ERP_4.0 in Define System Landscape because I donu2019t want to use CCTR.
        Internal Number range in SRM and External Number Range in ECC for Contract is same. Document type GCTR defined in ECC and Transaction type in SRM is same.  Defined Message type COND_A (process code COND) and BLAORD (process code BLAO) in ECC system as Inbound Parameters.
        Badi BBP_CTR_BE_CREATE has been implemented in SRM for company code and
    Badi  BBP_CTR has been Implemented in ECC for mapping company code .
        Same settings has been defined for SRM 5.0 and Contract has been replicated in backend system but in SRM 7.0  Contract is not replicating in ECC system as well as I am not getting any logs in WE05 , SMQ1 , SMQ2 , SLG1 , SMW01 , BBP_CTR_MON and RZ20 whereas in Contract Status it is showing RELEASED status.
        In many threads I read that if system type defined in System Landscape as ERP_2.0 or ERP_3.0 then PI is not mandatory and Contract or Purchase Order created through Idoc / BAPI. Is it possible or not or if possible then which settings I am missing or which monitoring transactions I have to use , please suggest me.
    Regards,
    Abhijeet

    SAP Note 1268821 - SRM 7.0 / ERP 6.04: Config. of Central
    Contract Management
    but your requirement is different
    IDOC technology they want to replace to XI .
    but why do you hate to do XI
    do you have any specific reason for this?
    ehp3 - idoc works well.
    PS:- check any posting error in BD87 - 51 STATUS ERROR CODE OR
    BBPD_CTR_IDOCREF - CAN YOU SEE ANY CONTRACT THERE.
    Muthu

  • Idoc settings for Backend Contract creation in SRM 5.0

    Hello,
    Im working on SRM 5.0 (HP 11) and want to create a Backend contract in R/3 (46C) directly.
    I do not need Local Contracts or GOAs en SRM!
    As I interprete the config guide for Sourcing (page 59 and 70-75, the scenario I need uses the BADIs:
    BBP_DETERMINE_LOGSYS   (determining Back End System)
    BBP_CTR_BE_CREATE (for Mapping SRM settings with R/3)
    I also understand that the Idoc configuration only needs to be done in the backend!!?  (page 73 / 74)
    Trx: WE42 and WE20.
    Is this correct? Or do I have to maintain also the the IDOCs config in the SRM system?
    Thanks for any clue.
    Aart

    Hi,
    Pls refer the foll thread for all settings:
    Follow-on contract from Bid Invitation
    BR,
    Disha.
    Do reward points for useful answers.

  • IDOC transfer during Contract Creation

    Hi All,
    I have a requirement with the contract creation in SRM contract management.
    Do you Know which IDOCs is/are transmitted to the ERP during a contract creation?
    Thanks in Advance!
    Martin.

    Hi Martin,
    To add further to Claudia's note, Message Types "BLAORD" & "COND_A" are set-up in ECC as incoming. There is no Mesage Type set-up for these (as OUTBOUND) on SRM side.
    In SRM, Message Type "BLAREL" should be set-up as INBOUND. This carries the release information for the contract from ECC to SRM.
    Cheers,
    Akash

  • Standard remote enabled bapi for creation of purchaser contract in srm

    Hello Friends
    Plz tell me is there any standard,remote enabled FM/BAPI in SRM system for creation of purchaser contract.
    I found BBP_PD_CTR_CREATE. But this is normal FM.
    I need BAPI like BAPI_CONTRACT_CREATE which there in ECC system.
    Plz help.
    Thanks & regards,

    One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.

  • SRM 7.01 Backend Contracts creation with XI/PI ESOA Service

    Hello, we are implementing SRM 7.01 PPS with Extended Classic Scenario. We need to create contracts backend contracts ( ECC) from RFX RESPONSE at SRM. As we have ECC 6.0 EHP 5 we have to use Esoa services. The problem is that we have set up PI but no contract is created at ECC ( not even in SRM) when we pressed button "  create contracts" from rfx response even thought the message at SRM is " contracts XXXXXX created" I think we are missing some customizing in ECC.
    We have already implemented badi BBP_DETERMINE_LOGSYS
    I read note 1268821 who explains that we have to activate business function LOG_MM_P2PSE_1 in ECC but I think this only apply for "CENTRAL CONTRACTS" and we dont want to use central contracts. We just want to creates contracts at ECC from rfx response in SRM. I couldn´t find any documentation about this, just for Central Contracts or backend contracts creation (through idocs) . Any idea?
    Thanks in advance for your help!
    Best Regards
    Liam

    The first interface that try to get out from SRM was " PurchasingContractERPRequest_Out_V1", thus based on this interface we made the configuration on PI. So, after pressing button " create contract" on srm if we execute tx SXI_MONITOR in SRM we found the interface " PurchasingContractERPRequest_Out_V1" and in the backend system ( ECC) at tv SXI_MONITOR we found interface PurchasingContractERPRequest_In_V1 for this contract with black and white flag ( processed successfully) but no contract created in ECC not even SRM.
    Anyway we have checked that inbound proxy  is executed but we dont see any contract created
    Is this the right Interface? We are missing something?
    Best regads and thanks again for your help!

  • Purchase order creation with reference to Contract

    Dear All
                    Purchase order creation with reference to quantity contract the contract quantity is not copied in to po. any configuration copying rules required. please guide
    Regards
    Anand.

    Hi Buddy
    The correct business process is RV Preq created by a user from any department then buyer converts this Preq to a MK contract with some quantity keeping the duration as some months/year. Then as and when material mentioned in the contract is required during the validity period of the contract MRP creates Preq or buyer manually creates NB preqs , same are then converted to PO but these PO are released against MK contract. So qty in PO are different then mentioned in contract because contract is for  a large qty keeping in mind the duration (for example one year).
    Regrds
    Yogesh

  • Smartforms on Purschase Order and Purchasing Contracts in SRM system

    Hi Friends,
        Can anyone provide sample example of smartforms on Purchase Order and Purchsing Contracts in SRM system?
    It is great, if you send me valuable material to create smartforms on PO and Purchase Contracts in SRM system.
    Thanks in Adv.
    BABA

    Hello BABA,
    Try this link. Hope this helps.
    [Re: Creating SRM PO with Smartforms BBP_PO;
    Please discuss this issues in SRM- General forum for better replies.
    Cheers,
    Suvendu

  • Idoc Generation after Purchase Order Creation through trading contract.

    Hi All,
    When a Purchase Order is created via trading contract, I need to generate an Idoc and pass details of the Purchase Order created to the Partner System.
    Can anyone suggest any Function module or user exit which gets called while Purchase Order creation through trading contract, so that I can fill the Idoc with necessary details of the Purchase Order and send that to the Partner System?
    Thanks in advance.

    Hi Tejas,
    I do not know about Trading Contract but what all I can say it that Check if Change pointers are getting written Once the PO has been created, If "Yes" then probably you do not have to do anything for craetion of Purchanse Order. You can use RBDMIDOC Program to create IDOCs from change pointers.
    Refer [this|http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm] for more information on change pointers.
    Regards
    Shital

  • Updating purchasing contracts in SRM from external system ( XI )

    Hello friends,
    We have a requirement to update / create purchasing contracts in SRM from external system ie e-sorcing . We are getting the structure of contract from
    xi proxy.
    We are using function modules
    BBP_PD_CTR_CREATE
    BBP_PD_CTR_UPDATE
    to create / update contracts.
    The issue is , how we will come to know an existing contract is got updated in
    the external system and , is there any function module/ bapi available to get those
    updated contract records or is there any way to do this.
    It would be great if anybody can provide some helpful information.
    Thanks..
    Jayaram

    Hello BABA,
    Try this link. Hope this helps.
    [Re: Creating SRM PO with Smartforms BBP_PO;
    Please discuss this issues in SRM- General forum for better replies.
    Cheers,
    Suvendu

  • SRM contract creation date

    Hi, y'all
    Reckon where contract creation date is in SRM?  What table is it on?
    I've Googled and Googled.  Can't find a clue.
    Any documentation on the tables in SRM?
    Thanks.

    Hi Perry,
    How about table CRMD_ORDERADM_H?
    You should be able to find the creation date time of SRM document in this table.
    Please let me know if I have any misunderstanding of your query.
    Best regards,
    Wendy

  • Distribution of purchase contracts from SRM4.0 to ERP 2004

    Hello all,
    Any body has experience in distributing Purchase contract from SRM to R/3.
    i have activated BADIs
    BBP_DETERMINE_LOGSYS;BBP_CTR_BE_CREATE in SRM and BBP_CTR in R/3.
    Right now i can create contracts in EBP,but i unable to transfer them to backend.
    Until now i have followed the documentation stategic sourcing configuration guide.
    Please give your valuble information to distribute service contracts.
    Thanking you,
    Mahesh Madasu.

    Hi Mahesh,
    If you are using classic scenario then try these:
    Go to Table: BBP_DOCUMENT_TAB. Check whether your contract no.
    Then go to T. Code: WE20 in Backend system.
    Check for the Partner TYPE of you backend system in Partner profiile.
    Go to classification TAB. And check the partner status is Activate or not. The status should be 'A'. Check the inbound Parameter BLAORD is present or not.
    Then go to YOur SRM system and go to WE20 and activate the partner status by setting the parameter to 'A'. Then redo the processes.
    This may help you.
    Regards,
    Charles

  • Vendor block code for release order creation but no purchase order creation

    The client has a vendor block code which when applied to a vendor through vendor block screen should allow release order creations against existing contracts and ARC but it should not allow purchase order creation. However, it is allowing purchase order creation also. Can anyone tell how to achieve this selective treatment that allows RO creation against existing contracts and ARCs' but no PO creation.
    Are there any settings or configurations that have to be made in SPRO and other areas to achieve this.I would appreiate if anyone could give in a detailed and step wise solution.

    Hi
    Take out all the blocks on company code and purchasing organization in XK05.
    Only put block function as 01 (purchase order). It will not allow you to create purchase order but you can create contracts and release orders against contracts.
    Thanks
    Edited by: Praveen Raghavendra on Jan 8, 2009 2:30 PM

Maybe you are looking for

  • Refer Portal service in EP7.3

    Hello all, step 1 : migrated  Portal service par 7.0 to 7.3 Dc  (susezp/scsusezp/dc_portalservice_ear) by using Portal Dcs under track added required code. step2 :migrated  portal component par 7.0 to 7.3 Dc  (susezp/scsusezp/dc_s2p_announcement_ear)

  • ITunes Not Syncing Album Info

    An album I had in my iTunes library had the wrong year in it so it was not in the correct order chronologically so I changed the album release year in this case from 2008 to 1994. However despite it changing in iTunes OK when it syncs over to my phon

  • Can't print after 10.6.8 upgrade.

    iMac. HP Photosmart C4680. It will spit out one page (last numerically) before pausing the job.

  • Green screen and flickering screen

    New IPad was working just fine taking videos on trip.  All of a sudden no replay and/or screen turns green and pictures no streaming continuously.

  • Barely audible sound from X-fi to Z5500s

    (Barely audible sound from X-fi to Z5500s? For the past few weeks every other day or so after turning on my computer I get barely audible sound from my computer speakers (Z5500s) connected through the 6 ch direct. I can make out music or whatever it