How to get a value of attribute/field From another Component/bol

Hello
I have to write some code in Component GS_CM/DocList.
From 'GS_CM' I have to get a value of field attribute-STATUS_CURRENT
From BT115QH_SLSQ/Details
Context Node = BTSTATUSH
Attributes = STATUS_CURRENT
In order to check and enable some other functions.
I know how to do it when I'm in the BT115QH_SLSQ/Details
lr_status ?= typed_context->btstatush->collection_wrapper->get_current( ).
lv_statush = lr_status->get_property_as_string( iv_attr_name = 'STATUS_CURRENT' ).
But, in my Componenet GS_CM/DocList  the field  "BTSTATUSH->COLLECTION_WRAPPER->GET_CURRENT" is unknown. It is not contained in one of the specified tables nor is it defined .
would be very grateful if you could help to solve this issue.
Thanks In Advance
Sima

Hi Sima,
then another short hint to the WD_USAGE_INITIALIZE.
Go to the component workbench, open the component BT115QH_SLSQ. Go now to the component controller class, go to it's methods. You will see that in the coding of the Method WD_USAGE_INITIALIZE, on the class CL_BT115QH__BSPWDCOMPONEN_IMPL:
WHEN 'CUGSCM' OR 'CUGSCM_DET'.
      CALL METHOD iv_usage->bind_context_node
        EXPORTING
          iv_controller_type  = cl_bsp_wd_controller=>co_type_custom
"          iv_name             = 'ContentManagementCuCo'     "Custom Controller Name
          iv_name             = 'BT115QH_SLSQ/CUGSCMGenCuCo'     "Custom Controller Name
          iv_target_node_name = 'CMBO'      "Name of Node in this Custom Controller
          iv_node_2_bind      = 'CMBUSOBJ'. "Name of Node in used component GS_CM
      CALL METHOD iv_usage->bind_context_node
        EXPORTING
          iv_controller_type  = cl_bsp_wd_controller=>co_type_custom
          iv_name             = 'BT115QH_SLSQ/CUGSCMGenCuCo'"#EC NOTEXT
          iv_target_node_name = 'ATTRIBUTES'                "#EC NOTEXT
          iv_node_2_bind      = 'ATTRIBUTES'.               "#EC NOTEXT
Now I checked the context on the component controller and it contains the statusH, the node which you want to use in the component GS_CM. So make sure to prepare the GS_CM component by adding the Status context, and afterwards just add the binding in the code I pointed out above.
Best regards,
Erika

Similar Messages

  • How to populate Initial value of a field from another item value

    Hi
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?
    Thank you.

    Hi,
    user622444 wrote:
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?---Copy the viewAttribute name of the description
    ---Paste it in Justification view Attribite property.
    Regards
    Mehar Irk

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How to get the values and attributes of Longlived processes by using ProcessID.

    Hi Experts,
    For  every process we creates, LC ES2 creates processID.
    we know that if you creates  a long lived process, all  the  values which are in proces will be stored some where  in DB.
    Here my requirement is by using  processID I need to get all/some values/variables stored in database.
    I am not able to get values using processID. Here I don't have clue on  how to get the values.
    Please tell me  how to get the same by using  Process Management. Link/guide would be helpful
    Thanks
    Praveen.

    Searchable means you can put a filter criteria on it (e.g. where amount > 50000)
    Visible means you can add have this column returned as an output (and therefore you can add it as column in listview and see it in Task Details).
    These two attributes were provided so that queries could be done against the process variables, but the exact contents of the variables are not allowed to be seen.

  • How to get the value of the field 'KOMP-NETWR' in Pur.

    Hello everyone,
    how do i get the value of the field 'KOMP-NETWR' in the purchase order.
    thanks
    Arnaud

    Hi,
    Try this code similarly for komp
    REFRESH i_komv.
    CLEAR i_komv.
    CALL FUNCTION 'PRICING_REFRESH_TX'.
    CALL FUNCTION 'REFRESH_TAX_TABLES'
    EXPORTING
      LIVERY        =
    LOOP AT i_ekpo INTO wa_ekpo.
      wa_taxcom-bukrs = wa_ekko-bukrs.
      wa_taxcom-budat = wa_ekko-bedat.
      wa_taxcom-bldat = wa_ekko-bedat.
      wa_taxcom-waers = wa_ekko-waers.
      wa_taxcom-hwaer = wa_ekko-waers.
      wa_taxcom-kposn = wa_ekpo-ebelp.
      wa_taxcom-mwskz = wa_ekpo-mwskz.
      wa_taxcom-wrbtr = wa_ekpo-netwr.
      wa_taxcom-xmwst = 'X'.
      wa_taxcom-lifnr = wa_ekko-lifnr.
      wa_taxcom-ekorg = wa_ekko-ekorg.
      wa_taxcom-matnr = wa_ekpo-matnr.
      wa_taxcom-werks = wa_ekpo-werks.
      wa_taxcom-matkl = wa_ekpo-matkl.
      wa_taxcom-meins = wa_ekpo-meins.
      wa_taxcom-mglme = wa_ekpo-menge.
      wa_taxcom-mtart = wa_ekpo-mtart.
      wa_taxcom-land1 = wa_ekko-lands.
      wa_taxcom-ebeln = wa_ekpo-ebeln.
      wa_taxcom-ebelp = wa_ekpo-ebelp.
      CALL FUNCTION 'CALCULATE_TAX_ITEM'
        EXPORTING
          i_taxcom                  = wa_taxcom
        IMPORTING
          e_taxcom                  = wa_taxcom
        TABLES
          t_xkomv                   = i_komv
        EXCEPTIONS
         mwskz_not_defined         = 1
         mwskz_not_found           = 2
         mwskz_not_valid           = 3
         steuerbetrag_falsch       = 4
         country_not_found         = 5
         OTHERS                    = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    clear wa_taxcom.
    ENDLOOP.
    LOOP AT i_komv INTO wa_komv.
      CASE wa_komv-kschl.
    *EXCISE DUTY
        WHEN 'JMOP'.
          v_jmop = v_jmop + wa_komv-kwert.
    endcase.
    endloop.
    Hope this might be of some use.
    Regards,
    sirisha

  • How to get the values of the fields inside pageFragment

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a fragment "home.jsff", in that fragment i have two textboxes(txt1,txt2);
    Then i have created a bounded taskflow "myTF"and dragged the home.jsff inside it and used as a default activity.
    Now finally i have "final.jspx" , in which i have dragged and dropped the bounded taskflow "myTF" as a region.
    Scenario : - I have a button on final.jspx , and on click of that button i need to get the value of those two textboxes using bindings which is present in fragment .
    On Click of button,I am using this method of pageDef and i am able to get the values :-
    jsfUtils.resolveExpression("#{data.abc_homePageDef.txt1.inputValue}");
    but somehow it gives me null in some conditions.I don't know why it sometimes gives the value and why it doesn't.
    I have seen this video in which Frank has told about the API Mistakes : -
    http://download.oracle.com/otn_hosted_doc/classic_api_mistakes_part1/classic_api_mistakes_part1.html
    and i did the same mistake but what is the another approach .
    If i need to get the current value of txt1, then how can i get it??
    What is the best approach to get the values of the pageFragment attributes and how to use it ?
    Please suggest!!!
    Regards,
    Shah

    Hi Tulasi,
    As i have said that i am trying to get the values on the click of button(*not on page load*) situated on final.jspx page.
    On click of button i am using this code to get the values :-
    public String getValueTextBox()
    Object valueTXT= getBoundAttributeValue("txt1");
    logger.info("value is"+ valueTXT); *// It shows the value as null.*
    return null;
    public Object getBoundAttributeValue( String attributeName) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindingContainer = bctx.findBindingContainer("abc_homePageDef");
    if (bindingContainer != null) {
    ControlBinding ctrlBinding = bindingContainer.getControlBinding(attributeName);
    if (ctrlBinding instanceof AttributeBinding) {
    return (AttributeBinding)ctrlBinding;
    return null;
    Please suggest!!!
    Regards,
    Shah

  • How to get the value of attribute.

    Hi,
         I have requirement that i have to pass lineid  as parameter to procedure.
         Line id is prasent in the vo.
    So to capture the value of that line id after clicking update button.
    I've created one event on update button in that created the parameter
    updaterecord  ${oa.UpdateVO1.LineId}
    and to capture that i write the following code in the PFR.
    if("update".equals(pageContext.getParameter(EVENT_PARAM)))
    OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
    String lid = pageContext.getParameter("updaterecord").toString();
    String promiseD=pageContext.getParameter("PromiseDate").toString();
    Serializable [] parameters1={lid,promiseD};
    am.invokeMethod("Update", parameters1);
    But its passing null value .
    Please any one will help how to capture the values.
    Regards,
    Sangu

    Hi Sangu,
    Try below code
    //In Controller
    java.sql.Date convDate; //declare variable
      String lid = pageContext.getParameter("updaterecord").toString();
      String promiseD=pageContext.getParameter("PromiseDate");
       OADBTransaction txn = am.getOADBTransaction();
         if(promiseD!=null)
                java.sql.Date javaSqlDate = txn.getOANLSServices().stringToDate(promiseD);
                convDate= javaSqlDate;
              // set converted value
                Serializable [] parameters1={lid,convDate};
                am.invokeMethod("Update", parameters1);
    Do  date conversion same way in AM before setting date Value.
    How to call pl/sql function from oaf
    Regards,
    Dilip

  • Urgent: How to get the Value of Search Field

    Hello All,
    I want to get the value of <b>'Search Fiel</b>d' in my HTML file.
    Please help with this.
    Regards
    Vaib

    Hi Vaibav,
    It should be under the Script tag.
    You can refer this link for details.
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/55074155bcf26fe10000000a1550b0/frameset.htm
    Please reward points if my suggestion helped you.
    Thanks and regards
    Deepa

  • How to get Multiple Values for a key from a session object?

    Hi,
    It might seem dumb but I am facing a problem here with the session object. I'll paste the session object's content from the netbeans "Local Variables" window for clarity -
    Name Type Value
    hsession StandardSessionFacade #66
    session LWSFSession #69
    inherited
    attributes Hashtable #80
    [0] Hashtable$Entry "cart"=>#115
    key String "cart"
    value DummyCart #115
    item null
    submit null
    v Vector
    [0] String Full Metal Jacket
    [1] String As Good As It Gets
    [2] String Tim
    What I want is to get the values "Full Metal Jacket", "As Good As It Gets" and "Tim" from the session obejct?
    The problem I am facing is that if I do a session.getAttribute("cart"), I'll get a single value in return. What will that value be? Will it be "item", "submit" or "v"? And if I want all the values in v above, how can I get them?
    Thanks.

    None of the above.
    HttpSession.getAttribute() will return what you put into it using HttpSession.setAttribute(). In your case, it'll return an Object which you need to cast to DummyCart. Then you can access the data in DummyCart using the API of the DummyCart class.
    hth

  • Set Default Value based on Field from another table for a custom object

    I'm trying to set the default value on a custom object field to the value of an account field. I have tried the syntax 50 different ways, and just am getting no where. The account field label displays as DBA, the integration tag is ltDBA_ACCT, and it shows up in reporting fx area as Account.Text_22.
    The custom object field I'm triying to update is also called DBA, which was originally the "NAME" required field. Does the table name, Account, have to be included? Do I need a function in front of the field?
    I have been updating the external ID using the row ID with syntex <ID> (Less than ID greater than) so I know it is possible to set the Default Value, but <DBA>, <ltDBA_ACCT>, "Account"."DBA", and so on just don't not work.
    If anyone knows how to enter this I'd really appreciate the help.

    Ok, so if you want to default a field to the value from another object, you have to use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure that you do.
    Next, this will only work as a default if the record is created from the object that you wish to join on because a default works at record creation and the ID needs to be available for it to work properly. It will not work if you choose the related object record after the custom object record is created. You could set the value as a post-default, but that does not seem to meet your requirements.
    The syntax for the Default Value would be as follows: JoinFieldValue(ref_record_type, foreign_key, field_name).
    In your case, ref_record_type is '<Account>', foreign_key is &#91;<AccountId>&#93;, and field_name is '<YourFieldName>'. The best way to determine what the field name is would be to create a new workflow for Account and use the Workflow Rule Condition expression builder to pick your field ("DBA") from the list. The value that is returned by the expression builder should be placed in the field_name variable in the JoinFieldValue function (minus the brackets and in single quotes).
    Give this a shot and let me know how you do.
    Thom

  • How to get selected-value of dropdown-field in alv ?

    Hello experts,
    I have a alv-table with dropdown-field.
    When I open the dropdown I am able to select another value.
    Now I use method ON_CLICK with  ON_CELL_ACTION, and when
    I change value in my alv, system jumps into this mehtod.
    But how do I get now the selected dropdown value in this method ?
    I use following code in comp-wdini in order to declare the dropdown:
    Dropdownfield
      DATA: lr_dp TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      DATA: lr_node TYPE REF TO if_wd_context_node_info.
      DATA: lt_valueset TYPE wdr_context_attr_value_list.
      DATA: ls_valueset TYPE wdr_context_attr_value.
      DATA : lr_nodeinfo TYPE REF TO if_wd_context_node_info.
      DATA  wa TYPE cdbc_tj30t.
      DATA: lr_drdn_by_index TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
      SELECT *   FROM cdbc_tj30t INTO wa WHERE stsma = 'CRMOPPOR' AND
        spras = 'DE'.
        ls_valueset-value = wa-estat. " actual values
        ls_valueset-text = wa-txt30. " text displaying on the dropdown
        APPEND ls_valueset TO lt_valueset.
      ENDSELECT.
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'CONCATSTATUSER'.
            CREATE OBJECT lr_drdn_by_index
              EXPORTING
                selected_key_fieldname = ls_column-id.
            lr_drdn_by_index->set_valueset_fieldname( 'VALUESET' ).
            lr_drdn_by_index->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
            ls_column-r_column->set_cell_editor( lr_drdn_by_index ).
         ENDCASE.
      ENDLOOP.
    In view-ini I fill the table which is bound to my alv-table:
    LOOP AT lt_list_opportunities INTO lstru_list_opportunities
          WHERE status = ls_opportunity_status-estat AND
         valid_to <= ls_input-bdate AND valid_from >= ls_input-vdate.
        ls_opportunities-valueset = lt_valueset.
        MOVE-CORRESPONDING lstru_list_opportunities TO ls_opportunities.
        APPEND   ls_opportunities TO ltt_list_opportunities.
      ENDLOOP.
      lo_nd_opportunities = wd_context->get_child_node( name =
      wd_this->wdctx_opportunities ).
      lo_nd_opportunities->bind_table( new_items = ltt_list_opportunities ).
    HOW can I now get the slected dropdown values in ON_CLICK with  ON_CELL_ACTION method ?
    Thanks for answers !!
    Gerd

    Hello Abap,
    when I have selected the value in the dropdown-box, then the event should start, and then I should have the
    selected values of the dropdown box.
    Hope you can help me !
    Gerd

  • How to get node value of XML file from XMLTYPE field of databases

    Hi,
    I want to select node value of XML from XMLTYPE field of oracle db into java code.
    Feel free to answer me if you have any idea about it.
    Thanks

    For XMLType refer
    http://www.oracle.com/oramag/oracle/01-nov/o61xml.html
    http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96620/xdb04cre.htm

  • How to get initial value of Child View from Parent View in ADF?

    Hi,
    I am typically from a Oracle forms background and new to ADF.
    In ADF,how can I populate the initial value for a new record in child view from the parent view?
    For example.. using standard Departments and Employees tables which has parent child relation ship.
    If I want to create a new employee.. how do I get the initial value for department_id of my employee record(employee table) from departments table in ADF?
    Thanks in advance
    Vishnu

    USer, please tell us your jdev version!
    If  you have setup the data model in a way that it reflects this relationship (should be automatic if you use the 'create business components from table' wizard) this is pretty easy.
    To check this, open the application module and select the data model. On the right side you see departments view and under it indented the employees view. This indent shows you that the employees view is a child of the departments view. This is all you nee for the model layer.
    In the UI you open the datacontrol and open the departments view. One node it the employees view (as child). Now, if you work on a department (e.g. you drag the department view onto a page and drop it as form), you can add a button to create a new child (employee) by opening the employee node in department and drag the createInsert operation onto the page and drop it as button.
    Then create a new page and drop the employees view (the child from departments view) on to the page and drop it as form. This form will then display the new row for thew employee of hte department.
    Last thing to do is to add anavigation case from the departments page to the employees page and select this on the CreateInsert button.
    The form should have the DepartmentId pre-selected.
    Timo

  • How can I reference value of a field from a diffrent line in formatted search

    I want to use a formatted search for this
    I want to set a field value based on a value from a previous row. ( is this possible at all ?)
    I have a udf called Test at Line Level on AR Order
    The user enters a value for test on line 1
    he will have a lot more lines then after that. all I want is to copy the value in test ( on row 1) to row2 as the user edits say the Item code on that row.

    Hi,
    Unfortunately formatted search is for current line only , you can't reference the previous or next line .
    You can do achieve this with SDK but with FMS not possible .
    Regards

  • How to get a Value of a JSP field/Attribute?

    Hi im trying to get a value of a field from the EditCurrentRecord databeans. Im trying get the Value of the Attribute "Mdepempno", which will be used as a search field in the next customized webBean.
    Any suggestion? Thanks
    Muraly
    -- here is a portion of the code----
    RowEditor.useEditField("Mdepempno");
    RowEditor.getFieldRenderer("Mdepempno").setPromptText("Dept Manager");
    empnumber = RowEditor.getFieldRenderer("Mdepempno").toString();
    null

    Hi I managed to find the solution, by refering to the earlier replies..
    adding the following codes in teh .jsp page solve the problem.
    <%
    Row row = rsn.getRowSet().getCurrentRow();
    %>
    <% String empnumber = row.getAttribute("Mdepempno").toString(); %>
    Thanks for reading.
    regards
    muraly
    null

Maybe you are looking for

  • Excel and Word 2011 crash on opening

    I'm not sure if this is a more common issue from earlier versions of office, but with the combination of Lion and Office 2011 I am having repeated issues. For reference I am using a new Mac Air i5 with plenty of disk space and memory. In summary, Exc

  • Error in ECC6.0(Windows GUI 640 Exception 0xC0000005 with ID=0x590A1113/0x)

    Hi , In our environment , SAP is ECC6.0 installed in HP-Unix.Some time user face problem "Windows GUI 640 Exception 0xC0000005 with ID=0x590A1113/0x590A1113 occurred (PL=27)" and it spread to all computer . I have updated latest patched for GUI also

  • Using ANE in iOS Simulator for debugging

    Hello everyone, I’m developing on a MAC mini with Flash Builder 4.7 and AIR 3.4. I am working on an ANE and I like to debug it with the XCode simulator. To do that, I am using this template: https://github.com/divijkumar/xcode-template-ane/blob/maste

  • Need to record what I hear from speakers with other program

    I need to record what I hear with a program that can record a programs video and audio. Is there any way to set speakers as the recording source, instead of mic, or can I set it to both speakers and mic? If not, then we need an upgrade to our audio m

  • Very strange : Export from Organizer extremely slow

    Today I came something strange while "exporting Files as New File" from the Organizer. I decided to report it, because the observation may point to a potential improvement. In the Organizer (PSE V7), I went through File--> "Export as New File..." to