Changing Storage Property via C API

I am trying to change the storage and consolidation properties via the C API with the following code:memberInfo->usShare = ESS_SHARE_DATA;memberInfo->usConsolidation = ESS_UCALC_SUB;cout << "EssOtlSetMemberInfo... ";status = EssOtlSetMemberInfo( outline, phMember, memberInfo );cout << status << '\n';I get no errors when I do this and know that phMember points to the correct member. After doing this, I write, restructure, and close the outline, but the changes to the Storage and Consolidation tags are lost.And ideas or requests for more info?Thanks!Bill

Hi Shanti,
Thanx alot for helping on both posts, I answered you on the other one and I think the same answer aplies to this one too, I fond this on help.sap
"PCD Roles: These are semantic objects that represent collections of content that can be assigned to a user.
There is no public API for accessing these roles."
here the link
http://help.sap.com/saphelp_nw70/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm
accordint to that then is no way to modify the Role via API to achieve this, or do you thing this is only on 7.0 and now in 7.1 it is posible?
Thanx in Advanced!
Kind Regards,
Gerardo J

Similar Messages

  • Changing cm_created programmatically via Java API

    Hi!
    Our problem is simple: we need to change the cm_created system km property via the rf api's.
    We have already set the property as not read-only and maintainable - but still the api throws a WcmException containing the following error message: "Read-only property: created".
    My gut feeling is that even though We have altered the property under property metadata, the repository framework still denies any changes due to the fact that it is a system property. (And yes, We have rebooted the server!).
    Any info and/or ideas regarding the problem above?
    Thanks in advance,
    /Jim

    Hi,
    Check this:
    https://forums.sdn.sap.com/thread.jspa?threadID=285425
    Regards,
    Praveen Gudapati

  • Access and change documents property with KM API

    Hi,
    I am trying to access KM with the KM API to change some document properties.
    I tried following cod, but I get errors for the IUser:
    IService service = PortalRuntime.getRuntimeResources().getService(IUserManagementService.KEY);
    com.sapportals.portal.security.usermanagement.IUser user =  WPUMFactory.getUserFactory().getEP5User((IUser)request.getUser().getUser());
    IResourceContext context = new ResourceContext(user);
    RID path = RID.getRID("/documents/Access/mydoc.doc");
    IResource res;
    res = ResourceFactory.getInstance().getResource(path, context);
    response.write("ResourceDisplay Name"+res.getDisplayName());
    IPropertyName propName;
    propName = new PropertyName("http://sapportals.com/xmlns/cm/rendering","displayname");
    IMutablePropertyMap map = new MutablePropertyMap();
    IProperty property;
    response.write(map.get(propName).toString());
    property = new Property(propName, "Asia");
    map.put(property);
    res.setProperty(property);
    Does anybody have an example code? Or can anybody help me?
    Thank you
    Regards
    Ismail

    Hi,
    This should work:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
    Make sure you added a sharing reference for "com.sap.km.application" in your portalapp.xml.
    Best regards,
    Avishai Zamir

  • Change BOM warehouse via DI API

    Hi,
    I have developed a POS add-on which uses the SDK to add invoices to SAP. When we use Bill of Materials items of type sales I can only seem to select the warehouse of the parent item. I would like the items which are automatically added to use the same warehouse as the parent. Is there a way to do this?
    thanks

    HI,
    I seem to be having a similar issue.  I add a bom of the template type to an AP invoice.  The template represents a "kit" that our vendor lists that contains two items with catalog numbers that we sometimes purchase separately from the vendor.   Assigning the correct warehouse works fine for the BOM item (which is a phantom item), but the child items go to a different warehouse.  Does anyone know how to make the children go to the same warehouse that i selected?

  • Restrict Local Administrators from change Network property

    In my office Environment we are using Development machines on which every developer has Local Administrator rights on there system. We are using 2 Internet lines in which one line is fast speed and another one is slow one, due to slow internet speed on
    second line some peoples manually change the Gateway IP and switch from slow to Fast one, to stop this we need to restrict those users from changing IP on windows 7. Only domain Administrator can able to change that Setting. we are using Window Server 2008
    R2 as ADDS. is there any way to stop this using domain group Policy? or Local security policy?

    Hi Siddheshrsawant,
    Sorry, we can’t restrict local administrators from changing network property via Group Policy, and this is by design.
    For confirmation, the following thread also focused on the similar issue and can be referred to for information.
    Unable to lock down Network Connections settings with Group Policy
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/32045ab3-0496-4f5e-b2c2-71ba0f2ed073/unable-to-lock-down-network-connections-settings-with-group-policy?forum=winserverGP
    Best regards,
    Frank Shen

  • Changing  Member Storage property

    Hi,
    Is there a command in ESSCMD/MAXL to change the storage property of a member from Store to Dynamic Calc or vice-versa.
    Thanks in advance

    Hey Russ,
    You can't do it directly with MaxL, but you can set up a Rules file that reads in a text file with the member storage property, and that can be initiated via MaxL.
    Search the DBA guide for "Creating Rules Files", this will give you a table of the character to use to set the member storage property, as well as other useful information.
    Robert

  • Duplicate a BO via DI API

    Hello,
    as far as I know the only possible way to duplicate a document (for example a Sales Order) via DI API is to save it as xml and then to open it again. but it doesn't work properly, because I get a message "bad value RDR1.BaseLine line: 1". And if I change the property to one manually, the new document can be saved, but it can't be changed any more. I get a message "table rdr1 was changed by another user". What shall I do, so that it works properly?
    Best Regards,
    Alexander

    Hi,
    anfortunatly there is nothing I could omit. I need the same Document and also links to the base documents. There is a code below I used to duplicate a document.
    Private Function CopyDocument(ByVal oDoc As SAPbobsCOM.Documents) As SAPbobsCOM.Documents
            Dim oXmlDoc As New XmlDocument()
            oXmlDoc.LoadXml(oDoc.GetAsXML())
            For Each oNode As XmlNode In oXmlDoc.SelectNodes("//DocEntry")
                oNode.InnerText = ""
            Next
            oXmlDoc.SelectSingleNode("//DocNum").InnerText = ""
            oXmlDoc.SelectSingleNode("//JrnlMemo").InnerText = ""
            oXmlDoc.Save(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml")
            CopyDocument = moSBOCompany.GetBusinessObjectFromXML(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml", 0)
        End Function
    Can somebody help me?
    Best Regards,
    Alexander

  • Erorr while changing storage location in VL02N

    Guyz,
    Firstly despite the plant+storage location + warehouse no. assignments are done , my replenishment delivery (delivery for stock transport order between plants under same company code) is not picking up storage location and warehouse no and thus stopping me from doing picking and PGI (post goods issue).
    However in VL02N when i'm trying to change storage location for line item, i'm getting following weird error
    *Error while determining ref.mov.type for WM via Table 156S: 647/ / / /L/ /*
    I found a SAP Note(133223) regarding this error and VL02 transaction but that note was specific to older versions. I'm on ECC 6.0
    Any suggestions please ?
    Thanks

    soumya - I did assign the picking location for my combination. However I noted, if i do this bit, i'm not able to create replenishment delivery from vl10b and erroring with below error. If i remove this assignment, i am able to create the delivery but delivery does not have storage loation. when i tried to change the storage loation in vl02n, i'm getting same below error ...
      Error while determining ref.mov.type for WM via Table 156S: 647/ / / /L/ / 
    Sivanand - Wheni do transfer order, its complaining that storage location is empty when i try to change storage location, as mentioned above, i 'm getting above error....
    appreciate any inputs ....
    I DID CREATE THE 647 MOVEMENT TYPE ASWELL BUT I'M GETTING SAME ERROR ... Can anyone suggest what control information should go when creating 647 mvt type.....?
    Edited by: Kasu on Sep 10, 2008 10:56 AM

  • Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

    Hi,
    I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
    So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?

    HI J S L,
    I get same error when I use different user that I just now add the SDK Tools without restarting the database server.  But previous user that I added SDK Tools before restart, no error.
    Today
    User 1 - add SDK Tools, no restart, error
    Last Wednesday
    User 2 - add SDK Tools, no restart, error
    Today - database server restarted this morning
    User 2 - no more error
    Both User 1 and 2 are Limited Logistics User.
    Best regards,
    Dennis

  • How Import any Cost Change for FIFO by DI API

    Dear all
    I have some problem about item cost change with FIFO Item.
    In SAP B1 2007A Standard Application.  It has 2 way to do that,
    first is use Landed Cost to add cost for Item that received.
    second use Item Revaluation with FIFO layer.
    But, If i want to import cost via DI API
    I don't found any method to do that.
    Anybody faced same problem before?
    I attempt to find any solution for solve this issue about 2 weeks.
    Please help me.
    Thanks, Exseang

    Hi Hi Suthee Thuratha...
    Check this SAP notes
    [SAP Note:1114111|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001114111]
    [Refer this SAP Note:1271133|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001271133]
    If u want do in SDK,please post this question to SDK forumn

  • Retrieve contact list  via the API not with the last updated date but created date?

    I can connect via the API and retrieve a list of contacts  but it seems that the only paramater i can pass is to search since the last Update  Date.
    Is it possible to search on the Created date and to have a date range as well?
    I found the xml result is slow to come as it gives all entries since the "lastUpdateDate" entered.

    A change in score does not cause the Date Modified field to change on the contact record. This field only changes when some data in one of the fields has changed.
    However, some of the confusion can come from the fact that lead scores have a Profile and Engagement portion. So if you have certain fields on the profile section being modified, that would cause a rescore at the same time. Engagement criteria such as form submits often cause the contact record to be modified while website visits and email clicks/opens do not.
    Hopefully this helps clarify,
    Bojan

  • How to set layer color property via script?

    I'm looking for a way to set a layer's UI color property via script (see attached). Any help would be greatly appreciated!

    jrapczak2 wrote:
    Uhm.. wow. That's crazy complicated
    It is even more complicated to work with multi-selected layers.
    if( app.documents.length > 0 && versionCheck()  ){
         app.activeDocument.suspendHistory("Set Layer's Color", 'changeLayersColor()');
    function versionCheck()  { return app.version.match(/1[1|2]./) >= 11; };
    function changeLayersColor(){
         function setActiveLayerColor( color ) {
              var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              desc.putReference( charIDToTypeID('null'), ref );
                   var colorEnumDesc = new ActionDescriptor();
                   colorEnumDesc.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), color );
              desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), colorEnumDesc );
              executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
         function getSelectedLayersIdx(){
                   var selectedLayers = new Array;
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                   var desc = executeActionGet(ref);
                   if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
                        desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
                         var c = desc.count
                         var selectedLayers = new Array();
                         for(var i=0;i<c;i++){
                             try{
                                  activeDocument.backgroundLayer;
                                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                             }catch(e){
                                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
                    }else{
                        var ref = new ActionReference();
                        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
                        ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                        try{
                             activeDocument.backgroundLayer;
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
                        }catch(e){
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
                   return selectedLayers;
         function makeActiveByIndex( idx, visible ){
              if( idx.constructor != Array ) idx = [ idx ];
              for( var i = 0; i < idx.length; i++ ){
                   var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putIndex(charIDToTypeID( "Lyr " ), idx[i] );
                   desc.putReference( charIDToTypeID( "null" ), ref );
                   if( i > 0 ) {
                        var idselectionModifier = stringIDToTypeID( "selectionModifier" );
                        var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
                        var idaddToSelection = stringIDToTypeID( "addToSelection" );
                        desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
                   desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
                   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
         var colors = ['None','Red','Orange','Yellow','Green','Blue','Violet','Grey'];
         var colorIDs = [charIDToTypeID('None'),
                                  charIDToTypeID( "Rd  " ),
                                  charIDToTypeID( "Orng" ),
                                  charIDToTypeID( "Ylw " ),
                                  charIDToTypeID( "Grn " ),
                                  charIDToTypeID( "Bl  " ),
                                  charIDToTypeID( "Vlt " ),
                                  charIDToTypeID( "Gry " )];
         var dlg = new Window( 'dialog', 'Change Layer Color' );
         dlg.ddColors= dlg.add("dropdownlist", undefined,  colors);
         dlg.ddColors.preferredSize.width = 100;
         dlg.ddColors.items[0].selected = true;
         dlg.ok = dlg.add('button',undefined,'Ok');
         dlg.cancel = dlg.add('button',undefined,'Cancel');
         var results = dlg.show();
         if( results == 1 ){
              var selectedLayers =  getSelectedLayersIdx();
              for( var l=0;l<selectedLayers.length;l++ ){
                   makeActiveByIndex( selectedLayers[l], false );
                   setActiveLayerColor( colorIDs[dlg.ddColors.selection.index] );
              makeActiveByIndex( selectedLayers,false );

  • Setting logging.config.class via Preferences API

    The Javadoc for LogManager says:
    In addition, the LogManager uses two optional system properties that allow more control over reading the initial configuration:
    * "java.util.logging.config.class"
    * "java.util.logging.config.file"
    These two properties may be set via the Preferences API, or as command line property definitions to the "java" command, or as system property definitions passed to JNI_CreateJavaVM.
    http://java.sun.com/j2se/1.4/docs/api/java/util/logging/LogManager.html
    So, how can I set the "java.util.logging.config.class" system property via the Preferences API? How can I set any system property via the Preferences API? I think this is a documentation bug, but I would like to know how to do it, otherwise.
    http://java.sun.com/j2se/1.4/docs/api/java/util/prefs/Preferences.html

    I don't know why I couldn't find it when I looked before,
    but it is a filed bug.
    http://developer.java.sun.com/developer/bugParade/bugs/4691587.html
    This help me find a work-around.
    http://developer.java.sun.com/developer/bugParade/bugs/4506094.html

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • Change storage location and plant for Return Delivery (outbound)

    Hi,
    I'm trying to achieve the following:
    Sales orders contained the 'normal' plant. Whenever a return delivery is created it should default the plant to a 'return delivery plant / storage location'. I've looked in to this and it seems we've got multiple options, however i would like to check:
    - Implement V02V0002 user-exit and link with 'return' movement type. Will this ensure plant change aswell?
    - Use standard RETA rule and define ?situations?. Could somebody clearify whether we can achieve our goal with this: Change plant and storage location?
    Any suggestions to achieve the above are very much appreciated.
    Note: Material contains both views for 'return plant/storage location' and 'normal plant/storage location'.
    System is R/3 4.6c with IS Retail activated.
    Kind regards,
    Tim

    Hi,
    The delivery is created against/follow-on a sales order / subscription order / invoice. I don't think we use/have a 'return sales order'. Yes, we only use 1 plant / storage location for the returns of goods.
    To sum it up:
    - Implement badi/user-exit ensuring that the plant is changed/defaulted in to our 'returns plant' for return documents.
    - Configure storage location via 'shipping condition'.
    Correct?
    Ps. I don't think we'll achieve changing the plant via configuring a shipping condition for our return document type. As the plant from the sales order doesn't match with the shipping condition it won't be taken in to account? And yes: It is mandatory/requirement to change the plant for customer return documents.
    Thank you for your inputs.
    Kind regards,
    Tim

Maybe you are looking for

  • Stock report for Stationery or Table to use

    Hi SAP Gurus I would like to run a report for all stationery by plant and storage location. Use a table that can give me a detailed report of Stationery stock on hand Regards Susan

  • Creation of summarization data for PA report

    Dear experts, I am facing the following problem with PA. I am trying to create a report using KE30, which will utilize summarization data. I then use KE3Q to run this in the background using only one period. Despite what ever I do, after some hours t

  • How to capture startx output?

    Hi, When I launch xorg/gnome by startx and then log off, there's a bunch of output on the screen with errors, information, etc... but I can't read all of it and scrolling up doesn't help because of the small buffer. How can I read the whole output on

  • How do I turn off Sleep/Hibernation/Startup Beeps and Sounds?

    I have a Lenovo Thinkpad x200 running vista ultimate. type 7454-cto How do i turn off these annoying beeps that sound every time my computer goes into and out of sleep and hibernation. I've tried turning the sound scheme to "No sounds," but the beep

  • How do I get my apps on my macbook to show on my iphone?

    How do I get my apps on my macbook to show on my iphone?