Reading Controller Context Data in "Z" view of ERP Quotation UI

Hi
We are on CRM 2007 . I could not find an appropriate forum area for CRM 2007 , hence posting here.
We have a Z table that stores some additional information related to Quotations and Orders in CRM itself and passes it on to ERP when certain conditions are met .
In CRM, we are using ERP Quotation transaction to create and change ERP Quotes. We have successfully enhanced the component ERP_H to "display" the content of these Z fields when Quotation is opened in Display or Change mode.
When "Save" call is made(EH_ONSAVE) in ERP_H component , we want to update our Z tables if ERP Order/Quote Save is successful.
However some requisite information for this update is available in ERPADMINI which is not bound to view Context of ERP_H/HeaderOverview .
ERPADMINI is bound to Component Controller context .
What is the best way to read the Component Controller Context Data and iterate through ERPADMINI structure when we are in the  method EH_ONSAVE.
Any pointers/code samples would be useful.

Moderator Reply:
The CRM Webclient UI forum is the old CRM 2007 forum.  Anything related to the "frontend" of CRM should be asked in that forum.  CRM 7.0 is for CRM 7.0 upgrade and new functionality issues that need special attention.
Thank you,
Stephen
CRM Forum Moderator

Similar Messages

  • Read GP context data dynamically

    Hi Experts,
    I am trying to achieve following
    1) First WebDynpro GP callable object u2013 FirstCO
    Has a GP output node as data node. DataA
    This data node fields/attributes are decided dynamically in the program
    2) Second WebDynpro GP callable object - SecondCO
    Has a GP input node as a data node - DataB
    This data node is mapped to node DataA in my process.
    Now in the SecondCO I need to read the attributes passed on by FirstCO in node DataB.
    And display the data in node DataB in a table ( whose fields are not known at design time)
    Can you guys tell me how can I read the dynamic GP input context data?
    I am not even sure whether this is possible or not.
    Regards,
    Ashish Shah

    Hi,
    I dont know if I understand you correctly, but I can give some sample code on how WD CO are implemented.
    Firstly, a controller class must be implemented. It will contain the description, execution and completion methods for the future callable object. It has a context, which can contain simple attributes and complex structures.
    After these structures and attributes are defined, one can begin with the implementation of the controller methods.
    In the default getDescription Method are defined input, output structures and the common description of the future callable object.
    Example:
    // Description of the future callable object
    IGPTechnicalDescription technicalDescription =
                     GPCallableObjectFactory.createTechnicalDescription(
                        "NameCO",
                        "Description",
                        resourceAccessor,
                        locale);
    // input structure
    IGPStructureInfo input =
    technicalDescription.getInputStructureInfo();
    IGPStructureInfo EntryInput =
                     input.addStructure("Entry");
                  EntryInput.setMultiplicity(IGPStructureInfo.MULITIPLICITY_0_N);
                  EntryInput.addAttribute("name", IGPAttributeInfo.BASE_STRING);
    // structure for output parameters
    IGPStructureInfo output =
                     technicalDescription.getOutputStructureInfo();
    IGPStructureInfo EntryOutput =
                          output.addStructure("Entry");
                  EntryOutput.setMultiplicity(IGPStructureInfo.MULITIPLICITY_0_N);
                  EntryOutput.addAttribute("name", IGPAttributeInfo.BASE_STRING);
    //add result state
    IGPCOResultStateInfo success =
                     technicalDescription.addResultState("Success");
                  success.setDescriptionKey("Success_desc");
    In the default execute Method, the context structures/attributes are filled with information, possibly from the input attribute/structures.
    Example:
    this.executionContext = executionContext;
    //Process the input parameters  
    IGPStructure input = executionContext.getInputStructure();
    Iterator<IGPStructure> EntriesIt = input.getStructures("Entry").iterator();
    int i = 0;
    while (EntriesIt.hasNext()){
                  i++;
                  IGPStructure nextStructure = EntriesIt.next();
                  IEntryElement pElement = wdContext.createEntryElement();
                  String name = (String)nextStructure.getAttribute("name");
                  pElement.setAttributeValue("name", name);
                  wdContext.nodeProviderProfileEntry().addElement(pElement);
             wdContext.currentContextElement().setNumberCols(i);
    A complete Method is added to fill in the output parameters after finishing the execution of the callable object.
    Example:
    IGPStructure output = executionContext.getOutputStructure();
              for(int i = 0; i < wdContext.nodeEntry().size(); i++) {
                  IEntryElement nextElement = (IEntryElement)wdContext.nodeEntry().getEntryElementAt(i);
                  if (nextElement.getSelected()) {
                       IGPStructure Entry = output.addStructure("Entry");
                       Entry.setAttributeValue("name", nextElement.getName());
             executionContext.setResultState("Success");
             executionContext.processingComplete();
    Every Web Dynpro component has a view, which is used to show the information in the context and change this information, which is then possibly mapped to output and sent to other callable objects via parameter mapping.
    (I have deleted some parts of the code, so some parts could be not correct, this is the main line for creating C though)
    Some links:
    http://help.sap.com/saphelp_nwce10/helpdata/en/43/e085d6421a4d9de10000000a155369/content.htm
    Hope it helps,
    best regards,
    v s

  • Read table context data into Internal table

    Hi All,
    I created a table and filled it with values and bind it to output.
    i have a field in ouput when i change the value in the output i need to change the values in my table.
    how to get the entie table(table context node ) into my method.
    is it possible to get the output table data when "On action " event is triggered.

    Hello.
    I guess you want to do that with Web Dynpro.
    So you need a function which is called, when your click-event is triggered.
    And within your function you need something like that:
    DATA lo_node_of_table TYPE REF TO if_wd_context_node.
    DATA lo_some_other_node TYPE REF TO if_wd_context_node.
    DATA lo_element TYPE REF TO if_wd_context_element.
    DATA ld_counter TYPE i.
    DATA ld_value TYPE i.
    DATA ld_sum TYPE i.
    lo_node_of_table = wd_context->path_get_node( path = `PATH_TO.CONTEXT_NODE` ).
    ld_counter = lo_node_of_table->get_element_count( ).
      DO ld_counter TIMES.
        lo_element = lo_nd_in->get_element( index = sy-index ).
        lo_element->get_attribute(
          EXPORTING name = 'FIELD_NAME'
            IMPORTING value = ld_value ).
        ld_sum = ld_sum + ld_value.
      ENDDO.
    lo_some_other_node->set_attribute( name = 'SUM_OF_SOMETHING' value = ld_sum ).
    Please reply if you meant something else.
    Regards
    Thomas

  • How to store context data in XML file in Webdynpro

    Hi all
    i have one typical requirement as follows.
    1) i want to store context data of one view  in XML file and i want to read the same data from XML into another context of View.
    is there any one did this functionality then it is great help to me if they share?
    Thanks
    Sunil

    Hi,
    In WD4A
    Check out the mehtod in IF_WD_CONTEXT_NODE-
    TO_XML returns the string about the context.
    Regards
    Lekha

  • How Can i Read data From Maintainance View

    I Want read data from Maintainance View. i written select query
    SELECT *
    FROM J_1yyyyV
    INTO TABLE GT_BUSPLACE.
    WHERE BUPLA = LV_BUPLA.
    this is giving following error
    "J_1yyyyV" is not defined in the ABAP Dictionary as a table,
    projection view, or database view.
    Can you help me Please.
    Thanks in Advance.
    Regards,
    Raj.

    Hi raj,
    maintainance view is a nothing but combinations of table using join on some fields..
    see the relation ship between the joins..
    if you want to write selection query ..go to se11 -->enter view name >and open tab>
                    Table/Join  conditions--> see the table's involved and join conditons between tables.
    and write the select query same as like the Table/Join  conditions in se11..now you can acheive the
    table maintainance fields..
    Prabhudas

  • Map context node  web dynpro to context DATA of  interface controller ALV

    Hi Experts,
    I have started creating simple ALV by following the example in the below mentioned link.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d
    I have completed 95% development but stuck with last bit of
    Set data to ALV for display (via reverse context mapping).
    When Click on the Controller Usage button. The component controller of your Web Dynpro component DOES NOT appears on the right side of the screen.
    Therefore I can not  Map context node NODE_FLIGHTTAB of your Web Dynpro component to context DATA of the interface controller of the ALV component.
    Could you please shed me light on this.
    Your time and help much appreciated.
    Best Regards
    CB

    Hi Chandra,
    You need to add component controller first. Just go to the property tab of interface controller of the alv component and click on create button and then add the component controller. After that you'll be able to see the node in the context tab.
    Regards
    Arjun

  • Read data from maintenance view

    hi all,
    could anyone please tell me if there is any special way to read data from a maintenance view (if at all it is possible).
    i wrote a simple select on it but it gave me a syntax error that the view is not defined in the dictionary. (i am able to see the view definition by double clicking and it is active too).
    the following is my select.
    select single lgnum from v_t320 into (w_lgnum) where werks eq p_i_werks and lgort eq p_i_lgort.
    awaiting answers...
    regards,
    PJ

    Thanx Rich,
    but the documentation on maintenance views says that we can have read access to them. Does that mean the data can only be seen via the DDIC and not from a select written in a program??
    this is what i read...
    Maintenance Status
    The maintenance status of a view controls whether data records can also be changed or inserted in the tables contained in the view.
    The maintenance status can be defined as follows:
    Read only: Data can only be read through the view.
    Read, change, delete, insert: Data of the tables contained in the view can be changed, deleted, and inserted through the view.
    Only read access is permitted for database views that are defined through several tables. If a database view contains only one single table, data can be inserted in this table through the view (see Inserts Through Database Views).
    The following status definitions are also possible for maintenance views:
    Read and change: Existing view entries can be changed. However, records cannot be deleted or inserted.
    Read and change (time-dependent views): Only entries whose non-time-dependent part of the key is the same as that of existing entries may be inserted.
    you surely have earned some points here....just let me be clear of the concept behind this
    regards,
    PJ

  • Reading data from maintainance view

    hi ,
    Can we read the data from maintainance view through select statement.

    Hi again,
    1. V_001K_K
       Since this view comprises
       more than 1 table
      T001K
      T001
      It gives this error.
    2. Maintenacnee views comprising only 1 table
       can be used in Select.
      For eg. V_T001
      V_T003 = Not allowed
    PS:
    3. The reason for this is :
       Any R/3 view having only one table,
       for such view, a physical view is created
       in the database.
       The records in it can be modified, inserted,deleted.
       (conditions apply)
       But for view having 2 or more tables,
       no physical view is there in the database.
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • Mapping from component controller context and view context

    Hi to all experts.
    im trying to create my first webdynpro . Im stuck up here please help me .... How to map the node from component controller context and view context i have searched the forum....got the answers as Drag and Drop...But it is not working ....

    Hi
    Check out this links and check saptechnical site
    WDA in SAP Help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    Web Dynpro ABAP Wiki's
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/main&
    New to Webdynpro
    Thanks,
    Tulasi Palnati

  • How to read the context node of used component?

    Hi,
    I have component called : SRQM_INCIDENT_H. This component has used component - BTSTATUS.
    Now, I need to read the context node of the BTSTATUS/UserStatus in GET Methods of Context node in SRQM_INCIDENT_H.
    Can you plese help me out.
    Thanks,
    Sandeep

    The component usages can be accessed from the component controller
    You should however assure that the context node is present in comp controlelr of the used component.View context nodes cannot be accessed.
    if not ,then you need to goto the component BTSTATUS ,add the context node  explicitly to comp controller,and do correct bindings to the view context node.
    Once you add the context node to the com controller,yo also need to expose it.
    go to runtime repository->component_interface->interface_controller->context->right click and select ADD CONTEXT NODE, and add you newly creatde context ndoe of comp contorller here.
    Now you cann access it using the code below in your comp SRQM_INCIDENT_H
    data:lr_comp_controller type ref to <ur comp controller class>lr_comp_controller ?= me->comp_controller.
        lr_comp_usage ?= lr_comp_controller->get_component_usage( iv_usage_name = '<name of the comp usage as in runtime repository' ).
        CHECK lr_comp_usage IS NOT INITIAL.
        lr_cnode ?= lr_comp_usage->get_context_node( iv_cnode_name = '<the required context node name>' ).
    Suvidha

  • How to get data form another view

    Hello together,
    I am more or less a newby in objective-c …
    The Problem is that I have 2 different ViewControllers. I create a NSArray with a lot of Data in view1. After that I want to write this data into a UITableView which is in view2.
    But I do not know how to get the data from view1?
    If anyone has an idea I would be very thankful.
    Best wishes,
    Stephan

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • How to get data from another view on the RFx to populate bidders web dynpro

    i am trying to populate bidders in the table on the bidder tab when a user click a button based on the line item data.  How do i have access to get the line item since it is in a separate component controller and view for the RFx? thanks you.

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • Pass data between two views

    Hi experts,
    i want to pass data from a view to an other one, i am filling a structure, and want get it into another view,
    is there a way to handl this.
    Best Regards
    Tomas

    Hi,
    I am not getting your exact requirement but to pass data from one view to another try the following steps.
    1. Suppose view1 is the view where you will take data from user through i/p fields and display it in view2 through text view.
    2. First create context node with required attributes in component controller then map it to context of view1.
    3. Map the attributes to the i/p fields of the view.
    4. Then if you want to go to view2 on button click then create an event in onAction property of button.
    5. Create OutBound plug in view1 and InBound plug in view2.
    6. In enent handler method of the button write the fire method.
         eg.  wd_this->fire_to_view2_plg(  ).
    7. In windows embed both the views and create navigation link for OutBound plug of view1.
    8. To display the values in view2 first map the node from component controller to context of the view2.
    9. Now map the attribues of the node to the Text Views or i/p fields where you want to diplay the values.
       Automatically values will appear in view2.

  • ICWC: Passing data b/w views without using CuCo!.

    Hi All,
    I am using CRM 4.0, for my custom development i got many custom views, i have a requirement to pass a value from one custom view to another!.
    All my custom views i developed in a custom application, also the workbench is not allowing me to create a new custom controller of my own, in this context is there any alternative for passing data b/w view without using a Custom Controller?.
    or else anyway to create a new CuCo in my custom application!..
    Thanks in Advance,
    sudeep v d..

    Hi all,
    I have an application that runs in the JApplet.I have
    to pass data b/w server and applet.The
    datas are brought from the server using php to the
    browser and passed to applet using param
    tags.
    1.Is it possible to set value for the param tag from
    applet?Why do you ever want to do it? It sounds like setting arguments passed to a program's main method from command line after the main method has been invoked. It is possible though to dynamically set any values for any applet params using php before the applet gets loaded to the browser window as you generate an html file on the server side.
    2.How to retrieve data from the param tag to the
    applet in the form of an array.
    In the getParameter it is required to specify the
    param name.
    Is it possible to retrieve data from param tag similar
    to that of getting data from command
    line arguments array.You can use some naming/numbering convention for your params. For example settings1, settings2 ... Then you can loop in your code retrieving the values like getParameter("settings" + i) checking to see that it is not null or empty.
    However, if you don't want to reload the applet (together with the page) just to get some new data from the server, you can establish a tcp/ip connection as elchaschab recommended.
    Cheers!

  • Unable to display table data in Review View

    Hi Experts,
    I have one main view and one review View .In my main view i have one table (Normal Table) and several other input feilds and text views....
    If i click on review button in my main view, am able to see all the data in review view except table data.
    How can i get the table data which i have entered in main view.. the same should display in review view.
    I binded the same node in both main and review. and node is defined under component controller.
    Any ideas?
    Regards
    Farooq.

    Hi,
    I think you already binded in review view also with same node. right? So data will move automatically and display in
    review view also. In WDDOINIT of review veiw read data from that node and use bind_Table.
    Cheers,
    Kris.

Maybe you are looking for

  • Do I need an Apple keyboard to boot from CD?

    Hello all, I just got a PowerMac G3 (B&W Rev. 2) from my friend and was trying to install Tiger on it. However, whenever I try to boot from the CD drive (not the original one though..) the computer simply boots into Panther (10.3.9.. which actually n

  • How to use niSwitch_InitWithTopology with PXI-2567 relais card

    Hello, I'm trying to get the NI Visual Basic example niSwitchControllingAnIndividualRelay.vbp working with a PXI-2567 relais card. I doesn't seem to get my ResourceName and Topology (the first two parameters of the niSwitch_InitWithTopology function)

  • You Tube Widget - Flash Security Settings

    Hello, I managed to embed sucessfully a You Tube video by using flash factor widget.  It works when published to a web server no problem.  However it looks like anybody else who views it has to adjust their flash security settings. Is there away arou

  • How to create a 30 second audio preview

    I'm not sure this is the right thread to post this question. We have over a thousand audio files (narration) in mp3. We now want to make copies of the first 30 seconds of each file to put onto the web as a preview. We were looking at AppleScript solu

  • HT1386 What is 'other' in terms of capacity?

    When i plug the ipod touch into my computer, the summary information for the device shows 2.4GB capacity being taken up by 'other'?  What might be taking up so much room?  I've cleared the email accounts, the voice memos, the notes, everything on the