cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Fixed Vendor from PRs created via SRM

Former Member
0 Kudos

Hi ppl,

My requirement is to blank out the Fixed Vendor field from the PR (the PR gets created via SRM shopping cart).

For this, I have mentioned the logic in the BADI 'BBP_CREATE_BE_RQ_NEW'.

The logic written is to clear the fields: Fixed Vendor (fixed_vend), Agreement (agreement), Agreement Item (agmt_item) and Info Record (info_record) from the parameter 'CS_RQ_DOCUMENT-IT_REQUISITION_ITEMS.

But, still, when the PR gets created in backend, the Fixed Vendor appears (picked from an agreement in backend, perhaps).

Please let me know if there is an alternate solution to this requirement or I am missing out on something.

Regards,

Dawood.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183819
Active Contributor
0 Kudos

Hi

if you clear the fixed the vendor - PR only created .

if it is a fixed vendor ,the standard way, PO will be created.

partner function --19 fixed vendor - PO created

partner function -39 prefered vendor - PR creates.assume that you cleared a vendor it treated like no vendor so Purchase Requisition created.

Muthu

Former Member
0 Kudos

Hi Muthu,

Thanks, but, there is no problem with what kind of document is created.

I just want to blank out the FIxed Vendor field from the Source of Supply tab in the Purchase Requisition created in backend.

Regards.

former_member183819
Active Contributor
0 Kudos

hope you aware that you can clear them via DOC change BADI too..

In the BBP_DOC_CHANGE_BADI - method BBP_SC_change clear the business partner data

through the IT_PARTNER interface table

Former Member
0 Kudos

Hi Muthu,

Nope. I couldn't find any helpful field in Doc Change BADI to clear the "Fixed Vendor".

Regards.

former_member183819
Active Contributor
0 Kudos

clear 39 or 19 ...in the item data of shopping cart. so it treated like no vendor and PR will be created as a follow on docuement.

or swap 19 to 39

Hope by this time you would have cleared or changed 19 to 39 the partner function in sc line items to meet your business requirement

Former Member
0 Kudos

Hi Muthu,

I tried 2 methods, both didn't work as required:

1. Deleted the line with partner fct 19. This still caused Fixed Vendor to appear.

2. Changed 19 to 39. Now the desired vendor also appears with Fixed Vendor.

So, still looking for solution

Regards.

former_member183819
Active Contributor
0 Kudos

Hi

method 1:-

if you were cleared partner details in the shopping cart ,even you can not see the vendor details in the source of supply folder before /after you order a cart.

i understand your requirement, whatever REQUESTER has added a vendor fixed or preferred must be cleared in SC as well as PR.

please update here piece of code how you are clearing the vendor data in the sc. some one review and help you to achieve this,

Muthu

Former Member
0 Kudos

Hi,

This is what I have tried till now:

1. In BADI BBP_CREATE_BE_RQ_NEW:


    LOOP AT cs_rq_document-it_requisition_items
     ASSIGNING <fs_badi_rq_item>.
          CLEAR: <fs_badi_rq_item>-fixed_vend,
                 <fs_badi_rq_item>-agreement,
                 <fs_badi_rq_item>-agmt_item,
                 <fs_badi_rq_item>-info_rec.
       ENDLOOP.

Outcome: No effect.

2. In BADI BBP_DOC_CHANGE_BADI:

a. Change part fct 19 to 39.


LOOP AT et_partner ASSIGNING <fs_et_partner>
                       WHERE partner_fct = '00000019'.
  <fs_et_partner>-partner_fct = '00000039'.
ENDLOOP.

Outcome: Desired Vendor started appearing along with Fixed Vendor.

b. Delete part fct 19


DELETE et_partner WHERE partner_fct = '00000019'.

Outcome: No effect.

Regards.

Former Member
0 Kudos

Hi Dawood,

I doubt that your fixed vendor in PR in ECC is coming form some config in ECC and not from SRM. Try to create a manual PR in ECC with same data and see if fixed vendor is populated automatically in ECC.

Cheers

Iftekhar Alam

former_member183819
Active Contributor
0 Kudos

1.BBP_CREATE_BE_RQ_NEW - De-activate this BADI implementation

2 BADI BBP_DOC_CHANGE_BADI - let this BADI clears vendor data in the shopping card

Are you assigning vendor in PR ECC via Back job check change history item data

in bbp_pd item data can you see the reference of fixed vendor contract or info record?