Skip to Content
avatar image
Former Member

Product Category - Overriding the defaults

I have implemented the BADI to map the Product Category during the external catalog shopping cart creation.

I have the mapping Ztables.

If the mapping is available, all is working good.

However if the mapping is not available, I have to pass the error message about missing mapping.

The error message is working as well but the product category is getting defaulted to the standard category of the User.

I dont want to set it to the standard category.

Any clue?

SRM Functional says there is config to default and they dont want to change it.

How can I override this config?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 07, 2010 at 10:34 AM

    Hello Pranu,

    Could you please check thread below ?

    [BBP_CATALOG_TRANSFER CATEGORY_ID value is getting defaulted|BBP_CATALOG_TRANSFER CATEGORY_ID value is getting defaulted;

    Regards.

    Laurent.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Laurent Burtaire

      I am using the David Barber's workaround as specified above.

      In the BAD, I am calling the FM: BBP_PD_SC_GETDETAIL and it gives me the SC details.

      After validations, I am updating the ET_MESSAGES.

      The error messages are displayed if the dummy product group is used but the SC is getting saved inspite of errors.

      Any idea?

      • I_OBJECT_ID =
      • I_ATTACH_WITH_DOC = ' '
      • I_WITH_ITEMDATA = 'X'
      • I_ITEM_SORTED_BY_HIERARCHY =
      • I_WITHOUT_HEADER_TOTALS =
      • I_READ_FROM_ARCHIVE = ' '
      • IMPORTING
      • E_HEADER =
      • EV_IS_PD =
      • ET_ATTACH =
      • E_ACCOUNT =
      • E_PARTNER =
      • E_CONFIRM =
      • E_LONGTEXT =
      • E_LIMIT =
      • E_ORGDATA =
      • E_TAX =
      • E_PRIDOC =
      • E_HCF =
      • E_ICF =
      • E_ACTVAL =
      • E_ACC_ACTVAL =
      • E_HEADER_REL =
      • E_ITMLIM_REL =
      • E_STATUS =
      • wa_msg-MESSAGE = 'TESTING'.
      • move-corresponding wa_msg to et_messages.
      ... CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING I_GUID = IV_DOC_GUID TABLES E_ITEM = i_item E_MESSAGES = i_msg . loop at i_item into wa_item. if wa_item-CATEGORY_ID = 'M0156'. wa_msg-MSGTY = 'E'. wa_msg-MSGID = 'BBPWS'. wa_msg-MSGNO = '029'. append wa_msg to et_messages. endif.

      Any help would be appretiated.

      Edited by: Pranu Pranu on Dec 8, 2010 5:27 PM