How to read the value from one context node in other in the same view.

Hi,
I am working on enhanced component ICCMP_BP_CP/BuPaContactPersonCreate ,  i need to read the partner_guid from Customer context node in  contactpersonaddress context node.
Could you please guid me how to achieve this? if possible, please explain me with some sample code.
i am trying this code in GET_FAXFAX method of contactpersonaddress-faxfax, but it is throwing me the type cast exception.
data: lr_entity type ref to cl_crm_bol_entity.
data: lv_test type string.
lr_entity ?= collection_wrapper->get_current( ).
lr_entity = lr_entity->get_related_entity( 'BuilContactPersonAddressRel' ).
Thanks in advance.
Regards,
Kamesh Bathla
Edited by: Kamesh Bathla on Jun 25, 2009 7:46 PM

problem solved by writing the code in context node class CREATE_CONTPERSADDRESSVALNODE method
  coll_wrapper = customer->get_collection_wrapper( ).
  TRY.
      entity ?= coll_wrapper->get_current( ).
    CATCH cx_sy_move_cast_error.
  ENDTRY.
  IF entity IS BOUND.
CONTPERSADDRESSVALNODE->on_new_focus( focus_bo = entity ).
    DATA: lr_collection TYPE REF TO cl_crm_bol_entity,
          lv_fax TYPE string,
          lv_fax_ext TYPE string,
          lv_tel TYPE string,
          lv_tel_ext TYPE string,
          entity_addr TYPE REF TO if_bol_bo_property_access, "#EC *
          coll_wrapper1 TYPE REF TO cl_bsp_wd_collection_wrapper.
     lr_parrent type
    lr_collection = entity->get_related_entity( 'BuilStandardAddressRel' )."'BuilContactPersonAddressRel' ).
    IF lr_collection IS BOUND.
      coll_wrapper1 = contpersaddressvalnode->get_collection_wrapper( ).
      TRY.
          entity_addr ?= coll_wrapper1->get_current( ).
        CATCH cx_sy_move_cast_error.
      ENDTRY.
getting fax number
      CALL METHOD lr_collection->if_bol_bo_property_access~get_property_as_value
        EXPORTING
          iv_attr_name = 'FAXFAX'
        IMPORTING
          ev_result    = lv_fax.
***setting fax number
      CALL METHOD entity_addr->set_property
        EXPORTING
          iv_attr_name = 'FAXFAX'
          iv_value     = lv_fax.

Similar Messages

  • How to get value from one context node to otehr contect conde in diff views

    Hello Guru's
    We have a rek which is of getting the value from one context node to other context node,
    for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
    Inputs are highly appricated.......

    Hello,
    Thanks for your Reply
    But my rek is i want to get value from different views
    eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
    for this which method should i use to chive this.
    Thanks..

  • Copy values from one Parent node to other Parent Node

    Hi all,
    I have a 2 Parent node each having 3 child nodes. I want to copy the values of all the attributes of all the child nodes of one Parent Node to corresponding other node.
    Both the Parent Nodes as well as their Child Nodes have different name but their attributes have same name.For ex:
    Parent Node -A
    Child Nodes - a, b,c
    Child Node "a" has attributes "x" and "y"
    Parent Node -B
    Child Nodes - d,e,f
    Child Node "d" has attributes "x" and "y" .
    Now I want to copy the values od attributes "x" and "y" from one Parent Node to other Parent node.
    Please help me out.
    Helpful answers will be rewarded.
    Thanxs in advance...

    Hi Jin,
    To use copy service API, u need to satisfy 2 condition for the attributes of source node and target node:
    1. The name of the attribute should be same (including the case of the name)- Abc is different from ABC
    2. Type of the attribute should also be the same.
    copy elements works for copying values from Model node to context and does not work vice-versa. To enable the copying of context node to model node, use copycorresponding API.
    Eg:
    int contextNodeSize = wdContext().node<contextNodeName>().size();
    for(int i = 0; i < contextNodeSize; i++)
         <modelNodeName> modelObject = new <modelNodeName>();
         <contextNodeName>Element contextObject = wdContext().node<contextNodeName>().get<contextNodeName>ElementAt(i);
         WDCopyService.copyCorresponding(contextObject, modelObject);
    This will copy the values from Context Node to Model Node.
    Hope this helps you.
    Regards,
    Poojith MV

  • How do I bring saves from one ipad to my other in the cloud.

    I had a previous ipad 4 stolen and it was using the same account that my current (new) ipad 4 uses. I need to know how I can access the saved data and photos from my other pad to this one.

    You need to perform a restore, which wipes the new device clean and then you begin the restore process.
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • How to change the value from one input control to another input control?

    Hi Experts,
    I want to change the value from  one input control to another input control. For Example if i change month in first tab. it should reflect in second tab also. How should we acheive through input control or some other option.
    Here I attached screen shot.Please help me for this

    Hi,
    It is not possible to have Input controll in all tabs that will be set from another .
    But There is one workaround .
    Follow the link below .
    http://davidlai101.com/blog/2013/08/13/web-intelligence-input-control-that-affects-all-tabs/

  • Passing the values from one pgm to another pgm (Calling pgm has no sel scr)

    Hi gurus,
    In my requirement i need to pass the values from one program to another program.
    I am using SUBMIT statement . But , the program which i am calling has no selection screen.
    So how can i pass the values?
    Please help me ASAP.
    Regards,
    Bhanu.R

    Export your internal tables or work areas to a memory id in ur program before u use submit.
    Then in second pgm you have to import from memory id given above.
    example.
    EXPORT gs_header FROM gs_header to memory id 'HEADER'.
    EXPORT gt_item FROM gt_item to memory id 'ITEM'.
    SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
    In your second pgm you can write
    import gs_header TO gs_header from MEMORY id 'HEADER'.
    import gt_item TO gt_item from MEMORY id 'ITEM'.

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to read a table from one host to other host

    Hi Everybody,
    How to read a table from one host to other host.
    For Example,
    a/a@abcd - host 1
    b/b@xyz - host 2
    suppose im having a table called emp in a/a@abcd
    i want to read the table emp in b/b@xyz
    how to do this.??
    I know that we have to create a dblink...after that how to proceed.
    Plz help..
    Thanks in Advance,
    Gita

    connected as scott/tiger@test
    SQL>
    CREATE DATABASE LINK local
    CONNECT TO admin IDENTIFIED BY pinnet
    USING 'pinnet';
    Database link created.
    sql>
    select count(*) from
    users@local;
    COUNT(*) 
    16
    Message was edited by:
            jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to access the screen from one function group to other function group

    Hi Experts,
    How to access the the screen from one function group to other function group.
    Please help me on this , Bcoz it is client requirement i need to finish this urgently.
    Please
    Thanks
    Basu

    HI ,
    You can do a call transaction or submit and return
    Regards,
    Sooness.

  • I have the same songs showing up on 2 playlists on my Ipod. How do I remove the songs from one playlist and leave them on the other playlist?

    I have the same songs showing up on 2 playlists on my Ipod. How do I remove the songs from one playlist and leave them on the other playlist?

    Hi tmilbut,
    Welcome to the Support Communities!
    The information below may be able to answer your questions about how to delete items from a playlist on an iPod.
    iPod Nano User Guide - Remove items from a playlist - page 23
    http://manuals.info.apple.com/MANUALS/1000/MA1624/en_US/ipod_nano_user_guide.pdf
    Remove items from a playlist:
    1 On the Home screen, tap Music > Playlists, then tap the playlist you want to edit.
    2 Flick down, then tap Edit.
    3 Tap next to the item you want to delete, then tap Delete when it appears on the right.
    4 When you finish, tap Done.
    Delete a playlist:
    1 On the Home screen, tap Music > Playlists.
    2 Flick down, then tap Edit.
    3 Tap next to the playlist you want to delete, then tap Delete when it appears next to the playlist.
    If you tapped the wrong playlist, tap the one you want to remove.
    4 Tap Delete, or tap Cancel if you change your mind.
    5 When you finish, flick up, then tap Done (or swipe right to return to the Home screen if you cancel).
    Cheers,
    - Judy

  • How to call a method in IMPL class from one context node

    Hi, I´ve been only study the posibility to access a method in the IMPL class  from one context node class...CN## without using events, is there a way to call it ??? I don´t have it as requierement just learning thanks !.

    Hi,
    Try this by following this you can get the custom controller instacne in the view context nodes, for your requirement you can keep the view implementation class instance instead of cuco..
    To get the custom controller instance in Context node getter/setter method:
    1. Declare Cuco instance reference variable in ctxt class..
    2. Set this cuco ref. in the Create context node method of ctxt class:
    try.
    gr_cucoadminh ?= owner->get_custom_controller( 'ICCMP_BTSHEAD/cucoadminh' ). "#EC NOTEXT
    catch cx_root.
    endtry.
    you can avoid this step as this is not needed in case of view isntance
    3. Assign this instance to the respective context node Create method using:
    BTStatusH->gr_cuco ?= gr_cucoadminh.  " here assign the view implementation ref. " me" instead of gr_cucoadminh
    Here gr_cuco is the ref. variable of custom controller in the respective context node for eg. BtstatusH
    Sample implementation of this can be found in
    ICCMP_BTSHEAD/BTSHeader ->context node BTACTIVITYH-> attr ->GR_CUCO(instance of cuco)
    Cheers,
    Sumit Mittal

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • Transfer data in the Ztable from one client to another client in a same ser

    Hi all,
    How can i transfer or move data in the Ztable from one client to another client in a same server .
    Thanks
    Ajay

    hi,
    create a transport request (Workbench type) and add the following line into the transport request:
    R3TR TABU name_of_table
    save and doubleclick this line and enter the table keys for the required entries (if you need all antries: client and an asterisk will do).
    When it is done save again, release the transport and ask basis to import into target client (or you can do on your own in SCC1 transaction)
    hope this helps
    ec

Maybe you are looking for

  • HELP --Not sure what the Problem is Port, Firewall or OTHER.

    I'm pretty sure the problem is with *MY MacBook Pro* itself or a Port or Firewall setting. I'm just not sure. I tested it on my Son's Mac and it works fine when I log in using HIS Mac I have no problems at all using my account on His Mac. Here is my

  • Com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException

    Hi all 1. I am trying to deploy my first adobe interactive app. 2. When I do that I get: The initial exception that caused the request to fail, was:    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../local/TutWD_OnlineInt

  • I cannot open a new tab with ctrl + T, or by double clicking or by right clicking

    I cannot open a new tab with ctrl + T, or by double clicking or by right clicking, i was using 3.6.18 before when i started facing this problem, than i uninstalled the firefox and reinstalled Firefox - 3.0.6, still the issue has not been resolved, i

  • Mac Mini Purchase?

    I  am looking to buy a Mac Mini and use it without a connected screen.  I would like to use my Ipad as a screen, is this possible.  I know the screen is small but it would work for what I need it for.  I do 90% of my work on Ipad but there is some ne

  • Recording dropouts, silences and stops

    Hi all. I'm really becoming crazy for a problem with my AA3. I would like to use my HP Notebook (Core 2 duo, 2 GB DDR2, Realtek HD Audio, Nvidia 8400M GS, Vista Home Premium 32 bit) for multitrack recording but i can't because the record contains lot