Problem in triggering the Supply Function

Hi Experts,
I am developing one web dynpro application to display the records in MARA table.
I have created a radio button.Logic is if radio button is selected then displaying of the record should be done.
NODE_PARENT consists of   NODE_CHILD ( which consists of fields to be displayed ) and key holder ( attribute which is used to check whether radio button selected or not ).
In radio button properties i used selected key as attribute of the node NODE_PARENT.
Now in supply function i am reading the parent element attributes i.e. radio button and checking if it is selected then read the data from MARA and bind it.
But i am getting the runtime error 
"  Context binding of property SELECTED_KEY cannot be resolved: Node MAIN.1.NODE_PARENT does not contain any elements "
what is the reason for this error.
Thanks in advance.

Hi Kissnas and other experts ,
Here is the code.
  DATA lo_nd_node_parent TYPE REF TO if_wd_context_node.
  DATA lo_el_node_parent TYPE REF TO if_wd_context_element.
  DATA ls_node_parent TYPE wd_this->element_node_parent.
  DATA lv_keyholder LIKE ls_node_parent-keyholder.
  DATA itab TYPE TABLE OF mara.
navigate from <CONTEXT> to <NODE_PARENT> via lead selection
  lo_nd_node_parent = wd_context->get_child_node( name = wd_this->wdctx_node_parent ).
@TODO handle not set lead selection
  IF lo_nd_node_parent IS INITIAL.
  ENDIF.
get element via lead selection
  lo_el_node_parent = lo_nd_node_parent->get_element(  ).
@TODO handle not set lead selection
  IF lo_el_node_parent IS INITIAL.
  ENDIF.
alternative access  via index
lo_el_node_parent = lo_nd_node_parent->get_element( index = 1 ).
@TODO handle non existant child
IF lo_el_node_parent IS INITIAL.
ENDIF.
get single attribute
  lo_el_node_parent->get_attribute(
    EXPORTING
      name =  `KEYHOLDER`
    IMPORTING
      value = lv_keyholder ).
  IF ( lv_keyholder EQ 'X'  ).
    SELECT matnr ersda ernam FROM mara INTO CORRESPONDING FIELDS OF TABLE itab." WHERE mandt  = sy-mandt.
  ENDIF.
bind all the elements
  node->bind_table( itab ).
*lt_node_table->bind_table( itab ).
I have written this code in supplyfunction GET_DATA.
Regards
Ravindranath CH

Similar Messages

  • Problem in Triggering the Mail to SAP Inbox

    Dear Experts,
                     I have a problem for triggering the Mail option to SAP Inbox.
    We created a Job assigning the program RSEIDOCA,RSWUWFML2 by creating a variant for those programs. We are scheduling the job,  It is showing as
    24.11.2010 12:43:46 Job started                                                                     00           516          S
    24.11.2010 12:43:46 Step 001 started (program RSEIDOCA, variant ZRSEIDOCA, user ID__ )        00           550          S
    24.11.2010 12:43:48 Error situation found by evaluation                                             E0           596          S
    24.11.2010 12:43:48 Step 002 started (program RSWUWFML2, variant ZRSWUWFML2, user ID__)      00           550          S
    24.11.2010 12:43:49 Job finished                                                                    00           517          S
    But while checking in SOST, we are unable to see those mails. eventhough the user is unable to get those mail in SAP INBOX.
    I think, is there any authorization problem while triggering the mail for that particular user id.. Please tell me the solution, this is very high requirement for me.
    Thanks in Advance.
    Regards,
    Srini

    Hi Chandra,
              Thanks for your reply. Actually i am not workflow consultant, thats why i asking this question. Where to assign the Receipient Type and Recipient Notification.
    you give Recipient Type as position and Recipient of Notification must be position of the reciepient,
    Regards,
    Srini

  • Problem in triggering the correct workflow on  AdobeForm submission for PCR

    Hi All,
    I am facing a problem involving triggering of workflows through Adobe form submission. I have created a scenario for "Employee seperation" in QISRSCENARIO transaction and assigned it to an approval workflow. I have also activated and assigned the BUS7051-Created event in the workflow Basic Data. My workflow also triggers perfectly when i submit the adobe form. Everything is perfect till here.
    Now i have to create another scenario for "Request for Transfer" Now for this i had to create a seperate workflow. My problem is since both these workflows are assigned to the same event whenever i submit the "Employee seperation" form both the workflows get triggered. <b>Is there a setting where i can configure the corresponding workflow to be triggered for the respective scenario's alone?</b> How do we handle this situation?

    Hi Jocelyn/Raja,
    I am trying to use SWB_COND for differentiating between the different workflows. I have created a virtual attribute W_SCENARIO_KEY for this. I tried populating this scenario key by using the following staement,
    <b>
    CALL FUNCTION 'ISR_SPECIAL_DATA_GET'                       
      EXPORTING                                                
        notification_no                     =  object-key-number
    IMPORTING                                                 
        SCENARIO                            = w_scenario_key.  
      SWC_SET_ELEMENT CONTAINER 'W_SCENARIO_KEY' W_SCENARIO_KEY.</b>
    When i try to include W_SCENARIO_KEY as a start condition the workflow shows up an express message and fails to trigger. In ST22 i can see that there is an exception "INVALID_NOTIF_NUMBER" raised.
    But if i don't set this as a start condition all the workflows activated to BUS7051-CREATED are triggered and in the WF logs i can see the correct value of W_SCENARIO_KEY for the respective notification number.
    I am not sure why this happens when i set it as a start condition alone.
    I instead used a select statement as shown below,
    <b>select * from viqmel into table itab_VIQMEL          
                  where qmnum = object-key-number.       
    loop at itab_viqmel where qmnum = object-key-number. 
    w_scenario_key = itab_viqmel-auswirk.                
    endloop.</b>
    After inserting this statement it works fine without any issues. Any idea on why ISR_SPECIAL_DATA_GET cant be used in the virtual attribute implementation?
    The following is the dump i get if i use ISR_SPECIAL_DATA_GET,
    Information on where terminated                                                                 
        The termination occurred in the ABAP program "SAPLQISR9" in                                 
         "ISR_SPECIAL_DATA_GET".                                                                    
        The main program was "RSWDSTRT ".                                                                               
    The termination occurred in line 39 of the source code of the (Include)                     
         program "LQISR9U01"                                                                        
        of the source code of program "LQISR9U01" (when calling the editor 390).                                                                               
    Source Code Extract                                                                               
    Line  SourceCde                                                                               
    9 *"  EXCEPTIONS                                                                               
    10 *"      NO_INTERNAL_SERVICE_REQUEST                                                       
       11 *"      INVALID_NOTIF_NUMBER                                                              
       12 *"      INT_SERVICE_REQUEST_NOT_FOUND                                                     
       13 *"----
       14                                                                               
    15 * local data                                                                               
    16   DATA: lt_dummy TYPE qisrsgeneral_param.                                                 
       17                                                                               
    18   DATA: lr_isr_document TYPE REF TO cl_isr_xml_document.                                  
       19                                                                               
    20   DATA: ls_notif TYPE qmel.                                                               
       21                                                                               
    22 * MAIN                                                                               
    23 * try buffer first                                                                      
       24   CALL FUNCTION 'ISR_SPECIAL_DATA_BUFFER_GET'                                           
       25     IMPORTING                                                                               
    26       ET_SPECIAL_DATA       = special_data                                              
       27       ED_SCENARIO           = scenario                                                  
       28     EXCEPTIONS                                                                          
       29       BUFFER_EMPTY          = 1.                                                        
       30                                                                               
    31   IF sy-subrc eq 0.                                                                     
       32     EXIT.                                                                               
    33   ENDIF.                                                                               
    34                                                                               
    <b>   35 * check notification number                                                             
       36   SELECT SINGLE * FROM qmel INTO  ls_notif                                              
       37                             WHERE qmnum = notification_no.                              
       38   IF sy-subrc NE 0.                                                                     
    >>>>>     RAISE invalid_notif_number.                                                         
       40   ELSEIF ls_notif-auswirk IS INITIAL.                                                   
       41     RAISE no_internal_service_request.                                                  
       42   ENDIF.     </b>                                                                               
    43                                                                               
    44 * set scenario                                                                          
       45   scenario = ls_notif-auswirk.                                                          
       46                                                                               
    47 * read ISR XML document                                                                 
       48   CALL METHOD cl_isr_xml_document=>read_for_display                                     
       49     EXPORTING  id_notif_no         = notification_no                                    
       50     IMPORTING  er_isr_xml_document = lr_isr_document                                    
       51     EXCEPTIONS bds_error = 1.                                                           
       52                                                                               
    53   IF sy-subrc NE 0.                                                                     
    54     RAISE int_service_request_not_found.           
    55   ENDIF.                                           
    56                                                    
    57 * read data from XML document                      
    58   CALL METHOD lr_isr_document->get_data_from_xml

  • Problem in triggering the code for CO02 User Exit

    Hi,
    I am using the code for the Tcode CO02 (User Exit) and i am facing a problem that when i am using the code as a normal program it is executing fine and displaying the pop up window and showing the data in it.
    But when i am using that code in the USER EXIT code it is not trigerring that pop up window.
    I am using the enhancement:-
    *PPCO0007 * - Exit when saving production order
    And the include in which i am writing the code is :-
    INCLUDE ZXCO1U06
    plzz provide me guidelines for solving this problem.

    hi ,
    i am using the following: -
    Enhancement No.  ->  PPCO0007 (Exit when saving production order)
    When i click on the enhancement the following is displayed:-
    Function exit  ->   *EXIT_SAPLCOZV_001 *
    When i double click the function exit  the code i had written in the following include:-
    INCLUDE ZXCO1U06
    plzz tell me whether i am doing it right or worng?

  • Problems with using the singlewrite function (in the CWDIO control)

    Hi,
    I'm using an old nidaq card (PCI 1200) with nidaq 6.9 (the card is not supported after this version).
    I'm using a CWDIO control to send regularly orders to an other card (an order every 50 ms for example) using these lines of code :
    CWDIO1.Ports.Item(1).SingleWrite (128)
    CWDIO1.Ports.Item(1).SingleWrite (0)
    The problem is that I have blanks in the orders sent. During 2 or 3 seconds, the orders are sent, no error or warning are made by the code, but the orders don't appear at the output of the card. After this blank period, the orders reappear (as if they were queued somewhere) and during 2-3 seconds the orders are well sent in real-time and a new blank period begins again ...
    Where am I wrong in what I made ? I tried using CWDO control but I had some problems too (the Progress event doesn't raise)...
    Antoine

    Hello Antoine,
    Do you see the same behavior when you are testing the device from the test panels of MAX ?
    Do you have also try to test the examples for VB without Component Works "C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Do" ?
    Do you have also the same behavior running the Measurement Studio examples "C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\DAQ\Digital\Digital Output" ?
    Regards.
    Matthieu Gourssies
    National Instruments France

  • Problem in triggering the component after firing raise evnt from taskflow.

    Hi,
    I have a dashboard screen in which there are a number off panel boxes each containing an individual reusable task flow. There is one input text declarative component on the screen on change of which I am setting the values in the helpers of the task flows so that in there respective refresh region's they can use this value to populate the data. After the change event code of the DC is finished and all the refresh regions are fired one by one, which raise some event and I am capturing that event in consumer if my screen, based on that event I delegate the call to my backing bean and set the rendered property of the panel boxes, which is not getting triggered until I click on some button, I have added the partial trigger to the panel box of my DC and even added AddPartialTarget but both are not working,I have even tried queue event that too doesn't work. This Partial Trigger and Partial Target were working until i wasn't using the raise event but after using that It stopped triggering.
    Can any body suggest something ..?
    Any Help Appriciated
    Thanks
    Shashank Vij

    Hi,
    don't think anyone here understood what the issue is. Any chancwe to simplify the question ?
    Frank

  • TS3581 iPhone 4S - The XCarlink iPhone/iPod accessory for Mazda Bose autochangers is functioning differently after iOS 5.1. The Shuffle function no longer works. Has anyone else experienced this problem?

    The XCarlink iPhone/iPod accessory for Mazda Bose autochangers is functioning differently after iOS 5.1. The Shuffle function no longer works and it plays Albums or Genius Playlisys only (not self-made playlists). Has anyone else experienced this problem?
    Previously, the iPod function enabled one to see the track that was playing and control playback (such as repeat or shuffle) via the iPhone screen. Now all I see is an "Accessory Connected" message.

    Somewhere in there, is there a question for us, your fellow users in these user to user support forums?

  • SUpply function in Web Dynpro ABAP

    I have 2 views - an INPUTVIEW and a DISPLAYVIEW.  I created 2 nodes in the component controller - INPUTNODE and TABLENODE.  In the INPUTVIEW, I mapped INPUTNODE of the component controller and in the DISPLAYVIEW, I mapped both the nodes of the component controller. I need to enter a value in the first view and the corresponding result should be displayed in the second view. I wrote the code in the supply function of the TABLENODE of the component controller. When i enter a value for the first time, the result is being displayed fine in the 2nd view.  But even if i go back and select another value in the INPUTNODE, the result is still the same.  Only if i refresh the 1st view, the result is changing.
    This is the code i wrote in the supply function of the TABLENODE of the component controller.
    data:   inputnode type ref to if_wd_context_node,
            tablenode type ref to if_wd_context_node,
            covalue   type string,
            itab_st  type standard table of zstate.
    inputnode = wd_context->get_child_node( name = 'INPUT_COUNTRY').
    inputnode->get_attribute( exporting name = 'zzco' importing value = covalue ).
    select * from zstate into table itab_st
    where zzco = covalue.
    tablenode = wd_context->get_child_node( name = 'DISPLAY_STATE' ).
    tablenode->bind_elements( itab_St ).
    Any ideas appreciated.  Thanks in advance.

    Hello,
    the supply method runs only when the node is invalid
    this is the case when you start your application.
    solution
    1. You can make the node invalid with the   method "INVALIDATE" in the method which is triggered by your back button.
    2.Don't use the supply method use the method which belongs to the inbount-plug called handle......
    3. You can change th lifetime in property of the view from
    "framworkcontrolled" to "when visible"
    Klaus
    Message was edited by: Klaus Helfrich
    Message was edited by: Klaus Helfrich

  • Use of supply function and WDCopyService..

    Hi,
    Thank you for ur help on WdCopyService to copy node elements..
    This is current scenario n requirement is:-
    1. I have a RFC (model node) that returns 20 transactions on each "Load next" button click.
    2. Now using output data of this model node, a context node "Transaction" is populated. A Supply function "SupplyTransaction" is used for this purpose.
    3. This "Transaction" node has further subnodes and these are used to fill up several tables in view.
    3. What i want to do is, Transaction node elements which were previously added using supply function should be retained. The next new 20 elements should get added to it.
    What are the possible ways to do this? 
    Pls help me as soon as possible..
    Regards,
    Amey

    HI Amey
    I think for the result that u want to achieve, u shud nt use supply function.
    I ll suggest u to use the same logic that u ve written in the supply function to be written immediately after u get data in your output model node.
    Try this.
    I hope it solves your problem.
    Regards
    Kapil S Kamble

  • Specialty of supply function and  how can we use it efficiently?

    Hi Experts,
    I have one question.
    What exactly the function of “Supply function” for a node.
    Some says when ever lead change happens the “Supply function” triggers.
    I put a break point in Supply function say “ZSupply” written code to populate the table.
    It triggered only once to populate the table. If this is the functionality then I can write code in method and call it in modify view my checking it for first time why “supply function”.   I want to know what is its specialty, how can we use it efficiently?
    Thanks
    Gopal

    Hi Gopal,
    You are correct even without supply function you can achieve the same functionality i.e when ever there is a change in HEADER the corresponding ITEM for the HEADER can be displayed.
    But the idea of using SUPPLY Function is - the code written in the node i.e assume HEADER and ITEM relation gets executed as and when the node is instantiated in the run time where in there is no need us to handle it explicitly.
    If not used SUPPLY Function then we need to handle the complete HEADER and ITEM relation explicitly.
    Regards,
    Mohammed

  • What is Supply Function, use of Supply function?

    Hi Guru's,
    Can you give a definition or description of Supply Function, and what is the use?
    Thanks,
    Pradeep.

    Hi Pradeep,
    Okay, conceptually you have understood it, that is good
    Hope you have also, visited this link
    Supply function with singleton concept | Webdynpro ABAP
    Then let us have a simple example to understand how it works.
    Let us say we have  parent node PNODE & child node CNODE
    PNODE node has 2 records and for each record CNODE has 3 records
    Whenever the data of PNODE is bound/changed, the supply function of CNODE executes. Hence, you are able to get the control during initialization.
    Now, if you have set the lead selection at line 2, i.e.  there is change to context PNODE, hence the supply function of CNODE triggers and it gets the reference of 2nd record in PARENT_ELEMENT inside supply function and based on this the child node data can be populated.
    Even, if you refresh node PNODE using method lo_pnode->INVALIDATE( ), the supply function of CNODE triggers.
    Hence, whenever there is change at PARENT'S context node, the supply function of its child node(s) gets called.
    Hope it gives little light on the supply function's  practical usage.
    Regards,
    Rama

  • Calling supply function

    Hi
    Can we call supply function explicitly in any other method of the view using wd_this->supply function name( ) ?.
    In case the supply function is local to the view and when it is defined in component controller ?

    hi vishal........
          you cannot call supply function explicitly.......
          what you can do is.... invalidate the node that has the supply function. so the supply function will be called again.
    ---regards,
       alex b justin

  • Use Of SUPPLY Function & Singletone Class?

    Hi,
    What is the Use of Supply Function & What is Sigletone Class?
    Thanks
    Ranveer

    Hi Ranveer,
    Each context node of a controller can be assigned a supply function. This supply
    function is called by the runtime when the data of the context node is used. This is the case
    when a UI element is to be displayed for the first time with the data of the corresponding
    context.
    In general, the supply function is called when one or more elements of a context node are
    accessed and when
    &#9679; the context node is not filled yet or is initial, or
    &#9679; the context node has been invalidated in a previous step.
    Supply Functions of Singleton Nodes
    The supply function is especially useful in combination with singleton nodes.The
    values of subnode elements of the type Singleton depend on the element of the parent node
    to which the lead selection is currently assigned. If the lead selection is changed by the user,
    the supply function can access the new lead selection element and recalculate the values of
    the subnode elements accordingly.
    You can only create such a view when the lead selection element of the node
    CARRIER_NODE is read in the supply function of the node CONNECTION_NODE:
    For eg:
    method GET_CONNECTIONS .
    data: CARR_ATTR type IF_MAINVIEW=>ELEMENT_CARRIER_NODE,
    FLIGHTS type SPFLI_TAB.
    get filled structure for parent node
    PARENT_ELEMENT->GET_STATIC_ATTRIBUTES( importing
    STATIC_ATTRIBUTES = CARR_ATTR ).
    get connections from help class
    FLIGHTS = CL_WD_GET_SPFLI=>GET_FLIGHTS_BY_CARRID(
    CARRID = CARR_ATTR-CARRID ).
    NODE->BIND_ELEMENTS( FLIGHTS ).
    endmethod.
    Explanation:
    An internal variable of the type of a context element of the parent node
    CARRIER_NODE and another internal variable of the Dictionary type SPFLI_TAB are
    declared.
    &#9679; The attribute values of the lead selection element of the parent node CARRIER_NODE
    are then passed to the internal variable CARR_ATTR.
    For this transfer, each supply function uses the parameter
    PARENT_ELEMENT of the reference type IF_WD_CONTEXT_ELEMENT.
    PARENT_ELEMENT is a reference to the lead selection element of the parent node of
    the current node. The parameter is automatically displayed in the signature of the
    supply function.
    Each time the user selects another table element as the lead selection in the table Carrier,
    the value of the parameter PARENT_ELEMENT changes. The supply function of the context
    node CONNECTION_NODE is called and the values of its attributes are newly filled
    according to the selected table line in the table Carrier.
    Supply functions can only access context data that
    &#9632; is contained in the corresponding parent node or
    &#9632; is contained in another node that is on a next-highest level compared to
    the node filled by the corresponding supply function.
    Cheers,
    Mary

  • Supply functions not working

    Dear all
    I have an upgraded CRM (from 4.0 to 2007) and apparently the supply functions e.g. in the component MSAACTIVITIES for the MSATaskList are not working. The implicit-flag on the anchor fills the business collection, but the supply function or an beforeQueryExecute trigger on the anchor both do not work, and if one is setting a breakpoint in there the code does not reach it. As these are SAP-delivered supply functions I hoped to find something on the OSS, but this is not the case.
    Did anyone experience the same or has an idea here?
    Regards, Kai

    Hi,
    do you mean anchor supply functions on tile or tileset level?
    If on tile level, did you already check whether the both anchors hold a supply function or relation on a higher level e.g. on tileset or component level. In this case I guess this will win...
    Regards,
    Wolfhard

  • Supply function used

    hi ,
    i have to fields as following:
    Nomination Key: ____________
    Location          :______________
    I want to fill the location F4 value help based on the value in Nomination Key.
    Is it possible to use Supply Function? if not what I should do?
    Best regard.

    Hi Ali,
    You can achieve this using OVS.
    I dont think you can use Supply function here, as both the fields reside on the same screen.
    Not only that Supply function will be called before WDDOINIT while displaying the view.
    So there wont be any value in the Nomination Key at all.
    Not only that after you enter something like 'XXXX' in the nomination key, then if you press F4 on the second IPF then it wont trigger the supply function.
    So, better use OVS and it is advisable too.
    For clarity in Hook methods and the sequence of calls which Webdynpro Runtime uses, Please follow Phase Model of the Webdynpro.
    Hope informtation is useful..
    Regards,
    Shashikanth. D

Maybe you are looking for

  • 5th Generation iPod Touch Syncing issues

    I recently receive a 5th Generation iPod Touch as a gift and I am having issues with it. I plugged the iPod into my Windows 7 PC with iTunes 11.4.0.18 and had issues from the start. First, my iPod would not even sync any media content from my library

  • My mac book pro is running very slowly. I do not have much on my computer either.

    Problem description: very slow mac performance. nothing on mac EtreCheck version: 2.1.5 (108) Report generated January 11, 2015 at 12:02:49 AM PST Click the [Support] links for help with non-Apple products. Click the [Details] links for more informat

  • Canon 6D issues with tethering....

    Hi All, Anyone know whats going on with being able to tether direct to LR 4.4 with a Canon 6D...its so frustrating when my camera keeps reading busy when I wish I was busy taking shots and not scratching my head trying to figure out what can be so di

  • In warehouse how to configure the WAM

    hi in warehouse how to configure the wam how to define the variant can hoe to see the trafic lights convert from red to green.

  • How we can disable lead selection programitically?

    Hello, I have a standard SAP's WDA and it has a TABLE (not ALV pls.) node, I mean, the node is defined as Cardinality 0...n; Selection 0...n; Lead selection is checked For some reason, we need to disable/uncheck this Lead seelction so that default le