Truncated (shortened) descriptions for products and catalogs

Is there any sort of tag attributes for the product and catalog descriptions that shorten them like the ones for I believe it is blogs (or maybe web app items)?
For whichever it is, I believe the tag is something like {tag_description, 100} for it to spit out 100 characters of the description.

This was doing my head in. I do not understand why {tag_description} won't allow character length for products. I used javascript to alter the text and thought I'd post my solution in case others are stuck and maybe to prompt people to improve on it. I have just barely started to learn js so this is most likely not the best way to do this. It relies on the product description being in <p> tags and takes only the first paragraph of the description but could be modified to just alter the string length.
In the small product layout I placed the full description in a div with display:none; and id="{tag_name_nolink}" so that each product has a unique id.
Then I placed the below code where I want the short description to appear.
<script>
var desc = document.getElementById("{tag_name_nolink}");
var shortdesc = desc.getElementsByTagName("P")[0].innerHTML;
document.write(shortdesc);
</script>

Similar Messages

  • IPC pricing gross value for products in catalog

    Hello all,
    In ISA b2b application I need to add a new column with gross value for products in catalog. Here is how I've tryed :
    </i>
    <!-- CBI Added gross price -->
                   <td align="right" >
                        <%IPCItem priceRef2;
                         try {
                          priceRef2 = (IPCItem) item.getItemPrice().getPriceInfo()
                                       .getPricingItemReference();
                          if (priceRef2 != null) {
                               DimensionalValue grossValue = priceRef2
                                                 .getGrossValue();
                                       %>
                                       <%=grossValue.getValueAsString() + " "
                                                 + grossValue.getUnit()%>
                        <% } else {
                             %><isa:translate key="z_catalog.isa.nogrossvalue"/> <% }
                         } catch (Exception e) {
                         %><isa:translate key="z_catalog.isa.ipcexception"/>
                         <%} %>
                   </td>
                   <!-- CBI Added gross price -->
    </i>
    The problem is that the gross value is the same with the net value.
    I've try also using <i>item.getItemPrice().getPriceInfo().getAllPriceInfos()</i>
    where item is WebCatItem, and retrive an array of PriceInfo (s) with only one PriceInfo object which has the type <b>netValue</b>.
    Then in the backendobject-config.xml I've modify the priceTypes attribute value for BO "CatPriceCalc", but without any succes. Here is the snippet:
    <i><businessObject type="PriceCalc" name="CatPriceCalc" className="com.sapmarkets.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC" connectionFactoryName="JCO" defaultConnectionName="ISAStateless">
                        <params>
                             <!-- CBI gross value -->
                             <b><param name="priceTypes" value="totalNetValue totalGrossValue"/></b>
                             <!-- for allowed values see defined constants in com.sapmarkets.isa.backend.boi.webcatalog.pricing.PriceType -->
                             <param name="doItemCalls" value="true"/>
                             <!-- set this to true if you want to have additional call of CRM_ISA_PRICING_ITMDATA_GET when doing item pricing -->
                        </params></i>
    Do you know how to solve this problem? Or why is not working.
    Any help (soultion, docs, links) is very wellcome and rewarded.
    Thank you
    Bogdan

    Hi Bodgan,
       It seems that some values like tax, discount are not being calculated by IPC as required parameters are not sufficient enough to differentiate between the two. You can run catalog pricing analysis and see what are the gross and net pricing value. You can update the extra parameters to IPC by extending the class you mentioned and modify backend config xml file to use that class for ISA.
    Regards.
    Vivek

  • What's the most efficient way to extend product and catalog classes?

    If I have additional product and catalog properties in a new database table, should
    I create a new class and extend the ProductItem and Catalog classes or should
    I manage these properties via the set/get property methods on the existing classes?
    Is there a difference in performance with the two approaches?

    Performance wise using the set/get property methods is going to be more
    expensive... However, I would recommend the property approach. You really
    don't want to modify or extend the provided source code. I have done this
    and the approach works out fine...
    Another approach that I have used is to create additional tables and classes
    that key of the product and catalog classes. Again with the intension that
    we don't modify provided stuff... For example, we implemented related
    products using this approach.
    "Bill" <[email protected]> wrote in message
    news:3fbcf598$[email protected]..
    >
    If I have additional product and catalog properties in a new databasetable, should
    I create a new class and extend the ProductItem and Catalog classes orshould
    I manage these properties via the set/get property methods on the existingclasses?
    Is there a difference in performance with the two approaches?

  • Give me description for ABAP and XSLT and JAVA Mapping

    i want detailed description for XSLT AND ABAP,JAVA Mapping and where they require coding and some examples for this items and differences for these mappings and message mapping and some examples which shows difference between these items

    Hi,
    Java mapping:
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    ABAP Mapping:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    XSLT mapping
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    ABAP XSLT mapping
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    Regards
    Vijaya

  • Can we have a common database for TARGER and CATALOG in RMAN?

    Hi,
    Can we have a common database for TARGER and CATALOG in RMAN?
    I am trying to duplicate a auxilary database using rman. In this situation can i have common db for target and catalog?
    Please suggest.
    Thanks
    Naveen.

    You just won't use a CATALOG database.
    Check Creating a Duplicate Database with RMAN for the full process.

  • Colective Settlement and "CLSD"Status for Production and Maintenance Orders

    Hi dear experts,
    Is that possible to use transaction KO8G for collective settlement of Production Orders? Apparently it only works for Maintenance Orders.
    The same applies for transaction CO99 for getting "Closed" status in Orders. Apparently it does not take the Production Orders, even if the selection "With CO Production Orders" is active. Is there any additional configuration we should do?!
    We would like to do settlement (and mass set "Close" status after) for Production and Maintenance Orders at the same time.
    Thanks in advance,
    Lígia Moreira

    Hi,
    You can use CO88 for settlement of production orders. Normally, CO99 should take production orders if the flag is switched. Do you receive any error when you do it?
    Regards,
    Eli

  • Monthly return for production and removal of goods - ER 1

    How to generate -Monthly return for production and removal of goods - Form ER 1
    is there any standard reports in SAP which directly can be submitted to Excise Authorities.
    regards
    Rajesh

    Hi,
    -> Enter J1ILN (this will provide the India Localisation menu path)
    -> Select Register or Reports
    -> Here you can find the transaction code to take the RT12 report.
    Please check and revert
    Regards
    Manivannan R

  • Transfer Forecast data based on Customer information for product and plant

    Hi,
    This is the scenario.
    Our characterstics are Product,Plant and Customers
    and for 1 plant and product there may be 5 customers.
    My characterstics will be
    P1 L1 C1
    P1 L1 C2
    P1 L1 C3
    P1 L1 C3
    P1 L1 C4
    P1 L1 C5
    (P1-Product; L1 for Plant and C1,C2...are customers)
    Now forecast data will be different for different customers.
    I transfer demand from APO to ECC for PRoduct ,Plant and different customers.
    Then in ECC how to check for different customers.
    If you go to MD63 you can see for plant and product but not for customers.
    This is required as we are running MRP for that product for component planning.
    Thanks in Advance
    Raghavendra Pai

    Hi Ragvendra,
    In ECC we can transfer at material and plant level only and not information of customer. As you need for MRP run may be you can explore possibility of using some badi and get customer no in requirement plan number or some other feilds.
    Other option is planning with descriptive chartceristic in APO only. It is not possible to transfer demand with descriptive charcteristics to ECC.
    Here you can forcast demand on customer level. Transfer it as PIR with descriptive charcteristics to PPDS where you can plan for this demand.
    For information see link http://help.sap.com/saphelp_scm50/helpdata/en/c1/147a375f0dbc7fe10000009b38f8cf/frameset.htm.
    If your requirement is to transfer customer information to ECC from DP in standarad it is not possible as far as I know.
    Regards,
    Siddharth

  • Rman terminating The Production and Catalog database

    Hi ,
    In 10g while Taking Rman backup for a volume of approax 600 GB , The backup worked Worked Well For 200 GB but then Terminated the Target and Catalog database ie The Alert Log shows There is a clean Shutdown on server and On Catalog Server In Alert Log Itshows the message User requested Cancel of Operation and Finally Shutting the Instances Down .
    I would Be thankful I any Solutions or possible Reason are provided , as my target is in 24X7 enviornment .
    Thanks in advance

    Hi , I could Not have the the snap shot or any material to show ,
    The backup is basically to Disk and not on a tape ,
    But Since the problem faced while taking the backup on 10g through the catalog server , compared to 9i databae 10g generates the backup file on my production server ,
    to avoid this I had actually done a NFS mount LInux feature Where I mounted a Huge enough partition of My catalog Server to production server generating the Rman backup indirectly to my catalog server instead of production server .
    But its typically OS conceptual , I dont find any thing wrong , Also I had assigned enough Large Pool Parameter value to ensure I have enough Memory to My rman backup .

  • Sales forecasting scenario for production and procurement

    Hello Gurus
    We have currently one scenario  need your inputs and expertise
    We have a requirement for the Sales forecast for the production and procurement planning. More over its like demand planning but sales needs to have a 6 months or yearly sales forecast in the system.
    Is there any option or functionality available for the same.in  SAP-SD
    Thanks inadvance
    Regards
    Venkat

    Hi KV chalapathi
    check this link
    How to maintain Sales forecast or projection in SAP
    hope clear your issue
    Regards,
    Krishna

  • Get description for node and items in WD ABAP - Tree

    Hi all,
    I want to dislay the description for all nodes & Items when creating a Tree. In normal ABAP we assign the relevative text and fill the node table & Item table.
    But in the case of WD ABAP how it works.
    Please suggest.
    Thanks
    Sanket sethi

    Hi,
    Refere WD application WDT_TREE. In this application, 2 attributes are taken as mt_folder_struc and mt_file_struc. These are of type TIHTTPNVP. While filling these tables, make sure to pass proper parent child node.
    See methods, FILL_FILETABLE and FILL_FOLDERTABLE.  field NAME corresponds to child key
    and  field VALUE corresponds to parent key. as these are of type STRING, you need to concatenate text description to code and accordingly fill the tables mt_folder_struc and mt_file_struc.
    Regards,
    Chandra

  • Mass update for production and planned order MRP controller

    Hi Gurus,
    It's anyway possible to mass update MRP controller for Production orders and  Planned orders. If any please provide me step by step process.
    Thanks,
    B.Deethya.

    I feel You have changed the MRP controller in Material master and want to incorporate same in production order & plan order.
    For Planned order Run MRP with delete and recreate mode, system will create a new plan order with MRP controller in Material master
    For production order, Mass change is not possible, create a simple BDC or LSMW, And change the MRP controller

  • Technical Monitoring one template used for production and non-production system.

    Dear All,
    Is there a way to have one template in Solman Technical Monitoring for production system and non-production system with different alerts ? For example if it exceeds a threshold for production system it will trigger red alert or set automatically an incident and if it's non prod system it will go to yellow warning alert ?
    Regards
    Lukasz Goral 

    Hi Likasz,
    You first create and customize the template, and then assign to a system.
    If it was selecting a system and then customizing a template, then may be such functionality makes sense.
    So, I don't think that is possible.
    Better would be copy the template used for production to non-production and make the adjustment to it.
    Regards,
    Divyanshu

  • Naming conventions/hierarchies for products and software components

    Hi,
    Can someone please advise what they have found works well for naming products and software components and recommended hierarchies?
    Following the SAP model it seems to make sense to have a custom product for each SAP product when we are developing custom interfaces for the related system, e.g. ZPRODMYCOMPDEVS_R3, ZMYCOMPDEVS_CRM etc.
    Beneath this level as similar convention could be used for the software component, e.g. ZSWCMYCOMPDEVS_CRM or if it is a modular SAP system like R/3 perhaps a grouping per key application area? (e.g. HR, Finance, Logistics etc)
    I know it's not compulsory to start these with 'Z' but it would help group custom developments.
    Any advice greatly appreciated.
    Alan

    Hi,
    Please refer to this blog...
    /people/michal.krawczyk2/blog/2005/04/09/xi--saps-document-templates
    that is mentioned in the thread
    Name space
    Regards,
    Bhanu

  • Missing setup.exe for production and web premium

    I donwloaded all of the files for Production Premium and Web Premium, but I am missing the file setup.exe for both. Is there a quick way to get this without redownloading everything?

    I am having a similar problem.  I just purchesed Dreamweaver CS4 on DVD, and it is missing the setup.exe file.  I read the read me file and looked in the folder where is says it should be, and it's not there.  I also did a search for "setup.exe" on the entire disk and no results came up.
    Any suggestions?

Maybe you are looking for

  • Why does that matter

    That suck y'all should make one for the iPod touch 4g I'm a user of the iPod touch 4g and i can not afford to be buy another iPod just because an other iOS came out it would be expensive and iPod touch 4 is like having a iPhone 4 and it make me disap

  • Inheritance of internal orders via org units

    Hello, Are the internal orders(FICO) inherited from an org unit to its depending units? Do we need to activate any switch in T77S0 or is there another customizing point? Best regards, Karim

  • Multiple plist files for Quicktime X

    Hello- I noticed that in my user preferences folder there are multiple (79) preference files for Quicktime player X. They all have the following format: com.apple.QuickTimePlayerX.plist.fHp953T The last seven characters are different for each file. I

  • Custom Buttons in FlashPro/TOC Collapser

    Hello all. My project is a native RH 6 project (it was not imported from anything else), generated as FlashHelp Pro. I have two questions: 1) is there a way to add a custom button and place it next to the other three at the top? I've gotten several r

  • RAID won't power down and then lost one of the 2 drives

    I tried to power down my RAID before leaving the studio last night and it would not shut down. Both RAID drives were functioning when I shut down my G5. I didn't shut down power to the RAID for fear I might corrupt or lose some files. Now one of the