cancel
Showing results for 
Search instead for 
Did you mean: 

Product Category mapping from Punch-out to Shopping Carts

Former Member
0 Kudos

Hi,

We are implementing Punch-Out catalogs. We are on SRM_SERVER 550 and SP 11.

Product Category brought from field 'MATGROUP' field of structure 'CATALOG_CONTENT' in BADI BBP_CATALOG_TRANSFER is picked up and wrote our own logic for mapping it with the available UNSPSC codes either at Family level or Segment level. The nearest available UNSPSC code is picked up and passed to output structures ENRICHED_ITEM_DATA and ET_SC_ITEM_DATA in the field 'CATEGORY_ID'.

This is tested by putting external debugging points and found to be working fine.

However when transferring data to Shopping carts, the default Product Category for User ID is shown up instead of the one from output of BADI BBP_CATALOG_TRANSFER.

Please let me know if i am doing correct or any suggestions are appreciated.

Thanks

Venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Khan.We were able to resolve this the next day. Incidentally we used the same solution which you suggested in this thread.

Thanks

Venkat

khan_voyalpadusman
Active Contributor
0 Kudos

even we had the same issue -->

please note that category in SRM system has both category id and also category guid

so , you need to retrieve --> the guid of the category using the FM

CALL FUNCTION 'BBP_CATEGORY_GET_GUID'

EXPORTING

category_id = category_id

IMPORTING

category_guid = iv_comm_cat

EXCEPTIONS

NOTHING_FOUND = 1

OTHERS = 2.

and then assign as shown below

wa_bbp_oci_enritem-category = iv_comm_cat.

and then modify ENRICHED_ITEM_DATA