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.

Similar Messages

  • 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

  • How to set a vendor as fixed vendor during PR creation

    Dear experts,
    There is a field in PR for fixed vendor. How this fiexed vendor determined by SAP during PR creation. How can i ensure that certain vendor will be selected automatically as fixed vendor for some material and service so that during PO creation for the PR , used donot need to put vendor.
    Kindly help
    Thank you.
    Best

    Hi,
    Create  source list(ME01) for material and you can fix the vendor by entering vendor number ( also you can have period duration From & To of fixing)& selecting check box Fixed Source of Supply & save.
    Now during creation of PR (ME51N), select the check box of source determination, then enter other  details and save.
    OR
    You can go for Quota arrangement process & the details are in the link:
    Re: quota arrangement?
    Regards,
    Biju K

  • How does a catalogue vendor gets charactarized as a fixed vendor in SRM?

    Dear Expters,
    can you please help me understand the standard SRM behaviour (7.0, CS) for the following point:
    When a catlogue item is purchased from a third party catalogue platfrom, than the vendor of this catalogue item is displayed as a fixed vendor in the EBP shopping cart, afer the return from the catalogue platform from SRM.
    How exactly does the charactarization of the vendor as fixed vendor happens?
    I mean, does it happen in a way that during the return from the catalogue platform to SRM, the catalogue platform sends the
    content 000019 into the SRM field partner_fct?
    Or is the approach completely different and it is done somehow in a way that SRM receives that data from the catalogue platform, than for example understands somehow that this position was sent from a catalogue and based on that decides that the vendor should have the "fixed vendor" partner function?
    Thank you.

    Hello,
    The SRM system behaves as described below:                                                                               
    Limit item:                                                               
    If a SC is created with a vendor, it is considered as a "Fixed Vendor".                                                                               
    Free text item:                                                           
    If a SC is created with vendor, it is considered as a "Preferred Vendor".                                                                               
    Catalog items:                                                            
    When an item is added from a catalog to SC, the vendor is always considered as "Fixed vendor".                                                                               
    It is possible to change the "Preferred Vendor" to "Fixed Vendor" through BADI implementation BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE.
    Anyway, if you create a cart using catalog item, vendor will always be considered as fixed.
    Regards,
    Ricardo

  • Fixed vendor on PRs

    We have a PR that was assigned the wrong fixed vendor accidentally.  When we try to change to a different fixed vendor it defaults back to the one originally entered.  Is there a way to change it?  (No PO has been created from this PR yet.)

    We figured this out.  The supplying plant was filled it.  Erasing it fixed the problem.
    Thanks again.

  • Fixed Vendor for Materials

    Is it possible to take the report like, for a specific vendor code, for which materials that vendor has marked as Fixed vendor.
    (I'm having only vendor code, by using that vendor code only i need to get the materials which this vendor as Fixed Vendor)
    Which transaction i can get that report.

    Dear Ian,
    Thanks for your reply.
    I want to take the report for the materials available with open purchase requestitions & purchased material codes from that vendor.
    Ex: A2B is a vendor code.
    I want to take the material codes having the above vendor is as fixed vendor.
    Please confirm.
    Thanks....Partheeban C

  • Deletion of Preferred or Fixed Vendor when we copy the SC from Old SC's

    Hey SRM Experts,
    When we copy the SC from the Old SC's, Is it possible to delete only the Preferred or Fixed Vendor Information and all other information should be copied to the new SC?
    Thanks for your input on this. Helpful answers will be rewarded.
    MP

    Hi,
    You can modify the SC data using the BADI "BBP_DOC_CHANGE_BADI".In the BADi,based on the action "COPY"(Check SY-UCOMM),you can delete the value for the vendor in the SC data.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Change fixed vendor for me01 through bdc

    HI ALL,
    if in t-code me01 for a material  and plant we have some vendors out of which one is fixed vendor
    now i want how can i change my fixed vendor through bdc . because i want to change fixed vendor for
    large materials.
    currently my fixed vendor is 100496 here fixed vendor is X
    material        plant               valid form      valid to         vendor        Fix
    2000125     006     24.09.2009     31.12.9999     100496     X
    2000125     006     24.09.2009     31.12.9999     100497
    now i want to change my fixed vendor 100497.

    hi
    you can change through bdc. you may need to loop through the list of materials if the same changes need to updated.
    Cheers,
    Hakim

  • Bdc for change of fixed vendor in me01

    Dear All,
    i want bdc if some vendor already present in me01 also fixed vendor is there .
    if there is 4 vendor in any material and plant  if my 1st vendor is fixed now if i want to
    change my fixed vendor out put of remain 3.
    so how can i do it
    i want this change for large number of material
    so how can i do it in bdc
    plz help me regarding this.

    Hello Lars,
    Please check the following settings in cutomization;
    SPRO>>Materials Management>>Purchasing>>Environment Data>>Define Default Values for Buyers.
    Select : Double Click:  Settings for Default Values.
    Now select the group and go to Source determination Tab.
    In tab under pre-setting of automatic source dtermination indicator.
    Tick the check boxes Create purchase requistion and create purchase order vendor unknown.
    Note: In ME01, if your vendor is external  then you have maiantain thye vendor in vendor fileld. If vendor is internal (say plant to plant transfer) then vendor needs to be maintained under ppl field.
    Br,
    Tushar

  • Fixed Vendor

    Hello Friend
    We use SRM Server5.5 with classic scenario. (SP 07)
    Endusers want to change the source of supply.  So endusers delete the info-record and choose the preferred vendor.
    There is one info-record in MM.
    Even if enduser deletes the info-record in SRM, there are fixed vendor and info-record in PR document.
    But we don’t want fixed vendor data in PR document.
    I’m not sure which data is transferred to MM to determine the source.
    How to remove the fixed vendor in MM while creating PR in MM?
    Our scenario:
    1.     Create Shopping cart
    2.     After approval, PR will be created in MM.
    Thank you
    Best regards,
    SH

    Hi,
    In the backend, you can use the default values :
    1- Spro-> Materials Management->Purchasing->Environment Data->Define Default Values for Buyers->Settings for Default Values
    2- Here you can select a KEY DEFAULT VALUE (or create a new one) the go to the "source determination" tab
    3- Unflag "create requisition" : If the indicator is not set, the source determination process will only be implemented at the specific request of the user." thus no automatic determination will be processed byt he system
    4- Goto RFC user id (in ECC), select parameter tab and set EVO parameter with your key value "for example "01")
    Kind regards,
    Yann
    In this step, "you assign default values that you maintained in Customizing to a user by entering the key of the default value in the user master record under the parameter ID "EVO"."

  • Fixed vendor in non-catalog PO

    Hi,
    We are facing some strange issue. We have a field "Vendor" in Basic data and Source of Supply tab in shopping cart. This would have value only in case of catalog item or there is contract or any other source of supply assigned to that item. If there is no source of supply then this field will not even displayed in these tabs.
    But in our case, if we enter a preferred vendor in source of supply tab, then during the course of approval somehow the "fixed vendor" gets udpated. Because of that, the PO gets automatically created (ext classic) without the knowledge of the buyer.
    In shopping cart, we could see both the partner functions 39 and 19. This is happening very rarely (like one in 1000 shopping carts) but the impact is very big as the POs are being sent to vendor before buyer reviewing that.
    Has anyone came across this issue? Can you plz help to fix this? we are in SRM 4.0
    Thanks,
    Arun

    Thanks Muthu and Jay.
    We tried two changes through this BBP_DOC_CHANGE_BADI.
    Change 1 - Deleting the line from lt_partner table where partner_fct = 0000019 and then move lt_partner to et_partner, which is the output parameter of the badi.
    In this change, we could able to delete that specific line from lt_partner when partner_fct = 19 and the output parameter et_partner also does not have that line. We checked this at the end of the doc-change badi. But once the shopping cart is ordered, the deleted line is still there. Are we missing something ?
    Change 2 - If partner_fct = 0000019 , then make it as partner_fct = 0000039 and then move lt_partner to et_partner
    In this case also, it is changing the partner_fct to 39 but the shopping cart is not getting ordered. It is giving the message "PArtner function may not be changed" with message type A.
    Can you please advise, if we are missing something here?
    Thanks
    Arun

  • Automatic PO creation when neither Contract or fixed vendor found

    Hi All,
        This is continuation of my previous thread. the issue has not been resolved and needs suggestions.
    SRM 5.0 ECS SP15. The issue happens sporadically when SRM SC is created without contract item (catalog/direct mat).
    So, when SC is created with above condition, instead of going to sourcing, system directly creates the PO. The only thing I noticed was the SC contained entry in preferred vendor field. there is no custom code on turning preferred vendor to fixed. And this does not happen often.
    Please advise
    Regards
    Rao

    hello,
    the preferred vendor maintained is treated as a source of supply. below is the IMG documentation for Sourcing is carried out for items without a source of supply setting
    SAP Enterprise Buyer transfers all requirements that have multiple sources of supply, of which none are assigned, to the purchaser's sourcing application. Once you have selected a source of supply in the shopping cart, the item does not go to the sourcing application and a PO is created.
    as suggested by Ricardo, you may implement BBP_SRC_DETERMINE BAdI to overwrite this, i.e. Sourcing will not be carried out only when a contract is assigned to a shopping cart item.
    regards.

  • Currency to be defaulted from Fixed Vendor to PR

    In my case, currency comes into purchase requisition based on company code, and the request is to have it come in from the fixed vendor field. Example,  the vendoru2019s currency is EUR, but USD defaults into the field. . It is possible to change it in the requisition, but it would be preferred to have it automatically drop in the currency in the fixed vendoru2019s record.
    Any Idea?

    Hi,
    Normally during the creation of the PR , vendor will not be known unless the the source determination settings are done like OA or Info Record etc.
    since only material is entered there MMR currency will be taken for valuation.
    Regards,

  • Unable to transfer vendor from R/3 to SRM

    I have a problem while trying to transfer a vendor from R/3 to SRM.
    First of all, I found some information in a thread and it says something about the Sole Proprietor flag (which is in the Control view of the Vendor)
    [Re: SRM6: BBPGETVD Does not Replicate Sole Proprietors|Re: SRM6: BBPGETVD Does not Replicate Sole Proprietors]
    In the thread says that when this flag is checked then you can't transfer the vendor, because:
    "The Sole Propertiers are natural vendors who are mainly used for Tax Reporting purpose in backend system . SAP does not consider replication of sole propertiers as they do not have all master data like email id and some other details. If these kind of vendors are replciated from R/3 to SRM with the missing master data it results in inconsistency in SRM system.
    So these vendors are not considered for replication on purpose."
    So first I tried to transfer the vendor with the Sole Proprietor flag checked and this error message appeared:
    'No data records found for system <backend system>, client <client>; check entries'
    Then I tried to transfer the vendor without the Sole Proprietor and this information message appeared:
    'All backend descriptions are already assigned in the system'
    I think this second message appear because the vendor is already in the SRM system (in development).
    I checked it with txn bp to see Business Partners.
    SRM version is 6.0.
    Thanks and regards.

    Yes, I just validate that the vendor is in SRM using that table BUT000.
    First, I want to know if the second message ("All backend descriptions....") is because vendor is already in SRM or because of other reason that I don't know.
    Also, I want to know if I apply this change of the Sole Proprietor flag in Production, I mean to uncheck the flag, it will allow me to transfer the vendor from R/3 to SRM. This is my real problem.
    I hope that this message helps you to understand my issue.
    Please do not hesitate to ask me for more info about this and thank you for the quick answer.

Maybe you are looking for