Global Attribute Usage in IMPL class

Hi,
Can I declare an attirbute in the IMPL class and use it in two different context nodes of the same component?
Actually, my requirement is to retrieve the value of an attribute in CN1 and use it in the GET_I_ method of an attribute in CN2.
The approach that I'm following is to retrieve the value of attib1, pass it into the global attribute, and then use this global attribute in GET_I_ method of attrib2 in CN2.
Is this feasible?
Any pointers to this would be highly appreciated.
TIA.
Regards,
Richa

Your approach is feasible !
Thanks
Allot points if this helps!

Similar Messages

  • Global Attribute Usage -- Customization (Order Line level)

    Hi All,
    We have a requirement to capture some additional fields during order creation. We have already exhausted the attribute fields in the oe_order_lines_all table. So we are unable to create DFF using any of attribute fields.
    To achieve the functionality, we are analyzing the usage of global_attribute field. We have few doubts before using it,
    1. What is the significance of global_attribute fields. Can we use in DFF as we use Attribute fields
    2. Does oracle ever use the global_attribute fields for any of its purpose.
    Please provide some insight in using the global_attribute fields for our customization.
    Thanks,
    Rajesh SM.

    Hi Rajesh,
    I hope you would have got the solution for the same by now. I am also facing the same situation what you faced. We have consumed all attributes in OE_ORDER_HEADERS_ALL and would need minimum 4 more attributes for adding a new functionality which is required by business.
    I raised and SR with oracle asking if it is possible to extend the Order header DFF and got following response
    It is NOT possible to extend the available DFF columns since this will mean adding further columns to the base table which is not supported.
    I can give the below suggestions for your requirement.
    It might be easier to revisit your existing DFF fields and make better use of them - e.g.
    - any that are not user enterable or displayed, push to unused fields e.g. global_attributeXX
    - ensure context sensitivity is being used to make best use of available segments.
    - combine any related DFFs into one (often in combination with validation sets)
    - move any DFFs that are at a lower level of detail to the correct level of detail, eg. if it can be on the customer site rather than customer site use level, move it!
    Some updates to DFF fields may be necessary, but much easier than modifications.
    I am still in a fix to find the best possible solution. Can you please suggest how did you resolve the issue?
    Vikz
    Edited by: user13090130 on Sep 13, 2011 10:18 PM

  • Accessing impl class attribute

    Hi Experts,
    if i declare one variable in controller class of a view and how can access the variable in contex naode .

    Hi srinivas.yangal,
    You can access the View implementation Class Attributes in Context.
    1] Go to Context Node Implementation Class
    2] Create a attribute GV_VIEW_CONTROLLER in Impl class of Context Node.
    DATA : GV_VIEW_CONTROLLER TYPE REF TO CL_BSP_WD_VIEW_CONTROLLER .
    3] Go to INIT method of Context Node.
    4] Assign instance LV_VIEW_CONTROLLER to GV_VIEW_CONTROLLER of Context Node Impl. Class.
    GV_VIEW_CONTROLLER = LV_VIEW_CONTROLLER.
    Then you can access your Instance attributes defined in View Impl. class inside the context node through GV_VIEW_CONTROLLER attribute as follows.
    ABC = GV_VIEW_CONTROLLER->XYZ.
    Reward points if useful.
    Kind Regards,
    Dhananjay.
    Edited by: Dhananjay SAP CRM on Nov 24, 2011 12:56 PM

  • Reading global attributes from implementation class

    Hi,
    How to access
                    global attributes of implementation class
                             from getter method of context node class.
    Thanks in advance,
    Srinivas.

    Hi Srinivasa,
    Access the view controller using attribute
    owner
    , Then you can access the global attributes.
    Regards,
    Masood Imrani S.

  • Global attributes AP_INVOICE table

    What is the use of Global Attributes in AP_INVOICE table?
    TRM says its reserved for country specific functionality. Can someone give a real-time example on its usage?

    Could you please clarify as what you mean by reference column ?
    If you are not going to do any updates to that column it should be fine.
    If you plan to insert some values and AP is not implemented for any of the localization for your case you might do so, but its not advisable. I would suggest you go for the DFF columns attribute1 to attribute30.

  • Global attributes in a template project

    Hello folks,
    We are setting up a demo of global template functionalites in SM. In the template project we have created we need advice on how to go about with the following.
    1) What do the attributes - global, local, harmonized etc.mean from a businesss perspective. The help documentation provided by SAP is not clear enough. Can someone share their practical expericence regarding this.
    2) In the project structure created - on what criteria should the project/business team set the appropriate global attribute.
    3) What is the effect of setting up of this global attributes - should any implementation projects created in the future has to refer the master template proj.
    Probably I am asking quite a lot but the questions seem to be related .
    Thank you.
    ^
    Mark

    Hi Mark,
    First of all, it is advised to use this functionality only if you foresee a case of 'active' rollout based projects leveraging these templates. If, a Template Project is created merely to hold an inventory of process definitions, with future usage only as a 'possibility', you need not activate the 'Global Rollout' functionality and attend to the decision making on it at a much later date, when necessity arises. This is not something mandatory to take up right upfront, unless there is a case for it.
    1) In terms of practical use in project, I have rarely come across projects which have sought to use the whole range of these attributes; I have been using SolMan since May 2004 and since those days, the usual ones I have had a need to use are at extreme ends of the spectrum - Global or Initial. All those in between vary in their nuances and normally not as much missed ! In early days (SolMan 3.1, there weren't as many varieties).
    With regard to the specific ways in which these vary,
    [this link|http://help.sap.com/saphelp_sm40/helpdata/en/45/5af1f3e5f81dece10000000a155369/content.htm] in SAP Online help is the best source to find how these attributes impact. Of course, you may have already seen this.
    2) The Project Team should have one main consideration - whether to control the structure and content of a delivered scenario centrally or to allow some changes at local rollout level. Accordingly, set the attribute and pass on the same attributes to all layers below that node in one stroke (if the attribute is to remain the same for all contents underneath)
    3) The effect is in 'changeability' or the flexibility to adapt the scenario borrowed from Template to suit local rollout/implementation needs.  For instance, if the Global Template team has spent thousands of man hours in coming up with a Finance scenario that's Sarbanes-Oxley compliance or GRC proofed, with all local requirements already fed into the Template, it makes sense to define the Scenario or Process as 'Global' and expect all rollouts to make use of it exactly the same way.
    If, on the other hand, there is a CRM/ SCM scenario on optimising Order fulfilment, an Asia-Pacific plant rollout may considerably differ in process steps from North American and such scenarios/ processes can be Initial or Local
    Trust this helps.
    Regards,
    Srini

  • Access global attribute in webdynpro component?

    Hi all i have 2 webdynpro components
    Comp1
    Comp2
    Now i have declared a global attribute in comp1 in component controller.
    I have embedded both component together to share values
    I want to change the global attribute of comp1 from comp2
    Let me know how to proceed.
    Thanks

    There are different ways you can accomplish this. Using an interface method as Jitendra Yadav mentioned above is one. Another way, you can define an interface node in comp1 component controller. This node will be visible in comp2 (provided you declared comp1 usage in comp2). Then, you can set values of all of the interface node's elements.

  • How to call global attribute in .htm page in sap crm

    hi friends,
    in the class i have  created a global attribute . i want to access this global attribute in .htm page of the view . how to call this attribute in .htm  please send me the syntax .
    thanks and regards,
    sashi

    hi,
    I have accessed the global attribute in .htm page . I have declare a local variable and pass the global attribute value to local variable.
    Here I put a validation for hiding the field . If the data is not available in the field then only I have to hide the field. For this I have written the code. For your reference,
    <%
    DATA : lv_exprevenue TYPE STRING.
    DATA : lr_entity TYPE REF TO if_bol_bo_property_access.
    *lv_exprevenue = ZL_BT111H_O_DETAILS_IMPL=>gv_dref.
    *lv_exprevenue =  controller->gv_dref.
    lr_entity ?= BTOpportH->collection_wrapper->GET_CURRENT( ).
    CALL METHOD lr_entity->GET_PROPERTY_AS_STRING
    EXPORTING
       IV_ATTR_NAME = 'EXP_REVENUE'
    RECEIVING
          RV_RESULT         = lv_exprevenue.
    IF lv_exprevenue is NOT INITIAL.
    exit.
    else.
    data: lv_xml type string.
    lv_xml = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
    replace all occurrences of '//BTOPPORTH/EXPREVENUE' in lv_xml with ''.
    ENDIF.
    %>
    <chtmlb:config displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
                    xml     = "<%= lv_xml %>"
                   mode        = "RUNTIME" />
    But the entire view is being hidden in WEB UI.
    Please Let me know if there is any mistake in the above code or I have write code some where else.
    Thanks & Regards,
    Sashi
    Edited by: skancharla on Nov 2, 2011 2:09 PM

  • Instance of IMPL class in custom controller

    Hi,
    I have a requirement where i need a instance of view controller class(impl) in custom controller class. When i am trying to create an instance attribute of impl class in cuco and trying to use in one of the cuco methods  then it is not getting initialized. Let me know how to do achieve this.
    Thanks a lot.
    Regards,
    Lisha

    Hi Lisha,
    This would be because the corresponding view is in viewset which in turn is in the window.
    In that case you will have to drill down the viewset and then get the view.
    Sample code :
    DATA:
        lr_window TYPE REF TO cl_bsp_wd_window,
        lr_viewset      TYPE REF TO cl_bsp_wd_view_controller,
        lr_bpexcp_view         TYPE REF TO CL_BP_EXCEP_BPEXCPTNRESUL_IMPL.
    lr_window ?= me->get_subcontroller_by_viewname( 'BPExceptionSearch.MainWindow' ).
      if  lr_window IS BOUND.
        lr_viewset ?= lr_window->get_subcontroller_by_viewname( 'BP_EXCEPTION/BPExcptnSearchViewSet' ).
        if lr_viewset IS BOUND.
          lr_bpexcp_view  ?= lr_viewset->get_subcontroller_by_viewname( 'BP_EXCEPTION/BPExcptnResult' ).
          if lr_bpexcp_view  IS BOUND.
            TRY.
                lr_bpexcp_view->GV_IS_NEW_CONTRACT = ABAP_TRUE. "#EC NOTEXT
              CATCH cx_sy_dyn_call_error.
                RETURN.
            ENDTRY.
          endif.
        endif.
      endif.
    Regards
    Leon
    Edited by: Leon Limson on Jan 10, 2012 4:54 PM

  • Get Object Type in Impl-Class

    Hi Experts,
    I have the requirement to show a warning that the user shall maintain a Partner "Enduser" in the Assignmentblock "Partners" when creating an Opportunity. The code for the warning is implemented in the Impl-Class of the View BTPARTNER/Partner (my Assignmentblock "Partners"). The problem is, that the Assignment Block  is also used in other Scenarios, but the Waring shall only appear in the Opportunity View.
    How can I check the current Scenario? I thought of getting the Object Type BT111_OPPT and check it.
    Anyone know how to get the Object Type or any other solution for the problem?
    Thanks and regards,
    Sebastian

    Hi,
    I think using the Object_type to display warning message in your case is fine and it should work. Now as you are looking how to get object_type here..my suggestion would be  in View BTPARTNER/Partner  you have a context node called 'BTPartnerSet' after getting the current entity (by using get_current() ) you can get the parent which would be BTAdminH and in this entity you have object_type as a attribute so you can easily call get_property or get_property_by_string () and can put your check.
    Regards
    Ajay

  • Local attributes - global attributes tradeoff

    Hi, MDM experts.
    Can you, please, share your experience on business partners repository modeling.
    I build custom business partners repository. While creating it I came to a question - whether local system attributes of business partner should be modelled in that repository?
    Intrinsic attributes like Full Name, State Identity Number and so on should be definitely modeled. Attributes specific to our organization but those that span many of our systems should also be modeled I think.
    But what's about some specific attributes that are relevant only for one of the systems being integrated? To be concrete, imagine we have SAP ERP system as one of the systems in landscape and such attribute of our business partner as 'Purchasing organization'. In our case this table is SAP ERP specific and none of our other systems have such entity in their data model.
    <b>The question is - is it reasonable to have local system attributes and lookup tables implemented in central MDM repository?</b>
    If yes then isn't our repository going to be overloaded with all that local attributes and lookup tables of every client system?
    If no, then how should process of central creation of business partner look like? The problem is in this case Creator won't be be able to assign all attributes he would like to and he will have to login to each of local system and assign these values after central creation. Moreover, client systems can refuse to create new record automatically in case some of attributes are missing. For example such situation is typical for Idoc inbound processing .
    Have you any suggestions on streamlining the data model and BP central creation process ?
    Regards,
    Vadim Kalabin

    Hi vadim,
    These are my thoughts on your issue.
    I feel both the attributes should find place in the same repository.
    This is not going to overload the system. In some typical MDM Implementation the volume of Main table records will very huge and the Local and global attributes will only occupy a less share only on the total records.
    Also the practice is that MDM DB Server and the core server runs separately.
    Pl find if this Article is use for you.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0d8aa53-b11d-2a10-aca2-ff2bd42a8692">MDM Data modelling do's and dont's</a>
    Regards,
    Vijay

  • Unable to load impl class error after WAR file rebuilt

    Hi
    I have the source code for a working WAR file. I wanted to make a small change to the code and rebuilt the WAR. Now the previous WAR version works but even when I rebuild the WAR from the unedited code I get the error "unable to load impl class"
    and ClassNotFoundException: Class bytes found but defineClass() failed for ...
    Does anyone know what kind of changes in my environment would cause this problem?
    Thanks
    J Armstrong

    This was caused by using jdk1.6.0_02 to compile the java files where jdk1.50_06 was required

  • Can i create more than one attributes for the custom class created using java API

    Hello everyone,
    I have been creating class and its attributes programatically using java APIs, I want to know that is there any way to create multipal attributs for the same class in just one call of API with all the options for each attributes,
    thanks

    You can create a new class and define all of the Attributes at the time the class is created - this is the preferred way of creating classes. Use the addAttributeDefinition() method on ClassObjectDefinition. If you need to add attributes to existing classes, you can only add them one at a time (using the addAttribute() method on ClassObject).
    (dave)

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Global attributes

    Hi there!
    I´m starting to work with IDM and I have some basic doubts. For example: for using global attributes... Do we have to define it? Do the attribute have to be present in all resources?
    Another cuestion is the population of the user view from SAP. I would like to know the simplest way to do and test it.
    My problem is than I just had an complex enviroment and I only have self-formation I could get with sun docs... but it´s so extense that I haven´t yet a good vision of main process.
    Thanks and regards.

    Global attributes do not have to be present in all resources. But resources that have a mapping for the attribute will use the value. So if you write something to "global.firstname", every resource (including Lighthouse), will be updated.
    This is for writing. For reading the value and displaying it, I use the following field syntax:
    <Field name='global.firstname'>
      <Default>
          <ref>attributes[Lighthouse].firstname</ref>
       </Default>
    </Field>

Maybe you are looking for

  • Trying to install Win 7 on MacBook Pro with OSx 10.9.3 and computer does not recognize install dvd

    I'm using a 2009 MacBook Pro running Mavericks 10.9.3 and I am trying to install Win 7 using BootCamp 5. I've been able to install BootCamp before using the original Win7 install dvd on this computer but ever since I updated it (not sure how many tim

  • Crystal Reports when connecting to SAP ERP gives Logon Failed error

    Hello Friends, We are trying to implement the SAP Best Practices Crystal Reports and Xcleisus Dashboards for ERP. We are using BI 4.0 SP2, Crystal Reports 2011 SP2 and SAP ECC 6.0 FP 5. We have done all configurations at the SAP end and successfully

  • How to avoid Linkage Error in JAVA Mapping

    Dear Experts, I am trying to test the JAVA mapping compiled in NWDS but receiving the error "LinkageError at JavaMapping.load(): Could not load class". java.lang.NoClassDefFoundError: JSONXMLProject/bin/com/sap/json/ConvJson2Xml (wrong name: com/sap/

  • Excise details

    hi, what are all the excise entries for vendor return? business cycle. Rgds raja

  • Is this a hardware problem?

    I have had my Iphone 4 for a couple months now. When I updated it to ios 5.0 I didn't have any problems with it. At first, then after awhile I noticed that it started doing this really weird thing. Sometimes, I could be either using an app, or not do