Changing charact of SRM catalog Item
Hi everybody,
I'd like to change the value of a characteristic of a catalog item but unfortunatly it doens't seem to work. I'm using the following objects/functions:
First I obtain the items using CALL METHOD gr_item_manager->get_all_items of class /ccm/cl_item_manager.
Secondly I read one of the items characteristic values and change on of the values. After this I use the following statement:
CALL METHOD gr_item_manager->update_item.
One of the parameters of the method is the changed characteristic value called it_char_value for the provided guid iv_guid.
Unfortunatly no update is performed of this item.
Q: do I have to use other functions to make the adjustment (like a commit work for example?)
Q2: does anyone have any experience updating characteristic values of a catalog?
Cheers and thanks!
Laurens
Hi Margaret,
Nice to see some well constructed feedback for a change.
There are other options available though.
1.Restart the process
You set the active workflow to logically deleted and use transaction SWUE to create the same event.
this will in effect restart the process, take heed with changes already done in the previous flow.
2: Manually change the container elements
View the workitem in the transaction of your choice like SWI1
Click the workflow log.
Click on the workflow which containers you want to change
Then use menupath goto-->Technical workitem display (CTRLSHIFTF6)
Then use menupath Edit-->Change (CTRLSHIFTF3)
And then change the container element for the approvers by hand.
The second option I actually had to do for a different scenario once for thirtysomething workitems and I strongly disadvise it.
Kind regards, Rob Dielemans
Edit: sorry forgot that you already mentioned the changing of containers bit in the OP
Edited by: Rob Dielemans on May 28, 2009 8:11 AM
Similar Messages
-
SRM Catalog Item GUID-Characteristics table
Hi
I am trying to test class /CCM/CL_ITEM_MANAGER method GET_ITEM_DATA so that i can read catalog item and then update it back
with new characteristic value using UPDATE_ITEM method.
Issue is when hit F8 i don't see these methods to test i am trying to find table where catalog item GUID to
characteristics values (i looked in GET_ITEM_DATA i can'r figure it out) are stored so that i can test my Enrichment BADI independently.
If someone worked bewofe with CCM catalog item GUID and characterstics values if can help to identify the table name.
Thanks in advance
VineelaHi Vinnela,
I am not sure, but try running report
/CCM/VERIFY_CATALOG
for yr catalog
it gives variety of info
see whether it helps
BR
Dinesh -
SRM Catalog and PM BOM integration
Hello Experts,
We have a scenario where client wants to use SRM catalog items (no material master) into the ECC PM BOM as a component.
Catalog items are already integrated with work order processing.
Is this advisable to do? What is required to do this?
Thanks,
SagarHi Sagar,
I believe this is better asked in the ERP Forums, please raise your query there, from the perspective of SRM and Catalog, as long as the calling application supports Open catalog interface call/return, you can use catalogs in it. I uess also helpful for BOM setup would be the SRM-MDM Hierarchy structure
Regards,
Jason -
PO Partial confirmation Quantity not updated for non-catalog items in SRM
Hi Experts,
Partial Confirmation plus Partial Rejection from Ariba(Suppliers network) could not be processed.
Steps to Reproduce:
1) Create a purchase order.
2) Confirm some part of the quauntity and reject the balance part in Ariba.
3) Open the link in SRM and click Copy push button.
4) Click on Process PO and check PO, the PO is not updated with the changes done in Ariba
Expected Result:
PO should update the changes done in Ariba.
Here when part quantity is confirmed and part is rejected at Ariba, its sending a POR but SRM is not updating anything for non-catalog items when POR is copied onto PO.But where as in the Catalog items partially confirmed POR is copied onto PO.
kindly give your valuable inputs to poceed furthur.
Regards,
ChanduHi,
I'm not clear you issue. Is it SC -> PR(backend) -> PO(backend) classic scenario ? or You just created a PO in backend system?
BBP_GET_STATUS_2 will update SC follow-on doc information from backend.
Regards,
Masa -
Change price of Catalog item in S.Cart
We want to change the price of a Catalog item in the SRM shopping cart ....am on SRM5, SP06 ECS...
Is this possible?
I know MDM catalog items come into SRM as non editable /grayed out with a Price already chosen....but we want to change it and add a surcharge.....
am not interested in Price Conditions coz they are at the PO level. I need my edited price and surcharge and total at shopping cart level so i can send shopping cart to the correct approver........
Currently investigating following options ..u2026u2026..
1. Perhaps maintain field price_changeable in BADi-Interface IF_EX_BBP_CATALOG_TRANSFER in method ENRICH_ITEM_DATA. To edit the price!!
2. Reverse engineer Note 1449196 - Item Price revalidation during Shopping cart order process
3. Note 613686 - Price changeable after catalog data transfer....thanks muthu
Any ideas people!!
cheers
alexHi Alex
l do remember Jason offered some custom note todo the same.
*Note 693175 - Making free items changeable*If you transfer items with a price of 0.00 from the catalog to the shopping cart, the price is not ready for input in the shopping cart.
Other terms
Pricing, e-procurement, zero price, shopping cart
Reason and Prerequisites
This is the standard system response as of EBP 3.5 Support Package 05 or Note 569275.
Solution
If you want to change the price after you transfer the item to the shopping cart, implement the attached correction instructions.
This consulting note was created for specific Support Package levels. The context parts may have changed. If you cannot use transaction SNOTE to implement this note automatically, you must find the context parts manually and use the Modification Assistant to adjust the source code manually. This is because separate correction instructions do not exist for each Support Package level.
Need to change price for catalog items...
Note 1386176 - Duplicate/Copy catalog item: Price editable
The item price transferd from catalog can not be changed in SC
you need google well.
let me try if i have luck
Muthu
Edited by: Muthuraman Govindasamy on Sep 30, 2010 12:09 AM -
Inactive Catalog item still display in SRM - MDM catalog
HI,
I have one new issue in SRM-MDM catalogs.
For Catalog Item there is one field called 'status' having value Active and Inactive and I change the status to Inactive for one of the Catalog item in Data manager but when i access the same in SRM - MDM catalog from Shopping cart, the Catalog item still display there.
Does anyone guide me.
SmritiHi experts,
I'm facing the same issue...
I check the NAMEDSEARCH parameter used in the Catalog definition in SPRO and in some cases we have data in this field and in other cases we haven't. Is this a problem?
Thanks for your help
Regards,
FS -
SRM validate the Catalog Item when copying from old templates
Do SRM validate the Catalog Item when copying from old templates and previous shopping carts? Is this standard functionality?
Thanks,
RajanContinuation to my previous post:
My findings based on the analysis I did. Might help people who are looking for similar info.
As Jason mentioned, the Subroutine name is CATALOG_CONTENT_VALIDATE_GET
This is under package BBP_SC --> Function Group: BBP_SC_APP
After making a webservice call to get catalog details, the mapping is done as below.
IF sy-subrc EQ 0.
READ TABLE lt_enriched_item INDEX 1.
IF sy-subrc EQ 0.
ls_item_validate-price = lt_enriched_item-price.
ls_item_validate-currency = lt_enriched_item-currency.
ls_item_validate-price_unit = lt_enriched_item-price_unit.
ls_item_validate-deliv_date = lt_enriched_item-deliv_date.
ls_item_validate-leadtime = lt_enriched_item-leadtime.
ls_item_validate-unit = lt_enriched_item-unit.
ELSE.
lv_validate_item_exception = gc_yes.
ENDIF.
ELSE.
lv_validate_item_exception = gc_yes.
ENDIF.
If you go one level deeper into subroutine PERFORM sc_itm_copy_to_basket, you can see that following validations are performed.
If EITHER price, currency or price unit changes, we get the message u201C&: Price changed due to catalog validationu201D
If UOM changes, we get the message u201C&: Unit of measure changed in catalog; item not transferredu201D
When Delivery date or lead time changes, no message is raised but the new values are copied.
In a nut shell, the fields that are considered for validation are Price, Currency, Price Unit, UOM, Delivery date, Lead Time.
Thanks,
Seyed -
Allow changes to SC fields for catalog items
We're on SRM 5.0 (SRMServer 5.5). In contrast to free-text (non-catalog) items, EBP makes certain fields display-only when adding catalog items to shopping cart. We need to make the following fields available for user's input when the user adds a zero-priced item from the catalog:
- price
- currency
- UoM
One solution I can think of is to make EBP treat zero-priced catalog items as free-text items. To achieve that, will it be enough to implement a BAdI (e.g. BBP_CATALOG_TRANSFER) to blank out CATALOGID and CATALOGITEM fields?
Failing that, can we use BBP_SC_UI_CTRL method of BBP_UI_CONTROL_BADI to make price/currency/UoM available for input?
I know there're SAP Notes to make Price and UoM changeable for catalog items (693175,748855), but they all entail modifications which I'd like to stay away from as much as possible.
Thanks and Cheers,
SergueiThank you for your quick response, Yann.
So, you confirm that the CATALOGID field is available to the BBP_CATALOG_TRANSFER BAdI, and that clearing it will open the fields? Also, can I assume that CATALOGID is the only criteria in price determination for my scenario - so that, when CATALOGID is blank, EBP will treat the item price as "manual price", not "catalog price"?
You've brought up a good point about reporting on this field. I'll keep it in mind.
What about the second approach: can BBP_UI_CONTROL_BADI (or some other BAdI) be used to modify SC field status for the mentioned fields?
The two OSS Notes are not part of standard, they are not included in any Support Pack, so they're mods, and will be our last option to consider.
Cheers,
Serguei -
SRM catalog setting to make items level field vissible.
Hi
I am dealing with SRM catalog activitities . I want to know the setting by which we make the field visible on portal at item level.
rgds
amarendraHello amarendra,
which field are you talking about ?
The one to access to catalog?
If yes, you have to maintain Web Service value for CAT attribute.
Regards.
Laurent. -
After system copy (ccm), how to change logsys in catalog items?
Hello all
We're still on ccm 2.0 sp03 and did a system copy of our production ccm system to our test ccm system. But the catalog items still refer to the production logical system being the production R/3 system.
How can we change the logical system of catalog items without having to delete / rebuild our catalogs from scratch in our test system?
Using transaction BDLS or BDLSS does not work.
TIA
RenaudHi All,
I have similar scenario. Can anybody suggest the solution.
Regards,
Avinash -
Catalog items visible to everyone, purchaseable only for some users
Hello everybody
Me again trying to find a solution to the following problem:
We need to have some items in our catalog that are visible for every user but only purchaseable via shopping cart / SRM for some authorized users. I couldn't find any possibility in the customizing. So my attempt would be to add an additional attribute in CCM where I can put some kind of flag and then to construct an authorization check based on that flag and on a authorization profile. In case the authorization check fails, the catalog item may not be put in the shopping cart. Preferabily the shopping cart icon should be disabled for such items.
Did somebody out there already think about something similar or already implemented something like that?
It would also be a good basis for offering a publicly viewable, browseable catalog for "window shopping", because I also didn't find a way until now to publish the catalog as a standalone web application without shopping cart functionality.
What do you out there think about it?
Kind regards,
RenaudHi Christophe
Thanks a bunch for your great help! I could solved the problem and am now able to have some catalog items visible but only purchaseable for authorized users. This is what I've done:
1. Create a new authorization class (SU21)
2. Create a new authorization object within this class
3. Create a new authorization field within this object
Don't forget to save and quit the SU21 transaction and then reenter it (/nsu21) because only then you'll see your changes / additions... seems to be a "refresh-bug" in SU21.
4. Create a new role (PFCG) and an authorization profile containing the new authorization object. Assign the values needed.
5. Create a new attribute in CCM and assigned it to OCI cust_field5 (because this one is of type TEXT50)
6. Implemented some code in BAdI BBP_CATALOG_TRANSFER:
DATA: wa_et_sc_item_data TYPE BBP_PDS_SC_ITEM_D.
DATA: wa_catalog_content TYPE BBP_WS_OCI_ITEM_S.
DATA: lv_authorized TYPE c.
DATA: lt_limtab TYPE TABLE OF string.
DATA: wa_limtab(10) TYPE C.
DATA: lv_message_v1 LIKE SY-MSGV1.
DATA: lv_message_v2 LIKE SY-MSGV2.
DATA: lv_message_v3 LIKE SY-MSGV3.
DATA: lv_message_v4 LIKE SY-MSGV4.
LOOP AT et_sc_item_data INTO wa_et_sc_item_data.
* Get corresponding line from transferred catalog data
READ TABLE catalog_content INTO wa_catalog_content
WITH KEY line = wa_et_sc_item_data-number_int
BINARY SEARCH.
IF sy-subrc = 0.
* If field content for checking authority against is not empty...
IF NOT wa_catalog_content-cust_field5 IS INITIAL.
* Perform authority check
AUTHORITY-CHECK OBJECT '<your auth.object here>'
ID '<your auth.field here>'
FIELD wa_tab.
IF sy-subrc <> 0.
MOVE wa_catalog_content-cust_field5 TO lv_message_v1.
MOVE wa_et_sc_item_data-ordered_prod TO lv_message_v2.
* Eliminate leading zeroes from product number
WHILE lv_message_v2+0(1) = '0'.
SHIFT lv_message_v2.
ENDWHILE.
* Output message
MESSAGE ID 'ZXXX'
TYPE 'W'
NUMBER '000'
WITH lv_message_v1
lv_message_v2.
* Remove item from SC
DELETE et_sc_item_data.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
Interesting observation is, that when issueing the message with type = 'I' it does not condense the message text. With type = 'W' it does...
I also found out the reason, why the way via ET_SC_MESSAGES will not work: SAP <b>has hard coded</b> somewhere after the BAdI call the message id and message number... so no way to bypass this without a modification.
Kind regards,
Renaud -
Duplicate catalog item; price editable
Hi All,
I have a client running SRM server 550; they have an issue that when a user creates a shopping cart and adds a catalog item, the price is not editable (as it should be). However, if the user then creates a copy that item, using the "duplicate" button in the SC, then the price becomes editable.
It appears this is a known problem and there is a solution for this (note 1386176) for SRM7.0, does anyone know if the same solution can be applied for SRM 5.0, or if there is an alternative solution?
Thanks.Tom,
I suggest you open a message with SAP. The problem here while copying the SC catalog line item is creating the condition type manual and hence it might be allowing you to edit the price. If my guess is correct, then you would be able to change the price on PO as well (obviously you should be on extended classic).
Bu using the Control UI Badi, and having an extended classic scenario, you may be deferring the problem from the SC to PO. You might want to do the same kind of development on the PO also.
Else, SAP has fixed the same issue for us on SRM 6.0. Of course, we could have done the meta data development on SRM 6.0 which we avoided and SAP gave a fix which is applicable for SRM 7.0 also.
Thank You,
DV -
Hi all
I need to download the full SRM Catalog structure together with all details from SRM to logcal XML file.
I've checked all around here on SDN but have not comed up with a clear solution...
One of these were : http://forums.sdn.sap.com/thread.jspa?threadID=1217084
My concern is more or less UNICODE..
So far I have tested this
- I have a deep structure with all the data about the Catalog structure <t_dyntable>
- then I try to convert this contents into UTF-8. By doing this I will get some of the special characters to show up as they should ( it think one of those were .amp that were successfully translated to &)
- Then CALL TRANSFORMATION were done to get the XML-file
Below you can see some different way's I have tried... Trying to use XSTRING.... and download via type BIN for GUI_DOWNLOAD. My starting point was with UTF-16, but with that I could not read the XML file at all - With UTF-8 I can read it but still as soon as some kind of special sign shows up the XML-editor complains about - Not allowed letter. Please help
Best regards
Henrik
data: g_ixml type ref to if_ixml,
g_stream_factory type ref to if_ixml_stream_factory,
g_encoding type ref to if_ixml_encoding,
ostream type ref to if_ixml_ostream.
data: v_encoding TYPE abap_encoding.
DATA xml_xstring TYPE xstring.
constants: encoding type string value 'utf-8'.
v_encoding = encoding.
g_ixml = cl_ixml=>create( ).
g_stream_factory = g_ixml->create_stream_factory( ).
g_encoding = g_ixml->create_encoding( character_set = encoding
byte_order = 0 ).
ostream = g_stream_factory->create_ostream_xstring( string = xml_xstring ).
ostream->set_encoding( encoding = g_encoding ).
CALL TRANSFORMATION Z_TRNS_CCM_TO_MDM_TRY
SOURCE ITEMS = <t_dyntable>
OPTIONS xml_header = 'FULL'
RESULT XML ostream.
* Convert XString to String
data: loc_conv type ref to CL_ABAP_CONV_IN_CE,
loc_xstring type xstring,
loc_string type string.
CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE
EXPORTING
INPUT = xml_xstring
ENCODING = 'UTF-8'
REPLACEMENT = '?'
IGNORE_CERR = ABAP_TRUE
RECEIVING
CONV = loc_CONV.
TRY.
CALL METHOD loc_CONV->READ
IMPORTING
DATA = xml_string.
CATCH CX_SY_CONVERSION_CODEPAGE.
*-- Should ignore errors in code conversions
CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
*-- Should ignore errors in code conversions
CATCH CX_PARAMETER_INVALID_TYPE.
CATCH CX_PARAMETER_INVALID_RANGE.
ENDTRY.
data xstring type xstring.
types: BEGIN OF ldata,
f(5000) type x, "(2556) type x,
END OF ldata.
data table type table of ldata.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = xml_xstring
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
tables
binary_tab = table
* CALL TRANSFORMATION Z_TRNS_CCM_TO_MDM_TRY
* SOURCE ITEMS = <t_dyntable>
** OPTIONS xml_header = 'NO'
* OPTIONS xml_header = 'FULL' "
* RESULT XML xml_string.
REFRESH GT_ITAB.
CLEAR <t_dyntable>.
REFRESH <t_dyntable>.
APPEND xml_string TO gt_itab.
IF FILE_LO IS INITIAL.
FILE_LO = 'C:\TEMP'.
ENDIF.
concatenate FILE_LO '\item_list_' lv_pack_count_string '.xml' into gs_file.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = gs_file
* FILETYPE = 'BIN'
CHANGING
data_tab = gt_itab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.Hi again
With coding above the download xml-file will contain
& : is interpreted as & in the xml-editor = OK
BUT the file contains other special signs that do not work:
± : is not interpreted ok. XML-editor will stop analyzing the file = NOT OK
Do you know if I could use another way of codepage or something to also handle these special signs.
Best reg
Henrik -
SC catalog item has to create a PR instead of a PO in backend system
Hi,
I am working in classic senario SRM 7.0.
My requirement is when a SC is created using catalog item with a Z field (checkbox) is checked, then it has to create a PR rathan a PO in the backend system.
I am getting an error as partner cannot be changed when I tried changing the partner funtion from 19 to 39 in DOC change BADI.
Please help me solving this req.
Thanks
Arun.Hello Arun,
The type of follow on document of the shopping cart is decided based on the current product category of the item. If you don't change it, the system will still try to create POs on the backend.
You have to maintain product categories similar to the ones you are currently using, but customized to create PR instead of PO. User has to choose this product category to create PRs
Best Regards
Thiago Salvador -
SoCo - Replace with Catalog Item SC: CATALOGID field not updated
Hi All:
We are in SRM 7.0 and ECC 6 Classic Scenario
In our PDP business scenario, PReq's from ECC goes to SoCo and we replace some requirements with Catalog Item. The issue for our compliance reporting the SC
table:BBP_PDIGP
field: CATALOGID
is not getting updated.
Do we need a BADI to this work or this is a bug?
Any input is appreciated.
Thanks,
MikeAny changes you made to the SC in sourcing cockpit will not be saved to the SC tables. This is standard SRM behavior. You may have to write a code in custom programi to save the data back to SC table.
Regards,
Jagadish
Maybe you are looking for
-
Can I have Two iPods on one iTunes???Help Me!
Hey There, I'm just wondering if I can have 2 ipods on the same iTunes (can i put my library on a friends new ipod?????) Help me! Last time i tried something with i tunes i lost my music. Thx
-
Is WMF3 or WMF4 supported in Exchange 2010 SP3 UR5 installed on Server 2008 R2 SP1?
We'd like to upgrade WMF (aka powershell) on our Exchange 2010 servers but I haven't been able to find any updated information on support with the most recent servicepack/update rollup. Is installing WMF3 or WMF4 supported on Server 2008 R2 SP1 w/ Ex
-
Post Author: mdde CA Forum: Data Connectivity and SQL Hello everyone! We're experiencing the following error, connecting with "Crystal Developer XI" or "Crystal Developer 2008" to a unicode-configured Oracle 10g Database using "Oracle Server"-driver
-
4G 20GB ipod showing less space and I've already emtied the trash
Hey all, I have an interesting thing going on. Basically I have a 20GB iPod In the finder if I bring up an info window for the ipod it shows that 18.5gb are taken up and there are 1.5gb or so free space. Here's where it gets interesting. Earlier, I o
-
CS5 Master Collection: So much installs, even when I choose not to.
Hello everyone! I have installed Adobe CS5 for the mac, but have been very choosey in my install options. During the install, I only chose Photoshop, After Effects and OnLocation to install, as well as unchecking ALL of the other options. Low and beh