Automatic PO with preferred vendor

Hi all.
We Have SRM 5.0 ECS
I need to generate an automatic PO from a SC, this contains like source of supply the Preferred Vendor and price, in this type of purchase I do not use contracts
This is possible?

Hi Raul,
As it is clear from your statement that you are not using Contracts and you are talking about Free Form text Shopping Carts where you can enter Prefferred Vendor. You need to implement Doc Change BAdI to convert this preferred Vendor to fixed Vendor so that after approval Shopping Cart creates a PO.
Here is the sample code we had implemented for the very same purpose
BAdI BBP_DOC_CHANGE
METHOD if_ex_bbp_doc_change_badi~bbp_sc_change.
data: ls_partner type BBP_PDS_PARTNER.
loop at et_partner into ls_partner.
    if ls_partner-partner_fct = '00000039'. "Preferred vendor
      ls_partner-partner_fct = '00000019'.  "Fixed vendor
      modify et_partner from ls_partner.
   endif.
  endloop.
ENDMETHOD.
Thanks
Shrini
Award full points if this helps.

Similar Messages

  • Input currency GBP inconsistent with preferred vendor currency EUR for the

    Hello Experts,
    We are facing the below issue while creating the Shopping cart in production.
    "input currency GBP inconsistent with preferred vendor currency EUR for the line item 00001" .
    the same scenario we have replicated in the lower system, there we were able to create SC. we are using classic scenario.
    We have also checked that vendor currency in the backend system. everything seems to be fine.
    Please provide your valuable inputs.
    Regards,
    Santhosh Kumar. G

    Hello All,
    Issue has been resolved.
    There was a small mistake in the program.
    Regards,
    Santhosh Kumar G

  • Is Preferred vendor approved automatically. Is preferred vendor called VL

    Hi friends
    Is Preferred vendor approved automatically. Is preferred vendor called Vendor List.
    Regards
    Surya
    Edited by: surya K on Dec 29, 2008 4:03 PM

    Hi Surya,
    Whenevr you do "SHOP", under source of supply system will propose preferred vendor based on the list which we maintained on product level or product category level....if we not maintained these lists then system will propose you the last vendor of shopping cart.....
    Thanks
    Ravi

  • Automatic Workload Distribution (category + preferred vendor)

    Dear Experts,
    My current client needs to automatically distribute Shopping Carts and External Requirements based on a combination of product category and preferred vendor. Do you know any BADI or any possible way to do this without modifying the code?
    Any help would be greatly appreciated.
    Regards,

    Hi,
    You can try BBP_SC_TRANSFER_GROUPED.
    Go through this link : http://help.sap.com/saphelp_srm50/helpdata/en/43/15a4e228b62d23e10000000a1553f7/frameset.htm
    Thanks,
    Koushik.

  • Item Preferred Vendor Name with OINM OITM and OMRC

    Hi all
    How to add Item Preferred Vendor Name to this Query?
    SELECT T0.[ItemCode],T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, sum(T0.[InQty])[In Quantity], sum(T0.[OutQty])[Out Quantity],sum(T0.[InQty]) - sum(T0.[OutQty])[Balance Quantity],  T0.[Warehouse], sum(T0.[TransValue])[TransValue] FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode WHERE T0.[Warehouse]  between [%0] and [%1] and  T0.[DocDate]  <=[%2] GROUP BY T0.[ItemCode], T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, T0.[Warehouse]
    Kedalene

    Hi,
    Try this:
    SELECT T0.[ItemCode],T1.CardCode, T0.[CardName],T1.FirmCode, T2.FirmName, T1.ItemName, sum(T0.[InQty])[In Quantity], sum(T0.[OutQty])[Out Quantity],sum(T0.[InQty]) - sum(T0.[OutQty])[Balance Quantity],  T0.[Warehouse], sum(T0.[TransValue])[TransValue]
    FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode and T0.[CardCode] = T1.[CardCode] INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode left join OCRD T3 on T1.cardcode = T3.cardcode
    WHERE T0.[Warehouse]  between [%0] and [%1] and  T0.[DocDate]  <=[%2]
    GROUP BY T0.[ItemCode], T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, T0.[Warehouse], T0.[CardName]
    Thanks & Regards,
    Nagarajan

  • 'Preferred Vendor' and 'Vendor' in Purchase Order Partner Overview screen

    Hello All,
    Please can you provide me with some assistance to the following issue we have on our SRM 5.0 system......here goes.....
    In 'Define Sourcing for Product Categories config' , we have set the value to 'Sourcing is never carried out'.  Now, when we manually assign a Supplier to the Cart and have it automatically converted to a Purchase Order, the Purchase Order is created but only in Held Status as only the 'Preferred Vendor' in the PO Partner Overview screen is populated with the other 'Vendor' field remaining blank and requiring manual intervention by our users
    Please can someone explain how we are able make the system to always have the 'Vendor' field populated, therefore not needing any manual intervention.
    Your help would be appreciated,
    Thanks
    Steve Walsh Jnr

    Hi
    Implement the following method , in which you will force prefer vendor
    to fixed vendor for all applicable sc.
    IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_change.
    You will have to work with partner function 00000039 which is the
    prefered vendor to move into the partner function 00000019.
    In the BBP_DOC_CHANGE_BADI we provide the business partner data
    through the IT_PARTNER interface table. the prefered vendor or desired
    vendor has partner type 39, the regular supplier will have partner
    type 19. a switch from 39 to 19 should create a po instead of
    incomplete po.
    BR
    Muthu

  • Changing preferred vendor to fixed vendor in SRM PO- no currency conversion

    Hi All,
    We are on SRM_SERVER 550, SP11, ECS scenario.
    Users create carts where they enter preferred vendor.
    After approval we found that the PO's were created only in "Held" Status.
    So we did a conversion of the preferred vendor (PF 39) to Fixed vendor (PF 19) during PO creation using BBP_DOC_CHANGE_BADI- BBP_PO_CHANGE.
    We also implemented BBP_GROUP_LOC_PO,GROUP_PO so that all items with same preferred vendor are grouped into a single PO.
    We observed that PO is now getting created in ordered status, where the preferred vendor is getting converted to fixed vendor as per our code change. But we also found a problem- that the line item price doesnt get converted to Vendor order currency after the Po is created. For ex: If line item price is 10 GBP and Vendor order currency is EUR, the line item price in the PO shows 10 EUR. The currency conversion fro GBP to EUR does not happen.
    This does not happen for catalog items/PO's where the cart comes with a fixed vendor (PF 19).
    So there surely seems to be something missing in our code for converting Preferred vendor to fixed vendor which is preventing/not converting the currency as well.
    Please find below the code we are using in DOC_CHANGE_BADI for PO, is there any step in this which is causing the currency conversion to be skipped?
    CONSTANTS:C_FIXED_VENDOR   TYPE BBP_PDS_PARTNER-PARTNER_FCT
                           VALUE '00000019',
               C_PREFERRED_VEND TYPE BBP_PDS_PARTNER-PARTNER_FCT
                           VALUE '00000039'.
       READ TABLE ET_PARTNER INTO LS_PARTNER WITH KEY
                             P_GUID      = IS_HEADER-GUID
                             PARTNER_FCT = C_FIXED_VENDOR.
       IF SY-SUBRC NE 0.
       READ TABLE ET_PARTNER INTO LS_PARTNER WITH KEY
                             P_GUID      = IS_HEADER-GUID
                             PARTNER_FCT = C_PREFERRED_VEND.
        IF SY-SUBRC EQ 0.
          CLEAR IDX.
          IDX = SY-TABIX.
          MOVE C_FIXED_VENDOR TO LS_PARTNER-PARTNER_FCT.
       MODIFY ET_PARTNER INDEX IDX FROM LS_PARTNER TRANSPORTING PARTNER_FCT.
       ENDIF.
       ENDIF.
    Regardas,
    Srivatsan

    there is nothing in your code which prevents the conversion between the two currencies,
    it can be the following reason
    1) system as standard is not performing the conversion.
    2) conversion factors are not maintained (or) conversion factors are maintained and the expiry date for the conversion factors has passed.

  • How to change Preferred Vendor to Fixed Vendor in SC - SRM-5.0

    SRM Experts,
    We are using SRM 5.0, ECC 6.0 and PI-7.0.
    We are using classic scenario in SRM. When user selects the vendor with Outline agreement in SOS tab then SC creates PO in backend system because it has Fixed Vendor otherwise SC creates PR in the backend system.
    We have a new requirement in SRM to create PO instead of PR in the backend system if Purchasing Org=5xxx and total value of SC is less than USD 5XXX and Vendor is a Preferred Vendor in the SC.
    Do I need to use the Check Document BADI to check the total value of the SC and to check whether it is a Preferred Vendor and then in the Change Document BADI, change the value from Preferred Vendor to the Fixed Vendor before SC is saved?
    OR someone has any other suggestions on this?
    Which BADI is called first Check Document or Change Document before saving the SC?
    Thanks in advance!
    MP

    Hi Atul/Disha,
    I sent you my code and problem in detail at your email address.
    Here is the requirement for Changing Preferred Vendor to Fixed Vendor. We are on SRM 5.0 and using classic scenario. I am new to SRM world. I also checked the note- 962474 in our system and it has been applied. We upgraded to SRM 5.0 in Oct-07.
    1.     My client has customization for sources of supply tab. It shows the vendor information in SOS tab based Product category, Plant and Purchasing group selected in the SC. If SC contains Vendor with Outline agreement then SC creates PO in the backend system. So in Change BADI logic for new enhancement of converting Preferred vendor into Fixed Vendor should not change anything in the SC using Outline agreement.
    2.     We have created Custom table-zsrm_fix_vend with fields, purchasing group, company code, currency and total value.
    3.     We need to convert the preferred vendor into fixed vendor
        if the SC’s 1st line item purchasing group = zsrm_fix_vend-ekorg and
                 SC’s 1st line item company code = zsrm_fix_vend-bukrs     and
               SC’s currency = zsrm_fix_vend-currency                   and
               SC’s Total value less than(<)zsrm_fix_vend-totalvalue.
    My testing results and problems…
    1.     When I create a new SC with less value than totalValue from the custom table, change document BADI is changing the preferred vendor into fixed vendor and it is creating PO in the backend system. So this is working as expected.
    2.     When I create a new SC with greater value than totalValue from the custom table, change document BADI is NOT changing the preferred vendor into fixed vendor and it is creating PR in the backend system. So this is working as expected.
    3.     When I use Outline agreement in the SC, it is creating PO in the backend so change BADI logic is not affecting this existing functionality which is good.
    4.     Problem - When I copy a new SC from existing SC with less value than totalValue from the custom table and then changing the amount with the greater value than the custom table, change document BADI is not changing the fixed vendor to the preferred vendor and when I click on sources of supply tab - it is giving me an error “Partner Function may not be Changed” and it exits me to main shopping cart screen.
    5.     Problem - When I copy a new SC from existing SC with greater value than totalValue from the custom table and then changing the amount with the lessser value than the custom table, change document BADI is not changing the preferred vendor to the fixed vendor and when I click on sources of supply tab - it is giving me an error “Partner Function may not be Changed” and it exits me to main shopping cart screen.
    6.     When I copy the SC with Outline Agreement and change the amount it works all the time it is not affected by the change document BADI which is good.
    Please help me to resolve this issue.
    Millions thanks to you!
    MP

  • Convert preferred vendor to fixed vendor

    Hi,
    I'm trying to convert a preferred vendor to fixed vender using BAdI BBP_DOC_CHANGE_BADI.
    I use the following coding:
      LS_HEADER           = ES_HEADER.
      LT_ITEM[]           = ET_ITEM[].
      LT_ACCOUNT[]        = ET_ACCOUNT[].
      LT_PARTNER[]        = ET_PARTNER[].
      LT_ORGDATA[]        = ET_ORGDATA[].
      LT_HCF[]            = ET_HCF[].
      LT_ICF[]            = ET_ICF[].
      if sy-tcode = 'BBPSC08'.          "Completion Workflow
    item data
        loop at et_item into ls_item.
    Jörg Sina, IP#DDDDDDDD, TA:
    Section: Put your BBP_SC_CHANGE logic here
          READ TABLE lt_partner INTO ls_partner
      WITH KEY partner_fct = '00000039'                   "Partnerfkt. '39' = wunschlieferant
               p_guid = ls_item-guid.
          lv_idx = sy-tabix.
          if sy-subrc = 0.
            ls_partner-partner_fct = '00000019'.                 "Partnerfkt. '19' = fester lieferant
           append ls_partner to lt_partner.
            modify lt_partner index lv_idx from ls_partner.
         ls_msg-p_guid = ls_item-guid.
         ls_msg-msgty = 'I'.
         ls_msg-arbgb = 'ZEBP'.
         ls_msg-msgnr = '011'.
         append ls_msg to et_msg.
          endif.
        endloop.
      endif.
    *Interface: Move Local Data to Export/Changing Interface
      ES_HEADER           = LS_HEADER.
      ET_ITEM[]           = LT_ITEM[].
      ET_ACCOUNT[]        = LT_ACCOUNT[].
      ET_PARTNER[]        = LT_PARTNER[].
      ET_ORGDATA[]        = LT_ORGDATA[].
      ET_HCF[]            = LT_HCF[].
      ET_ICF[]            = LT_ICF[].
    When the partner is changed from 39 to 19 the following message appears:
    BBP:PD(144): Partner function may not be changed
    I've tried out the coding given as example in several postings in this forum..
    Maybe anybody can help.
    Regards
    Joerg

    Hi,
    Here is a sample code i used and it works.
    method IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE .
    Constants : c_vendor type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000019',
    c_preferred_vend type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000039'.
    Data : ls_partner type BBP_PDS_PARTNER.
    *Read Table it_partner into ls_partner With key PARTNER_FCT = c_vendor.
    *If sy-subrc NE 0.
    Loop at it_partner into ls_partner
    where PARTNER_FCT Eq c_preferred_vend.
    Move c_vendor To Ls_partner-PARTNER_FCT.
    Modify it_partner from ls_partner index sy-tabix.
    Endloop.
    *Endif.
    et_partner[] = it_partner[].
    ET_ORGDATA[] = IT_ORGDATA[].
    ET_ITEM[] = IT_ITEM[].
    ES_HEADER = IS_HEADER.
    ET_ACCOUNT[] = IT_ACCOUNT[].
    *break ybo
    *IT_PARTNER
    *ET_PARTNER[]
    endmethod.
    Kind regards,
    Yann

  • Preferred Vendors for  Product Category

    Hi,
    We are using SRM 7.0, Classic Scenario.
    My client wants a list of preferred suppliers that need to be maintained for a product category. So that whenever the requester selects the product category, he should get the list of preferred vendors for that product category.
    Thanks
    Ron

    Hi,
    How about maintaining "Supplier List" ?
    http://help.sap.com/saphelp_srm70/helpdata/EN/46/48e3de2f155d5ee10000000a1553f7/frameset.htm
    Search help with "Supplier List" is available in Preferred Supplier selection.
    Regards,
    Masa

  • Automatic Email with F110

    Hi Guru;s,
    My client has an requirement for automatic mail shooting to vendor with invoice number when payment is made through F110.Can somebody explain me how it can be achieved.Its a bit urgent.
    I know that it would be done through some event SAMPLE_PROCESS_00002040
    But can somebody please explain me step by step so that i can understand it well.Moreover how much my job is involved being a functional guy .
    Regards
    Archit Shukla

    Hi,
    look and search for:
    -payment advise
    -Open FI (FIBF) - process 2040
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/653749d2d211d29e430000e839cd96/frameset.htm
    A.

  • Optimizer not picking preferred vendor out of multiple contracts

    We need to use outline agreements in APO. We are doing the following:
    CIFing the outline agreement(s) to APO
    T-lane(s) created from Vendor to destination location
    Running Optimizer
    Purchase requisitions created with suitable source of supply.
    Problem:
    If there are more than single vendors for a material , there is a preferred vendor that needs to be picked by the system. We set the t-lane priorities acc. to preferred vendor and it works fine with heuristic. But for optimizer, we are not able to determine a method for the system to determine the preferred vendor and pick it during optimizer run.
    Could you please share your thoughts or best practices regarding above.
    Thanks.

    Thanks Umesh..
    I tried with transportation cost and it is working fine... but then how do we be sure that optimizer would work as expected because it tries to find an optimal solution with minimum
    overall cost (that includes all the costs).
    Plz advise.
    Regards,
    Shweta

  • Preferred Vendor & Vendor Issue in SC

    Hi Friend's
    Currently i am working with Extended Classic Scenario's
    Shopping Cart was created with both the field (Preferred Vendor & Vendor) Here Vendor Filed normally creates from the catalog But
    Whenever user copied the same shopping carts and user can able to create shopping cart with Vendor & Preferred vendor filed getting updated
    Note:
    Either one filed should be updated
    Can any one tell me what would be the reason?
    Thanks
    Shrini

    Yes shrini. it comes due to OLD PURCHASE ORDER templates.
    if you  dont want this. end user must have delete the vendor before he order a shopping cart source of supply.
    indeed it confuses business too.
    step 1 :- create a sc with prefered sos
    step 2:- sc goes to cockpit
    step 3:- buyer hold a car in the cockpit now you get parter function 19 in bbp_pd 19 .and supplier comes int basic data
    step 4:- create a PO from cockpit
    sptep 5:- go to OLD Purchase order templates and now u see vendor picked as FIXED vendor .
    step 6:- PO created
    stpe 7:- check sc sos VENDOR XXX and preferred VENDOR XXXX.
    this manner you might confused
    Thanks
    Muthu
    Thanks
    Muthu

  • Preferred Vendor Lists maintained in EBP

    Hi All,
    I would like to know where exactly Preferred Vendor Lists maintained in EBP.
    I had checked BBP_PDVIEW_LIST table, which displays Vendor List number against Prod Category GUI Id. But we also need to find out the link between Vendor List Number and Vendor Numbers.
    If some one helps me in this then that will be great.
    Thanks
    Talchuru

    Hi
    Setting for Preferred Vendor is done at Vendor Lists.
    This thing is only done by purchaser role.
    You give user with role as : SAP_EC_BBP_ST_PURCHASER
    Then you can see Business Partner link - here you can check out "BBPAVLMAINT - Process Vendor List" - by using this transaction you can change/delete the linkage of Product Category with Vendor.
    Please see the related pointers ->
    Re: Preffered Vendor
    See the SRM web transaction  - BBPAVLMAINT
    To create Vendor Lists (progammatically / configuration )
    Re: Vendor List Mass Creation
    Hope this will help.
    Regards
    - Atul

  • Preferred Vendor Search Screens

    We require our users to enter a preferred vendor if they are not using one of the catalogs.  But, when the search results come up, only the vendor name and SAP vendor number appear.  How can I make more columns viewable in the search results.  It would really be helpful to at least have an address so that users make sure they have the correct vendor.

    Hi
    We have face a similar situation in our earlier SRM Implementation.
    In that case, we have manually modified the search help, to suit our requirements.
    In this case, you need to manually modify the standard seach help attached with this. Better to raise a customer message with SAP to help you out with this.
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

Maybe you are looking for

  • Report on campaign response

    Hi All, There was a campaign launch at beginning of month, and now we are trying to do analysis on the campaign response. We have a field at contact level called Subsegment which can have values like Experienced RIA, Inexperienced Stock Broker etc. N

  • [SOLVED] can't play any multimedia file, fresh install msi wind

    hi! i have now a pretty much working system i installed mplayer and alsa, and have a working xorg, i configured alsa with alsaconf and it says that the card was found and i can now change levels with alsamixer the thing is that everytime a want to pl

  • What DataType should I use?

    I'm wondering what is the best DATATYPE to use to a few fields.  This is all stock data; I have one DATETIME field and several VARCHAR(MAX) fields; this is fine.  I'm just wondering about a few other fields. I have something called Weight; it looks l

  • Are comments on documents saved in Sky Drive Pro searchable?

    When a document is shared in SDP, commenting can be enabled. Are the comments also searchable. Say I have put a comment with the word "temple" Obviously in search, all documents with file name "temple" will show up. Will comments also show up? please

  • Illustrator not accepting Latvian text.

    When i am pasteing latvian text into illustrator why does it not read all the characters? Latvian is a Baltic language. Is there a way to allow illustrator to understand the correct alphabet? Thanks