Not able to fetch the item level rating for the document programatically in sharepoint 2013

Hi,
I am trying to get the current logged in user rating for items in document libraries . However. It is giving rating as 0 for the all the documents. I am using below code
 SPSite site = new SPSite(SPContext.Current.Web.Url);
                    SPWeb web = site.OpenWeb();
  string fileUri = "http://svdvspapp01:2015/" + webUrlSplit;
                            Uri urifileUrl = new Uri(fileUri);
                           SPServiceContext context = SPServiceContext.GetContext(site);
                            SocialRatingManager mySocialRatingManager = new SocialRatingManager(context);
                            SocialRating aRating = mySocialRatingManager.GetRating(urifileUrl);
                            string myRating = aRating.Url + ": " + aRating.Rating;                       
                            objtopRated.myRating = myRating; } }In the above code fileUri is the docuemnt url of the item in doc libraryeg. http://svdvspapp01:2015/ProductsandPricing/Pricing/Pricing_Document 1.xlsxI refrred the below msdn linkhttp://msdn.microsoft.com/en-us/library/ff407954.aspx

Hi Labhesh,
I understand that you want to search the date field in the document library inline search.
I recommend to use the managed property for the dates column in the query.
For example, if the managed property for the date column is called testdate, then type “testdate:2014-11-28” in the search box in the library for searching the date.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support

Similar Messages

  • How to do the reversal in the item level of a (delivery)document?

    hi friends,
    Is there any way to put reversal, at the item level for the document already posted ?
    Do we have any standard funtion module or BAPI to pass value from the editor ?
    My task is, I want to do the reversal in the item level of the (delivery)document.
    I tried with the BAPI - BAPI_ACC_GL_POSTING_REV_POST, but this is reversing the whole document. but I want to reverse in line item only.
    please suggest me.....
    Quick replies would be rewarded.
    Thanks in advance.
    Regards

    Hi Rob,
    yes, what you told is right. I want to do the same. I will first reverse the particular line item and will post the correct entry. but here, I need to do that for a huge number of document. It will be good if I pass the values using a funtion module or a BAPI to reverse. So, I want a Funtion Module or BAPI to process it.
    anyway, after reversing the document, I am going to post the document with correct entry.

  • How do I find a SAR (radiation level) rating for the 7290?

    Found a site that gives the SAR ratings for cell phones and of all the Blackberry's the 7290 seems to have the lowest.  However, some of the numbers on this site did not match with the manufacturer's ratings so before I buy a 7290, I want to verify the SAR rating with Blackberry/RIM.  How can I find out the SAR rating for the 7290?

    Hi vissw,
    Excel has a better function: linestat, I thought it was (I'm not sure because excel is localized for these functions), maybe linest.
    In LabVIEW look foor 'general polynomial fit' it will do what you want, but I'm not sure it is present inevery LV version.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Not able to add more than one gift for the GWP promotion.

    Hi,
    I have created a GWP promotion. This promotion is adding gift after adding corresponding product to cart. But, when I try to add the product second time, it's not adding the gift. I am using ATG 10.1.1 with CRS. In ATG merchandising guide, it is mentioned as GWP promotion will add gift only once.
    How can we add gift second time?

    The GWP templates create a "when" type of promotion, which means the rule is applied once. That matches the behavior you're seeing. If you want the rule to be applied more than once, you need a "for next" type of promotion. You've got two basic choices for how to do that.
    If you've got one GWP promotion for which you want the "for next" behavior, you can create the promotion using the Advanced Condition and Offer option in the UI.
    If you anticipate creating many "for next" GWP promotions, then it would probably be worthwhile to create one or more new templates. You can start with a copy of an existing GWP template and change the pmdlrule property. To see the effect of "for next' on a pmdl rule, either create an Advanced promotion or look at one of the non-GWP templates that get applied more than one, such as bogo. Details about creating your own templates appear in the "Adding New Promotions Templates" section of the "Understanding Promotions" chapter in the Commerce Programming Guide.
    Before you put "for next" style GWP promotions into production, please be aware that some bugs have been discovered related to the manual addition and removal of gift items. A hot fix is available from Oracle Support.

  • Not able to Check-out/Check-in .pdf file from Client application in SharePoint 2013

    Hi,
    When I click on .pdf document in document library its getting opened in browser not client application.
    I have done all the below settings.
    1. Set Opening Documents in the Browser as Open in Client Application.
    2. Activated Open Documents in Client Application by Default.
    Still .pdf files getting opened in browser.
    Then I Tried by doing the below Internet Setting.
           In Internet Explorer -> Manage add-ons and disabled Adobe PDF Reader -> Disable (So that the pdf should open in Browser).
    Now I am able to Open the document in Client application but its not connected to SharePoint (
    I am not able to do Check-in/Check-out/Save file back to SharePoint).
    Can Any one Help me with this issue.
    Also note Build number and CU :
    15.0.4675.1000 - December 2014
    Thanks in advance.
    pavan2920

    the option to open a PDF in the browser is based on the Web Application's list of allowed MIME types... it cannot be controlled on a per-library basis.
    see: http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-browser-file-handling-deep-dive.aspx
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to remove the worksets from the Top level navigation for the ESS role.

    Hi All,
    I am working on enabling and disabling certain services in the ESS worksets.
    we are using EP 7.0, ECC 6.0 (NW2004s).
    When I login as a user with ESS role, I can view the changes in the overview pages. However, the worksets are still visible in the TOP Level navigation of th poral. can anyone please explain me how to remove the workset from the Top level navigation.
    Thanks for your help
    Regards
    SM

    Hi,
    Go to the ESS role via Content Admin, then double click the workset (or page or iview) and in the drop down select navigation. Then click the <i>Yes</i> radio button of the "<i>Invisible in Navigation</i>" property.

  • Not able to fetch some network switches data in LMS 4.0

    Hi Experts,
     we have LMS 4.0 and we found one problem that some network switches data are not able to fetch with LMS.
    what could be the reason to happen this type of problem?
    please assist with best solution to resolve this issue..
    Suhas B.

    Hi,
    I am facing below problem
    Config Archival Status
    No. of Devices
    Successful
    48
    Failed
    1
    Partially Successful
    0
    Total
    1345
    Configuration Never Collected
    1338
    So I look up a device in the Device Center, here is its Reachability Status:
    SNMPv1 Read
    Success
    SNMPv2c Read
    Success
    SNMPv1 Write
    Failed
    SNMPv2c Write
    Failed

  • What is the max voltage rating for motherboard on Satellite 1110?

    what is the maximum voltage rating for the motherboard in the Satellite 1110 please?
    Because my current cpu (1.5ghz celeron) is 1.025 volts and i would like to change the cpu
    to something faster (cooling will be dealt with btw XD)
    The only problem being that the new cpu needs 1.3 volts to run.
    Any info wud b much appreciated

    I had the same machine years ago and I suggest you no to do this, because nothing will happen.
    We tried to put a another CPU onto Mainboard and it simply didnt boot. I dont know why it didnt work, but luckily the machine started after that with the old CPU on the board again. I assume that the chipset is not giving enough power to CPU. I assume, when youre putting the wrong CPU on the Board then you, in the worst case, seriously damage your Mainboard.

  • Not able to fetch the data by Virtual Cube

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

    Hi Experts,
    My requirement is I need to fetch the data from Source System (From Data base table) by using Virtual Cube.
    What I have done is I have created Virtual Cube and created corresponding Function Module in Source System.
    That Function MOdule is working fine, if Data base table is small in Source System.But If data base table contains huge amount of data (millions of record), I am not able to fetch the data.
    Below is the code I have incorporated in my function module.
    c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.
      DATA:
        l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.
      l_s_map-iobjnm = '0PARTNER'.
      l_s_map-fldnm  = 'PARTNER'.
      insert l_s_map into table l_th_mapping.
    create object l_r_srv
        exporting
           i_tablnm              = '/SAPSLL/V_BLBP'
          i_th_iobj_fld_mapping = l_th_mapping.
      l_r_srv->open_cursor(
        i_t_characteristics = characteristics[]
        i_t_keyfigures      = keyfigures[]
        i_t_selection       = selection[] ).
       l_r_srv->fetch_pack_data(
        importing
          e_t_data = data[] ).
      return-type = 'S'.
    In the above function Module,Internal table L_TH_MAPPING contains Info Objects from Virtual Cube and corresponding field from Underlying data base table.
    The problem where I am facing is, in the method FETCH_PACK_DATA, initially program is trying to fetch all the recordsfrom data base table to internal table.If Data base table so lagre, this logic is not working.
    So would you please help me how to handle these kind of issues.

  • Notes at the Item level is not getting Copied

    Hi All,
    When a quotation is copied by clicking on the "Copy" button, the new quotation has all the Notes copied at the header level. But all the Notes maintained at the Item level dosent get copied.
    The Copy control has been maintained between the Item Category (ZAGN to ZAGN) and a Copy Routine 9REVQT is maintained.
    Help in this regard would be appreciated.
    Thanks
    Srinivas

    Hi Thomas,
    Thanks for the reply.
    I tried that but looks like it doesnt work as we are not creating the follow up but copying a quote. Once copied the new quote doesnt have the notes maintained at the item level.
    Could you please tell me what would be the "Reference Text Type" for the notes maintained at the item level (As shown in the attachment)?
    Regards
    Srinivas

  • Not able to drag WEB items into the Layout. What can be the issue?

    Hi all
    I am not able to drag WEB items into the Layout. Is it a Basis issue? Or some changes in the settings need gto be done.
    Thanks

    Solved my own problem.  Didn't realize I had to export the preview file from iBooks author.  Once I did that, I was able to select that file within the preview box.

  • GL Account details at the header are not flowing to the item level in SC

    Hi All,
    While creating a Shopping Cart, first I am specifying the cost assignment details (i.e., Cost Center, GL Account) in the header and then creating the line items for the shopping Cart.
    While creating these line items, the cost center which is specified in the header is populated at the line item, but GL Account is blank.
    I need to populate the same GL Account at each line item.
    I checked the badi: <b>BBP_DETERMINE_ACCT</b> to populate the GL account for line items. But I am unable to determine this header GL Account in this badi.
    Can anybody help me in this regard, <b>thanks in advance</b>.
    Regards
    Loknath

    Hi
    <b>The purpose of the BADI - BBP_DETERMINE_ACCT is to deal with Shopping cart - Item level data, there it contains only two tables
    ITEM_DATA
    This contains the most important item data for the shopping cart.
    ACCT_DATA
    This contains the account assignment data for the shopping cart item.</b>
    <u>Here is the documentation.</u>
    <b>BBP_DETERMINE_ACCT</b>
    You can use the Business Add-In BBP_DETERMINE_ACCT to specify your own criteria for determining the G/L account.
    In the standard system, the G/L account is determined using the product category and the account assignment type, refer to Define G/L Account for Product Category and Account Assignment Category.
    The G/L account is then placed in field ACCT_DATA-G_L_ACCT. Then, the system calls the Business Add-In BBP_DTERMINE_ACCT.
    In method DETERMINE_ACCOUNT, two table parameters are available:
    ITEM_DATA
    This contains the most important item data for the shopping cart.
    ACCT_DATA
    This contains the account assignment data for the shopping cart item.
    This means that you can now determine the G/L account irrespective of other item data (or any combination of item data) and overwrite field ACCT_DATA-G_L_ACCT.
    Example
    For the product category OFFICE SUPPLIES in conjunction with account assignment type CC (cost center), the system determines G/L account 400000. However, you also want to take into account the company code (field ITEM_DATA-CO_CODE) when determining the G/L account. The system is to make postings to G/L account 410000 for company code 0002. So you overwrite field ACCT_DATA-G_L_ACCT with 410000.
    <u>I recommend, In future, Please read the relevant documetation of any of the BADIs in SE18 Transaction, before implemnting the same, to get the details.</u>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • How to fill Long Text in Accounting document in the item level.

    Hi,
    I need to fill Long Text field in item level of accounting document from the header texts from Billing header(say billing instructions)
    I checked the user exit EXIT_SAPLV60B_008 but it didnt worked in my case. I have read the billing instructions in the Billing header using FM READ_TEXT but I am not able to save this text  using FM SAVE_TEXT because  for the field Long Text  the parameter TDNAME is a concatenation of BUKRS(COmpany code) BELNR(Accounting doc. no.)  GHAJR(fiscal year)  BUZEI(line item) .
    But I am not able to capture this accounting doc. number in the mentioned user exit instead I am getting Sales Invoice number and hence not able to give TDNAME parameter for FM save_text.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • Not able to add free item in PO

    dear all
    i am not able to add free items in already created import PO. when i add item and click on free item check box, system says "No delivery costs allowed without invoice receipt" and if i click on invoice receipt that item is no longer free item as the free item check box gets untick.
    pl help me to solve this.
    thanks & regards'
    manoj gupta

    Hi
    If there is no delivery cost condition like Freight at item level exists then
    Please check any delivery cost conditions given as Header condition.If it is given as Header condition and this cost will be distributed among the line items.When you adding the line item, the cost also distributed.For free items you can't assign any costs.
    Regards
    Ramakrishna

  • Cannot find the Revision Level field in the item details

    Hi All,
    1) I have created a PR with 2 items in the R/3 Backend using the me51n transaction in which for one of the items i have updated the Revision Level field.
    2) To transfer the purchase requisitions created in the above step to the SRM system(sourcing cockpit) i executed  the report BBP_EXTREQ_TRANSFER with transaction SE38.
    3) Now when i go to the SRM portal and navigate to find the external requirement in the sourcing cockpit, I am not able to find the Revision Level field entered in the backend.
    Can some one help.
    Regards
    Sam

    Hi
    Please go through this ->
    Version Management in R/3
    http://help.sap.com/saphelp_47x200/helpdata/en/8a/60b43bb7492147e10000000a114084/frameset.htm
    Versioning in SRM
    http://help.sap.com/saphelp_srm50/helpdata/en/42/c92d6e3ed16babe10000000a1553f6/frameset.htm
    Prerequisites for Version Control in SRM
    I)        You have activated the version control so that the system creates historical versions.
    See the path in the IMG: SRM Server  ®  Cross-Application Basic Settings  ®  Switch On Version Control for Purchasing Documents
    II) You have set up and activated the workflow for the approval of changes to active purchasing documents. See also: Approval Workflows for Documents and Objects
    ( Related link -> http://help.sap.com/saphelp_srm50/helpdata/en/5a/af5efc85d011d2b42d006094b92d37/frameset.htm )
    Some related SAP OSS Notes ->
    Note 1030548 - Revision level in SRM 6.0 connected to ERP 2005
    Note 1026021 - EXTREQ interface: Data transfer structures
    Note 122105 - ME51, RM06BBI0: Revision level is not filled
    Hope this will definitely help.
    Regards
    - Atul

Maybe you are looking for