on ‎2009 Dec 28 5:26 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi all,
i have resolved the issue by myself.
thanks for your replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.