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 SCs 1st line item purchasing group = zsrm_fix_vend-ekorg and
SCs 1st line item company code = zsrm_fix_vend-bukrs and
SCs currency = zsrm_fix_vend-currency and
SCs 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
Similar Messages
-
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,
Srivatsanthere 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. -
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
JoergHi,
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.
BestHi,
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 -
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. -
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 -
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 -
XK02: How to change vendor
Hi Experts,
Can we change the vendor in vendor master, if we can how to change it...?
Regards,
Krsnveni
Moderator: Please, avoid asking basic questionsHi,
You cannot change the existing vendor code. If you want to change the vendor code specifically, then you should create the new vedor code and create the vendor master for existing vendor names. To do this please find the following steps:
1) Use T.Code: OBD3 for Creating A/c Group with screen layout for vedor
2) Use T.Code: XKN1 for Vendor Number ranges for Vendor A/c ( Vendor Code)
3) Use T.Code: OBAS for Assign Number ranges to Vendor A/c Group.
4) Use T.Code: FK01 for Create Vendor Master records.
Regards,
S. Umamageshwaran -
How to change the vendor code of site in SAP IS retail
Dear All,
In SAP IS Retail, At the time of site creation. we create Site Customer & Site Vendor with site creation. For example If Site code is "1228" then the Customer Code of site will be "C1228" & Vendor Code for site will be "V1228". If by mistake I entered wrong Vendor/customer code then how I can correct it ? "WB02" is not the doing it.
So my questions is How to change the vendor/Customer code of a site in SAP IS retail ? Which T-Code which be required for it ? Please explain me the steps for doing it.
Regards
BirenderHello Rajat,
Please provide us more information about the error you have and it's description so that we can help here arounfd here.
thanks
Willie -
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.
MPHi,
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. -
How to maintain the Fixed Vendor
Hi,
As I know Fixed Vendor always maintained in source list, but is there any other place we can maintain the fixed vendor.
My PR is having 2 line items, non of them is maintained in source list but, one of them is automatically have fixed vendor number and info record when PR has generated by thrid party order.
Regards,Check the steps below
1) you have check the source list indicator in material master purchasing view
2) than create the info record or contract
3) create the source list with contract or if info record is created than it will be for info record
4) make fix source in the source list
5) in Me51N screen you will see the source ldetermination check box, this check box should be checked and you can defult that by personal setting
6) now if oyu create the reqs you will see the sourcve as per source list
BUT if you have checked the regular vendor check box in info record than your source list will not work
see below
Regular vendor
Specifies that the material is to be procured from this vendor at client
level, i.e. for the entire corporate group.
Use
If you set this indicator, the regular vendor is suggested as the only
source.
If you wish to work with the source determination facility for purchasing
documents, it makes sense not to set the indicator so that the system
suggests all available sources, not just the regular vendor.
If you try to enter a different vendor than the regular vendor in the
source list or quota arrangement, the system will issue a warning
message. -
How to change vendor name while payment
we want to modify the vendor name while doing the payment, is it possible,
regards,hi,
You have have to create a new Vendor with the name you want to make the Payment. Then assign the vendor code in Vendor Master in payment Trasactions .
When you process the payment then the cheque name will be picked-up from the alternate payee assigned. in the vendor master.
Regards
Harish -
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 dont want fixed vendor data in PR document.
Im 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,
SHHi,
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"."
Maybe you are looking for
-
Creation of DB Adaptert for calling stored procedure in MS SQL server
Hi, I need to create a DB adapter to call a stored procedure in MS SQL Server. I have gone thru the thread MS SQL Server database connection It mentions that we need to use a command line utility for generating the wsdl and xsd for calling stored pro
-
Upgrading a database from 8.1.6 to 9.2.0
Hi, Oracle provides scripts to directly upgrade a database from an older release to the latest release. In the 9.2.0 installation, scripts are available to upgrade from 8.0.6, 8.1.7 and 9.0.1. No scripts is present for upgrading my 8.1.6 database to
-
Hi All, theres one script i need to debug.By activating the debugger in script and executing the driver program i am unable to see anything.In start form theres no where mentioned the form name and there is a output type for both program and layout.T
-
Can We Add Some More Fileds To the Imported IDOC ??
Hi All, Can We Add Some More Fileds To the Imported IDOC ?? If I Imported IDOC to IR. But I Want to Add Some More Fields To IDOC. Then Can I Go For this Process ??? Is This is Correct ??? Please Correct Me If Iam Going Wrong 1) Open the Imported IDOC
-
Set Combobox value based on Datagrid selectedItem
I have been searching the forums and google for some time now and I'm not sure how do this. I populate a datagrid from a httpservice call to a php script. The datagrid is displaying perfectly. I also populate two comboboxes from the same httpservice