on 10-17-2011 5:34 AM
Hi,
We are working with SRM7.0, SP09. I have confirgured the system for extended classic scenario with catalong integration. We have a requirement to make the free text catalog item editable which we acheived by making fields CATALOGID and CATALOGITEM blank.
The problem here is that this enhancement is also removing the vendor and price information of the catalog item, which we don't want to.
Can anyone suggest a way to retain this information in a free text catalog item while keeping it editable? Your solutions and suggestions will be highly regarded.
Thanks & Regards,
Prashant
Edited by: Prashant Sarjerao Rahane on Oct 17, 2011 6:39 AM
Hi Prashant ,
To make the free text catalog item editable and removing the vendor and price information of the catalog item
no need to make fields CATALOGID and CATALOGITEM blank
you need to create the enhancement for the class /SAPSRM/CL_PDO_DYN_MDF_IT_SC
in post method of description you need to add this code
IF ( is_item-catalogid IS NOT INITIAL OR
is_item-catalogitem IS NOT INITIAL OR
is_item-subtype EQ /sapsrm/if_pdo_obj_types_c=>gc_subtype_i_dp ).
cs_metadata-visible = abap_true.
cs_metadata-enabled = abap_true.
cs_metadata-required = abap_false.
for price , you need to create the enhancement an add this code
IF ( NOT is_item-catalogid IS INITIAL AND
is_item-gross_price IS INITIAL AND
is_item-ctr_hdr_number IS INITIAL ) OR
( is_item-catalogid IS NOT INITIAL AND
is_item-price_origin NE /sapsrm/if_pdo_price_calc_c=>gc_priceorig_found AND
is_item-ctr_hdr_number IS INITIAL ) .
cs_metadata-visible = abap_false.
cs_metadata-enabled = abap_false.
cs_metadata-required = abap_false.
.
ELSE.
cs_metadata-visible = abap_false.
cs_metadata-enabled = abap_false.
cs_metadata-required = abap_false.
ENDIF.
Thanks & Regards
Pradeep Kumar Dondeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
This solution helped to make the free text catalog item editable in SC for the requester.
I observed that once SC is submitted and send for completion approval, the approver is no longer able to edit the free text of the catalog item. We want to allow the purchaser to edit the free text description, product category and price.
Can you pls also suggest for this requirement?
Thanks & Regards,
Prashant
Edited by: Prashant Sarjerao Rahane on Oct 18, 2011 9:25 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.