Dynamic usage - missing step...?

I have a component that I want to embed 1...n times within another component, inside Viewer Container UiElements. For a test, I'm just embedding one component, and hardcoding many values. But I can't get it to work - I don't get any errors, but I don't see any results on the screen.
The view is called VMAIN, the window WMAIN, the embedded component YEMBED. YEMBED is listed as a used component in both the view and the component controllers. YEMBED contains a text viewer element with fixed text.
The build usages method in the component controller looks like this:
   DATA usage TYPE wdapi_component_usage.
   usage-component_usage_name = |USAGE1|.
   usage-embedding_position = |VMAIN/VCU1|.
   usage-component_usage = wd_this->wd_cpuse_used_component(
           )->create_comp_usage_of_same_type( usage-component_usage_name ).
   usage-used_component = |YEMBED|.
   INSERT usage INTO TABLE wd_this->usages.
   wd_this->fire_prepare_navigation_evt( ).
The event "prepare_navigation_evt" is handled by a method in the view
  LOOP AT wd_comp_controller->usages INTO DATA(usage).
     wd_this->wd_get_api( )->prepare_dynamic_navigation(
         source_window_name = 'WMAIN'
         source_vusage_name = 'VMAIN_USAGE_1'
         source_plug_name = ''
         target_component_name = usage-used_component
         target_component_usage = usage-component_usage_name
         target_view_name = 'MAIN'
         target_plug_name = 'DEFAULT'
         target_embedding_position = usage-embedding_position ).
     IF usage-component_usage->has_active_component( ) IS INITIAL.
       usage-component_usage->create_component( ).
     ENDIF.
   ENDLOOP.
Finally, wdomodifyview looks like this:
   IF first_time EQ abap_true.
     DATA root TYPE REF TO cl_wd_transparent_container.
     root ?= view->get_element( |ROOTUIELEMENTCONTAINER| ).
     DATA(vcu) = cl_wd_view_container_uielement=>new_view_container_uielement(
                                                 id = |VCU1| view = view ).
     cl_wd_flow_data=>new_flow_data( vcu ).
     root->add_child( vcu ).
   ENDIF.
All help and tips gratefully received! I think I've included enough information, but if not, let me know.
thanks
matt

Hi Matthew,
We need an outbound plug with dynamic navigation! Please check this SAP help for reference: http://help.sap.com/saphelp_erp2005/helpdata/en/4c/60154219fce12ce10000000a1550b0/content.htm
I just modified your code. Please see the below code:
LOOP AT wd_comp_controller->usages INTO DATA(usage).
    wd_this->wd_get_api( )->prepare_dynamic_navigation(
        source_window_name = 'WMAIN'
        source_vusage_name = 'VMAIN_USAGE_1'
        source_plug_name = ' '
        target_component_name = usage-used_component
        target_component_usage = usage-component_usage_name " Not required
        target_view_name =  usage-used_component | 'YEMBED' Interface View Name
        target_plug_name = 'DEFAULT'
        target_embedding_position = usage-embedding_position ).
  ENDLOOP.
    wd_this->fire_to_out_plg( ).  " to_out is outbound plug of VMAIN
Or you can use do_dynamic_navigation( ) method.
LOOP AT wd_comp_controller->usages INTO DATA(usage).
    wd_this->wd_get_api( )->do_dynamic_navigation(
        source_window_name = 'WMAIN'
        source_vusage_name = 'VMAIN_USAGE_1'
        source_plug_name = 'TO_OUT' " Out bound plug name
        target_component_name = usage-used_component
        target_component_usage = usage-component_usage_name
        target_view_name =  usage-used_component | 'YEMBED' Interface View Name
        target_plug_name = 'DEFAULT'
        target_embedding_position = usage-embedding_position ).
  ENDLOOP.
Please revert for further queries.
Regards,
Kiran

Similar Messages

  • What is Dynamic Usage Variance in ML?

    Hi Experts,
    What is Dynamic Usage Variance in ML? How does it effect the Periodic Unit Price calculated at the end of the period?
    Regards
    Srikanth Munnaluri

    Hi,
    Distribution of usage variances specially comes in scenarios like Physical Inventory checkup and its adjustments to derive the actual costing.
    Physical Inventory documents generally posted to adjust the physical inventory and the inventory as per sap. These total adjustments have to be made based on the quantity consumed on each order. Ofcourse this scenario is project specific.
    This ensures auto consideration at the time of determination of periodic unit rate in actual cost run. These adjustments will revaluate the consumption.
    This dynamic usage variance  is applicable both for the inventory and for activity rates.
    U have to maintain the following configuration-
    Controlling>Product Cost Controlling>Actual Costing-->Activate Distribution of Consumption Differences
    Once these settings are in place, u have to run either some or all of the following--
    CKMDUVACT - Distribution of Activity Differences
    CKMDUVMAT - Distribution of Inventory Differences
    CKMDUVREC - Enter Actual Activity Quantities
    if u want view the differences before executing above transactions, u can view by using
    CKMDUVSHOW - Display Inventory and Activity Differences
    Regards
    Sudhakar Reddy
    Edited by: Sudhakar Reddy K.V. on Sep 14, 2009 2:11 PM

  • Dynamic Dialog Praticipant step

    Hello experts,
               The OOTB cq comes with a "dialog participant step" and "dynamic participant step". I am looking for "dynamic dialog participant step". Any ideas of how to implement it ?
    Rama.

    I tried to customize this new component by combining the functionality of Dynamic Participant and Dialog Participant. I was able to customize the dialog (which shows up when I drag and drop the customized dynamic Dialog Participant Step) to refer to a dialog path ( as is OOTB Participant Step) and choose which  script to resolve the dynamic participant step. But at the run time had this issue where it was not assigning to the right group though the script returns correct value. I dont see any errors. But the major issue was I could not see the custom dialog. So took a new approch to resolve this.
    1. Create a new model
    2. Drag and drop the dialog Participant step and DONOT choose the group. Choose title and description, and also choose the custom dialog.
    3. Create a new java process step which would assign the a value to the property called PARTIPANT to the next step (combination of workflow transition objects and routes objects) in the workflow ( which in this case the dialog Participant).
    4. Code the logic in such a way that it returns the correct user group.
    5. Drag and drop a java process step on to the model prioor to the dialog Participant Step and choose the newly created java process.
    6. execute the workflow.
    7. Once the java process executes it would assign to the right group for the dialog Participant (  which we did not choose while we modelled it - Step 2)
    Hope this helps.
    Rama.

  • Installing a Jumpstart server x86 missing steps

    Hello Sun experts
    I am trying to setup Solaris 9 x86 Jumpstart server. My network has DHCP enabled and my Jumpstart server has a static IP address of 192.168.0.81. I am quite new to Solaris but I think I have done the basic.
    1) Captain # mkdir -p /export/install/x86_9
    Captain# cd /CD_mount_point/Solaris_9/Tools
    Captain # ./setup_install_server /export/install/x86_9
    2) ./add_to_install_server /export/install/x86_9
    When I insert the Solaris Software 2 of 2 x86 (which I download from sun) in the CD-ROM drive
    I get an error telling me there is not enough disk space to install image file
    Captain # mkdir /jumpstartCaptain
    # cp -r /export/install/sparc_9/Solaris_9/Misc/jumpstart_sample /jumpstart
    I start the NFS server and run this command
    share -F nfs -o ro,anon=0 /jumpstart
    then I run
    Captain # shareall
    this is my profile for the clients_prof
    install_type initial_install1
    system_type standalone2
    partitioning default3
    cluster SUNWCuser4
    package SUNWaudio5
    I insterted this into my rules file
    network 255.255.255.0 - clients_prof ���
    Then run the check commad
    Captain # cd /jumpstart
    Captain # ./check
    The check command tells me that the rules are ok.
    On the client side I just inserted Solaris 9 disk 1 and chose the number 2 (The Jumpstart option) and it dose nothing, it just loads from the cd rom.
    Can anyone please help me I am lost.
    I know I am missing some steps.
    Thanks in advance

    No, the -d option specifies the container, not the package. For directory-style packages that are found on installation media, you should be giving the parent directory.
    So if you can see SUNWwsr2 in 'ls', its parent would be the current directory.
    pkgadd -d . SUNWwsr2 or
    pkgadd -d . (and find the package in the list of packages)
    Darren

  • Dynamic configuration - missing files

    Hi,
    during processing of message Dynamic Configuration is used.
    Inside SOAP response is written file name and Directory where file should be generated.
    But file is missing..
    Message seems to be processed successfully.
    Any idea what could happen?
    M.

    Hi,
    >>>Inside SOAP response is written file name and Directory where file should be generated.
    if this is a reponse you're doing request response beans ?
    >>>Message seems to be processed successfully.
    have you checked for any errors in the channel too or only message monitoring ?
    do you see the message in the MessagingSystem monitor ? what is the audit saying - was the file generated ?
    Regards,
    Michal Krawczyk

  • Select_step problem in a dynamic Multiple RoadMap Step

    Hi everybody,
    I am working with a roadmap that dynamically assigns the number of steps from a data source assign to the multiple roadmap step. When I selected a step I am not being able to change the focus and yellow color to it. I already know which step the user selected by reading the context element assign to the multiple roadmap step, but what do I need to do in order to change the focus and color of it?.
    I read other post that describe the same issue, and the answer was to change the lead selection of the roadmap, but when I tried to do it I receive a dump saying that I cannot change the lead selection.
    This answered post [Re: Multipleroadmapstep Problem|] describes perfectly my problem and I already post the same question on it, but I think nobody reads it because the status of the post is answered..
    Regards,
    Eric
    Edited by: Eric Hernandez Pardo on Aug 14, 2009 6:41 PM
    Edited by: Eric Hernandez Pardo on Aug 17, 2009 12:36 PM

    Hi Arpan,
    I'm getting the dump exactly at this point " lo_nd_roadmap->set_lead_selection_index( vl_index )". I maded a few test based on your comment, with and without the '-index value' and also changing the context node bind to the selected_step, when I use the context_node "mrs" (this context is bound to the multiple roadmap step) like the code above I get no errors at all, but the step is not getting mark, neither changes its color. In this case I get the dump if I added the '-2'.
    If I bind another context to the selected_step of the roadmap and do the same procedure (replacing the wdctx_mrs for the new context) I get a dump at " lo_nd_roadmap->set_lead_selection_index( vl_index )" with the '2' or '-2' values.
    Any sugestions?
    DATA: lo_nd_roadmap     TYPE REF TO if_wd_context_node,
            lo_el_roadmap     TYPE REF TO if_wd_context_element.
    * navigate from <CONTEXT> to <MAIN> via lead selection
      lo_nd_roadmap = wd_context->get_child_node( name = wd_this->wdctx_mrs ).
    * get element via lead selection
      lo_el_roadmap = lo_nd_roadmap->get_element( ).
    data: vl_element Type Ref To  IF_WD_CONTEXT_ELEMENT,
          vl_index type sy-tabix.
    CALL METHOD lo_nd_roadmap->get_lead_selection_index
      receiving
        index  = vl_index.
    vl_index = sl_roadmap-step_id.
      lo_nd_roadmap->set_lead_selection_index( vl_index ).
    Regards,
    Eric

  • Dynamic Documents missing plugin

    Hello,
    I tried to open an InCopy today and recieved an error that I was missing a plugin called "Dynamic Documents.InDesignPlugin." I checked in my plugin folder and sure enough it was still in the "Graphics" folder. What does this plugin control? Is there a PDF of what each needed Plugin controls? I'd love to have that.
    The document won't open. What could this mean?
    Rob

    I'm having the exact same problem and it has nothing to do with trying to open a file created with a newer version of Indesign. It happens the moment I try to launch InDesign and it started immediately following Adobe Updates. So it is not a "version conflict," it was caused by running an Adobe Update. Rather than "moving this discussion to the InDesign forum," which I can't find (and why do the breadcrumbs at the top list "All Communities > InDesign > Discussions" if this isn't the InDesign forum?), how about actually thinking about answering the question?

  • Setting Priority Dynamically in Decision Step

    Hi Experts,
    My requirement is to set priority of the user decision based on a container element value.
    Depending on the container element values, some times the workitem should be created with priority 5 (medium) and some times it should get created with priority 4 (High).
    Please let me know how can we pass priority dynamically to the user decision step.
    Thanks in Advance,
    Siva Sankar.

    I think you can use FM
    SWW_WI_PRIORITY_CHANGE
    Thanks
    Arghadip

  • Missing steps in Job History

    Hi,
    I am having this strange issue where in the job some steps are missing. There are 20 steps out of which in the job history the first 4 steps are not showing up. The packages being called in these 4 steps are running successfully.
    Also, in job history, I can see only the history for current run. All the previous entries are missing.
    Any information would be very helpful.
    Thanks
    Jatin

    By default is set to 100, you change it by going to 
    Object Explorer -> SQL Server Agent –> Right click -> Properties -> History - > check Maximum
    job history per job
    -Prashanth

  • Cannot perform error management in a mapping - missing steps?

    Hi everybody,
    I’m facing problems while trying to perform a test including data rules and its errors management. I have designed a simple mapping with a source and a target table, and the steps I did are the following:
    Create the data rule (a not_null data rule in this case).
    Sett the error table name for the target table.
    Set the conditional to NO CONSTRAINTS.
    Set “match column when deleting row” option (inside loading properties) to YES for all columns of the table (excluding those ones inside ERR_GROUP).
    Doing that, I retrieve the following warnings while deploying the mapping:
    ORA-06550: PACKAGE BODY, line 76, column 8: PL/SQL: ORA-00904: "E_NOT_NULL"."ERR$$$_ERROR_OBJECT_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 49, column 2: PL/SQL: SQL Statement ignored
    ORA-06550: PACKAGE BODY, line 151, column 8: PL/SQL: ORA-00904: "E_NOT_NULL"."ERR$$$_ERROR_OBJECT_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 124, column 2: PL/SQL: SQL Statement ignored
    ORA-06550: PACKAGE BODY, line 538, column 10: PL/SQL: ORA-00904: "ERR$$$_OPERATOR_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 529, column 7: PL/SQL: SQL Statement ignored
    ORA-06550: PACKAGE BODY, line 763, column 8: PL/SQL: ORA-00904: "E_NOT_NULL"."ERR$$$_ERROR_OBJECT_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 732, column 1: PL/SQL: SQL Statement ignored
    ORA-06550: PACKAGE BODY, line 2522, column 12: PL/SQL: ORA-00904: "EMP_NEW2_ERR"."ERR$$$_OPERATOR_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 2513, column 9: PL/SQL: SQL Statement ignored
    ORA-06550: PACKAGE BODY, line 6165, column 12: PL/SQL: ORA-00904: "EMP_NEW2_ERR"."ERR$$$_OPERATOR_NAME": invalid identifier
    ORA-06550: PACKAGE BODY, line 6156, column 9: PL/SQL: SQL Statement ignored
    After that, in the execution I get the following error (I’m translating so there may be differences from the original message):
    ORA-04063: package body "SCOTT.CORRESPONDENCIA_3" contains errors. ORA-06508: PL/SQL: programmed unitty called  "SCOTT.CORRESPONDENCIA_3" wasn’t found. ORA-06512: in line 1.
    Am I missing any of the required steps? At this moment I don’t know how to progress…
    Thanks in advance,
    Hibai.

    Hi Vidyanand,
    Did you create the runtime access user using the runtime assistant? Did you select the correct runtime repository (if you have more) to associate your runtime access user with?
    Note that there are 4 database roles being created when you create a runtime repository owner:
    - OWB_A_<runtime repository owner>
    - OWB_D_<runtime repository owner>
    - OWB_R_<runtime repository owner>
    - OWB_U_<runtime repository owner>
    If you would grant those roles to a user, then that user becomes an access user for the user with username <runtime repository owner>.
    Note that you can also use the runtime repository credentials to connect to the runtime repository for deployment purposes, but you may not want that because of security concerns.
    Thanks,
    Mark.

  • Missing step 5 in form

    Hi,
    I'm trying to build a form based on a table but every time i try to it doesn't give me the option to change the layout(the html area), it skips step 5 completly.
    If i carry on and finish building the form and then try to edit it afterwards the tab to go to that area is missing.
    Has anyone else had this problem? Or know a way around it?
    Michelle

    Hi,
    You can change the html area only in case of custom forms. Have you created a custom form? The html section will appear
    only in such case.
    Thanks,
    Sharmila

  • Two-Photo Effect...Missing Step(s)?

    I am attempting to follow a "Finishing Touches" tutorial by Dave Cross (from Layers Magazine, Jan/Feb 2007, pgs. 34-38) and seem to be missing a step (or more?) to achieve the desired result. Basically it is a variation on a two-photo effect, where the smaller "focal" image has a stroke applied and then the "sprayed strokes filter" applied to that. I cannot get the filter to have ANY effect on the stroke!
    Here is the variation, according to the tutorial:
    VARIATION 2: Here I made a selection based on the smaller photo by Command-clicking (PC: Ctrl-clicking) on its thumbnail in the Layers palette, then added a layer on which I created a stroke (using Edit>Stroke). Then, I applied the Sprayed Strokes filter (Filter>Brush Strokes>Sprayed Strokes) to the stroke layer.
    Now, I can get the sprayed strokes filter to apply to the entire image...not the desire result. OR, I click on the filter, but nothing appears in the filter preview window and nothing happens to the stroke when I apply it.
    Apparently, there are a couple of "clicks" that I am missing, but I can't figure out what they are for the life of me!
    I am using PS CS4 v 11.0.2 on a Wn XP sp3 OS.
     Thanks for any help!

    miss_marple...THANKS!  Adding the white fill to the layer worked.  I still can't seem to get the brush stroke to extend beyond the outside edge of the stroke (which his example shows) but I'm hoping that I can achieve that with a bit more experimentation.
    Noel, I had thought about the deselection idea and had tried any number of combinations of what was selected and what wasn't.  That's how I came up with the multiple issues from the OP.  But thanks for thinking of that.  I know that many times those "little steps" get overlooked when documenting the exact process because they are either intuitive, repetitive, or simply missed in the bigger picture!
    I can always count on the posters here to help me find a solution!
    Thanks!!!
    Susan

  • Dynamically Create Test Step

    I want a TestStand sequence to dynamically create multiple copies of a test step (with different parameters).  We are currently looping on the test step, but this doesn't provide a clear indication to the operator what test steps have been and will be executed.  I tried to do a SetNumElements(RunState.Sequence.Main, numElements) and an InsertElements(RunState.Sequence.Main, index, numElements), but they both made the new steps of type "Container" instead of type "Step" and when I tried to copy the test step it gave me an Error: "-17321; Variable or property types do not match or are not compatible."
    Has anyone successfully done this?  Thank you in advance.

    Thank everyone for your help.  I have successfully copied test steps.  I have had one difficulty though.  If the step I copy is a function call with a relative path to the DLL and the DLL is located in the same directory as the test sequence, the copies are not able to find the DLL (the original step is able to do so).  I have "Current Sequence File Directory" selected in the search directory list.  I checked and it seems as though the paths to all of the pre-defined directories (including "Current Sequence File Directory") are empty ("") at run-time.  I don't want to add the path in the directory search list, nor do I want to hard code the path in the sequence file. 
    Does anyone have a solution to this problem?  Optimally I would like to dynamically specify the absolute path to the DLL, but I couldn't find a property or process to do this.  Thank you in advance for your help.

  • Please fill in the missing steps for Adobe TV tutorial episode

    Would you be so kind as to give me the steps necessary to reach the status displayed at the onset of the Adobe TV selection called Clean Up Illustrator Live Trace? Thanks.

    Thanks.
    I want to open a graphic file in Illustrator, then display a Photoshop-linked version of the same graphic file side by side, so that the original is displayed on the right and the linked Photoshop version with the Live Trace already applied is displayed on the left so that when I click Live Trace, the view on the right displays the Live Trace action applied to the original (on the right). Then when I switch to the linked version (displayed on the left in Illustrator) in Photoshop and make changes, then switch back to illustrator, I will get a warning that "Some of the files are missing or modified in the Links panel. Would you like to update them now?", so when I click "Yes", the Live Trace of the Photoshop-linked version displayed on the left in Illustrator will update to reflect its results of the changes that I made in Photoshop, so that I can compare them to the Live Trace that I applied to the original, displayed on the right.
    The first view, shown above, displays the original on right, Photoshop-linked, Live Traced version on the left. The following screen shot shows the linked improved version on the left after editing in Photoshop, and the original image on the right after only Live Trace was applied. I'm not trying to figure out how to edit the image in Photoshop to get the desired results (the video explains that), I'm just trying to figure out how to manage the live updating and two-up display of the different image sources in Illustrator. Thanks again.

  • Dynamic events miss some events

    I use an event structure in LabVIEW 7.1.1 that's driven by dynamic events. Sometime, the structure misses 10% of events happened on a control. Beside that, the structure works well. Initialization of the event register is made by a constant and unregistered at the end of the VI. Anybody has expected that kind of problem?
    Thanks
    Eric

    Can you post an example or does this only happen in a certain VI?
    How do you know that the event structure is missing 10% of the events?
    Try to take over the world!

Maybe you are looking for

  • IMac wakes from sleep every night at 8:00 PM but no wake time set.

    My iMac (new fall, 2007) running 10.5.2 wakes every night at 8:00 PM Eastern day savings time. Before day light saving time started it woke at 7:00 PM. In the energy control panel "schedule section" the "start up or wake option" in NOT checked. The e

  • How to Correct and Re-send new idoc # in WE19

    Hi Expert Can you please give me the steps to correct and re-send (new idoc) in WE19. Here is the situation: Outbound ASN failed in EDI for having special char in field ARKTX(E1EDK08-E1EDP07-E1EDP09-ARKTX). Here I just need to remove special characte

  • Error when starting iTunes and no Quicktime

    Ok, I read a topic about involving the same problem, but with that one, Quicktime would open, mine will not. My issue is simple, when I click to start iTunes (The new one, 7.02 I believe) I get the windows error saying: "iTunes has encountered a prob

  • My phone is offline.

    Why I don't know but my 3250 is in offline mode, and I can't get it back online. Customer service said the phone is no good and my local O2 shop couldn't do anything. When I boot it up it's supposed to ask if I want offline or online mode but it does

  • Is there such a thing as dynamic directories?

    Let me clarify. I deal with formatting all day as I'm sure most of you do. Generally the workflow involves selecging a data source for a document merge and then placing photos on the spread. I point InDesign toward the data merge CSV file, but when I