Fetching component_name of created component in component_usage

hello,
I got another problem too.
I make a single Component_Usage and create a component to this component_usage.
anzulegende_comp_usage =   wd_this->wd_cpuse_usage_z_itf_cid_a( ).
    IF anzulegende_comp_usage->has_active_component( ) IS INITIAL.
      anzulegende_comp_usage->create_component( COMPONENT_NAME = 'component_xyz' ).
    ENDIF.
but after this I can´t access the name of my created component 'component_xyz' via my  component_usage.
If I use a component_usage_group I can access the component-names but this should be possible with a single component_usage too. or am I wrong?
the solution could be to use the structure-type "wdapi_component_usage" but I want to know if this is possible with a single component_usage too?

Hi Thorsten.
You can use the following trick.
l_ref_cmp_usage           TYPE REF TO if_wd_component_usage,
lr_usage                  type ref to cl_wdr_component_usage,
lr_component              type ref to if_wd_component.
when you have the reference to the usage in l_re_cmp_usage just cast it to cl_wdr_component_usage and call get_child_component.
  l_ref_cmp_usage =   wd_this->wd_cpuse_soptions( ).
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).
  ENDIF.
  lr_usage ?= l_ref_cmp_usage.
  lr_component = lr_usage->get_child_component( ).
Then you have the used component and can use the component info to get the name.
Cheers,
Sascha

Similar Messages

  • Fetching reversal document Created using FB60

    hi All,
    I have created an invoice using FB60 and reversed the same which is getting stored in RBKP table i have an existing code which returns the invoice reversed using created using mir0 the select query is as below.
    SELECT lifnr xblnr bldat cputm  FROM rbkp     INTO TABLE i_reversal
               FOR ALL ENTRIES IN i_an_ven
               WHERE lifnr = i_an_ven-lifnr AND
                     bukrs = i_an_ven-bukrs AND
                     cpudt >= date_in AND
                     cputm >= time_in AND
                     stblg <> ' '.
    I now want to fetch reverse document created using FB60 which is stored in table BKPF
    Can any one let me know condition what i should apply to fetch the same.
    OR the outline would be helpful
    Thanks,

    Check the field BSTAT = 'B' in BKPF.

  • ActiveX can't create component

    I have a Linux vmware image with an 11g database and BI EE Server v10.1.3.4.1
    My laptop is running Vista Business and Office 2007.
    I can connect to the vmware image Server through Presentation Services on my laptop.
    I can also connect through the BIOffice Addin with Excel and Powerpoint.
    When I try to connect to BI Publisher with Word I get the following error:
    Run time error 429
    ActiveX can't create component.
    I have uninstalled/reinstalled all client components
    I have run setup from Program Files/Oracle/BI Publisher/BI Publisher Desktop/DotNetInstallFiles (uninstalled / reinstalled / repaired)
    I was running v10.1.3.3.2 on my laptop with no problems - this has happened since upgrading to 10.1.3.4.1
    Can anyone shed any light on this problem.

    Please try the followings.
    1. Uninstall BIP desktop from control->Add or remove programs.
    2. Open explorer and go to "C:\WINDOWS\assembly".
    3. Check if the assemblies which start with "TB" don't remain there.
    4. Please open the MS Word startup directory and check there is no file there. The directory is normally the following.
    XP:
    C:\Documents and Settings\<user name>\Application Data\Microsoft\Word\STARTUP
    Vista:
    C:\Users\<user name>\AppData\Roaming\Microsoft\Word\STARTUP
    5. Open MS Word and check if you don't see the BIP tool bar.
    -> If you see it, please move Normal.dot to another directory and try again.
    6. Please check that the OS user you use has an administrator privilege.
    7. Please go to Control Panel -> Add or Remove programs and check if the followings have been installed.
    Shared Add-in Extensibility Update for Microsoft .NET Framework 2.0 (KB908002)
    Shared Add-in Support Update for Microsoft .NET Framework 2.0 (KB908002)
    8. Install BIP Desktop again
    Also, please check other Word add-in features such as chart and crosstab if you see the same error.

  • Dynamic created component, problem to set position

    hello,
    I want to create in dynamic way label component and put it on GridPanel in given position. How can I set this position(x,y) to created component?
    thanks in advance

    Hi, Jeff.
    Just don't want to cross post the same answer all over the forum. So I gave some inputs on the topic in this message: http://forums.sdn.sap.com/thread.jspa?messageID=11127647&#11127647
    Hope this will help you.

  • Dynamic create Component usage and embed it in view container

    There is a view_container_uielement VC_TEST  in view V_MAIN, in wd component ZTEST.
    I created a web dynpro component named ZWDR_TEST and add it into the wd component ZTEST.
        gr_comp_test = component->create_cmp_usage_group(
          name = 'TEST_GROUP'
          used_component = 'ZWDR_TEST' ).
        lr_comp_usage = me->gr_comp_test->add_component_usage(
          embedding_position = 'V_MAIN/VC_TEST'
          name = 'TEST'
          used_component = 'ZWDR_TEST' ).
        if lr_comp_usage->has_active_component( ) is initial.
          lr_comp_usage->create_component( component_name = 'ZWDR_TEST' ).
        endif.
        ifc_test ?= lr_comp_usage->get_interface_controller( ).
    I thought the wdr ZWDR_TEST was embeded in the view V_MAIN in the position VC_TEST by the embedding_position parameter.
    But in the result web page, there is no ZWDR_TEST in the position of VC_TEST.
    Could any one explain why?
    Thanks

    Hi,
    for dynamic comp usage.. check this..
    http://help.sap.com/saphelp_nw70/helpdata/en/bc/191a427ff6db2ce10000000a1550b0/frameset.htm
    Dynamic Component Usage
    embed view
    Dynamic View embed
    How to create a webdynpro view dynamically and embed into view container?
    Cheers,
    Kris.

  • FPM: Error while creating component Configuration

    Hi,
    I have installed ABAP trial version (NSP), but without loopback adapter. So, now for every WebDynpro application, I have my manually change link from "http://<mymachineName>:8000" to  "http://localhost:8000".
    I create an application on FPM component: FPM_OIF_COMPONENT, then an application configuration for this application.
    I open this Appl. config. in se80 and press "Start configuration".  Now I try to create new component configuration.
    After maintaining description and transport information, I save it.
    At this point, I get a dump:
    "RFC Error while sending logon data"
    CALL_FUNCTION_CONNECT_ERROR in CL_WDR_CFG_COMP_SHBROKER======CP.
    The class: CL_WDR_CFG_COMP_SHBROKER method: INVALIDATE
    has a call:  call function 'WDR_INVALIDATE_CFG_PATTERN' starting new task l_cfg_task
            exporting client = client pattern = l_instance_name .
    where it dumps.
    could you please to resolve what could be wrong? is there some system setting which I missed.
    Regards,
    Daman

    Hi ,
    This exception is raised when a connection or communications failure occurs.
    This exception reports all failures and system problems on the remote machine . so look like there  is some porblem with your system connection .
    Could you please check in your host file , is that entry for system is maintain  or not ?
    Hope this help .
    Regards,
    Dinesh

  • Error when trying to create component configuration

    Hi!
    When I try to create a component configuration, the following error occurs after pressing the <create>-button:
    Dynproausgabe ohne Verbindung zum Benutzer (<b>Dynpro output without user-connection </b>)
    Applikationsserver PSD1P02_TS3_01 und im Workprozess 0
    RABAX_STATE
    SYSTEM-EXIT of program SAPLSKEY
    Function: TADIR_OBJECT_CHECK of program SAPLSKEY
    Function: CHECK_ACCESS_KEYS of program SAPLSKEY
    Method: CHECK_TROBJ_BEFORE_EDIT of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: FILL_PERS_DATA of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_COMPONENTCONTROLLER~EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==
    Has anybody come across that problem and a solution on hand?
    Regards,
    Thomas

    Hi, Koen!
    Thanks for your answer. Unfortunatly I' ve only one session open - and that should' nt be too much, should it?
    Any other ideas?
    Regards,
    Thomas

  • Issue while creating Component Based Message Alerting in PI 7.31 Dual Stack

    Hi,
    We tried to implement Component Based Message Alerting following the steps mentioned in the below blog.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Ours is PI 7.31 dual stack. However, after setting up the job with my own user id, I am getting the below error inside the log of Jobs tab:
    javax.jms.JMSSecurityException: You do not have permissions: action alertingVP.queue and instance:name alertingVP.queue
    action consumer
    instance jms/queue/xi/monitoring/alert/ALERT-TO-MAIL
    Please let us know what permission is required to set up the job.
    Thanks,
    Rahul

    Hi, 
    Now I am able to receive alert in my mailbox. But it's coming with improper content.
    I have set up the job at an interval of every 2 minutes in NWA, and in case if only 1 message fails in IE, in ideal case, I should receive only 1 message details in alert.
    However, in every 2 minutes, I am receiving junk data and the number is increasing for the particular scenario for which the alert has been created. Also the Error Category mentioned is showing improper.
    But in table SXMSALERTCONTENT I am able to view only the newly added failed entry.
    An erroneous alert email content is pasted below:
    63 messages failed for "Test_XXX" on "af.s0i.saps0i"
    Root cause: -1
    To navigate to the failed messages in the local message monitor use this link
    The first 1 messages of that data collection:
    "AdapterNamespace": "http://sap.com/xi/XI/System",
    "AdapterType": "File",
    "Channel": "FileSender_XXX",
    "ChannelParty": "",
    "ChannelService": "XXXXX",
    "Component": "af.s0i.saps0i",
    "ErrCat": "",
    "ErrCode": "",
    "ErrLabel": "-1",
    "ErrText": "Configured source directory '\\Outbound\\XXX\\CREMAS' does not exist",
    "FromParty": "",
    "FromService": "XXX",
    "Interface": "Z_CREMAS_SUSMM.CREMAS03",
    "Namespace": "urn:sap-com:document:sap:idoc:messages",
    "RuleId": "3a64dd6e1b1d3e58aff62ea70c97cb80",
    "Timestamp": "2013-02-01T09:43:23Z",
    "ToParty": "",
    "ToService": ""
    The failed message however do not relate to the 'source directory does not exist' issue. Please help.
    Thanks,
    Rahul

  • Creating component types in N1sps

    First, I have created a simple base type called wfbSimpleBase. The contents of which are the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generated by N1 SPS -->
    <component modifier='ABSTRACT' installPath=':[installPath]' xmlns='http://www.sun.com/schema/SPS' name='wfbSimpleBase' version='5.1' description='Wells Fargo Simple Base type' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' author='system' softwareVendor='WellsWare' xsi:schemaLocation='http://www.sun.com/schema/SPS component.xsd'>
         <varList>
              <var name='installName' default=':[sys.name]'></var>
              <var name='installPath' default=':[container:installPath]'></var>
              <var name='installUser' default=''></var>
              <var name='installGroup' default=''></var>
              <var name='installPermissions' default=''></var>
              <var name='installDeployMode' default='REPLACE'></var>
              <var name='installDiffDeploy' default='TRUE'></var>
              <var name='overrideRsrcInstallPath' default=''></var>
         </varList>
         <resourceRef modifier='ABSTRACT'>
              <installSpec deployMode=':[installDeployMode]' permissions=':[installPermissions]' name=':[installName]' user=':[installUser]' diffDeploy=':[installDiffDeploy]' path=':[overrideRsrcInstallPath]' group=':[installGroup]'></installSpec>
         </resourceRef>
         <installList>
              <installSteps name='default'>
                   <deployResource></deployResource>
              </installSteps>
              <installSteps name='markOnly'></installSteps>
         </installList>
         <uninstallList>
              <uninstallSteps name='default'>
                   <undeployResource></undeployResource>
              </uninstallSteps>
              <uninstallSteps name='markOnly'></uninstallSteps>
         </uninstallList>
         <snapshotList>
              <snapshot name='default'>
                   <capture>
                        <addResource></addResource>
                   </capture>
              </snapshot>
         </snapshotList>
    </component>
    This step went smoothly.
    Next I tried to extend a new abstract type from it called: wfb_ct. The content of which is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generated by N1 SPS -->
    <component xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' name='wfb_ct' version='5.1' xsi:schemaLocation='http://www.sun.com/schema/SPS component.xsd' xmlns='http://www.sun.com/schema/SPS' path='/wfbTypes'>
         <extends>
              <type name='system#container'></type>
         </extends>
    </component>
    When I try to change the name attribute of the type element of the extends to wfbSimpleBase as in the following:
         <extends>
              <type name='wfbSimpleBase'></type>
         </extends>
    I get the error:
    Unable to check in component
    Unable to find component type with name "wfbSimpleBase". (023061)
    It does not matter where I move wfbSimpleBase in the folder tree within the N1 repository N1 is simply unable to associate the wfbSimpleBase as the parent type for wfb_ct. When I try to supply a folder path in the name attribute I get a name format error. The only information that I have found in the 5.1 Schema reference that appears to be associated with this is:
    <type> Element
    The <type> element names the base component type of this component. This element is a child of the <extends>, <componentRefList>, and <componentRef> elements.
    The <type> element has one required attribute of type systemName, name, which is the name of the system type component that serves as the base type. If the specified type is one that is defined by a plug-in, pluginName must be prefixed to the type name, such as pluginName#typeName.
    This seems to imply that the name attribute of the type element must be a systemName? If this is true how do I get the system to recognize/honor the wfbSimpleBase as a systemName appropriate to extend to a child component?
    John Seiberling

    Hi,
    It is very much possible to plan Non-Stock & stok items & also services in a single work order. Even you can plan stock & non-stock items for a single operation also by providing Item categories L: Stock Item & N: Non- Stock item.
    Yatharth

  • Create component test for bpel

    I am having a problem when creating tests for a bpel process. I can create an Unit test per composite and the test xml is successfully created, but when I try to create a Component test, Jdeveloper is unable to save the proper changes to the component test xml file. Actually i can see no changes in the component test xml. Is there anyone who faced this problem and has a solution?
    PS: I receive a NullPointer Exception when trying to saving changes and another error Unable to save ...... AppData\Local\temp.... (protocol doesn't support output).
    Error snapshot: http://oi39.tinypic.com/2cdvha0.jpg

    John is right. But this might be a good place to start:
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b31005/intgn.htm#CJHCIJJI
    Jan Kettenis

  • Creating component model diagram

    Dear SDN,
    I am trying to create a component model using Borland 2008 . I am refering the SAP LIbrary link .
    However I am not getting the PublicPart image as described in the SAP Library.
    Anyone has the similar experience . Any suggestion are welcome
    http://help.sap.com/saphelp_nw04/helpdata/en/1c/bca99c220c0e45a1cae3c4cccf4346/content.htm

    Hi
    Take the help from  [this|Re: Public Parts; and [this|Re: How can I consume the Public Part of a DC from a local DynPro project?; and [this|Multi DC architecture;
    I am mentioning some point which confused you in that figure.
    1. A component behaves like a u201Cblack boxu201D, which implies that its inner parts are not visible from the outside.A component can define any number of public parts, each of which must have a unique name. A particular development object can be named in more than one public part. This allows you to organize public parts according to functional view points. (Simple taken from the source)
    2. In the figure below, component X is on the same hierarchy level as component Y: consider it like DC X and DC Y(same hierarchy)
    3. Keep this point in mind that cyclic dependency is not at all possible, now try to figure out any such cases where two component say A & B using each other (A<=====>B), in this way might u will identified
    the use cases(ultimately which is the objective )
    Hope it helpful for you.
    Best Regards
    Satish Kumar

  • Dynamically create component

    Same project as my last post but figured the context is different enough to merit a new thread.
    I have a flex application called app.mxml and a component called dummy.mxml, the component consists of a text area and a button.
    The application consists of 5 textInputs and a Canvas.
    Is it possible that when the user types something into one of these text fields that there is an instance of dummy created within the canvas and the text area within dummy contains the text within the input field?

    I'll try and explain it a little better,
    in my main application I have a panel that contains 5 empty textInput boxes, these are all blank, next to the panel I have a canvas, this has nothing in it at all at this point.
    there is also a component (dummyComponent.mxml) in the application that consits of a textArea and a radio button.
    this component is not used within the application prior to runtime.
    Runtime -->
    user enters the text "testing 123" into the first textInput box. ad this point an instance of dummyComponent is created within the canvas and the contents of its text area mimic that of the input box.
    The same effect could be achieved by having 5 textAreas within the canvs that each bind to the 5 textInputs, but i don't want these textAreas to exist unless they are needed.
    Cheers
    Tim

  • MethodnotFound Exception for dynamically created component(menuItem)

    Hi
    I have created menuItem component and tried to create Action Listener object and setting it to the component in the backing bean.
    but it is throwing methodnot found exception.
    javax.el.MethodNotFoundException: Method not found: [email protected]()
    javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: Method not found: [email protected]()
         at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:92)
    Below is my code..
    MenuItem item1 = new MenuItem();
    item1.setValue(key);
    Application app = FacesContext.getCurrentInstance().getApplication();
    javax.faces.el.MethodBinding actionListener = app.createMethodBinding("#{breadCrumbBean.test}", null);
    item1.setActionListener(actionListener);
    Let me know whether i created actionListener object or not.
    Any suggestions...
    Thanks
    Edited by: _user on Jan 20, 2011 9:27 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I tried this it works for me...
    Try to set as below...
    MethodExpression ee = context.getApplication().getExpressionFactory().createMethodExpression(context.getELContext(), "#{breadCrumbBean.test}", String.class, new Class[] { });
    item1.setActionExpression(ee);
    Regards,
    Suganth.G

  • Create Component that Listens for Custom Event

    I've read a lot of tutorials and posts in this forum but still seem to be missing something.
    I want to be able to create an arbitrary number of instances of a custom class (based on Button) that each listen to a custom event dispatched in the application.  Eventually the event will carry data (including information that will let each Button determine whether it should react to the event), but for now I just want them to be able to hear the event.
    What's supposed to happen is
    1) Clicking the button labeled "I Make the Button" creates an instance of EventHearingButton using this.addElement.
    2) Clicking the button labeled "I Send the Event" dispatches the SuperCustomEvent custom event, with the additional information "I heard that" stored in the Information string
    3) The created EventHearingButton hears the event and updates its label to the value in the Information string.
    What actually happens is the EventHearingButton is created OK, but nothing happens when the "I Send the Event" button is clicked.
    Main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/halo">
         <fx:Metadata>
              [Event(name="SuperCustomEvent", type="Classes.SuperCustomEvent")]
         </fx:Metadata>
         <fx:Script>
              <![CDATA[
                   import Classes.EventHearingButton;
                   import Classes.SuperCustomEvent;
                   protected function EventDispatcherButton_clickHandler(event:MouseEvent):void
                        var NewEvent:SuperCustomEvent = new SuperCustomEvent("I heard that");
                        this.dispatchEvent(NewEvent);
                   protected function button1_clickHandler(event:MouseEvent):void
                        var NewButton:EventHearingButton = new EventHearingButton();
                        NewButton.x=270;
                        NewButton.y=130;
                        this.addElement(NewButton);
              ]]>
         </fx:Script>
         <s:Button x="270" y="90" label="I Send The Event" id="EventDispatcherButton" click="EventDispatcherButton_clickHandler(event)"/>
         <s:Button x="270" y="50" label="I Make the Button" click="button1_clickHandler(event)"/>
    </s:Application>
    Classes.EventHearingButton.as
    package Classes
         import spark.components.Button;
         import flash.events.Event;
         import Classes.SuperCustomEvent;
         public class EventHearingButton extends Button
              public function EventHearingButton()
                   super();
                   this.label="I haven't heard yet";
                   this.addEventListener(SuperCustomEvent.SUPERCUSTOMEVENT,SuperCustomEventHandler);
              private function SuperCustomEventHandler(event:SuperCustomEvent):void {
                   this.label=event.EventInformation;
    Classes.SuperCustomEvent.as
    package Classes
         import flash.events.Event;
         public class SuperCustomEvent extends Event
              public var EventInformation:String;
              public static const SUPERCUSTOMEVENT:String = "SuperCustomEvent";
              public function SuperCustomEvent(Information:String)
                   super(SuperCustomEvent.SUPERCUSTOMEVENT, true);
                   this.EventInformation=Information;
              override public function clone():Event{
                   return new SuperCustomEvent(EventInformation);

    "nikos101" <[email protected]> wrote in
    message
    news:ga59t5$8nh$[email protected]..
    >I tried something like what AMy described in a custom
    component
    >
    > dispatchEvent(new Event("Cancelled_Form"));
    >
    > I then added the following Listener in my application
    file;
    >
    > this.addEventListener("Cancelled_Form",cancelledForm);
    >
    > but it is never heard. Does anyone know what I have done
    wrong?
    Try attaching the event listener to your component rather
    than the
    application.
    HTH;
    Amy

  • About dynamic creating component instance

    my project is a lib project , and I can not create a mxml
    component using getdedinitionbyname then new the class .
    because the class reference I can not received using
    getdedinitionbyname! Has any body know something about it?

    Why,there is so little developpers!But luckily I find the
    answer,Just add a compiler parameter -include-librarirs to resoleve
    it!!

Maybe you are looking for

  • When trying to print to pdf the program I am printing from locks up

    I'm using Acrobat 11.0.07 on a Windows PC with Win 8.1 I'm printing to pdf from QuickBooks. My first attempt works fine then the second locks up both programs. If I force close QuickBooks; run a repair on Adobe; reboot my computer; I am then able to

  • Use HyperLink(mailto:...) to open a file?

    A question was posted previously about linking to an image file. The HYPERLINK function allows this if the image is on a web server and can be accessed via http:// but you can't use HYPERLINK to access a local file on your computer (or at least I can

  • Error in assigning output type in VL01N

    Hi, When the output type for pick list is assigned to VL01N automatically , it is showing an error log for the same. this is the error seen in VL01N - > EXTRAS----->DELIVERY OUTPUT>HEADER-- >Processing Log. Text  ID  language  not found Message no. T

  • After installing new update...problem

    which includes prokit and several updates for ilife 08 via the automatic updater, my internet absolutely creeps compared to how it used to run. I've had my macbook pro for a couple of months now and have had no problems until this last update. I sear

  • SSD + HDD, GPT & MBR dual boot.

    Hi all, I ordered my first SSD the other day and it is expected to arrive tomorrow.   I current have a 500 GB HD that I dual boot Arch/Win 7.   I was wondering the following: It is possible to to put /boot, /var and my NTFS on the HDD with standard M