Copy all properties from BOL Object to other, Help please

Hello experts, Thanks for your time.
I would like to copy all properties and object relations from BOL OBJECT To other.
It's possible make it??
I know to copy one by one properties with this code.
lr_part->set_property( iv_attr_name = 'e_mailsmt' iv_value = ET_ADSMTP-E_MAIL ).
But I would like to copy the relations and all properties.
Could you write an example complete code??
A lot of  Thanks

Hi,
I suppose by copying relations it is meant that a whole Business Object should be copied. Not just the part of BTAdminH but the PricingSet and the related Prices in there, the ItemsSet and all related entries in them and so on. Meaning a complete copy of all attributes in all objects.
Judging from a mere technical point of view I see some problems with that:
1. Abab does not offer a copy object method. Thus you would have to create a new object and use the SET_PROPERTIES( ) method on it.
2. Though you will be able to do it for one object, lets say BTAdminH, it will be a huge load to do it for all related objects.
3. Considering a piece of code that will run down the hierarchy and copy the objects for you will not work as the "hierarchy" contains circles and is not unique. For instance the BTPartnerSet on OneOrders contains various relations containing the same partners.
In my opinion use the underlying API not the BOL to copy entries.
cheers Carsten

Similar Messages

  • How to copy-paste frames from one document to other with there respective layers intact?

    Hi All,
         I am facing an issue while copy paste frames from one document to other. I have a 3 frames in first documents each one on different layer. First document has 3 layers. The second document too have 3 layers , I am copying frames from first document to scrapdata using 'ICopyCmdData ' and 'kCopyCmdBoss'. I have 'Paste Remembers Layers' menu 'Checked' on Layer panel. I am using following function to copy frames to scrapdata.
    bool16 copyStencilsFromTheTemplateDocumentIntoScrapData(PMString & templateFilePath)
         bool16 result = kFalse;
        do
            SDKLayoutHelper sdklhelp;
            PMString filePathItemsToBeCopiedFrom(templateFilePath);  //("c:\\test\\aa.indt");
            IDFile templateIDFile(filePathItemsToBeCopiedFrom);
            UIDRef templateDocUIDRef = sdklhelp.OpenDocument(templateIDFile);
            if(templateDocUIDRef == UIDRef ::gNull)                 
                break;
            ErrorCode err = sdklhelp.OpenLayoutWindow(templateDocUIDRef);
            if(err == kFailure)                 
                break;
            InterfacePtr<IDocument> templatedoc(templateDocUIDRef,UseDefaultIID());
            if(templatedoc == nil)               
                break;
            InterfacePtr<ISpreadList>templateSpreadUIDList(templatedoc,UseDefaultIID());
            if(templateSpreadUIDList == nil)                  
                break;
            IDataBase * templateDocDatabase = templateDocUIDRef.GetDataBase();
            if(templateDocDatabase == nil)                  
                break;
            UIDRef templateDocFirstSpreadUIDRef(templateDocDatabase, templateSpreadUIDList->GetNthSpreadUID(0));
            InterfacePtr<ISpread> templateSpread(templateDocFirstSpreadUIDRef, IID_ISPREAD);
            if(templateSpread == nil)                 
                break;
            UIDList templateFrameUIDList(templateDocDatabase);
            if(templateSpread->GetNthPageUID(0)== kInvalidUID)                  
                break;      
            templateSpread->GetItemsOnPage(0,&templateFrameUIDList,kFalse,kTrue);  
            InterfacePtr<ICommand> copyStencilsCMD(CmdUtils::CreateCommand(kCopyCmdBoss));
            if(copyStencilsCMD == nil)                
                break;
            InterfacePtr<ICopyCmdData> cmdData(copyStencilsCMD, IID_ICOPYCMDDATA);
            if(cmdData == nil)                 
                break;
            // Copy cmd will own this list
            UIDList* listCopy = new UIDList(templateFrameUIDList);
            InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
            if(clipboardController == nil)              
                break;
            ErrorCode status = clipboardController->PrepareForCopy();
            if(status == kFailure)                  
                break;
            InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
            if(scrapHandler == nil)                 
                break;
            clipboardController->SetActiveScrapHandler(scrapHandler);
            InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
            if(scrapData== nil)                
                break;
            UIDRef parent = scrapData->GetRootNode();
            cmdData->Set(copyStencilsCMD, listCopy, parent, scrapHandler);
            if(templateFrameUIDList.Length() == 0)       
                return kFalse;      
            else      
                status = CmdUtils::ProcessCommand(copyStencilsCMD);    
            if(status != kFailure)
              result = kTrue;
            sdklhelp.CloseDocument(templateDocUIDRef,kFalse,K2::kSuppressUI, kFalse);
        }while(kFalse);
        return result;
    After this I need to close first document. Now I am opening the second document from indt file which has same number of layers as first document. I am trying to paste frames from scrap data to second document using '' 'ICopyCmdData ' and 'kPasteCmdBoss' as shown in follwoing function
    bool16 pasteTheItemsFromScrapDataOntoOpenDocument(UIDRef &documentDocUIDRef )
        bool16 result = kFalse;
        do
               InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
                if(clipboardController == nil)
                    break;
               InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
               if(scrapHandler == nil)               
                    break;
               InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
                if(scrapData == nil)
                   break;
                     //This will give the list of items present on the scrap
                UIDList* scrapContents = scrapData->CreateUIDList();
                if (scrapContents->Length() >= 1)
                    InterfacePtr<IDocument> dataToBeSprayedDocument(documentDocUIDRef,UseDefaultIID());
                    if(dataToBeSprayedDocument == nil)
                       break;
                    InterfacePtr<ISpreadList>dataToBeSprayedDocumentSpreadList(dataToBeSprayedDocument,UseDef aultIID());
                    if(dataToBeSprayedDocumentSpreadList == nil)
                         break;
                    IDataBase * dataToBeSprayedDocDatabase = documentDocUIDRef.GetDataBase();
                    if(dataToBeSprayedDocDatabase == nil)
                         break;    
                    UIDRef spreadUIDRef(dataToBeSprayedDocDatabase, dataToBeSprayedDocumentSpreadList->GetNthSpreadUID(0));               
                    SDKLayoutHelper sdklhelp;
                    UIDRef parentLayerUIDRef = sdklhelp.GetSpreadLayerRef(spreadUIDRef);
                    InterfacePtr<IPageItemScrapData> localScrapData(scrapHandler, UseDefaultIID());
                    if(localScrapData == nil)
                        break;
                    if(parentLayerUIDRef.GetUID() == kInvalidUID)
                        break;
                    InterfacePtr<ICommand> pasteToClipBoardCMD (CmdUtils::CreateCommand(kPasteCmdBoss));
                    if(pasteToClipBoardCMD == nil)
                        break;
                    InterfacePtr<ICopyCmdData> cmdData(pasteToClipBoardCMD, UseDefaultIID());
                    if(cmdData == nil)
                        break;
                    if(scrapContents == nil)
                        break;               
                    PMPoint offset(0.0, 0.0);
                    cmdData->SetOffset(offset);
                    cmdData->Set(pasteToClipBoardCMD, scrapContents, parentLayerUIDRef );
                    ErrorCode status = CmdUtils::ProcessCommand(pasteToClipBoardCMD);
                    if(status == kSuccess)
                        CA("result = kTrue");
                        result = kTrue;
                }//end if (scrapContents->Length() >= 1)       
        }while(kFalse);
        return result;
         Here in above function its required to set Parent Layer UIDRef and because of this all frames are getting paste in one layer.
    Is there any way we can paste frame in there respective layers?
         Also I need to work this code with CS4 server and desktop indesign.
    Thanks in advance,
    Rahul Dalvi

    Try,
    // dstDoc must be FrontDocument
    InterfacePtr<ILayoutControlData> layoutData(Utils<ILayoutUIUtils>()->QueryFrontLayoutData());
    InterfacePtr<ICommand> createMasterFromMasterCmd(CmdUtils::CreateCommand(kCreateMasterFromMasterCmdBoss));
    createMasterFromMasterCmd->SetItemList(UIDList(srcMasterSpreadUIDRef));
    InterfacePtr<ILayoutCmdData> layoutCmdData(createMasterFromMasterCmd, UseDefaultIID());
    layoutCmdData->Set(::GetUIDRef(layoutData->GetDocument()), layoutData);
    CmdUtils::ProcessCommand(createMasterFromMasterCmd);

  • How to copy all contacts from iphone 3gs to google nexus 5 ?

    how to copy all contacts from iphone 3gs to google nexus 5 ?

    Copy the contacts to a supported application on the computer to sync to the Nexus, or you can sync the contacts to a Google account, which you will have with the Nexus and then sync them to the Nexus.

  • Itunes not copying all photos from an event on my iMac to iPad

    why is iTunes not copying all photos from an event on my iMac to iPad

    Not at this time. There is no connection between iPhoto on the Mac and on the iPad
    Maybe in a future release
    Suggest to Apple. IPhoto menu =>> provide iPhoto feedback
    LN

  • Can't copy all files from a CD-R

    I have a number of CD-Rs of family photos.  I made the disks on a Dell PC with a horizontally mounted CD-RW Drive in 2005.  I recently tried to load them onto my iMAC, but I could only copy about half of the files before the drive hung-up.  The drive would often make noise and then slow to a near inaudible crawl and then say the file(s) could not be copied.
    I was able to copy the missing files to a memory stick at a local library on an HP PC with a horizontally mounted drive, so the disks are OK.  Interestingly, I had trouble with the disks at a library with iMAC-like HP PCs, i.e., all-in-one monitor/pc/optical-drive with a vertically mounted drive.
    Other drive-related problems: (1) friends have trouble playing Audio CD-Rs I've made for them, (2) I can't copy a DVD-R with MackTheRipper (PowerPC), the DVD-R plays fine.
    Is this a drive issue, a drive orientation issue, or something else?
    Thanks for your help.

    Hi all.  I am trying to copy all files from a flash: on a CME to a
    usbflash drive.  I am able to do so, but only one at a time.  Is there
    a away to copy all files at one time so I dont have to name them
    individually when copying all of them over?  Thanks.
    Check out the below link hope to help !!
    https://cisco.com/en/US/products/hw/routers/ps233/products_tech_note09186a00800a6744.shtml
    Ganesh.H

  • Copy all fields from pdf to word

    copy all fields from pdf to word

    Try using shift/apple/4 - gives you a cross-hair selector to grab part of the screen - saves as Picture1.png to your Desktop then drag that into Word.
    Or, /Utilities/Grab

  • Is it possible to copy all comments from one pdf and paste to another?

    Hi Adobe Community
    I have a pdf file that has 100+ pages with square markups and arrows. The pdf that was marked up is from last year, but this year the format is the same, but the numbers have changed. Rather than going through every single page and commented as I did last year, is it possible to copy all comments from last years pdf and paste them into this years pdf, in the same place?
    Thanks

    You can export comments to an FDF file and import the FDF into another PDF. In Acrobat 11, you'd select: Comment > Comment List > [click the little icon in right of panel toolbar] > Export All to Data File

  • Can I copy all info from 1 contact in Addressbook?

    This is really an Addressbook question more than specific to Addressbook  on just my iPad, but having an iPad orig w/ iOS 5 may be the problem...
    I want to copy all data from all fields from a single contact in Adressbook to paste the entire contact info somewhere else.
    All I seem to be able to do is copy a field or section of fields at a time. Paste and return to the contact to copy the next bit of data
    But no select all fields, copy, and paste.
    Thanks
    Steve

    I completely agree with your problem.
    I worked on an application with partitioned tables as well (also started with des2000),
    and even for a few tables defining the partitions is a hell of a job, especially for the indexes.
    When having equipartitioned tables it is very desirable to copy partitioning from one table (and indexes) to another.
    I recommend to write a utility based on the repository API for it. That may seem some work, but once you have written such a utility you can easily write more of them, and it will save you a lot of time later on.
    I am currently writing utilities for similar tasks.
    Peter

  • Is there some way that i could copy all contacts from my ipad to hotmail?

    Is there some way that i could copy all contacts from my ipad to hotmail all in one go? Please and thank you.

    You could try syncing your iPad to your computer, Then, if you have outlook, you can import those contacts, via a CSV (comma separated values) into hotmail.
    A tedious but works way, and not all in one go, is to e-mail them to yourself and then open that in hotmail. Not what you wanted I know, but maybe a fallback if the import doesn't work.

  • How to transfer all materials from one plant to other plants?

    How to transfer all materials from one plant to other plants?

    Hi
    To transfer stock in one step  between plants belonging to same company code use movement type "301" and using transaction code "MIGO". IF you like in two step it helps to monitor stock in transit use movement type "303" and "305".
    303 Transfer posting plant to plant in two steps - removal from storage
    305 Transfer posting plant to plant in two steps - placement in storage
    to transfer stock between plants of diffrent company code go for stock transpor order using tcode "me21n"
    hope it helps

  • Pages died today. Just downloaded the latest update 2 days ago. Last night shutting down my very new MacBook Pro, Pages stopped shut down. Today Pages will not open, all my Pages docs cannot open. Help please! Anybody have a fix?

    Pages died today. Just downloaded the latest update 2 days ago. Last night shutting down my very new MacBook Pro Retina, Pages stopped shut down. Today Pages will not open, all my Pages docs cannot open. Help please! Anybody have a fix?

    You probably have 2 versions of Pages on your Mac.
    Pages 5 in your Applications folder, will open Pages '09 files but will alter/damage them. It can not open Pages '08 files.
    Pages '08/'09 in your Applications/iWork folder which can not open Pages 5 files.
    When you were shutting down you probably had an unsaved document open.
    You probably are opening the wrong versions of Pages to open the wrong document format.
    Pages 5 has had over 90+ features removed.
    Most users are going back to Pages 09 whilst Apple sorts this out.
    Peter

  • My old laptop crashed and I need to restore my iTunes music and movies to my new laptop from my iPod Touch. Help please. Thanks!

    My old laptop crashed and I need to restore my iTunes music and movies to my new laptop from my iPod Touch. Help please. Thanks!

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • I can't find pages and keynotes on my imac (ie not in applications folder)after purchasing them from the app store? help please!!!

    can't find pages and keynotes on my imac (ie not in applications folder)after purchasing them from the app store? help please!!!

    Try searching with Spotlight. Click the magnifying glass icon top right corner of your screen.
    If you can't locate the apps, you can re download without being charged again.
    http://support.apple.com/kb/HT2519

  • HT1386 having trouble syncing/downloading contacts & calendar & tasks from outlook 2010 to iphone4s help please.

    having trouble syncing/downloading contacts & calendar & tasks from outlook 2010 to iphone4s help please.

    I had the identical problem.  I still don't know how to sync the tasks, but here's how I did the contacts and calendar:
    1.  Connect the 4s to the computer.
    2.  Open iTunes.
    3.  Click the iPhone box in the upper right corner.
    4.  Click on the info tab.
    5.  Hit the checkbox Sync Contacts with... and choose Outlook from the dropdown box.
    6.  Ditto for Calendars.
    7.  Hit Apply.
    My problem was that originally, I wasn't getting the checkboxes.  I turned off the iCloud settings on the 4s.  That did the trick.

  • I am currently using final cut pro 6 and i have a problem that i can not to do a play out to the dvcam but i can record from the dvcam, can you help please?

    i am currently using final cut pro 6 and i have a problem that i can not to do a play out to the dvcam but i can record from the dvcam, can you help please?

    I believe there is no  "Export to Tape"  feature as appeared in legacy FCP.
    SORRY! Just noticed you are using FCP 6.
    You need to ask this question in the Final Cut Studio forum.
    Message was edited by: Ian R. Brown

Maybe you are looking for

  • How to print monthly view in ical

    I have the most current version of ical.  It wont let us print a monthly view.  It only lets us select fro day or list.  I am sure i am doing someething wrong, but I dont know what.  Running MAC OS X 10.5.8.  Ical version 3.0.8. 

  • Does any one can provide documentation model

    Hi I am new to this hyperion planning , does any one can provide model of the user requirement documentation (high level business process documentation). Herre the requiremnent is developing a budgeting application with all 3 business statements and

  • How do I activate the Adobe update notification icon on my Top Toolbar?

    Hi, I am running Design Premium on Snow Leopard.  A friend also has Design Premium and on his system a small "A" Adobe icon with a number next to it appears on the toolbar at the top of the display when Updates are available from adobe for any of his

  • Problems using lightbox gallery widget

    Hi,  I am just learning Dreamweaver and thought I would try out a widget.  I tried the lightbox gallery widget, and it mostly works, except that I get a box with a question mark on the right, under the photo when it is enlarged.  It can't find some o

  • How to retreive the Message ID and party details in BPM ?

    Hi Guys, Our business partner is unable to process the MessageHeader, they proposed to use the MessageHeader that they send in the request message to fill in the header of the response. Is this possible in the ccBPM. I need to put everything that is