How to create a copy of an existing statndad view

Hi Experts,
I have a requirement. I have to copy the view BP_DATA/AccountRelationshipsOV in the component BP_DATA and again use it in the component BP_HEAD. When i tried creating copy by right clicking on the view and selecting copy option its creating the copy of the view but when i am using the view in the component BP_HEAD by using the component interface of the copied view, its throwing some run time exception on the UI. Please help.
Also is there any other way of copying the view other than the one i used above?
Regards,
Udit.

Hi Udit,
Unfortunately there is no way to copy a view from one component another the way we understand copy-paste. However, if your requirement is to reuse BP_DATA/AccountRelationshipsOV (or its copy you already created) in BP_HEAD, then you need to do the following:
In BP_DATA component:
1. Create a new window.
2. Add the copy to this new window in runtime repository editor.
3. Expose this new window from runtime repository editor.
In BP_HEAD component:
1. Declare a new usage for component BP_DATA, view (new window you create above)
2. Add the usage view to the concerned view area.
You also need to make sure that the context nodes are properly bound for the data flow.
Regards,
Shiromani
P.S. What was the runtime exception?

Similar Messages

  • Creating a copy of an existing JTable that does not have source code.

    Hi
    I am working on a java swing based application. We used a third party API for JTable for showing some data in a table format and also for printing function. As of now print button is printing the whole table being shown in the application. Our new requirement of printing is �Users don�t want to print all the columns being shown in the application and they wanted to have print of columns whatever they would like to see�.
    The above requirement can be fulfilled if I can have a copy of the existing table. Unfortunately we don�t have the source code of the table being shown in the application as we are using 3rd party libraries. Had the source code been there I could have implemented cloneable interface or proto type pattern.
    Can some body help me how can I create a copy of the existing table? Basically the high level approach I thought of is create a new object of the table class and copy the properties/attributes of the existing table to the new table object. But I don�t know what attributes should be copied so that I can have the copy of the original table and how to construct (code) this new table.
    I would be very grateful if some one could help me with this.
    Thanks & Regards
    Srini

    I understood your suggestion. But it would be very difficult to migrate as it requires lot of changes across different tabs of the existing application. This application was developed around 6 years ago. And this change would require lot of regression testing too.
    Do you have any idea of creating the copy of the available JTable object?

  • How to create new or delete the existing row in the grid....

    hi my friends...
    i am developing report using Reuse_alv_grid_display...
    my requirement is... At runtime
              1.  i may create new row on the grid (empty row inwhich  i may enter the data).
              2.  i may delete a existing row in the grid
              3.  i may edit the existing data...
    then i have to trace the modification in the grid in one internal table...
    how can i get into this.....
    note:
    i have some idea to edit the existing record in the grid and trace those modification,
    but i don't know abt how to create new or delete the existing row....
    can you give me some idea...

    Hi deva,
    write a class which implemets these methods
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
    To handle the toolbar on alv
         handle_toolbar
           FOR EVENT toolbar OF cl_gui_alv_grid
              IMPORTING e_object e_interactive,
    To handle the buttons on the alv grid
         handle_user_command
           FOR EVENT user_command OF cl_gui_alv_grid
           IMPORTING e_ucomm.
    endclass.
    Now Implement these methods.
    CLASS lcl_event_receiver IMPLEMENTATION.
    To handle the toolbar on alv
      METHOD handle_toolbar.
       DATA ls_toolbar  TYPE stb_button.
        CLEAR gs_toolbar.
        MOVE 3 TO gs_toolbar-butn_type.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_INSERT_ROW' gs_toolbar-icon.
        MOVE text-010 TO gs_toolbar-function.
        MOVE text-012 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_DELETE_ROW' gs_toolbar-icon.
        MOVE text-011 TO gs_toolbar-function.
        MOVE text-013 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
       METHOD handle_user_command.
    In this form, check the function code(e_ucomm has the function code), based on that do the required action.
    as i said yesterday(i.e for appending a row, deleting a row, modifying a row)
        PERFORM user_command USING e_ucomm.
      ENDMETHOD
    endclass.
    Before calling the alv method, create a object of this class.
    DATA :
          gref_event_receiver  TYPE REF TO lcl_event_receiver,
          gv_tables_alv          TYPE REF TO cl_gui_alv_grid.
          CREATE OBJECT gref_event_receiver.
          SET HANDLER   gref_event_receiver->handle_user_command
                        FOR gv_tables_alv.
          SET HANDLER   gref_event_receiver->handle_toolbar
                        FOR gv_tables_alv.
    check this program for event handling, it is the similar way
    demo_abap_objects_events
    Hope u understood this.
    Regards,
    Prasant
    reward if helpful

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • How to create a copy of a project

    We are using RoboHelp HTML version X5, and we use version
    control. We are trying to figure out how to create a copy of a
    project so we can edit the new version with the old version
    remaining intact. That way we could have multiple versions of our
    help system, a distinct version for each software release we have.
    Thanks.

    The way I do it is rather simple.
    1.       Copy the local RoboHelp project to a new location.
    2.       Remove the link to source control. (See http://www.robowizard.com/RoboWizard/MonthlyScry/102004.htm on how to do this without opening RoboHelp. Please follow these instructions.)
    3.       Open the RoboHelp project and add it to source control as a new project.
    By creating a copy of the entire project directory, ALL the content is retained.
    Greet,
    Willam

  • How to make a copy of an existing BSP application

    Hi Experts,
    I am working on Web UI WB where i am tyring to make enhanchments as per the clients requirment. I have created new enhanchment set, however i am unable to understand how to make a copy of existing BSP application to make the required changes. Can someone let me know the procedure on how to copy the BSP and make the changes in the methods.
    I am using the TCODE BSP_WD_CMPWB then the component BT108H_LEA
    Thank you
    Leela

    Hi,
    I am trying to rename LEAD with Constituent in Web ui and for that purpose i have created ZClass in Web UIWorkBench, I am able to make changes to the related Method in the Zclass where i have replaced the string with Constituent. Now when i open Webui i see Lead overview page with the description as ConstituentBPLEAD. Can some one let me know how to remove BPLead from the description. I am putting across the code that i have incorporated in the method.
    method IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION.
    CALL METHOD SUPER->IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION
    EXPORTING
    IV_CURRENT_DESCRIPTION = IV_CURRENT_DESCRIPTION
    RECEIVING
    DESCRIPTION = DESCRIPTION
    Data corp_descr type string.
    corp_descr = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_MASTER/TITLE' ).
    if description cs corp_descr.
    replace corp_descr with 'Constituent' into description.
    endif.
    endmethod.
    Thanks
    Leela

  • How to create exact copy of a table

    Hello,
    I must admit my "google skills" have failed me and it is possible that I might be missing something obvious here but allow me to explain.
    If I have a table that is populated/accessed by a typical OLTP application such that over time the data in the table may become "fragmented".
    I know that is a very controversial term I used but that is not the question here. A simple way to describe the state of the table might be
    that the table has always been populated with lots of small INSERTs, modified with lots of small UPDATEs and data has been deleted in small DELETEs.
    This has meant that the data is neither closely stored in data blocks nor is in any particular order (so there are some empty blocks under HWM).
    Now my question is how do I create exact copy of this table and its indexes AS THEY EXIST AT THE MOMENT that includes
    1) its data
    2) its constraints/indexes etc.
    3) its storage parameters
    4) data stored in EXACTLY same manner as in original table.
    To avoid complications, the table in question is just a normal heap table without any partitioning involved. While CREATE TABLE AS SELECT (or CREATE
    TABLE followed by INSERT) will take care of points (1) to (3) above, it will not achieve point (4) above.
    Can somebody please help?
    Thanks in advance.

    Exp/Imp...
    C:\Windows\system32>expdp scott/tiger dumpfile=scottemp.dmp directory=DATA_PUMP_DIR tables="emp" constraints=y indexes=y statistics=y
    Export: Release 11.2.0.1.0 - Production on Sat Nov 24 15:35:34 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Legacy Mode Active due to the following parameters:
    Legacy Mode Parameter: "constraints=TRUE" Location: Command Line, ignored.
    Legacy Mode Parameter: "indexes=TRUE" Location: Command Line, ignored.
    Legacy Mode Parameter: "statistics=y" Location: Command Line, ignored.
    Legacy Mode has set reuse_dumpfiles=true parameter.
    Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** dumpfile=scottemp.dmp directory=DATA_PUMP_DIR tables=emp reuse_dumpfiles=true
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "SCOTT"."EMP"                               8.570 KB      14 rows
    Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
      E:\APP\SERVERROOM\ADMIN\ORCL\DPDUMP\SCOTTEMP.DMP
    Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 15:35:38
    C:\Windows\system32>impdp scott/tiger dumpfile=scottemp.dmp directory=DATA_PUMP_DIR tables="emp" constraints=y indexes=y statistics=y logfile=log.txt remap_schema=scott:hr
    Import: Release 11.2.0.1.0 - Production on Sat Nov 24 15:48:20 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Legacy Mode Active due to the following parameters:
    Legacy Mode Parameter: "constraints=TRUE" Location: Command Line, ignored.
    Legacy Mode Parameter: "indexes=TRUE" Location: Command Line, ignored.
    Legacy Mode Parameter: "statistics=y" Location: Command Line, ignored.
    Master table "SCOTT"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
    Starting "SCOTT"."SYS_IMPORT_TABLE_01":  scott/******** dumpfile=scottemp.dmp directory=DATA_PUMP_DIR tables=emp logfile=log.txt remap_schema=scott:hr
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "HR"."EMP"                                  8.570 KB      14 rows
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "HR"."EMP" ADD CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO") REFERENCES "HR"."DEPT" ("DEPTNO") ENABLE NOVALIDATE
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "SCOTT"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 15:48:22
    C:\Windows\system32>sqlplus hr/hr
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 24 15:48:32 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from emp;
    ...Result is there.
    14 rows selected.
    SQL>
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    are understandable.Regards
    Girish Sharma

  • How to Create a Copy of the Datasource

    Hi Experts,
    Can some body suggest me how to copy and reuse the existing the Datasource
    I have a Datasource(Standard Datasource to Info object(Master Data Attr) )
    So I need same datasource to update to DSO
    But I donot need the existing Datasource I want a copy of this Datasource how to create
    Thanks

    Hi,
    Try copying using txn RSDS.
    Hope this helps.
    Thanks
    Mani Suresh

  • How to create a Group from an existing email -

    I just want to create a Group from an existing email received.  Don't want to add people individually to Address Book, then drag them to the Group.  Would prefer to copy/paste the addresses into the Group.  I'm part of a team at work wth 25 people!  Do I really have to add their addresses individually?  Seems ridiculous.  Don't even need their names - just the emails, so when I type in "United," for example, I get all the folks in that Group which is named "United."
    Thanks.

    There was a "magical" set of Applescripts that would have done that, but it no longer works.
    There is no way in the OS to do that besides making the Applescript yourself using the current Script Editor.
    Another way to do what you want is to select all of the addresses (select one, then cmd-A). Then, drag the selection to somewhere in the Finder. That will create a text clipping. You can then drag that text clipping into the address field in Mail.
    The text clipping will be named with the first few email addresses. You can rename it in the Finder.
    Each one can be your own "distribution" list.

  • How to create a copy of a file

    Is there a method in Java API with which I can create a copy of a file (like running "copy" or "cp" at system command prompt), so that I don't have to use InputStream and OutputStream and create the new file byte by byte?

    I would never create an array with the size of the input file. What do you do, if the file is 2GB?
    I'd rather use buffered streams: BufferedInputStream in = new BufferedInputStream(new FileInputStream("inputfile.dat"));
    BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("outputfile.dat"));
    byte[] buffer = new byte[4096];
    int b = in.read(buffer);
    while(b>=0)
      out.write(buffer, 0, b);
      b = in.read(buffer);
    in.close();
    out.close();I'm not sure if using an array to read from a BufferedInputStream really improves performance, but you can play around with it. If you know you have big files, you might want to play with the size of the buffer for the streams as well and see how it affects read/write performance. Setting a larger buffer then the default 64K for the output stream might speed up things.
    Thomas

  • How to create a copy of CO-PA document

    Hi,
    My requirement is to copy the data from a CO-PA document which is of type 'C' and copy the same data to a new CO-PA document which is of type 'X'.
    Can you let me know if there is any FM / BAPI available to do the copy.
    Thanks in advance.
    Regards
    Shanthi

    The way I do it is rather simple.
    1.       Copy the local RoboHelp project to a new location.
    2.       Remove the link to source control. (See http://www.robowizard.com/RoboWizard/MonthlyScry/102004.htm on how to do this without opening RoboHelp. Please follow these instructions.)
    3.       Open the RoboHelp project and add it to source control as a new project.
    By creating a copy of the entire project directory, ALL the content is retained.
    Greet,
    Willam

  • How to create a copy cube from Business content statistics cube

    Dear Experts,
           I got a requirement to create the new cubes which is a copy of Business content statistics cubes.
    Request you to let me know how can i create a copy cube from Business content cube. My doubt is,weather is't the same as normal customized cube creation  by giving  copy from option.....
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh - Kumar.

    for copying the cube whose copy is to be made should be available in infoprovider tab in modelling of RSA1.
    first you have to install the business content cube ,so that it is found in the Info-providers tab in modelling .
    for that,first go to business content option found in the modelling tab of t-code RSA1 .
    find the cube and transfer it to the right and execute . It will be available in infoprovider tab of modelling .
    then you can create a copy as we do normally .

  • How to create a copy of customized panel?

    Hi
    On a Button click am creating a panel at runtime using
    actionscript with some controls in there. Now i got requirement
    like at the same time.. i need to create a copy of that panel and
    need to add it as a child of another panel.
    Can any one help me how to create a duplicate copy of Panel??
    Thanks
    Pratap

    Hi,
    Thanks for reply...
    The clone() method returns a cloned copy of the event object
    by setting the type property and any new properties in the clone.
    I need to create a clone of a control(Panel).
    Any idea how to do that?

  • How to create a new file with existing file's resource fork?

    Hello,
    I would like to create a new file that has the resource fork of an existing file. I had though of making a copy of the existing file, seek to the beginning of the copy and write the new data, but for large files, that creates the whole file even when not needed. I currently create the new file with [NSFileManager createFileAtPath: contents: attributes:], but attributes do not include resource fork items, like custom icons, color label, etc.
    [NSURL resourceValuesForKeys] gives a common subset of resource data, like icons and color label, but that's about it. Is there some way to get the resource fork or a copy of the file without getting the whole file?
    Thanks

    What are you trying to do here? While resource forks might still be quasi-supported, you really shouldn't be thinking about them as such. Instead, think in terms of extended attributes. You can use the low-level xattr() functions to get some of that or you can use the new NSURL methods.

  • How to create a copy of emails to share folder

    I'm currently new to OCS Email and I need all the helps from you guys in here.
    Here is my scenario.
    Our employee having a one to one relationship to the share folder.
    All emails from our employee need to duplicated and sent to the share folder. Where do I start and what tool do I need to accomplish this task? Please help me out.

    The way I do it is rather simple.
    1.       Copy the local RoboHelp project to a new location.
    2.       Remove the link to source control. (See http://www.robowizard.com/RoboWizard/MonthlyScry/102004.htm on how to do this without opening RoboHelp. Please follow these instructions.)
    3.       Open the RoboHelp project and add it to source control as a new project.
    By creating a copy of the entire project directory, ALL the content is retained.
    Greet,
    Willam

Maybe you are looking for

  • HT4847 Can we check camera roll and documents data which we had back up byiphone ??

    Can we check camera roll and documents data which we had back up byiphone ??

  • Border shows on screen

    My Daily Edition PRS-900 started displaying a faint border, almost like a diminished screen size, in the upper right quadrant. The vertical part is a blank space that displaces print, the horizontal is a series of light gray lines, almost like a shad

  • How to implement DB user on SBO 8.8 and later version?

    Hello Experts, For old SBO version (2005, 2007), in order to let users can see limited companies, I can create some DB users in MSSQL, and use these DB users account for different SBO clients. However, from SBO 8.8, it is not allowed to key in SQL co

  • Problems with netinfo in 10.5

    We have 10.5.5. We keep getting this error in the system log: Sep 29 09:19:37 Xdata02 org.openldap.slapd[45483]: Unrecognized database type (netinfo) Sep 29 09:19:37 Xdata02 com.apple.launchd[1] (org.openldap.slapd[45483]): Exited with exit code: 1 S

  • To create a Java Calendar

    Hi, I have a doubt about how can I do to implement a Calendar with Java. I searched on Internet but I didn't find related information. Someone can help me please? I want to know if exists manuals, tutorials, etc, to do that task. I wait for an answer