Webdynpro ABAP: data binding for node having  subnodes and attributes

Hello,
Problem description:
There is parent node (cardinality 0..n), which has some attributes and also a sub node.
This parent node has to be bound to an internal table. The fields of internal table correspond to the attributes of the parent node. Now if a "bind_table()" method is used to bind this parent node to the internal table, will it work? If there is any other way to do it let me know!
Regards
Sagar

Hi Sagar,
   If you use the bind_table() method on the parent node, only the attributes( and not the subnode) of the parent node will get set with the values from the internal table. To set the values for the subnode, u have to use bind_table() method on the subnode seperately.
Hope this helps.
Thanks and Regards,
Sharadha.

Similar Messages

  • Data Binding for Custom Controls?

    Hello,
    I'm a little bit confused of how to use databinding for custom controls.
    I know i can bind a property, as seen here http://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f0f3cd6f4d1014b6dd926db0e91070/content.htm, but how can I map whole arrays?
    My problem is the following:
    I want to create a custom table control in SAPUI5 (as the default one doesn't provide the neccessary options and properties I need), but I can't seem to find an example how to bind "rows".
    There has to be a way to do this properly. All I can think of now, and implemented, is, passing the name of the variable in the model...
    var x = new my.controls.complex.table({data: "/status"});
    var row1 = new my.controls.complex.columnHeaderRow();
    row1.addColumn(new my.controls.complex.column({text: "", rowspan: "2", colspan: "1", content: "FIRST_COL"}));
    x.addColumnsRow(row1);
    x.placeAt("content");
    ...my JSON/model looks like:
    { "status": [ {"FIRST_COL": "a" , ...}, {"FIRST_COL": "b", ... }, ... ], ... }
    (which should translate into /status/0/FIRST_COL, /status/1/FIRST_COL, ... AFAIK)
    ... and then I use this variable name by getting the application-wide model and use the variable passed as key for the model... (please note, this code is just a snippet)
           var sapCore = sap.ui.getCore();
                if (sapCore !== undefined) {
                 var model = sapCore.getModel().getObject();
                 if (model === undefined || model == [] || model == null){ } else {
                  $.each(model, function(idx, item){
                   $.each(oControl.getColumnsRows(), function(idx, item2) {
                    $.each(item2.getColumns(), function(idx, item3){
                     var content = item3.getContent();
                     if (content !== undefined && content != ""){
                      outpLine = outpLine + "<td>" + model[idx][content] + "</td>";
    ...which still leaves me with the problem of to get an event to react to re-render on changes within the data model, as well as when there would be just an control-specific model, or just a sub-node within a model etc.
    So my question is:
    Is there a way/best practice to define data binding in a custom control and have a way to react on it, and how to react on data changes within a custom control?
    Thanks & KR
    Chris

    I create a entirely new control, from sap.ui.core.Control.
    sap.ui.core.Control.extend("my.controls.complex.table",{... });
    I did define a aggregation...
            aggregations : { columnsRows: {type : "my.controls.complex.columnRow", multiple : true, visibility: "public"}     },
    ...yet I'm still unclear how I work with this aggregation and databinding. I know we can use the bindAggreation functionallity, but since the aggregation is a object (my.control.complex.columnRow) I don't know how my JSON model should be able to bind to that aggregation (as well as how would one be able to cascade a aggregation like this down futher? For example if there is an aggregation in the object of my aggregation?), plus it still doesn't solve my problem of how I can react (for example redraw) on model changes.
    Thanks in advance,
    Chris

  • I recently bought an iphone 4s from people who are not in the know and restore my iphone .. Now do not be in use for not having ID and password ... Owner apple owner just gave me a serial number how do I want to continue to use this ... Their telephone he

    I recently bought an iphone 4s from people who are not in the know
    and restore my iphone .. Now do not be in use for not having ID and password ... Owner apple owner just gave me a serial number how do I want to continue to use this ... Their telephone help me: (

    I am having same problem . i can not use the phone. my Carrier ROGERS checked the phone its not stolen or lost phone but after restoring always ask for apple ID of previous owner and seller is not responding to any mails or phone if some one can help me out than it will be great.
    thank you

  • SharePoint PPS 2013 Dashboard Designer error "Please check the data source for any unsaved changes and click on Test Data Source button"

    Hi,
    I am getting below error in SharePoint PPS 2013 Dashboard Designer. While create the Analysis Service by using "PROVIDER="MSOLAP";DATA SOURCE="http://testpivot2013:9090/Source%20Documents/TestSSource.xlsx"
    "An error occurred connecting to this data source. Please check the data source for any unsaved changes and click on Test Data Source button to confirm connection to the data source. "
    I have checked all the Sites and done all the steps also. But still getting the error.Its frustrating like anything. Everything is configured correctly but still getting this error.
    Thanks in advance.
    Poomani Sankaran

    Hi Poomani,
    Thanks for posting your issue,
    you must have to Install SQL Server 2012 ADOMD.Net  on your machine and find the browse the below mentioned URL to create SharePoint Dashboard with Analysis service step by step.
    http://www.c-sharpcorner.com/UploadFile/a9d961/create-an-analysis-service-data-source-connection-using-shar/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • WebDynPro ABAP iViews not picking the portal look and feel

    Hi,
    In our case , WebDynPro ABAP iViews not picking the portal look and feel.
    Is there any way to provide the custom developed portal theme link or css file to the WebDynPro application.
    Can it be done programmatically in the WD ABAP application.
    Best Regards
    Sid

    Look at the below link, it will answer your question:
    Re: EP 7 Portal stylesheet with WD ABAP
    Raja T

  • Data Validation for SD Sales order and Deliveries

    Hello All,
    We activated the data flow for SD sales Order and Deliveries for Infocubes 0sd_co4 and 0sd_c05 and there correspoding datasources.
    I have 2 queries
    1. How to validate data for BI SD sales order with ECC.
    2. How to validate data for BI SD Deliveries data with ECC.
    Kindly help, <removed by moderator>.
    Thanks,
    Rakesh.
    Edited by: Siegfried Szameitat on Jun 21, 2011 12:51 PM

    Hi Rakesh,
    You have to check the tables in R3 and then compare with the Datasources in BW.
    For Examples
    VBAK table in R3 for Sales Order on BW-2LIS_11_VAITM
    VBRK table in R3 for Billing iin BW-2LS_13*
    Check for that day how many sales order were there in VBAK table and there in BW.
    Rgds
    SVU123
    Edited by: svu123 on Jun 21, 2011 8:19 PM

  • No control data maintained for checking group ZI and checking rule A

    Dear all,
                   When i do the availability check in the sales order i got the message as  No control data maintained for checking group ZI and checking rule A and finally availability check was not carried out, I check all the configuration under the sd-availabilitycheck and i maintained in material master also..........
    Please give me the solution
    Best Regards ,
    Kumar

    Hi,
    Did u maintain the scope of availability check like incluke reqts,planned reqts, purchase requisitions, production order, sales reqts,delivery reqts etc.
    apart from that you have to put check(Tick) mark in Requirment class and scheduleline categorie
    Then u have to maintain in material master individual requirmentss or daily requirments
    checking rule like A,B or if its consignment AW if it is returnable packaging AV etc(ImgS&D-Basicfunctions-Availabiltycheck&Tor---availability check aginst ATP)
    Then Total summarized daily reqts or summarized individual requts
    Plz check above all setting then u will get clear idea.
    Regards,
    Murthy

  • Webdynpro abap- navigation to context node

    Hello all,
    I am a new user for Webdynpro - abap. I was trying to set a default value to a input field. I am using WDDOINIT method for navigation to context node FLIGHTINFO. But i am not getting the exact idea behind the navigation at code level. Also not clear about get element at lead selection for context node FLIGHTINFO.
    Please provide inputs in this case.
    Thanks,
    Yogesh

    Hi
    There can be many nodes in the context, and many elements in each node. In order to set the default value to one of the attributes, we need to proceed as follows:
    1) Get the reference of node, whose attribute needs to be defaulted. Following is the code for the same:
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    navigate from <CONTEXT> to <CN_NODE> via lead selection
    lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    wd_context has the reference of context node (root node). It gives the reference of desired node (its child node) using method get_child_node. We pass the name of desired node as parameter of this method.
    2) In similar way we proceed to get the reference of desired element using following code:
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element( ).
    3) This element may have many attributes. We set the default value to attribute of selected node using following code:
    set single attribute
    lo_el_cn_node->set_attribute(
    EXPORTING
    name = `CA_TEST` " name of attribute where input field is bound
    value = lv_ca_test ). "Value that you want to set as default
    Follow the links for more help:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/14cf058d484250e10000000a1553f6/content.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/1b994f0c475a67e10000000a1553f7/content.htm.
    Regards,
    Saket.

  • Need expertice opinion on WebDynpro ABAP vs FPM for heavy custom apps

    Hi Experts,
    I have a lot of custom UI development,.for external users in SAP. Most of these applications can be simply developed using WebDynpro ABAP framework. If I do the same development using FPM framework I may need to do lot of reaseach espcially controling the UI behaviours like hiding, changing table cell  colors based on the data, manipulating the UI behavior in the runtime, lot more like this.
    The question I have is , which one is the right tool for my development FPM vs WebDynpro ABAP, what is the value in building the same apps in FPM rather then WebDynpro ABAP? If I develop these apps in WebDynpro ABAP does my client loose any new capabilities in he future releases? are any other drawbacks?
    The challenge i see the FPM Feeder classses doesnt have lot of interfaces other then few like ( IF_FPM_GUIBB_FORM, IF_FPM_GUIBB_FORM_REPEATER,IF_FPM_GUIBB_LIST,IF_FPM_GUIBB_SEARCH,IF_FPM_GUIBB_TREE,IF_FPM_GUIBB_LAUNCHPAD )
    to extend more custom UI functionalities, and the other thing I may need to invest lot of time in reseacrhing and analysing the framework events etc....Please can you shed some light on it and put me in right direction.
    Appreciate your time and help.
    Thanks
    Krishna

    Hello Krishna,
    the whole story revolves around reusability and abstraction, extensibility atleast in this context.
    FPM offers more abstraction than Webdynpro. i am sure we all appreciate the standard webdynpro components for ALV, Value help, as this is something we could reuse and if we build our components that it manipulates itself with the help of configuration, customization and personalization.
    So all the Standard SAP Dev could be enhanced (not modified) by simple, configuration, FPM is built around this concept.
    So if you want to do custom development, which could be extended for your different customers with minimal efforts, you could go for FPM.
    So here are some takeaways
    1) FPM offers more abstraction than Webdynpro
    2) FPM offers more reusability
    3) Say manipulating the UI behaviour and say some customers wants view1 first and other doesnt want view 1 and wants only view 2. so in FPM you could simply do it with different configuration. and with Webdynpro, you need to manage this dynamically based on certain application parameter or you may end up copying certain comp,,or you use different usage,,,,and you could calibrate this.
    Regarding limitation with FPM interfaces, could you explictly share what custom development you intend to do and in worst cases, you could always use freestyle UIBB,, which is webdynpro abap
    in that scenario, atleast wiring, application config(app parameter, combination of webdynpro, with thier respective config),,could be reused.
    Regards
    Anurag Chopra

  • Are Multiple (Concurrent) ABAP Data Sources for AS Java UME Possible?

    Hi All,
    We have a solution which is using a JAAS logon module for partner authentication. for reason's I won't go into we have decided that it is best to use an ABAP data source. We will also be using the same JAAS approach for other ABAP applications in the future. Ideally we would configure the same JAAS server to use ABAP UME data sources from ABAP server 1 and ABAP server 2.
    I see there are provisions in the documentation for multiple UME data sources of different types but it doesn't clearly say about different concurrent data sources. IS this even possible? If so is it wise?
    Thanks,
    Doug

    Julius,
    Thanks again for your reply. This is confusing. We have an existing .Net logon application where we centrally administer accounts and where users log in. On successful login they are issued a .net Auth cookie. Our JAAS module takes that cookie, does a web service call back to .Net and authenticates them. So authentication is done on the basis of the .Net cookie, not the java UME. We simply need a java ume to allow users to execute the application that invokes the JAAS module. The application invokes the JAAS module and if they successfully authenticate they are forwarded to the requesting SAP application. So the JAAS ume is really just needed to allow various users to run the JAAS invoking application starter. Ideally we'd use the same starter application for users of SAP Application 1,2,3, etc.
    So that's where the question came from on multiple ABAP  UME data sources for a single Java instance.
    Hope that makes sense. Regardless the answer I guess is not possible but you see the method to our madness. And yes it is madness.
    Thanks,
    Doug

  • Data Binding for Idiots (me)

    Hey everyone,
    I've been asked to build a form that is way more complex than anything I've done in the past. I just wanted to ask the experts here a few questions before I get started, to make sure that I don't make any huge mistakes.
    The complexity of the form lies in the huge number of nested repeatable subforms, the fact that it's three forms in one (which form being shown depends on a selection from a drop down list), and the fact that the form needs to be designed to export its data cleanly to xml.
    As far as building the form goes, I'm comfortable with everything except for the exporting to XML. I've done this a few times, but I'm not sure that the assumptions I've made are correct. I've tried reading the help files, but I'm not sure I'm getting it.
    Pretty much, I make use of a ton of subforms in order to make sure that the layout of the form works dynamically. I don't want all of these subforms to show up in the xml import. The way I've been doing it is to set the data binding on these subforms to 'No data binding.' Does this have any impact on how data is saved to the form? If I don't want the value of a field to be exported, can I set it's binding to 'no data binding', or will that cause prevent the values from being saved?
    My final question is about the 'Use name' binding. Up until now, in past forms I've made sure that all fields have different names. This form is so large, and has so many similar elements that it would be useful to be able to resue field names in different areas of the form. For example, two of the versions of the forms has a section for associated addresses. The fields in these sections are the same. Can I name them the same thing, so long as they are within different subforms? Or will this cause a conflict when exporting/saving.
    Sorry for the long post. In short:
    1) What afftect does the data binding 'no data binding' have on subforms and fields, with regards to saved data and exported data? Are there any 'gotchas!' that I should be aware of?
    2) What are the guidelines I should follow to ensure that I don't come across any naming conflicts? Do I just need to ensure sibling feilds aren't named the same, or should all names be distinct?
    I would appreciate any help that you guys might be able to offer.
    - Scott

    Scott,
    1) No date binding means a form object is not included in exported XML. Data binding has no effect upon saving data when saving a form, the form will contain the data.
    2) For me, rule #1 is use a schema and schema binding. It is worth the upfront investment in time. What you see in the schema is what you see in the output data, given a form object is bound to the schema. You can bind a single schema element to multiple form objects if you need to re-use data across sub-forms, also. Rule #2, again for me, is to explicitly define sub-form names to simplify schema binding and avoid name collisions.
    I've attached a very simple form (with the schema embedded), the schema and exported xml to demonstrate.
    Steve

  • Pageflow - data binding for collection size

    Assume {pageFlow.students} is a collection. What data binding to use to write the
    collection size to the jsp page? The following does not work
    <netui:label value="{pageFlow.headers.size}" />
    Thanks, Jack

    This is a very FAQ on the "taglibs-user" mailing list. The same issue comes up
    with using the JSTL, because the JSTL follows the same rules about what it can
    access.
    A reasonable general solution would be to write a simple class called "CollectionBean"
    (and similarly "MapBean"). Put it in a "utils" package. It's constructor takes
    a Collection (and a Map, respectively). It has two properties, named "collection"
    and "size" (the other would be "map" and "size"). Instead of storing Collections
    or Maps, you store CollectionBeans and MapBeans. About the only challenge would
    be properly naming the instance variables of type CollectionBean, so it isn't
    confusing. I'll leave that problem for you.
    "Jack Liu" <[email protected]> wrote:
    >
    Assume {pageFlow.students} is a collection. What data binding to use
    to write the
    collection size to the jsp page? The following does not work
    <netui:label value="{pageFlow.headers.size}" />
    Thanks, Jack

  • Abap+java stack for Portal 7.0 and MI - User Data Source

    The SAP pre-requisites for Portal and MI (Mobile Infrastructure) 7.0 is an ABAP and Java Stack. If you install an AS ABAP + Java, the UME is automatically set up to use the ABAP user management of the same AS installation. What does this mean? The user store will be created in ABAP, for both the Portal and MI.
    The impact of this is portal users management is in ABAP. This configuration by design cannot be connected to LDAP Active directory for user authentication.
    Please let me know , if some body had already face similar issue and come up with the solution.  Thanks in advance.

    Hi Surya ,
    When you install portal or any NW component with ABAP stack , ABAP stack hold precidence over the JAVA Stack , refer to this link to have more idea on this .
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/306bb5bc98f24f8a85d489449af456/frameset.htm--
    http://help.sap.com/saphelp_nw04s/helpdata/en/12/7678123c96814bada2c8632d825443/frameset.htm
    Thanx
    Pankaj

  • Adobe Form - Data Binding for static text

    Hi Experts,
    I'm trying to create a new label with Adobe Forms (not interactive).
    So I've created an interface with a table LABEL_DATA (import) and many variables (import) and a new Form with Layout.
    I tried to bind some text fields with the imported variables und fields from the table, they're all available in the context, but all fields are still empty (preview and print).
    Field are Text Fields
    Type is : Read Only
    Data Binding is : $record.LABEL_DATA.KDMAT
    Can someone please help me?
    Thank you.
    Regards,
    David

    Hello David,
    In your interface, have you declared LABEL_DATA as GLOBAL Data ?
    You can fill the table and variables in the INITIALISATION in the interface.
    Then you can use the Global table and variables in the form.
    In case you are missing some values; you can debug the code in INITIALISATION section. Get the import tables in INITIALISATION and filter the required values into Global Table and variables.
    Regards
    Sandy

  • Data source for Deposit Advice (XML) and Live CheckWrite (XML) reports

    Hello All,
    We need to customize the Deposit Advice (XML) and Live Check Write(XML) reports to accomodate a few business requirements. We already have customizations for these reports in non-XML versions. For Ex: USPAYPST.rdf for Deposit Advice report. As these non-XML RDF reports are going to be unsupported by Oracle soon, we need to customize the XML versions of these report available in R12.1.3.
    As these reports are kicked off by the PYUGEN spawned program, therefore I need information on the data source for these reports as soon as possible.
    Looking forward to your prompt help.
    Thanks,
    Rahul

    Now, I have anew problem here. I modified the USPAYPST.rdf report for Deposit Advice and then changed concurrent program output to XML from Text.
    I attached a RTF template to the concurrent program to have the output in XML.
    When I run Deposit Invoice Report from the SRS window, it finishes off normally and log file says the number of records processed but no output file is generated.
    I also tried looking into the XML generated through View XMl and there too no output file is generated.
    I am confused if the Deposit Advice program can only generate Text output. As PYUGEN is the executable for this report, I have no idea if XML file can even be generated.
    All pointers to this issue are welcome.
    Thanks,
    Rahul

Maybe you are looking for