Problem to access the object attribute in a code

Hi guys,
I need to pass the attribute of a business object to class.Below is the code but its throwing an error 'There is no component ZYBTT in l_bus2000116'.Since the business object conatins the attribute but its throwing an error.Could any one throw some light on the below code -
data: l_BUS2000116 type swc_object,
      Z_BRF_Function_name TYPE FDT_UUID.
swc_get_element ac_container 'Z_Quotation' l_BUS2000116.
swc_get_element ac_container 'Z_BRF_Function_name' Z_BRF_Function_name.
CALL METHOD ZYCLOTO_AGENTDTMT_BRF=>ZYOTOM_GET_AGENT_IDS_SING_LEV
  EXPORTING
    IM_FUNCTION_ID  = Z_BRF_Function_name
    IM_BTT          = l_BUS2000116-ZYBTT
   IM_COMPL_CAT    =
   IM_COUNTRY_CODE = ZYCOUNTRY
    IM_LEAD_BRAND   = l_BUS2000116-leadbrand
    IM_RISK_LEVEL   = l_BUS2000116-ZYRISKLEVEL
    IM_SALES_ORG    = l_BUS2000116-ZYsalesorg
    IM_TCV          = l_BUS2000116-ZYTCV.
IMPORTING
   EX_FULL_NAME    =
   EX_RETURN       =

Hi,
Is ZYBTT a new attribute? Have you changed the status of the attribute to implemented or released (in SWO1: Edit -> Change release status)?
And actually I think that your syntax is wrong too (BOR world is different compared to classes). If you want to use an attribute, I think that the syntax should be something like this:
SWC_GET_PROPERTY <Object> <Attribute> <AttributeValue>.
Read more here:
http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4acef453d11d189430000e829fbbd/content.htm
Regards,
Karri

Similar Messages

  • Unable to access the objects with out schema as prefix.. can any body help

    Hi,
    i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table.
    but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it give the error..
    can any body tell me reason and give me solution.
    ex: owner:eiis table:eiis_wipstock
    connect to: egps schema
    in this position if i try with eiis.wipstock it gives error but if i mention like eiis.wiis_wipstock then its working fine.

    Pl do not spam the forums with duplicate posts - Unable to access the objects with out schema as prefix.. can any body help

  • Problem in accessing the ejbs

    HI ,
    I am New to EJB. Here i am getting a problem n accessing the resoucess which are deployed in weblogic. Here i want to access the resoucess from a jsp. So i declared a web.xml. In that what i need to write. can anybody help me what i can specify in web.xml
    Thank you.

    Stop asking the same question again and again. It will decrease your chances of actually getting some help, because your rudeness will make people angry and less inclined to help.
    Your whole approach sounds wrong, but that's your problem. I'm betting that you don't need EJBs. You shouldn't write JSPs without JSTL. Totally, utterly wrong.
    But if you insist, I would recommend that you actually get a book or some documentation that shows you how to call an EJB from a web app. Since you're using WebLogic, maybe reading their documentation will help:
    http://edocs.bea.com/wls/docs70/webapp/components.html
    %

  • Problem in Configuring the Object Editor User Interface

    Hi,
         I m using NetWeaver 7.0.11 & facing the problem in Configuring the Object Editor User Interface.In the Configuration Browser ,when i click on Object Editor & choose New Configuration & try to select service,it shows the flollowing error:
    com.sap.caf.rt.exception.CAFBaseRuntimeException: Service manager initialization failed Illegal argument exception: Unable to create javax.ejb.EJBObject.
         at com.sap.caf.rt.ui.cool.generic.ServiceFacade.init(ServiceFacade.java:121)
         at com.sap.caf.rt.ui.cool.generic.ServiceFacade.<init>(ServiceFacade.java:50)
         at com.sap.caf.rt.ui.cool.generic.ServiceFacadeFactory.getFacadeInstance(ServiceFacadeFactory.java:51)
         at com.sap.caf.ui.utils.cool.CoolUtils.getServiceFacade(CoolUtils.java:123)
         at com.sap.caf.ui.ptn.objecteditor.ObjectEditorCC.getServiceFacade(ObjectEditorCC.java:505)
         at com.sap.caf.ui.ptn.objecteditor.wdp.InternalObjectEditorCC.getServiceFacade(InternalObjectEditorCC.java:245)
         at com.sap.caf.ui.ptn.objecteditor.config.OEconfiguratorLayout.onActionSelectModule(OEconfiguratorLayout.java:322)
         at com.sap.caf.ui.ptn.objecteditor.config.wdp.InternalOEconfiguratorLayout.wdInvokeEventHandler(InternalOEconfiguratorLayout.java:300)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Can anybody please tell,what can be the problem?
    regards
    Sumit

    Hello Sumit
    This is most probably the result of metadata corruption on runtime.
    A possible workaround for this situation is:
    Undeploy all the metadata DCs of all the CAF applications you have
    deployed (these are the components which names end on "/metadata", excl.
    caf/core/metadata and caf/tc/metadata (which are part of CAF itself)).
    And then deploy the CAF applications again.
    Regards,
    Désiré

  • Problem for Accessing the Table BDCP..CDPOS..CDHDR..

    Hi Guys,
    i have the problem of accessing the BDCP table.it is working fine in development and testing server.it is taking more time in background in Production server..can anyone help me to optimize this code and please suggest me if i can change anyof the below logic..
    Thanks a lot in advance.
    LOOP AT t_cdobjid.
        objectid-low  = t_cdobjid-cdobjid.
        objectid-sign = 'I'.
        objectid-option = 'EQ' .
        APPEND objectid.
        CLEAR  objectid.
        count = count + 1.
        IF count = 50.
          CLEAR count.
          SELECT * FROM bdcp APPENDING TABLE t_bdcp
          WHERE cretime IN r_cretime AND
                tabname = 'DMEAN' AND
                fldname = 'KEY' AND
          cdobjid IN objectid.
          CLEAR : objectid.
          REFRESH: objectid.
        ENDIF.
      ENDLOOP.
      IF NOT objectid[] IS INITIAL.
        SELECT * FROM bdcp APPENDING TABLE t_bdcp
          WHERE cretime IN r_cretime AND
                tabname = 'DMEAN' AND
                fldname = 'KEY' AND
        cdobjid IN objectid.
        CLEAR : objectid.
        REFRESH: objectid.
      ENDIF.
      IF NOT t_bdcp[] IS INITIAL.
        t_bdcp_val[] = t_bdcp[].
        DESCRIBE TABLE t_bdcp_val LINES l_lines.
        l_max = 50.
        l_mod = l_lines MOD l_max.
        IF l_mod > 0.
          l_loopcount = ( l_lines DIV l_max ) + 1.
        ELSE .
          l_loopcount = l_lines DIV l_max.
        ENDIF.
        DO l_loopcount TIMES.
          CLEAR t_bdcp_emt.
          REFRESH t_bdcp_emt.
          IF sy-index = l_loopcount.
            t_bdcp_emt[] = t_bdcp_val[].
          ELSE.
            APPEND LINES OF t_bdcp_val FROM 1 TO l_max TO t_bdcp_emt.
            DELETE t_bdcp_val FROM 1 TO l_max.
          ENDIF.
          SELECT * FROM cdpos APPENDING TABLE t_cdpos_upc
              FOR ALL ENTRIES IN t_bdcp_emt
                       WHERE
                       objectclas = 'MATERIAL' AND
                       objectid   = t_bdcp_emt-cdobjid AND
                       changenr   = t_bdcp_emt-cdchgno  AND
                       tabname IN ('DMEAN', 'MARA' ) AND
                       fname   IN ('KEY', 'EAN11' ) .
        ENDDO.
        CLEAR   : l_lines ,
                  l_mod ,
                  l_loopcount.
           IF sy-subrc EQ 0.
        IF NOT t_cdpos_upc[] IS INITIAL.
          t_cdpos_del[] = t_cdpos_upc[] .
          DELETE t_cdpos_del WHERE tabname EQ 'MARA' .
          SORT t_cdpos_del BY changenr .
          LOOP AT t_cdpos_upc .
            READ TABLE t_cdpos_del WITH KEY
                       changenr = t_cdpos_upc-changenr
                       BINARY SEARCH .
            IF sy-subrc EQ 0  AND
              t_cdpos_upc-chngind = 'U' .
              DELETE t_cdpos_upc WHERE changenr = t_cdpos_upc-changenr
                                  AND  chngind  = 'D' .
            ENDIF.
            t_upc_matnr-matnr = t_cdpos_upc-objectid .
            APPEND t_upc_matnr .
          ENDLOOP.
          SORT t_upc_matnr BY matnr .
          DELETE ADJACENT DUPLICATES FROM t_upc_matnr COMPARING matnr .
          IF NOT t_cdpos_upc[] IS INITIAL.
            t_cdpos_upc_val[] = t_cdpos_upc[].
            DESCRIBE TABLE t_cdpos_upc_val LINES l_lines.
            l_max = 50.
            l_mod = l_lines MOD l_max.
            IF l_mod > 0.
              l_loopcount = ( l_lines DIV l_max ) + 1.
            ELSE .
              l_loopcount = l_lines DIV l_max.
            ENDIF.
            DO l_loopcount TIMES.
              CLEAR t_cdpos_upc_emt.
              REFRESH t_cdpos_upc_emt.
              IF sy-index = l_loopcount.
                t_cdpos_upc_emt[] = t_cdpos_upc_val[].
              ELSE.
                APPEND LINES OF t_cdpos_upc_val FROM 1 TO l_max TO
                                                    t_cdpos_upc_emt.
                DELETE t_cdpos_upc_val FROM 1 TO l_max.
              ENDIF.
              SELECT * FROM cdhdr APPENDING TABLE it_cdhdr_upc
                               FOR ALL ENTRIES IN t_cdpos_upc_emt
                                WHERE objectclas EQ 'MATERIAL'
                               AND   objectid  = t_cdpos_upc_emt-objectid
                               AND   changenr  = t_cdpos_upc_emt-changenr.
            ENDDO.
          ENDIF.
    Prabhu

    Use the PACKAGE SIZE oprion of the SELECT statement:
    LOOP AT t_cdobjid.
      objectid-low = t_cdobjid-cdobjid.
      objectid-sign = 'I'.
      objectid-option = 'EQ' .
      APPEND objectid.
      CLEAR objectid.
    ENDLOOP.
    SELECT * FROM bdcp APPENDING TABLE t_bdcp
      PACKAGE SIZE 5000
      WHERE cretime IN r_cretim AND
            tabname = 'DMEAN'   AND
            fldname = 'KEY'     AND
            cdobjid IN objectid.
    ENDSELECT.
    IF NOT objectid[] IS INITIAL.

  • Please tell me the way to access the object...........?

    when we are decleared a class variable,there should be an object in the memory.this object is the object of the java.obj.Class class.............
    my query is ..
    how to acess that object ?
    e.g.
    public class Basic
    public class Acsess{
    Basic b;//now please tell how access the object of class Basic.Class?......
    thanks and regurds

    I believe that the following example will help. You should also read this tutorial page:
    [Understanding Instance and Class Members|http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html]
    class A
        static String fie = "this is fie";
        String foo = "this is foo";
    public class B
        public static void main(String[] args)
            System.out.println(A.fie);
            A instance = new A();
            System.out.println(instance.fie); // Not recommended; does not
                                              // make it clear that fie is
                                              // a class (static) variable
            System.out.println(instance.foo);
    }

  • Access the object array from client.

    I'm trying to access the object array from client.
    it's throwing the following error,
    RemoteException Ocuredjava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.MarshalException: CORBA BAD_PARAM 0x4f4d0006 Maybe; nested exception is:
         java.io.NotSerializableException: oracle.jdbc.driver.OracleResultSetImpl is not serializable
    how to resolve it?
    thanx in advance,
    Ilam.

    Don't send a ResultSet back as the result of an RMI call. Extract the data from the ResultSet on the server and send that back instead.

  • A reflection error occurred accessing the object.-- Error

    I am trying to update from default field value to some other value by using the script definition, however system is throwing the "A reflection error occurred accessing the object."
    If anyone has any idea/solution please help me.
    regards
    Sumanta

    Hi Devesh,
       I wrote a Field Validation Script and as per your guidelines i update the script,however got the different error.
    new changed script
    doc.getExtensionField("CURRENCY").get().setDisplayName("AOA");
    and also tried with
    doc.getExtensionField("CURRENCY").get().setDisplayName("-2147483442:601:AOA");
    and the error message received is like
    Error executing script: Sourced file: inline evaluation of: ``doc.getExtensionField("CURRENCY").get().setDisplayName("AOA"); . . . '' : target exception.
    It is not allowing to modify/update the existing field value by using script.
    Please let me know if you have any suggestion.
    Regards
    Sumanta

  • Access the oparational attribute 'entryUUID' of an ldap entry

    How can I access the oparational attribute 'entryUUID' of an ldap entry? Does someone have a sample code fragment?

    Attributes attribs = initLdapCtx.getAttributes(fullName, new String[]{"+"});
    This is for OpenLDAP only, because it's the only server I know which supports "+" meaning "all Attributes".
    For other Servers you might need to specify the entryUUID Attibute explicitly in the String Array. But be aware that this Attribute might have different Names on different Servers.
    Cheers,
    Peter

  • Object Visualization and accessing the object's attributes

    Hi all,
    I am trying to configure SWFVISU to allow us to call an ABAP Web Dynpro which displays an adhoc object attached to a workflow in the UWL.
    I've had success with a business object of a task which is not an adhoc object by binding an attribute to the task container and creating a custom attribute in the UWL.  However this is not possible with Adhoc Objects as there could be 0..n objects at runtime.
    I've seen plenty of threads that refer to using ${item.externalObjectId} as part of the visualization parameters, ie in Visualization Parameters:
    APPLICATION     FMCA_WDY_FPF
    DYNPARAM                          WDCONFIGURATIONID=FMCA_WDY_FPF_CONF&RETURN_ID=${item.externalObjectId}
    NAMESPACE                          sap
    SYSTEM_ALIAS     SAP_ERP_Public_Sector
    however in this case the attribute we need access to is an attribute to the Object Class, not the Work Item.
    Is there any other variable substitution we can use in the Object Visualization to reference an attribute of the Object Class itself?
    Thanks in advance
    Alex

    Hi,
    Please visit the below link. This might help you.
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/20379
    Thanks and regards,
    SNJY

  • Business Object : access to object attribute in method

    Hi,
    i've created a BOR object named Z_myobject :
    - Attributs :
      . START_DATE (type SYST-DATUM)
      . END_DATE   (type SYST-DATUM)
      . MANAGER    (type BOR EMPLOYEET)
    - Methods
      . Check_actors
    In the Check_actors method i want to access to the MANAGER attribut. So, what i must do for this ? i've tried a lot solutions but no way.
    Best regards,

    Hi Samir, thanks for answer.
    i know this instruction and it's work well.
    I do that :
    BEGIN_METHOD MAIL_REMINDER CHANGING CONTAINER.
    DATA : wa_MANAGER   TYPE SWC_OBJECT.
    SWC_GET_PROPERTY self 'MANAGER' wa_MANAGER.
    END_METHOD.
    When i debug, my wa_MANAGER variable contains this :
    HEADER     C     4      OBJH
    TYPE     C     4      SWO
    HANDLE     I     4       100000004
    CB_INDEX     C     40       
    Now, i want to access to attribute of the wa_MANAGER.

  • Problem in accessing the Interactive forms in an ISR Senario(like MSS)

    Hi all,
    I am facing a problem whenever I try to access the interactive form.I am doing this from the standard Business Package, MSS.
    I have done all the configurations needed for these ISR Senarios.
    I suspect the the error is because of some missing IMG customizing.
    Pls provide some directions to solve this problem.
    Exception 1)
    initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/pcui_gpisr/IsrForm/wd_key13_1171540676406/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1171589446921&sap-ext-sid=dIiSA97eM6QRuNvwpwdigw%3D%3DzPkd%2BOwplNQFa31FtlR6vA%3D%3D%2Fpcd%3Aportal_content%2Fcom.sap.pct%2Fspecialist%2Fcom.sap.pct.erp.busunan.bp_folder%2Fcom.sap.pct.erp.busunan.roles%2Fcom.sap.pct.erp.busunan.business_unit_analyst_20%2Fcom.sap.pct.erp.busunan.business_unit_analyst_20%2Foverviewfolder%2Fcom.sap.pct.erp.busunan.overview_2%2Fcom.sap.pct.erp.busunan.masterdata_1%2Fcom.sap.pct.erp.common.isrform_page%2Fsap.com%2Fpcui_gp%7Eisr%2FIsrForm%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200611091758
    Exception 2: This Exception occurs when I try to run the application(sap.com/pcui_gp~isr/IsrForm) from the Webdynpro Content Administration Screen.
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: No scenario specified
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
    at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInit.onBeforeOutput(VcISRInit.java:228)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInit.onBeforeOutput(InternalVcISRInit.java:181)
    at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInitInterface.onBeforeOutput(VcISRInitInterface.java:139)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface.onBeforeOutput(InternalVcISRInitInterface.java:136)
    at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface$External.onBeforeOutput(InternalVcISRInitInterface.java:212)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:602)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:568)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
    Thanks in advance,
    Sethu

    Hey Sethu,
    Check the QISRSCENARIO settings.Also make sure that your ADS is configured.
    Also, please make sure that you have maintained all the settings which are mentioned in this link.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/3b/52dd3747934311abee4376f383fdf2/frameset.htm
    Regards
    <i><b>Raja Sekhar</b></i>

  • Problem in transporting the objects from Q to P

    Hi,
    I am trying to transport ds, is, DSO from Q to P. But it ended with errors. Below are the error messages.
    Extract structure ZOXDS20119 is not active
    The extract structure ZOXDS20119 of the DataSource ZDS_BILLCHANGE is invalid
    ZDS_BILLCHANGE is created in BW itself using View with Generic extraction. So please update me how I can solve this problem.

    hi,
    Send you DS in a separate TR to P and then replicate you datasource in P.
    Then send the objects in other request so that i will not fail again.

  • Problem in returning the object + reflection + hashMap + list

    Hi All,
    i am very new to java forums...
    i'm sorry to disturb you all.. i don't exaclty know how to raise a question in forums..
    Here my query is ::::
    i have xlsReader file,which will read the data from the xls file.
    after reading it,i am adding the contents of the xls sheet in to a Arraylist.
    then i've put the list contents in to an object array,
    then i'm invoking the getter and setter method of the javabean class.
    and i'm returning object,but object contains only the last data of the list,instead of whole contents in that object.
    the code is here,where am returnung the object.
    kindly do reply...
    Thanks in advance...:)
    public static Object setDynamicValue ( Method setter2, List columnData, Object obj2 , Method getter2 )
    Object val2=null;
    try {
    for ( int i = 0 ; i < columnData.size() ; i++ ) {
    Object obj[] =( Object [] )columnData.get(i);
    for ( int j = 0; j < obj.length; j++) {
    // System.out.println("column Data:pppp: :"+obj[j].toString());
    setter2.invoke(obj2, new Object[] {obj[j].toString() });
    val2 = getter2.invoke(obj2, new Object[0]);
    //System.out.println("output:::"+val2.toString());
    // return val2;
    System.out.println("#########################");
    }catch (IllegalAccessException e) {
    System.out.println("IllegalAccessException came :::"+e);
    } catch (IllegalArgumentException e) {
    // TODO Auto-generated catch block
    System.out.println("IllegalArgumentException came :::"+e);
    e.printStackTrace();
    } catch (InvocationTargetException e) {
    System.out.println("InvocationTargetException came :::"+e);
    // TODO Auto-generated catch block
    e.printStackTrace();
    return val2;
    here,we are returning the object val2 , but its printing only the last data of the list
    Object o1 = setDynamicValue ( setter2, columnName ,columnData, obj2,getter2 );
    System.out.println("lastvalue of the list :"+o1);
    thanks...
    plz reply..

    You are getting only the last data of the list because you does not have any mechanism to hold other values.
    Check inf your code your the following code in the inner for loop (loop with index j)
    val2 = getter2.invoke(obj2, new Object[0]);
    Even if you are capturing some value into val2, it gets replaced next time the body of for loop runs. This way you are getting only the last data.
    If you want to capture all values use arraylist. Keep adding all values to arraylist and return it. While printing iterate over arraylist and print values.
    This is not a problem related to reflection or hashMap. Just the logic you have written is incorrect.

  • How can i access the LoaderInfo attributes in FlasCC ?

    I try to access the LoaderInfo::parameters to get given FlashVars.
    But i cant even get the simple String variable 'url' from the LoaderInfo object
    This is my sourcecode:
    #include <stdio.h>
    #include <Flash++.h>
    #include <AS3/AS3.h>
    using namespace AS3::ui;
    int main(int argc, char **argv)
        printf("Hello World\n");
        flash::display::Stage stage = internal::get_Stage();
        flash::display::LoaderInfo info = flash::display::LoaderInfo::getLoaderInfoByDefinition(stage);
        AS3::local::var stringValue = info->url;
         // a second try, which doesn't compile too
         //AS3::local::var stringName  = AS3::local::internal::new_String("url");
         //AS3::local::var stringValue = AS3::local::internal::getproperty(info, stringName);
        char* str = AS3::local::internal::utf8_toString(stringValue);
        if (str)
            printf("cVar=%s\n", str);
            free(str);
        else
            printf("str = null\n");
        return 0;
    and here the error:
    $ PATH=/cygdrive/d/Projects/flasCC/flascc/sdk/usr/bin:$PATH make FLASCC=/cygdri
    ve/d/Projects/flasCC/flascc/sdk FLEX=/cygdrive/d/Projects/flasCC/flex46
    -------- Sample 1 --------
    Now lets compile it as a SWF:
    "/cygdrive/d/Projects/flasCC/flascc/sdk/usr/bin/g++" -Werror -Wno-write-strings
    -Wno-trigraphs hello.cpp -jvmopt="-Xmx3000M" -O4 -emit-swf -swf-size=400x400 -o
    hello.swf -lFlash++ -lAS3++ -L/cygdrive/d/Projects/flasCC/flascc/sdk/usr/lib
    hello.cpp: In function 'int main(int, char**)':
    hello.cpp:50: error: conversion from 'AS3::ui::flash::display::LoaderInfo::inter
    nal::iprop_url' to non-scalar type 'AS3::local::var' requested
    make: *** [T01] Error 1
    Anyone knows how it works ?
    Thanks

    I found a way to get the FlashVars/swf parameters by:
    CModule.rootSprite.stage.loaderInfo.parameters

Maybe you are looking for

  • 1Ghz TiBook - Random freezing. Logic board fault?

    Hi all, perhaps one of you might be able to help troubleshoot this, because it's seriously driving me up the wall! I bought a used 1Ghz Titanium (DVI) recently and I'm finding that it freezes randomly when in use, requiring a comand+control restart.

  • How do I know if a number is saved on my iPhone 4?

    Hi, I just transferred to an iPhone 4, and my old phone is the ancient iPhone 2G. But, I found out that I like the 2G better than the iPhone 4 SINCE in the 2G, (running 3.1.3) when I type a number in the keypad and it`s saved on my contacts, a small

  • "Sales value" in FD33, credit management

    Hi Experts, I have configured Credit management. After creating a sales order. The field "Sales value" (RF02L-SAUFT) in FD33 is NOT getting updated. It remains 0,00. After I have created a bill, field "Receivables" gets updated. Could you please advi

  • PSE9: prompted for "save as" during batch processing??

    In PSE 9, my process multiple files seems to have stopped working. I am trying to batch convert some CR2 files to Jpeg. When I try to run it I get prompted during the convert operation to "save as" for each individual file (and the jpeg isn't an opti

  • GW 8 Webaccess autofill when composing email

    Hi All, After upgrading to GW 8.0.2 hp2 recently we have noticed that when anyone logs in, using any browser, internally or externally, when composing a new message none of the fields autofill from any address books. I have searched around and haven'