SAP RM: How can I update the open record view container

Hi,
I add a custom method to import a document in to the record tree. Every thing works fine, but only the open record view is not updated. So I stll see the model node and not the instance node.
I think I forgot a action after I replace the node with the instance. But I don't found a method for this.
When I close the record and open it again. The view of the tree is correct.
Regards
Thomas Fanninger
Code-Example:
CALL METHOD ME->CREATE_INSTANCE_CHILD
    EXPORTING
      GID                    = gid
      ACTION                 = 'ADD'
      CHILD_SPSID            = 'Z_RM_PS_SPS_DOCUMENT_TEMPLATE'
    IMPORTING
      NEW_GID                = new_gid
    EXCEPTIONS
      NOT_FOUND              = 1
      CANCELLED              = 2
      CARDCHECK_FAILED       = 3
      NOT_ALLOWED            = 4
      INTERNAL_ERROR         = 5
      NOT_COMPATIBLE         = 6
      SUBTREE_NOT_COMPATIBLE = 7
      others                 = 8.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  doc_role_line = '*'.
  APPEND doc_role_line to doc_role_tab.
  CALL METHOD GLOB_INSTANCE_XMLDOM->REPLACE_ELEMENT_BY_GID
    EXPORTING
      ELEMENT_GID     = new_gid
      DESCRIPTION_TAB = doc_descr_tab
      AREA_POID_TAB   = tab_area_poid
      SRM_POID_TAB    = tab_srm_poid
      SP_POID_TAB     = tab_sp_poid
      SPSID           = str_sps_id
      ROLE_TAB        = doc_role_tab
      RELA_TAB        = doc_rela_tab
    EXCEPTIONS
      REPLACE_FAILED  = 1
      others          = 2.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Hi Thomas,
ViewContainer is used to hold the views which have to share the same
screen area..
That is, If you more than two vies and want to show one view to be visible
for an operation you will use this ViewContainer.
You can specify a view to be displayed, bu using Plugs.
wdThis.wdFire<PlugtoView>();
pls check these examples:
Example :
Updating fields
swc_set_element wi_container 'ORDER_NO' rbselbest-ebeln.
Modify container
CALL FUNCTION 'SWW_WI_CONTAINER_MODIFY'
EXPORTING
wi_id = wi_id "Workitem ID
do_commit = 'X'
TABLES
wi_container = wi_container. "New container merged with the workflow container.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
That's strange because If I try to update directly in the method it works !!
swc_set_element wi_container 'ORDER_NO' '123132132'.
This MF works in 4.6B but not in ECC6.0 ???
Answer: There are lot of changes mainly with respect to SWW_WI* function modules when you move from 4.6 to ECC 6.0.
Some of these SWW_WI* doesnt gurantee the correct behavioud and we did face this problem. Please change all your SWW_WI* function modules with SAP_WAPI* equivalents.
I knew SWW_WI* are working fine in some scenario's in ECC but it doesnt gurantee the behaviour always and even if you raise a message to SAP, SAP came back saying from ECC onwards developers should use SAP_WAPI* and SWW_WI* may not be supported !!
Better please replace your SWW_WI* FMs with equivalent SAP_WAPI. We have all equivalents. For SWW_WI_CONTAINER_MODIFY equiavalent is SAP_WAPI_WRITE_CONTAINER. Check for all SAP_WAPI in SE37 for a list of all SAP_WAPI FMs.
hope this helps u.
kindly reward if found helpful.
cheers,
Hema.

Similar Messages

  • HT4623 How can I update the IOS on my first generation IPAD? There is no software update option in my settings

    How can I update the IOS on my first generation IPAD? There is no software update option in my settings

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 6.1.x
    iPhone 4S                                    iOS 6.1.x
    iPhone 5                                      iOS 6.1.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 6.1.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 6.1.x
    iPad 3                                          iOS 6.1.x
    iPad 4                                          iOS 6.1.x
    iPad Mini                                     iOS 6.1.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I update the thumbnails in the slide panel when a slide has been changed?

    When the text in a slide has been changed, how can you update the thumbnail in the slide panel to reflect this change?
    We translated slides, but the slides in the slide panel are still in English.
    Thanks for your help.

    the slides should update automatically as you type
    are you using a  theme you created yourself, or one you have added for this show?
    when you play the show, does the slides show correctly?  If they are OK you could still show the presentation.
    also what Mac are you using and what graphic crd is installed?

  • How can we update the last synchronization date and time..on SUP in sccm 2012 R2

    Hi,
        Can you any one please guide me how can i update the last  synchronization date & time in SUP on SCCM2012 r2 , some how its updated as future date and when ever i try to synch the SUP with disconnected WSUS its shows in the wsyncmgr.log 
    "Wakeup for a polling cycle " and  " Wakeupby inbox drop" and "Wakeup by SCF change"  
    Thanks 
    Balaji K

    You'll probably have to call CSS on this one as this not normal by any means. The messages you noted above are completely normal but if that's all you are seeing then there's an issue.
    Have you reviewed wcm.log and wsusctrl.log?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How can I use the open in " My application" option to open image attachments.?

    How can I use the open in " My application" option to open image attachments.?
    I am trying to use the uti's given in the apple docs but just unable to do it however its working perfect for pdf and rtf files.
    please help needed urgent.   

    Perhaps you should Contact the iTunes Store Customer Service:
    Apple - Support - iTunes Store - Contact Us

  • How can I update the firmware all at once

    I'm a tech support in a school, approximately our school has over 500 laptops, how can I update the firmware on all laptops at once?

    Apple Configurator is the software you want - and it's free from Apple. However, I'm dubious that firmware can be updated all at once.
    http://help.apple.com/configurator/mac/1.4.1/

  • When i try to update software for my 3rd Gen iPod Touch to version 5 i get the message 'This version of iTunes (9.2.1) is the current version'. My Mac OS is 10.4.11. How can I update the iPod software?

    When i try to update the software for my 3rd Gen iPod Touch to version 5 i get the message 'This version of iTunes (9.2.1) is the current version'. My Mac OS is 10.4.11. How can I update the iPod software?

    The later iOSs requires at least OSX 10.5.8 for the Mac.  You need iTunes 10.5 but 10.4.11 only goes to 9.x.. 10.5.8 is a paid upgrade.
    Are you sure that you have a 3G iPod?  If it is 8 or 16 GB it is a 2G and those can only go to 4.2.1 (also requires 10.5.8 or later). A 32 GB can be either  2G or 3G. To identify yours:
    Apple - Support - Check Your Service and Support Coverage
    Identifying iPod models

  • How can i update the itunes in my external hard drive?

    When i try to update the itunes on my external hard drive, it creates a new application in my computers hard drive. How can i update the one on my external hard drive?

    there's no advantage to having the application on your external drive, you should leave it in your applications folder on your internal drive. if you insist on changing the app's location, you'll always have to then copy the app by hand to the external drive

  • How can I update the project varibles  in OBPM 10.3

    Hi All,
    OBPM version : 10.3.2 (weblogic Enterprise version)
    How can I update the project variables from the External process?
    I per my knowledge we use termination wait activity and notify the same from the external process. I am successfully do this but I am facing the performance issue with this and sometimes even data sources pool is getting exhausted.
    Could you please tell me is there any other way to update the project variables?
    Thanks in advance.
    Narasimha
    Edited by: Narasimha on Mar 2, 2011 4:19 AM

    I do not disagree with Mark about using Message Waits to update project variables. I'm right in the middle of logic right now that is doing just that.
    If you have thousands (or in your case millions) of instances to update all at once, you might want to also want to consider another approach. I obviously do not know your process and sure you've thought of this, but you could use a database to store this same information that you are currently using project variables for. You'd need a table that has the instance's unique id (e.g. case id, loan number, claim number) as the primary key and then have columns to store the information you are currently storing in project variables.
    Taking this approach, you'd be updating the milliions of rows in the database very quickly. You could still have project variables in your process, but they would be set at the beginning of a Screenflow or in an Automatic activity using a SELECT statement against the database table using the unique id of the instance as the key.
    Dan

  • How can I check the open-mode of an opened file from the file refNum?

    How can I check the open-mode of an opened file from the file refNum?
    Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
    Thanks for any hints!

    Check this post. Probably you can use a kernel.dll call.
    http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

  • How can I update the "basic" Adobe Flash Player that is in my Samsung Smart TV?

    How can I update the "basic" Adobe Flash Player that is in my Samsung Smart TV?

    Any update would come from Samsung, but in low-margin products like TVs, it's pretty uncommon for OEMs to provide ongoing maintenance over a large span of years.  You may find that you'll get a better experience from a dedicated streaming box like ChromeCast/Roku/etc.

  • I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    To update your phone requires using the latest version of iTunes, on your computer, as well as Internet access. The update to iOS 5.0 or higher is an erase/restore deal, so you not only have to make sure all of the content, currently on your phone, is on your computer and accessible, you need to update iTunes first, have Internet access, then update your phone. There is no way around this fact. You could go to an Apple store or use another computer, but you run the risk of losing all of your data it you do that.

  • IOS update to compatible version of my iCloud backup (6.1.4) but not to 7.02. How can I update the IOS to the compatible version 6.1.4?

    Am trying to update my IOS to the compatible version of my iCloud backup (6.1.4) but the update will take me to 7.02. How can I update the IOS to the compatible version 6.1.4?

    You cannot.  However, your iCloud backup will be available to you in the current release of iOS (7.0.2).

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

Maybe you are looking for

  • Requirement of putting partial batch qty to restricted status

    Hello All I have a requirement where in the 100000 EA of FG is produced & is having a single batch no., but out of these 3000 need to be reworked & shall take atleast 5-6days for rework, on the other hand we cant wait for that long to deliver the rem

  • How to make the text displayed on JLabel verticaly

    As the Titile! thanks a lot

  • Error when attempting to open Numbers file

    I have Numbers v2.2.2 running on IOS and v3.2.2 on OSX 10.9.4. and I am getting an error message when trying to open file: "Spreadsheet can't be imported. Document was created with an unsupported version" The file which was stored on iCloud had been

  • Simple multi thread example

    Hello I am still confused as to how to run parallel processes. I am looking for something very simple so that I can understand better. If possible I would like to see an example that basically starts a vi that writes to a file. For example the vi has

  • Try to ingest Panasonic HPX 250 AVC INTRA 100 wich ends AME crash

    Hi! I just bough new camera Panasonic HPX250 and now I try to ingest the footage with Prelude. Every time after Media Encoder loads the source and tryed to start encoding it ends to crash (look image) I have tryed also to uninstall  whole CC package