cancel
Showing results for 
Search instead for 
Did you mean: 

Ignore UNSPSC

dean_hinson2
Active Contributor
0 Kudos

Hello,

Currently, our catalog partner is supplying the UNSPSC code in the OCI. However, we are not using it for mapping to our internal material groups since they are providing that information to us in OCI as well. But we are having trouble with the Shopping Cart Material Group being set to the 'default' in the Extended Details options for the Shopping Cart instance. Also, in SLG1, we get a message with a green led... 'External product category 46181529 contains errors or does not exist'.

So, instead of having to change the OCI feed from our catalog partner, I was wondering if there was a way to ignore the ext_category_id so that the message will not display, and hopefully take the category_id provided in the OCI and load it in the shopping cart appropriately.

If this is NOT possible, is there a way to fake the system out by loading the mapping table on the fly?

Please let me know and points will be given accordingly.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Dean,

Yes you can use BADI -- BBP_CATALOG_TRANSFER

Method : ENRICH_ITEM_DATA

Select all the incoming shopping item level UNSPSC from the CATALOG_CONTENT and compare it with the CATEGORY_ID of table COMM_CATEGORY. If CATEGORY_ID (UNSPSC) is present then abolustely no issue otherwise substitute with an default CATEGORY_ID (UNSPSC). Well, this default UNSPSC you may need to create or may use form exisiting UNSPSC from table COMM_CATEGORY.

Hope this helps.

Regards,

Shiv

dean_hinson2
Active Contributor
0 Kudos

I am already using the BBP_CATALOG_TRANSFER badi and found out the checking of the external category id is done prior to execution of the badi. I had already tried to blank it out in the badi and still have the some errors/problems.

We are going to try to load the UNSPSC codes, but not map (if that's possible) and see what that does.

PS. I was very suprised to see the external category check in SAPLBBP_WS_API was done prior to the BBP_CATALOG_TRANSFER.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Try these links ->

Regards

- Atul

dean_hinson2
Active Contributor
0 Kudos

This was required in the BBP_CATALOG_TRANSFER_BADI to get this to work...

    • Fetch All GUID Value From COMM_CATEGORY.

CALL FUNCTION 'BBP_CATEGORY_GET_GUID'

EXPORTING

category_id = wa_bbp_oci_enritem-category_id

IMPORTING

category_guid = iv_comm_cat

  • EXCEPTIONS

  • NOTHING_FOUND = 1

  • OTHERS = 2

Thanks to all.

Former Member
0 Kudos

You can implement BADI BBP_CATALOG_TRANSFER and just clear the EXT_CATEGORY_ID there (clear any EXT* btw).

If your vendor is providing your category in the NEW_ITEM-MATGROUP field there shouldn't be a problem.