on 02-24-2011 1:15 PM
Hi,
I'm working on SRM 7 and I want to change the partner function from 39 to 19 using the BBP_DOC_CHANGE_BADI. When I enter the vendor number it works fine but when I do a search help, it get errors.
What could the problem be?
Thanks.
Hi,
Thanks for the quick responses.
The errors that I get are "Error calling META BAPI META_CALCULATE_TAX" and "No partner on the selling side". I do modify IT_PARTNER.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is some of my code in BBP_DOC_CHANGE_BADI under method BBP_SC_CHANGE.
CONSTANTS: c_prt_19 TYPE bbp_pds_partner-partner_fct VALUE '00000019',
c_prt_39 TYPE bbp_pds_partner-partner_fct VALUE '00000039'.
"- Check each item in Shopping Cart
LOOP AT lt_item INTO ls_item WHERE del_ind <> 'X'.
"- Check if Preferred supplier to Fixed supplier exist
LOOP AT lt_partner INTO ls_partner
WHERE partner_fct = c_prt_19
OR partner_fct = c_prt_39
AND p_guid = ls_item-guid.
idx = sy-tabix.
"- Convert Preferred supplier to Fixed supplier
IF ls_partner-partner_fct = c_prt_39.
ls_partner-partner_fct = c_prt_19.
MODIFY lt_partner FROM ls_partner INDEX idx TRANSPORTING partner_fct.
ENDIF.
ENDLOOP.
ENDLOOP.
Regards,
We are also having the same requirement where we have achieved the conversion (BBP_PD 427 - Enter no more than one partner of type Vendor - Supplier Relationship Management - SCN ...) with the help of that Wiki link.
And we are facing a concern when we are changing/removing the supplier where the value is not getting updated in PD layer. I will be really grateful if you could provide some clue/help on this.
Thanks in advance for your help.
Best Regards,
Bharathi
BBP_SC method
39 to 19 swap thats all -through the IT_PARTNER interface table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What king of error? Any error message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.