cancel
Showing results for 
Search instead for 
Did you mean: 

Prefered Supplier and Fixed Supplier

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

former_member183819
Active Contributor
0 Kudos

i dont know exatly

update your piece of code here

technical tigers can easily findout what is the error statement easily

Former Member
0 Kudos

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,

Former Member
0 Kudos

Managed to fix this. in order to ensure that you don't add this again you have to do

bbp_pd_sc_getdetail call to get the updated pd partner information. Thendo a check in this partner table if fixed vendor already exists.

bharathi_ponnusamy
Active Participant
0 Kudos

Hi

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

former_member183819
Active Contributor
0 Kudos

BBP_SC method

39 to 19 swap thats all -through the IT_PARTNER interface table

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

What king of error? Any error message?