How can i  add entry in table BSP_DL_XMLSTRX2 for creating a copy of a view

hi
i want to copy in a CRM_UI component view the configuration of the view and want to save the copy with a
different object type. But F4 value help only provides ( in crm_ui component workbench) me the value <DEFAULT> as for that view there is only one entry in table
BSP_DL_XMLSTRX2 and for object type = <DEFAULT> and when i enter something different i get the error that this object type does not exist.
(call method CL_BSP_DLC_XML_STORAGE2=>GET_EXISTENCE_FOR_VIEW
    exporting
      IV_COMPONENT       = ME->CURRENT_CONFIG_KEY-COMPONENT
      IV_VIEWNAME        = ME->CURRENT_CONFIG_KEY-VIEWNAME
    importing
      ET_CONTEXT_SEM_KEY = LT_CONTEXT
      ET_CONFIG_INFO     = LT_CONF_INFO.
---> result in only one line but i want to add another
*so my questioin:
where can i enter a new object type for a existing crm_ui view configuration

Hello Britta,
Its useful program to copy a view configuration.
Best Regards,
zafer,
Edited by: Zafer Kuru on Dec 5, 2011 3:51 PM
REPORT  z_copy.
TABLES bsp_dcls_conf_semantic_key.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS     fr_comp  TYPE bsp_wd_component_name OBLIGATORY.
PARAMETERS     fr_view  TYPE o2pageext OBLIGATORY.
PARAMETERS     fr_role  TYPE bsp_dlc_role_key OBLIGATORY.
PARAMETERS     fr_couse TYPE bsp_dlc_component_usage OBLIGATORY.
PARAMETERS     fr_obty  TYPE bsp_dlc_object_type OBLIGATORY.
PARAMETERS     fr_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS     to_comp  TYPE bsp_wd_component_name OBLIGATORY.
PARAMETERS     to_view  TYPE o2pageext OBLIGATORY.
PARAMETERS     to_role  TYPE bsp_dlc_role_key OBLIGATORY.
PARAMETERS     to_couse TYPE bsp_dlc_component_usage OBLIGATORY.
PARAMETERS     to_obty  TYPE bsp_dlc_object_type OBLIGATORY.
PARAMETERS     to_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS     request   TYPE trkorr OBLIGATORY.
PARAMETERS     d_mode    TYPE flag.
SELECTION-SCREEN END OF BLOCK b3.
DATA :  iv_from_component         TYPE  bsp_wd_component_name,
        iv_from_viewname          TYPE  o2pageext,
        iv_from_role_key          TYPE  bsp_dlc_role_key,
        iv_from_component_usage   TYPE  bsp_dlc_component_usage,
        iv_from_object_type       TYPE  bsp_dlc_object_type,
        iv_from_object_sub_type   TYPE  bsp_dlc_object_sub_type,
        iv_to_component           TYPE  bsp_wd_component_name,
        iv_to_viewname            TYPE  o2pageext,
        iv_to_role_key            TYPE  bsp_dlc_role_key,
        iv_to_component_usage     TYPE  bsp_dlc_component_usage,
        iv_to_object_type         TYPE  bsp_dlc_object_type,
        iv_to_object_sub_type     TYPE  bsp_dlc_object_sub_type,
        is_transport_data         TYPE  bsp_dlc_config_transport_data.
DATA:
  ls_from_config_data   TYPE bsp_dlcs_conf_data,
  lr_from_text_rep      TYPE REF TO cl_bsp_dlc_stext_repository2,
  lr_to_text_rep        TYPE REF TO cl_bsp_dlc_stext_repository2,
  lt_from_text          TYPE bsp_dlt_stxtrep2,
  ls_from_text          TYPE bsp_dl_stxtrep2,
  lv_to_context_id      TYPE bsp_dlc_context_id,
  lv_config_data_origin TYPE bsp_dlc_config_data_origin.
DATA lt_xmlconf TYPE TABLE OF bspc_dl_xmlstrx2.
DATA ls_xmlconf TYPE bspc_dl_xmlstrx2.
DATA ls_xmlconf_check TYPE bspc_dl_xmlstrx2.
is_transport_data-request = request.
is_transport_data-display_mode = d_mode.
SELECT SINGLE * FROM bspc_dl_xmlstrx2 INTO ls_xmlconf_check
                                      WHERE component = fr_comp
                                        AND viewname = fr_view
                                        AND role_key = fr_role
                                        AND component_usage = fr_couse
                                        AND object_type = fr_obty
                                        AND object_sub_type = fr_obsty.
CHECK sy-subrc EQ 0.
TRY.
    CALL METHOD cl_bsp_dlc_xml_storage2=>get_config_data
      EXPORTING
        iv_component           = fr_comp
        iv_viewname            = fr_view
        iv_role_key            = fr_role
        iv_component_usage     = fr_couse
        iv_object_type         = fr_obty
        iv_object_sub_type     = fr_obsty
        iv_only_spec_parameter = abap_true
      IMPORTING
        es_config_data         = ls_from_config_data
        ev_config_data_origin  = lv_config_data_origin.
  CATCH cx_bsp_dlc_config_not_found.
    RAISE config_not_found.
ENDTRY.
lr_from_text_rep = cl_bsp_dlc_stext_repository2=>get_instance(
                                         iv_component = fr_comp
                                         iv_viewname  = fr_view
                                         iv_role_key        = fr_role
                                         iv_component_usage = fr_couse
                                         iv_object_type     = fr_obty
                                         iv_object_sub_type = fr_obsty
CASE lv_config_data_origin.
  WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_c.
    CALL METHOD lr_from_text_rep->get_texts_c_for_context_id
      EXPORTING
        iv_all_langu = 'X'
      IMPORTING
        et_text      = lt_from_text.
  WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_s.
    CALL METHOD lr_from_text_rep->get_texts_s_for_context_id
      EXPORTING
        iv_all_langu = 'X'
      IMPORTING
        et_text      = lt_from_text.
ENDCASE.
Edited by: Zafer Kuru on Dec 5, 2011 3:54 PM

Similar Messages

  • How can I add a new line item for production order?

    HI all,
    How can I add a new line item for production order through BAPI/FM? Thanks in advance.

    Hi Mil,
      Unfortunetly SAP is not in front of me.
    But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
    Reward if useful!

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • How can I add a photo to a newly created photo book it the photo wasn't in the album I made the book from? thnx

    how can I add a photo to a newly created photo book it the photo wasn't in the album I made the book from? thnx

    Drag it to the book project in the source pane on the left
    LN

  • How can i add smiley or special character when creating new contacts?

    how can i add smileys or special character when creating a contact on my contacts? help please...

    I think you need to download an app for that - do a search in the app store.

  • How can I add a small table andfour colored corners to my PDF drawings?

    Hi,
    I have been sent some plans/drawings in PDF to which I need to add a small table at the bottom right side and a coloured logo to each of the corners of the drawings.
    I have tried in so many ways, but it doesn't seem possibe. Does anybody know how or if it is at all possible?
    I am using Adobe Acrobat XI standard.
    Thank you very much.

    Hello,
    maybe in this special case (your drawings) you shold not be afraid to use and buy a professional program like I use sometimes: 
    http://www.nuance.com/for-business/document-imaging-and-scanning/power-pdf-converter/index .htm
    German wbsite: http://www.nuance.de/for-business/document-imaging-and-scanning/power-pdf-converter/index. htm
    To see how it works and if it can help you, you could download a trial version first.
    Hans-Günter

  • How can I add multiple fill in answers for a single title, or fill in answers with no title

    Time
    Date
    Description
    I need to add a table much like the one above to my form. How can I do this.

    Your best bet might be to use a Formatted Text for "Turnover" on top of your fields and then use caption on top for label positon.
    OR you can have the Formatted text on the same line as your fields too
    Hope this helps
    Gen

  • How can I add a custom attribute to the create page dialog?

    I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
    http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
    I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
    The method you describe before can only added those CQ bulid-in attribute.
    For those custom attribute, how can I added it?

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can see deleted entries of account assingnment for BSX rules....

    Hi,
          For path IMg - > MM - > Valuation and account assignment -> Account Determination -> account determination without wizard - > configure automatic postings...
    In if i go for account assignment...
    inside, for Transaction Key BSX -- If i double click on inventory management ---Those entries are deleted ...then how can i regain or see those entries and corresponding G/L accounts for it...
    Its urgent...
    Pls help
    Rgds,
    Priyanka

    Hi Priyanka,
    Why dont you reassign GL Accounts and Valuation Classes.
    You can reassign them by checking in GL master ie FS00 & Valuation classes ie OMSK.
    If you dont know the procedure take FI/CO guys help.
    There is no other option.
    Reg,
    Ashok
    Rewards welcome.

  • How can I add the new project? (for mac)

    I can't add the new project. Who can help to do this action?

    You have opened the Render Engine. Either you clicked on the wrong app or you have a fouled up text file in preferences. There are several threads on this forum that point to the solution.

  • How can I add albums/events on iPhoto (for iPad)?

    Using only my iPad (if possible), how can I create new albums and events on iPhoto?

    Use the Photo app on your iPad to create and name a new album.
    Photos > Album View > Edit > New Album
    The new album will appear in iPhoto for iOS.

  • How can I add an extra in pages when creating a newsletter?

    Hi,
    I'm working on a newsletter in Pages via the newsletter template (I'm working in 5.2) it won't however let me add an extra page, I just have the two that are in the original template.
    Any ideas?
    Thanks.

    Hi Chl0w,
    In layout mode (again, Pages 5.x) you can use Insert (Page) from the menu bar or toolbar.
    Pages Help for Mac, Add, delete, and rearrange pages
    Add a page
    In a page layout document: Click Insert   in the toolbar, then choose Page.
    The new page appears at the end of the document.
    In a word-processing document: Add a page break. You can also add a section that begins on a new page.
    Take care,
    Nubz

  • How can I add a fillable table to my form?

    How do I create a form that includes a fillable table in FormsCentral?  I need to create a form that is similar to an order form with multiple spaces available for Quantity, Item Description, and Cost.  Then I need it to calculate a total cost for all items.  Can I do that using FormsCentral?  If not, what is your solution?  Keeping in mind that I want people to be able to complete the form electronically instead of pringing it and filling it out.
    Thanks,

    Forms created/designed in FormsCentral don't support calculations. FormsCentral also doesn't support tables on the form. You can add fields side by side but it won't be exactly like a table. You best solution is to create a PDF outside of FormsCentral. You can use Acrobat to add form fields and caulculations to your form.
    Once you have the PDF Form you can import it in FormsCentral to collect data electronically. People will need to fill out your Submission enabled PDF Form using Adobe Acrobat, Adobe Reader or Adobe Reader Mobile and then press the submit button added by FormsCentral to send the data electronically to your Response Table inside FormsCentral.
    hope this helps
    Gen

  • How can I add account privileges to a newly created file?

    I have multipe accounts on my Mac.  Two of them need to share certain files, but not with everyone else so I can't use the Shared folder.  When I create a new text file with AppleScript it has default ownership to the account that created it, but I need to give read & write privilages to it to the other account as well.  I can do this manually, but there are lots of files sometimes.  One trick I've found is to reset privilages from the next higher folder.  This saves time, but sometimes I forget.  Also when I do this it causes Time Machine to think all the files in that folder have been updated.  If the folder is large it may cause Time Machine to purge a old backup version.  What I'd like to do is find some AppleScript code I can use to add user "A" with read & write access to the permissions of a new file at the time my AppleScript creates that file.  Any ideas?

    Thanks for the reference.  It was interesting and provided me with a direction I hadn't thought of: User Groups and Terminal commands which led to DO SHELL SCRIPT.
    The approach in your reference wasn't practical for me because I already have about 10,000 folders in a 4-deep tree structure on a 2 TB hard disk.  The inheritance method whould have taken a lot of work.
    I did some more researching and experimentation and here's what I ended up with.
    First I created a User Group and assigned the two accounts that needed to share files to it.  By the way, I have two accounts so I can run time-consuming AppleScripts in one while doing work in the other.  This way I'm not disturbed by the AppleScripts and, since some of them use System Events, they aren't disturbed by me.  Anyway, I set up a User Group.  For some reason, the first group didn't work properly.  When I assigned it to a folder or file, one of the account names appeared next to the group icon in the Get Info window of Finder.  I tried everything I could think of to make it work and failed.  Then I created a second User Group and it worked fine, so I just deleted the first group.  I wonder what went wrong the first time?
    Next I used the Finder's Get Info window to apply the new Group privilages to all items in my very large shared data folder on that hard drive.  This took about an hour.
    Finally I created the following AppleScript code taking most of it from what I found on the Internet and fixing problems using other things found on the net.  I've built the following code into a number of AppleScripts that create folders containing 20-200 files.  I've run two of the scripts and created about 200 files in a few dozen folders and it seems to work fine.  Oh, one more thing: For some reason I couldn't assign group membership by name.  I kept getting an error message.  When I substitued the group number - 505, it worked fine.  Go figure!
    tell application "Finder"
    ... lots of finder code ...
    set these_items to every item in folder (target_folder & folder_name)
    tell me
                                            set this_POSIX to quoted form of POSIX path of ((target_folder & folder_name) as alias)
                                            do shell script "chown -R  " & "Programming:505 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            do shell script "chmod -R 770 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            repeat with this_item in these_items
                                                      set this_POSIX to quoted form of POSIX path of (this_item as alias)
                                                      do shell script "chown -R  " & "Programming:505 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                                      do shell script "chmod -R 770 " & this_POSIX user name "Richard" password "xxx" with administrator privileges
                                            end repeat
                                  end tell
    ...more finder code
    end tell
    Note: The tell me was recommended by someone on the net.  There was a caution about do shell script failing inside a Tell application "Finder".  I didn't test this.
    I'm a happy camper now.  I don't think I'd have found my way without the reference you provided.

  • How can I add gps coordinates to contacts for location reminders?

    Hi,
    It seems geocoding for things like location based reminders in the iphone 4 seems to be EXTREMELY inaccurate in South Africa.
    If I search for an address in the maps app it finds it, but clicking on the same address in the contact list (where the reminders app find their address) to see it on the map shows any addresses in my city to show in the centre of the city, not at the propper address.
    So in short, because the app doesn't get the correct location fromt he addresses, it doesn't know when to remind me.
    I was hoping there would be a way of adding co-ordinates to the address box (I tried by haven't been able to get it right) that can be used for the location based reminders.
    I think it's really stupid that the maps app can find a location fine when I search for the address, but clicking on the address in the contacts app doesn't give the same result.
    Can anyone help me find a way to make this work?
    Here's more info I've asked the same question at EE > http://rdsrc.us/zBKr7i
    Thanks
    Steven

    I have also experienced this.
    Tried to put in my address into the contact app and when tapping on address it opens it up in google maps, but pops a "No results" message. But when you immediately tap search (which have the values populated from the contacts app) it will find the address.
    Then I add that address from the maps to the contact and delete the old one.
    But like stevenfromjohannesburg said, when you add that address it doesn't add it correctly and the next time you tap it, it reverts to the centre or default of the suburb.
    I've even tried adding only my suburb (Jukskei Park, Gauteng) which searches fine in the google maps app, but when tapping from the contacts app it doesn't find it. And when saving that from the maps app to contacts app, it saves it as Randburg ?
    Very frustrating.

Maybe you are looking for