cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BBP_CATALOG_TRANSFER CATEGORY_ID value is getting defaulted

Former Member
0 Likes
546

hi,

i am working in srm on badi BBP_CATALOG_TRANSFER i have a requirnment where is need to match the MATGROUP value from the external catalog with UNSPSC code field value in my custom table and then on some condition change the CATEGORY_ID value when i m debugging the value is getting changed as per my development but after going through the FM BBP_CATEGORY_READ the CATEGORY_ID value is again changed to its default value in my case its 'S1032'

can anyone tell me why this is happening???

rgds / shivraj

Edited by: ShivrajSinha on Dec 28, 2009 6:26 AM

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Likes

Hi Shivraj,

I am also facing the same problem. I can understand that, it is pain to comback and explain us how to solve this but as you already solved this, u might be knowing the issue.... so requesting you to let us know the exact problem and way to soleve it.

This will help me a lot.

Thanks and Regards,

krishna

Former Member
0 Likes

Thanks shivraj your logic helped me out even i was facing the same problem.

Edited by: gaganpreet pahwa on Jun 23, 2010 9:34 AM

Former Member
0 Likes

Hi, I am faced with this as well (UNSPSC from table). I have no previous experience with SRM or BADi's. Can someone please help me too? I have 2 questions. Do I put my code in the BBP_CATALOG_TRANSFER BADi? and how do I get my UNSPSC to show up? I have run this in debug and changed et_sc_item_data-catelog_id but it's not showing up on the screen....only the default is showing. Many thanks for any assistance. Amy

Former Member
0 Likes

hi all,

i have resolved the issue by myself.

thanks for your replies.

Former Member
0 Likes

Hi Shivraj,

Am facing the same issue, can you tell me how did you resolve the problem??

Thanks,

Rahim.

Former Member
0 Likes

We implemented the BADI.

Former Member
0 Likes

Hi

I am also facing the same issue. Please let me know how to solve this issue.

Thanks & Regards

Ravi

0 Likes

Hi,

Could you please share your solution to the above problem, this would help others in the same situation.

Thanks.

Former Member
0 Likes

We ended up implementing a BADI to address this issue.

Former Member
0 Likes

hi all,

here is the solution

depending on the CATEGORY_ID fetch the corresponding CATEGORY_GUID from the database table COMM_CATEGORY and then modify changing parameter ET_SC_ITEM_DATA transporting both CATEGORY_ID and CATEGORY_GUID

thanks

shivraj

jason_boggans
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

The message i still contained in et_messages regarding the invalid category id, so even though you have 'corrected' this in the Badi you will also need to code the Badi to clear et_messages where message = bbpws 013or something like that, I cannot remember the exact message id .... but chcek in T100 for the BBPWS messages and you'll find it, or just clear et_messages where the message type = BBPWS

Then your category will be retained

Regards,

Jason

Former Member
0 Likes

hi jason,

i have deleted the messages contained in parameter ET_SC_MESSAGES where ID = 'BBPWS' but still the category ID value is getting defaulted

rgds/shivraj

jason_boggans
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Shivraj,

We would then need to debug to determine why this is happening, what SRM release are you running?

Regards,

Jason

Former Member
0 Likes

hi,

we are using SRM 7.0

yes i have debugged and as i told it changes the value to the default value in function module BBP_CATEGORY_READ it where the value S1032 is getting defaulted in category_id field

rgds / shivraj

jason_boggans
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

The category is only changed under the circumstances ~

1. The category provided by the catalog is invalid in SRM

2. No category is passed from the catalog

In these cases, the user default category is used.

Now in instance 1 above, you should see some messages in et_messages BEFORE accessing the Badi BBP_CATALOG_TRANSFER. Use then the Badi to specificallyclear these messages from the et_messages table and append the table then to et_sc_messages (or whatever it is after Badi call) when exiting the Badi.

Regards

Jason

Former Member
0 Likes

hi,

do i need to clear this et_messages parameter in some other badi other than BBP_CATALOG_TRANSFER because in this badi there is only 1 parameter ET_SC_MESSAGES

rgds / shivraj

jason_boggans
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

No - et_messages is changed in the BAdi as et_sc_messages:

  • call customer function

CALL METHOD lo_catalog_transfer->enrich_item_data

EXPORTING

is_admin_data = ls_bbp_cat_trans_admin

CHANGING

catalog_content = lt_oci_item_data[]

enriched_item_data = et_enr_item_data[]

enriched_acct_data = et_enr_acct_data[]

enriched_item_longtext = et_enr_longtext[]

catalog_content_errors = et_enr_errors[]

ev_sc_structures_used = lv_sc_used_in_badi

et_sc_item_data = et_sc_item_data[]

et_sc_accounting = et_sc_accounting[]

et_sc_partner = et_sc_partner[]

et_sc_orgdata = et_sc_orgdata[]

et_sc_longtext = et_sc_longtext[]

et_sc_messages = et_messages[].

So et_sc_messages writes to et_messages on exit.

Regards,

Jason

Former Member
0 Likes

In order to map UNSPSC to a product category for punchout catalogs, do we have to use a BADI? Or, can you use the standard configuration under: SPRO > Supplier Relationship Management > SRM Server > Master Data > Content Management > .... to do this without a BADI?

Thanks

Former Member
0 Likes

Hi,

After mapping , r u modifing the the table et_sc_item_data .

wa_et_sc_item_data-category = wa_et_category-category_guid.

wa_et_sc_item_data-category_id = wa_et_category-category_id.

MODIFY et_sc_item_data FROM wa_et_sc_item_data.

Hope this will help.

Thanks

Venkatesh P

Former Member
0 Likes

hi venkatesh,

yes i have modified the parameter et_sc_item_data but still i m getting the default value actually after going thru the FM BBP_CATEGORY_READ its value is getting defaulted

Edited by: ShivrajSinha on Dec 29, 2009 7:28 AM

Former Member
0 Likes

Hi,

Try to modify the category after that FM or end the BADI.

Thanks

Venkatesh P