cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a SC without setting the vendor

Former Member
0 Kudos

Hi,

i want to create a SC without setting the supplier.

it will be set by the buyer.

How should i create it.

Thanks,

BR.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


Hi Meriem,

Since you dont have the vendor handy, while creating the shopping cart you can leave the SUGGESTED VENDOR field as blank. You will be able to order the shopping cart without assigning vendor. Once the cart is approved, it will go to carry out sourcing (Purchaser Worklist) since no vendor assigned to the shopping cart. Then purchaser (Buyer) will setup the vendor in the system and using that newly created vendor, s/he can create the PO for that shopping cart.

Regards

Sivakumar Kandasamy

Message was edited by: Laure Cetin - Please don't ask for points on SCN, it's again the rules of engagement

Former Member
0 Kudos

Hi Sivakumar,

I tried this.

When i left the field blank and click check the following error message appears: Vendor is mandatory.

Any other suggestion?

thanks

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

Vendor is not mandatory in shopping cart. Do you have any implementation of BBP_DOC_CHECK_BADI which could be raising this message?

Regards,

Ricardo

Former Member
0 Kudos

Hi Ricardo,

Yes, BBP_DOC_CHECK_BADI is implemented.

BR

Former Member
0 Kudos

Hi,

Usually Vendor is not a mandatory field for creating a shopping cart. It seems to be a explicit enhancement implementation done in BBP_DOC_CHECK_BADI where partner function 19 - Supplier is made mandatory.

Check with any abaper to if any validation is added for partner function 19 for shopping cart object.

Regards,
Karthik.

Former Member
0 Kudos

Hi Karthik,

Can you explain more what should i do ?

I have this:

c_defi(8TYPE c VALUE '00000019'

..................

IF NOT me->sc_item IS INITIAL.

     wa_partner_fct-sign   = c_i .

     wa_partner_fct-option = c_eq.

     wa_partner_fct-low    = c_pref.

     APPEND wa_partner_fct TO r_partner_fct.

     CLEAR wa_partner_fct-low.

     wa_partner_fct-low = c_defi.

     APPEND  wa_partner_fct TO r_partner_fct.

     CLEAR  wa_partner_fct.

     LOOP AT me->sc_partner INTO wa_partner

          WHERE partner_fct IN r_partner_fct

            AND del_ind IS INITIAL.

       APPEND wa_partner TO i_partner.

     ENDLOOP.

     LOOP AT me->sc_item INTO wa_item WHERE del_ind = space

                                        AND reject_wi IS INITIAL .  

       IF wa_item-ordered_prod IS INITIAL.

         CLEAR wa_partner.

         READ TABLE i_partner INTO wa_partner WITH KEY p_guid  = wa_item-guid

                                                       del_ind = space.

         IF sy-subrc NE 0.

           wa_message-msgty     = c_e                .

           wa_message-msgid     = c_msgid            .

           wa_message-msgno     = c_msgno            .

           wa_message-msgv1     = 'Vendor is Mandatory'(007).

           wa_message-item_guid = wa_item-guid       .

           APPEND wa_message TO messages             .

           EXIT.

         ENDIF.

       ENDIF.

     ENDLOOP.


thanks.

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

In this code you are checking if partner function 19 (fixed vendor) is available for free text shopping carts (without product ID).

Then, if it is not available, message is raised.

You can simply deactivate this code to test the standard functionality.

Regards,
Ricardo

Former Member
0 Kudos

Hi,

In this case, Can i create the SC by editing the product id without desactivating this code?

BR

Former Member
0 Kudos

Hi,

If you enter any product id, then this would not raise any error message.

But i'm not sure if you can edit product id for a free text item. For internal goods and services it comes by default from product master.

Regards,

Karthik.

Answers (0)