Creation of po in srm

Hi friends,
I am facing problem with  PO creation in srm
data: poe_header like bbp_pds_po_header_ic.
data: poe_att   type bbpt_pds_att_t with header line.
data: poi_header like bbp_pds_po_header_d.
data: poi_att type bbpt_pds_att_t with header line.
data: poe_item like bbp_pds_po_item_icu occurs 0 with header line.
data: poe_acct like bbp_pds_acc occurs 0 with header line.
data: poe_partner like bbp_pds_partner occurs 0 with header line.
data: poe_text    like bbp_pds_longtext occurs 0 with header line.
data: poe_org like bbp_pds_org occurs 0 with header line.
data: poe_org like bbp_pds_org occurs 0 with header line.
data: poi_item like bbp_pds_po_item_d occurs 0 with header line.
data: poi_item like bbp_pds_po_item_d occurs 0 with header line.
data: poi_acct like bbp_pds_acc occurs 0 with header line.
data: poi_att type bbpt_pds_att_t with header line.
data: poi_limit like bbp_pds_limit occurs 0 with header line.
data: poi_messages like bbp_pds_messages occurs 0 with header line.
data: guid_counter_item like bbp_pds_po_header_ic-guid.
data: guid_counter_sub  like bbp_pds_po_header_ic-guid.
header
  poe_header-guid          = 1.
  poe_header-posting_date = sy-datlo.
  poe_header-currency = reqheaders-currency.
  poe_header-description = reqheaders-doc_name.
        poe_att-guid     = att_guid.
        att_guid = att_guid + 1.
        poe_att-p_guid   = guid_counter_item.
        append poe_att.
      poe_item-guid         = guid_counter_item.
      poe_item-parent       = 1.
      poe_item-manu_prod    = reqlinemas-manu_mat.
      poe_item-description  = reqlinemas-short_text.
      poe_item-ordered_prod = reqlinemas-material.
      poe_item-dp_stge_loc  = reqlinemas-store_loc.
      poe_item-product_type = '01'.
      poe_item-number_int = item_no.
      item_no = item_no + 10.
      append poe_item.
        poe_acct-guid       = guid_counter_sub.
        poe_acct-p_guid     = guid_counter_item.
        poe_acct-acc_no     = reqaccts-serial_no.
        append poe_acct.
       poe_text-tdspras  = sy-langu.
        poe_text-counter  = reqtexts-counter.
        poe_text-tdformat = reqtexts-text_form.
        poe_text-tdline   = reqtexts-text_line.
        append poe_text.
  call function 'BBP_PD_PO_CREATE'
    exporting
      i_header   = poe_header
      i_save     = 'X'
      it_attach  = poe_att[]
    importing
      e_header   = poi_header
      et_attach  = poi_att[]
    tables
      i_item     = poe_item
      i_account  = poe_acct
      i_partner  = poe_partner
      i_longtext = poe_text
      i_orgdata  = poe_org
      e_item     = poi_item
      e_account  = poi_acct
      e_messages = poi_messages.
  call function 'BBP_PD_PO_SAVE'.
Thanks,
Asha

Hi,
   You have used numbers such 1 as guid which is worng and system will not accept it.
In SAP GUID is RAW data type with 16 bit or 32 bit.
It is created with function module "GUID_CREATE".
Assignment of guids and parent guid at item level need to be taken care....
Regards
kalandi

Similar Messages

  • Facing problem in creation Central contract in SRM 7.0 System

    HI Experts,
    We have implemented Classic scenario in P2P business application.
    We are facing problem in creation Central contract in SRM system as we using SRM 7.0 .
    Error show  Application error in back-end system  (SAP SRM outline agreement* & Differing time interval
    Status show Document complited ->Distribution Incorrect >Created>Complate > Released.
    Please Reply
    Sharad

    Hi Sharad
    some mapping error with ECC and SRM
    expand the COND /BLOARD . you must get some clue - in bd87 51 error code
    did you map pricing condition type with ECC and SRM?
    kindly check BADI mapping in SRM
    Muthu

  • Backend exit in Purchase Requisition creation from SC in SRM

    Hello,
    could please someone tell me which exit can be called in R/3 backend system during the creation of a Purchase requisition created form a SC in SRM?
    Thanks a lot.
    Guido

    Hi Guido,
    It does exist in ECC60 !
    However, maybe your release backend does not have it....
    Kind regards,
    Yann

  • Bidders creation upload program in srm

    Hello ,
    I would like to write upload program for bidders creation for the fields  which are existing SRM PORTAL for bidder creation.
    Could you please give me the code that how can we upload bidders in sap like webdynpro screen updating.
    Rgds
    NTR

    Could you please let us know the system setup you are working with i.e SRM &  backend system.
    You may explore Pgm: BBP_VENDOR_GET_DATA for further details as this a std. SAP program used to upload vendors from backend to SRM.
    Sandip

  • Material status blocks creation of reservation in SRM

    Dear All,
    We observe the following behavior in our SRM (5.0) System:
    If we create a caddy for a product that has the Cross-Plant Material Status : 04 (Material master, view Basic Data 1) in the Backend-System, the reservation can not be created. There is a message indicating, that it is not possible to purchase the product.
    If we create the reservation for the same product direct in the Backen-System, there is no problem.
    This is OK, if we do external procurement, but internal procurement should not be blocked in SRM.
    Do you know where we have to customize this message?
    Thank you.
    Best regards,
    Thomas

    Hi Thomas
    understood.
    not possible to purchase the product --
    is it having a purchasing view in ECC .
    If you did not pull this materials in to SRM , how can you procure from SRM web portal.
    first you need to select this material via internal goods and services in the srm web portal . then only you can order a material from SRM.
    if you pulled a material from ECC to SRM and it must be in COMMPR01.
    mUTHU

  • BP creation from EP in SRM 7.0

    Hi
    When we create BP from EP, system allows to save but it not getting stored.
    In Config of "Information on Automatic Download from Marketplace",
    We have given user root of Vendor group & not sure what values to be given in Marketplace ID.
    When we create from BBPMAININT , we are able to see all BP from EP.. EP connection to SRM looks to be working.
    What else is mssing
    Regards,
    NNK

    Thanks
    Solved. Entry was wrongly made in User group instead of Vendor root
    Regards,
    NNK

  • Creation of PO in SRM without Shopping cart manually.

    I have tried to Create PO in SRM without Shopping cart manually using transaction 'bbp_poc'.But got an error 'the attributes for user cannot be determined,
    Am I using the correct transaction or not.Do we have any other alternative to accomplish this.

    Hi Sam
    Why are you creating in the SAP GUI. Are you debugging ?
    Ideally, you should be creating the PO from Web Browser.
    There is a problem in your user master record. Looks like, your user is either not linked to organization element in PPOMA_BBP or your attributes in PPOMA_BBP are not complete. Pl see help links here to understand this:
    http://help.sap.com/saphelp_srm50/helpdata/en/b8/bdfc373db56203e10000009b38f842/content.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/84/a7e3389870c05ce10000000a114084/content.htm
    Alternatively, you just use a user id which is already working.
    Rgds
    Ramki

  • PR and PO creation in ECC from SRM 7.0

    Hi everyone,
    I have a pair of doubt. We are planning to upgrade SRM 3.0 to SRM 7.0 with ECC 6.0 ep 4 in a classic scenario. My doubts are:
    1.- Can we create a PR from a SC using PI by standard or is the same as the previous version (using RFC)??
    2.- Can we create a PO from a SC using PI by standard or is the same as the previous version (using RFC)??
    3.- We checked the documentation and there is a different type of contract, the central contract. This contract can be transfer to ECC?? if yes, is it transferred using PI??
    Thanks,
    Ivá

    Purchase Requisition transfer from ECC to SRM via XI
    Hi Ivan
    for self service procurement XI is not required .sorry for the confusion.
    please see the donald reply here
    XI is mandaory in PDP .
    SRM 550 - no required in PDP.
    Here there is no BBP TRANSFER job.
    Automatically done .
    Thanks
    Muthu

  • 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

  • SAP SRM 7.0 CS - Automated Creation of Confirmations

    Dear Experts,
    in SRM 7.0 CS, i am facing the following question with respect to the creation of confirmations in SRM.
    In our process, once the R/3 PO is created for the shopping cart,  the requisitioner needs to create the confirmation in SRM. Thus, the GR is automatically done in R/3 and the three way match can happen at the time of Invoice Posting.
    Is there any possibility, to automate the creation of confirmations in SRM, for items that are below a certain value?
    The idea is, to spare the requisitioners from the manual creation of confirmations for low value items.
    Thank you very much for any ideas

    Hi Iftekhar,
    thank you very much for the quick answer. Just for my understanding:
    - is your idea usable for Classic Scenario that i have in place? I mean, the PO itself we can not steer/influence from SRM, because it is created in R/3. Or were you pointing to the usage of the BAdis with Extended Classic?
    - Or is it possible to steer/change the SRM EBP Shopping Cart with the BAdis you have mentioned (within Classic Scenario), in order to influence whether the PO will be created with the GR flag or not in R/3?
    - Or do you mean that i need to go on the R/3 side and use the BAdis there and thus steer/influence the PO at the time of its creation in R/3?
    Thank you very much for the clarification,
    Regards,
    Dima

  • Goods Confirmation in SRM 7.0: requester, recipient, in behalf of

    Hi GURUS,
    I tried to find out in the others threads, but I still have dubts regarding Goods Confirmation creator.
    We are working on SRM 7.0 SP3, with basic employee.
    In the previous release of SRM when an employee went to Goods and Services Confirmation could decided the role in the document: Receiver or Requester. (Today we can search the Goods Confirmation ALREADY created with this kind of roles, but doesn't help in the creation).
    Now in SRM 7.0 we have in the "Create Confirmation" iView the following text / fields:
    To create a confirmation, you need to select a purchase order as a reference
    Proceed as follows: search for the required purchase order, then select it from the search results below
    Purchase Order Number:
    Item Description:
    Timeframe:
    Product ID:
    Shopping Cart Number:
    Shopping Cart Name:
    That is not enough.
    Moreover if an employee creates a Shopping Cart in behalf of someone (we give the professional iView to the employees), this other user doesn't have the opportunity to create a Goods Confirmation in the POWL of the Shopping Carts.
    So: did SAP forget some functionalities?
    We are working on the Classic Scenario and the list of the Purchase Order ready for the Goods Receipt is horrible.
    Did you have the same problem?
    Do you know a way or manual workflow to have the old funcitonality?
    Thanks!
    BRs,
    Maria

    Hi Raj,
    The requester attribute is used for Shop on Behalf functionality. This makes creating shoppingcarts and confirmations available for employees. Therefore i believe that the configuration of this attribute in your central recipient scenario is obsolete.
    I think that you havn't configured the SYS attribute in your organizational schema. This attribute tells the system where to look for your inv/confirmation documents. Include all systems here, in your case: Add your local SAP SRM logical system name. This should resolve your problems.
    Ps. Also try giving a (couple) of parameters when searching for your PO document from the central recipient transaction, this helps (speed up) searching for a reference document.
    Kind regards,
    Tim
    Edited by: T. Schuffelen on Jul 14, 2010 12:29 PM

  • Price Masking in SRM 7.0

    Hi Masa/Muthu/Viru
    We have upgraded from SRM 3.0 to SRM 7.0
    our client requirement is to do price masking for external contractors only.
    External contract will create shopping cart,do the confirmation .
    I  have to do price masking for the external contractors in Shopping cart,Confirmation,Purchase order and invoice.
    I can copy the standard feeder SAPSRM_FEEDER_SC and copy to ZSAPSRM_FEEDER_SC and make the price invisible.
    similarly for P.O ,Confirmation and invoice. Is this correct.
    (or) any other customization is there
    Where we can attach this feeder to the external contractor only.
    Internal employees should see the prices in all areas
    Please give your inputs
    Regards
    G.Ganesh Kumar

    Hi Ganesh
    this is the new feature facility in SRM 700.
    requester indeed does not know the contract price while creating shopping cart in older version. but since SRM 700 onwards the requester can see the material contract price while assigning the source of supply.
    but now your requirement is not to show/ shows  the contracts price to REQUESTER .
    i think by technical resource help you can hide the price the REQUESTER for all contract material price and you can do some validation your internal contract or EXTERNAL Contract.
    However while creating shopping the price is still shows material price and upon development you can do some little enhacement to copy the price from assigned contract so that approver really understand the true value of total cart.
    SAP rule is that when you refer the particular contract in the request. This contract price will be copied into the purchase order creation time only TILL SRM 550 BUT SRM 700 onwards
    Note 1428563 - Contract price is not taken over in SC when there is one SOS
    When there is one Source of supply in Shopping cart, it gets assigned automatically. But when the user enters product details along with manual price in Item overview and click on check, even though SOS is automatically assigned, manual price is considered as item price instead of SOS price.
    Muthu

  • Workflow Problem between  SRM & ECC

    Hi,
      We are facing a typical scenario in the workflow for Purchase Requisition.
    System:
    1.     SAP ECC 6.0
    2.     SAP SRM 5.0
    Problem Description:
    1.     In our landscape, ECC is connected to SRM portal for creation of PRs through SRM.
    2.     For this the user logs into SRM system and creates a shopping cart. After creation of shopping cart, it goes for approval in SRM system.
    3.     Once approved, BAPI 'BAPI_REQUISITION_CREATE' used at the SRM backend to create PRs in ECC.
    4.     After this, the workflow gets triggered and a work item is being sent for approvals in ECC.
    5.     There is an enhancement (ES_SAPLMEWQ) been done in the BAPI u2018BAPI_REQUISITION_CREATE' to trigger the workflow.
    6.     We have used the standard function module u2018SAP_WAPI_CREATE_EVENTu2019.
    7.     Now the problem is that, this is working fine in QAS and Dev systems. But it fails in PRD for some of the SRM triggered PRs.
    8.     After our initial analysis, we observed that, for the PRs, it has failed to trigger workflow, the initiator had logged into SRM using FR language where as, those PRs whose initiator had logged into SRM portal using u2018ENu2019 language it had worked fine.

    Recently I was facing a similar issue with SAP_WAPI_START_WORKFLOW function module where I did not maintain the container element name in the program with different language. I will request you to maintain the event container element name in France inside the program whefre you are calling the FM SAP_WAPI_CREATE_EVENT.  Most probably you will be using Text Symbol that you need to maintain in French language.
    Thanks
    Arghadip

  • No XML Messeges generation in SRM

    Dear Experts,
    I am working on SRM-SUS scenarion on SRM Server 7.0,
    I have correctly configured XI  ESOA Scenario  and also transferred vendors from SRM to SUS through SupplierPortalTradingPartner_CreateOrChange_Out messege type but
    PurchaseOrderRequest_Out for PO transfer is not getting triggered in sxmb_moni in SRM.
    Shopping Cart and PO creation is fine in SRM also workflow in SWU3 showing Staus Completed .
    I am not getting any XML messeges in sxmb_moni in SRM that's why PO is not getting released from SRM.
    Kindly suggest me the steps for the creation of XML messges in sxmb_moni in SRM.
    Regards,
    Pawan Keshwani

    Hi,
    I found the Issue on tracking Purchase Order by Purchaser Login :
    The system could not determine the "Ordering Party"
    I got this issue from the following path in PO by Purchaser Login in Portal:
    Path :  Header Tab -> Output->Details for Selected Output Document
    Kindly help me out to resolve this issue.
    Thanks.
    Regards,
    Pawan Kehswani

  • External requirement handling in SRM using classic scenario

    Hi Experts,
    We have a requirement in Classic scenario:
    PRs for MRO / indirect materials generated in PM / PS of ERP will be transferred to SRM using WF interface for approval process.
    Upon final approval in SRM, Follow-on document PO should be created in the back end.
    The SC in SRM should have the status u201CApprovedu201D & u2018Follow-on Documentu2019 created.
    My question is SRM standard will create a PO as follow-on doc after the SC is approved in SRM. How to control this creation of PO in SRM & only approval message should be transferred to back end ERP.
    Pls provide any suggestions or inputs on technical settings / adjustments to be carried out.
    Note that we cannot use PDP scenario as SRM will be used only for SC approval process.
    Tks.

    Thanks Muthu for the reply.
    The doc flow in the link above shows that after SC is approved, it will be available in sourcing cockpit for further processing (i.e. RFX, PO etc) in SRM. Our requirement should not be allowed to create PO in SRM and it should be allowed only in back end ECC.
    SRM is used to centralize the approval process where multiple back end systems are connected. (How ever, in future follow-on docs are also created in SRM).
    Current Target steps:
    1. Create PR from PM/PS in ECC (PR status will be "In release").
    2. Transfer PR to SRM and SC will be created (SC status will be "In approval").
    3. SC will be Approved / or Rejected in SRM. (PR status will be updated to Approved / or Rejected in ECC).
    4. If approved, follow-on doc PO (manual or automatic) will be created in ECC. (SC status will be updated to EX: "PO cretaed")
    When the SC is in the process of approval, user in ECC may add new items or make changes to PR from PM/PS. After these changes, the current approval WF for SC in SRM should be cancelled and new SC is created and so on...
    Sophisticated message synchronization is required between ECC & SRM.
    Is it possible to acheave the above solution (create PO only in back end system) using the steps mentioned in doc "5082a622-7310-2c10-1a9b-ef31dd69a770.pdf" with some modifications.
    Forgot to mention the following system details:
    ERP - ECC with EhP4 
    SRM - SRM 7.0
    Thanks,

Maybe you are looking for