Logic for displaying nested nodes.

helo all
i have to display a report in a heirarchical tree structure . I am able to display the report in heirarchical format .
The following is my requirement . I'm able to do it for 2 nodes . but how to build the nodes for the below requirement .
Step 1 : Once User enters DB, Go to CHVW  with No Receipt Indicator as Space and CHARG as DB # Entered on screen(Parent Node)
Step2: Check the Movement indicator if it is u2018Bu2019 then itu2019s a Raw material No further Drill Down (Last Node), If It is u2018Fu2019 then Go to Step 3.
Step 3: Get all the Unique DB # and Corresponding Orders, Display only DB# on Output (Child Nodes)
OUTPUT - ALV TREE STRUCTURE
If User Clicks on any DB# (Child Node):
      Then DB# Selected Will Become a Parent Node, Repeat the Same Process from 1 to 3.
Table: CHVW                                                                                DB#  Order   DB#  Order
Tree  
DB1
-      DB1.1
   -     DB1.1.1
   -     DB1.1.2
   -     DB1.1.3
            -   DB1.1.3.1                               -
 DB # of Raw material No further drill Down
                  -  Material Document          -
 Display Material Doc #
    -      DB1.2
                  -      DB1.3
                         -  DB1.3.1
                        -   DB1.3.2
can anone give me some clue..

Yea Sandra , You are right .
let me explain my requirement clearly .
first of all i need to use only table CHVW for my requirement .
the user enters the batch number in the selection screen. For that batch number, i have fetch the production order number and batch number .this forms the first node .
For the second node , i have to again select from Chvw table using the production order numbers obtained from the first select statement . the batch numbers obtained from this select query will form the second nodes. IF the movement type indicator is B ,then these is the last node
otherwise we have to repeat above procedure untill we movement type indicator for a particular batch number is 'B'.
i'e for each of the batch numbers in the second nodes, i have to again get the production orders and for that production orders i have to fetch the batch numbers again .these will form the 3rd node .
if at this step the movemtn type indicator is 'B' ths is the last node. other wise the same step should be repeated.
could u plz give me some clue ....

Similar Messages

  • Logic for display column on condition

    HI Experts,
                    I need to make report in which on User input in check boxes the desired colums will display. This report is Customer aging. I have 4 check boxes.
    1. 0-60 days
    2. 61-90 days.
    3. 91-120 days
    4. 121-180 days.
    User can check any check box wether it is single or 1 & 3 or 2 & 4 or 2 & 3 etc. to see the desired coloum. wHAT WILL BE THE logic and code to display the clicked colums. if it is difficult then u can display all colums but the data shuld b in clicked columns. iTs urgent.
    Thanks.
    Khan

    Hello Khan,
    I dont know about displaying only those columns, you may have to put different write statements for each possible case
    for getting blank values to be displayed in unchecked columns, you can use this
    (since i dont know your field names, i have given my own names)
    if p_sixty = ''.
    loop at itab.
         itab-sixty = ''.
         modify itab.
    endloop.
    endif.
    if p_ninety = ''.
    loop at itab.
         itab-ninety = ''.
         modify itab.
    endloop.
    endif.
    if p_onety = ''.
    loop at itab.
         itab-onety = ''.
         modify itab.
    endloop.
    endif.
    if p_oneey = ''.
    loop at itab.
         itab-oneey = ''.
         modify itab.
    endloop.
    endif.
    loop at itab.
    write:/ itab-sixty , itab-ninety, itab-onety, itab-oneey.
    endloop.

  • Need some logic for displaying data from Internal Table

    Hi Guys,
                  I have a Internal Table with multiple entries.
    My ITAB looks like below.
    PN  VBELN  MATNR MATKX
    1     111       P-101    XXX
    2     121       P-102    XYZ
    2     112       P-103    ABC
    3     134       P-104    DEF
    3     124       P-105    EFG
    Now my requirement is I need to display the out put as follows through ALV or normal display.
    <Header>                                                  <Date>
                                                                      <Time>
    PN = 1
    VBELN   MATNR  MATKX
    111         P-101   XXX
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 2
    VBELN   MATNR  MATKX
    121         P-102   XYZ
    112         P-102   ABC
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 3
    VBELN   MATNR  MATKX
    134         P-104   DEF
    124         P-105   EFG
    <Footer>
    Thanks in Advance.
    Prasad.

    HI,
    Use:
    Data: W_PNlike PN.
    LOOP AT ITAB.
    If Itab-PN ne W_PN.
    <Header> <Date>
    <Time>
    PN = 1.
    VBELN MATNR MATKX   >>>>>>>>>>>>>>>First Line enter
    ELSE.
    VBELN MATNR MATKX  > line Next entry
    ENDIF.
    W_PN = ITAB-PN.
    AT-END PN.
    <Footer>
    ENDAT.
    ENDLOOP.
    Hope this resolve your issue.
    Regards,
    Gurpreet

  • How to define logic to BO for display of more meaningful messages in Webi?

    Hi All.
    Greetings for the Festive Season.
    We would like to know as to how to define the logic to our BO application while displaying messages to end users of Web Intelligence.
    We have defined restrictions for various users and restrictions are appliced correctly when the user logs in.
    We have some MIS REPORTS in Web Inetlligence with different charts and we have also given links to various other web intelligence reports at the bottom for users to click and view or do analysis.
    And if any user if he/ or she is not authorised to view any / or part of the report - it does not show up.
    Which works well.
    But if some user is not part of any group and is not authorised to view data in a particular report, then we see a standard message coming in like :
    "No Data to retrieve in Query1"   or    "No Data to retrieve in ABC".
    Which one could say is correct.  Because for that particular user, the query has NO data.
    But. We feel there has to be a logic to be defined differently with the applicaton.
    How do we differentiate - as to whether the query does not really have data at the back end and HENCE it is saying No data to retrieve in the Query or report
    OR whether the user who is trying to view report is NOT authorised to view  
    AND HENCE the message is displayed as "No Data to Retrieve"
    We looked at the source file and it is pointing to :../AnalyticalReporting/viewers/cdz_adv/ViewDocument.jsp?
    But we found it a bit difficult to understand the logic there.
    Could anyone advise as to how we could define this logic for Web Intelligence - so that messages we see on screen for the end user could be more meaningful ? How do we really make the system understand or look for 2 options as to whether the message to be displayed is because there is REALLY NO DATA AT THE DATABASE LEVEL, OR whether the USER is not authorised to view this data.
    Can this be made possible by any means or thro SDK ?
    Many thanks
    Regards
    Indu
    Edited by: Indumathy Narayanan on Dec 21, 2010 9:50 AM
    Edited by: Indumathy Narayanan on Dec 21, 2010 9:51 AM
    Edited by: Indumathy Narayanan on Dec 21, 2010 9:54 AM

    Here is my current report detail view.
    [http://s49.photobucket.com/albums/f270/helenen/add/?action=view&current=2010-06-2511-44-20.png]
    (click on link and view at 100%)
    The 3 rd KF column is the calculated ratio which is =>  2nd Column (Work Hrs) A% 1st column (PlanHrs)
    Right now, I cann't get % at detail line (they're now shown as X, because PlanHrs is not null at detail line.
    I'd like those X should be calculated as =>  WorkHrs (at that line) A% PlanHrs (of that specific employee) .
    For example: 16 A% 1827 = 0.875%
    It seems soo eassy but I coulnd't do it.

  • Display Nested table data in an ALV format

    Hi All,
    Is there any way to display nested table data in an ALV format. This table has 20-30 structures in it and there is no way to create a common structure using all the fields. Kindly let me know what is the best way to display the nested structure data.
    Thanks a lot for your responce.
    Regards,
    Priti

    REPORT  yh_alvtreedemo1.
    TYPE-POOLS : fibs,stree.
    TYPE-POOLS:slis.
    DATA : t_node TYPE snodetext.
    DATA : it_node LIKE TABLE OF t_node,
           wa_node LIKE t_node.
    DATA: t_fieldcat    TYPE slis_t_fieldcat_alv,
          fs_fieldcat   TYPE slis_fieldcat_alv.
    DATA:w_repid LIKE sy-repid.
    *Internal Table declarations
    DATA: BEGIN OF fs_scarr,
            carrid LIKE scarr-carrid,
          END OF fs_scarr.
    DATA:BEGIN OF fs_spfli,
            carrid LIKE spfli-carrid,
            connid LIKE spfli-connid,
         END OF fs_spfli.
    DATA:BEGIN OF fs_sflight,
            carrid LIKE sflight-carrid,
            connid LIKE sflight-connid,
            fldate LIKE sflight-fldate,
         END OF fs_sflight.
    DATA:BEGIN OF fs_sbook,
            carrid LIKE sbook-carrid,
            connid LIKE sbook-connid,
            fldate LIKE sbook-fldate,
            bookid LIKE sbook-bookid,
         END OF fs_sbook.
    DATA:t_scarr LIKE TABLE OF fs_scarr,
         t_spfli LIKE TABLE OF fs_spfli,
         t_sflight LIKE TABLE OF fs_sflight,
         t_sbook LIKE TABLE OF fs_sbook.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM build_tree.
      PERFORM display_tree.
    *&      Form  get_data
    FORM get_data .
      SELECT carrid
             FROM scarr
             INTO TABLE t_scarr.
      SELECT carrid
              connid
              FROM spfli
              INTO TABLE t_spfli
              FOR ALL ENTRIES IN t_scarr
              WHERE carrid EQ t_scarr-carrid.
    ENDFORM.                    " get_data
    *&      Form  build_tree
    FORM build_tree .
      CLEAR: it_node,
             wa_node.
      SORT: t_scarr BY carrid,
            t_spfli BY carrid connid,
            t_sflight BY carrid connid fldate,
            t_sbook BY carrid connid fldate bookid.
      wa_node-type = 'T'.
      wa_node-name = 'Flight Details'.
      wa_node-tlevel = '01'.
      wa_node-nlength = '15'.
      wa_node-color = '4'.
      wa_node-text = 'Flight'.
      wa_node-tlength ='20'.
      wa_node-tcolor = 3.
      APPEND wa_node TO it_node.
      CLEAR wa_node.
      LOOP AT t_scarr INTO fs_scarr.
        wa_node-type = 'P'.
        wa_node-name = 'CARRID'.
        wa_node-tlevel = '02'.
        wa_node-nlength = '8'.
        wa_node-color = '1'.
        wa_node-text = fs_scarr-carrid.
        wa_node-tlength ='20'.
        wa_node-tcolor = 4.
        APPEND wa_node TO it_node.
        CLEAR wa_node.
        LOOP AT t_spfli INTO fs_spfli WHERE carrid EQ fs_scarr-carrid.
          wa_node-type = 'P'.
          wa_node-name = 'CONNID'.
          wa_node-tlevel = '03'.
          wa_node-nlength = '8'.
          wa_node-color = '1'.
          wa_node-text = fs_spfli-connid.
          wa_node-tlength ='20'.
          wa_node-tcolor = 4.
          APPEND wa_node TO it_node.
          CLEAR wa_node.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.                    " build_tree
    *&      Form  display_tree
    FORM display_tree .
      CALL FUNCTION 'RS_TREE_CONSTRUCT'
        TABLES
          nodetab = it_node.
      w_repid = sy-repid.
      CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
        EXPORTING
          callback_program      = w_repid
          callback_user_command = 'USER_COMMAND'
          callback_gui_status   = 'SET_PF'.
    ENDFORM.                    " display_tree
    *&      Form  pick
    *      -->COMMAND    text
    *      -->NODE       text
    FORM user_command    TABLES pt_nodes         STRUCTURE seucomm
                                 USING pv_command       TYPE c
                             CHANGING pv_exit        TYPE c
                                      pv_list_refresh  TYPE c.
      pv_list_refresh = 'X'.
      IF pt_nodes-tlevel = '03'.
        CLEAR t_fieldcat[].
        SELECT carrid
               connid
               fldate
               FROM sflight
               INTO TABLE t_sflight
               WHERE connid EQ pt_nodes-text.
        fs_fieldcat-col_pos = 1.
        fs_fieldcat-fieldname = 'CARRID'.
        fs_fieldcat-seltext_m = 'Airlinecarrier'.
        fs_fieldcat-key = 'X'.
        fs_fieldcat-hotspot = 'X'.
        APPEND fs_fieldcat TO t_fieldcat.
        CLEAR fs_fieldcat.
        fs_fieldcat-col_pos = 2.
        fs_fieldcat-fieldname = 'CONNID'.
        fs_fieldcat-seltext_m = 'Connection No'.
        fs_fieldcat-key = 'X'.
        fs_fieldcat-hotspot = 'X'.
        APPEND fs_fieldcat TO t_fieldcat.
        CLEAR fs_fieldcat.
        fs_fieldcat-col_pos = 3.
        fs_fieldcat-fieldname = 'FLDATE'.
        fs_fieldcat-seltext_m = 'Flight Date'.
        fs_fieldcat-key = 'X'.
        fs_fieldcat-hotspot = 'X'.
        APPEND fs_fieldcat TO t_fieldcat.
        CLEAR fs_fieldcat.
        w_repid = sy-repid.
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = w_repid
            it_fieldcat        = t_fieldcat[]
          TABLES
            t_outtab           = t_sflight.
      ENDIF.
    ENDFORM.                    "pick
    *&      Form  set_pf
    *       text
    FORM set_pf.
      SET PF-STATUS 'MYPF'.
    ENDFORM.                    "set_pf

  • Report for displaying open POs

    Hi frds
    i wants to display the open POs line item and its quantity .anyone give me the logic for this report.
    thanks
    Pari Vendhan.R

    HI frd
    thanks for information ..while puting your logic in report program its not displaying open POs.
    with this msg i hv attached my codings ..pls correct my mistake.
    REPORT  Z_CONSUMABLE_ROL.
    Data : Mat_no like mara-matnr, "Material Number
           Plant1 like ekpo-werks, "Plant
           com_co like mseg-bukrs, "Company Code
           store  like mseg-lgort, "Storage
    SELECTION SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK 01.
    SELECTION-SCREEN: BEGIN OF BLOCK 02 WITH FRAME TITLE text-001.
    SELECT-OPTIONS MATERIAL FOR mat_no.
    SELECT-OPTIONS Plant    FOR plant1.
    SELECT-OPTIONS COMPANY  FOR COM_CO.
    SELECT-OPTIONS STROAGE  FOR STORE.
    SELECTION-SCREEN: END OF BLOCK 02.
    SELECTION-SCREEN: END OF BLOCK 01.
    DATA DECLARETION FOR INTERNAL TABLE.
    Data : begin of itab occurs 0,
           matnr like mara-matnr, "Material Number
           maktx like makt-maktx, "Material Desc
           meins like mara-meins, "UOM
           minbe like marc-minbe, "ROL
           lgnum like mseg-lgnum, "Warehouse
           ebeln like ekKo-ebeln, "PO Number
           menge like ekpo-menge, "PO Qty
           banfn like eban-banfn, "PR Number
           meng1 like eban-menge, "PR Qty
           mblnr like mseg-mblnr, "PO Number
           ELIKZ like EKPO-ELIKZ,
           end of itab.
    SELECT STATEMENT.
    select a~menge
           a~werks
           a~ELIKZ
           b~banfn
           b~menge
           c~matnr
           c~meins
           d~maktx
           e~minbe
           f~lgnum
           f~mblnr
           f~bukrs
           f~lgort
           h~ebeln
    INTO CORRESPONDING FIELDS OF TABLE ITAB FROM EKPO as a
          inner join EBAN as b on aBANFN = bBANFN
          inner join MARA as c on cMATNR = aMATNR
          inner join MAKT as d on dMATNR = cMATNR
          inner join MARC as e on eMATNR = cMATNR
          inner join MSEG as f on fMATNR = cMATNR
          inner join EKKO as h on hEBELN = aEBELN
    where cmatnr in MATERIAL and awerks in PLANT and f~bukrs in
    COMPANY and f~lgort in STROAGE.
    write :/ 'Material_No' color 4,
          20 'Material_Desc' color 4,
          55 'UOM' color 4,
          65 'ROL' color 4,
          75 'Warehouse' color 4,
          87 'Open Po' color 4,
          115 'PO Qty' color 4,
          125 'PR No.' color 4,
          145 'PR Qty' color 4.
    write : sy-uline.
    if itab-ELIKZ = 'X'.
    loop at itab.
    write : / itab-matnr,
            20 itab-maktx,
            55 itab-meins,
            65 itab-minbe,
            75 itab-lgnum,
            87 itab-ebeln,
            105 itab-menge,
            125 itab-banfn,
            135 itab-menge.
    endloop.
    endif.

  • View for a network node or link table

    Can a view be used for a nework node or link table? The process sdo_net.validate_network hangs when I try to validate a network based on views for the node and link tables.

    I am using a logical model. The sql statement (checking link/node relationship) that hangs is:
    select count(a.link_id) from vlinks a
    where not exists
    select * from vnodes b
    where b.node_id = a.start_node_id or b.node_id = a.end_node_id
    I gather there is a concurrency issue with my links view because it joins a table with itself. I have a link table that has the start and end nodes defined on two records. Here is my view script:
    create or replace view vlinks
    (link_id, link_name, start_node_id, end_node_id, link_type, active, link_level, cost, parent_link_id)
    as
    select a.id, 'Link '||a.id, a.nodeid, b.nodeid, 'simple', 'Y',1,0,''
    from vnodes a, vnodes b
    where a.seq=1 and b.seq>1 and a.id = b.id
    I can create tables from my views and validate them successfully through sdo_net.validate_nodes_schema, sdo_net.validate_links_schema, and sdo_net.validate_network.
    I can analyze the network model through the Java API using the reachable nodes, shortest path, and spanning tree methods without any problems.
    I guess I'll validate my view links by counting the total number of links and subtracting the number of links joined successfully at the start and end nodes - if 0 then all links are valid. E.g.:
    select count(link_id) from
    select link_id from vlinks
    minus
    select a.link_id from vlinks a, vnodes b, vnodes c
    where a.start_node_id = b.node_id
    and a.end_node_id = c.node_id

  • In MVC, do i need a View or Page with flow logic for POPUP window

    Hi All,
    I have the below scenario using the MVC pattern.
    I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
    But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
    I need 6 popup to be called from the main view and once the function is done close the popup.
    Please suggest me the flow for this scenario.
    Cheers,
    Srini.

    Srini,
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout:
          function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Option2:
    Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
    Raja
    Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

  • How to disable disclosureClosedIcon on a tree for a particular node ?

    How can I selectively disable the disclosureClosedIcon in  front of a particular tree node and leave the other tree nodes unaffected. If I do myTree.setStyle("disclosureClosedIcon",null);
    Then the whole tree is affected. Please look at the code below.
    <?xml version="1.0" encoding="utf-8"?> 
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.events.ListEvent; 
    import mx.controls.Alert; 
    import mx.events.TreeEvent;[
    Bindable] 
    public var selectedNode:XML; 
    public function myTreeOpening(event:TreeEvent):void { 
    //How to do the following selectively just for one node. For example if I want to just disable
    //further opening of "Marketing" node and leave the other two
    Alert.show(
    "Trying to disable the disclosureClosedIcon just for the Marketing node"); 
    //myTree.setStyle("disclosureClosedIcon",null);
    ]]>
    </mx:Script>
    <mx:XML
    id="treeData">
    <node label="Mail Box">
    <node label="Inbox">
    <node label="Marketing">
    <node label="Professional"/>
    <node label="Individual"/>
    <node label="team"/>
    </node>
    <node label="Product Management">
    <node label="Professional"/>
    <node label="Individual"/>
    <node label="team"/>
    </node>
    <node label="Sales">
    <node label="Professional"/>
    <node label="Individual"/>
    <node label="team"/>
    </node>
    </node>
    </node>
    </mx:XML>
    <mx:Panel
    title="Tree Control Example" height="75%" width="75%" paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
    <mx:Label width="100%" color="blue" text="Select a node in the Tree control."/>
    <mx:Tree id="myTree" width="50%" height="100%" labelField="@label" showRoot="
    false" dataProvider="{treeData}" itemOpening="myTreeOpening(event)"/>
    </mx:Panel>
    </mx:Application>

    Thank you
    but I don't want to modify the underlying xml data by adding isBranch on the node. I just want to modify the display of the data on Tree. The reason is that the xml data is retrieved from database and I can not  modify the XML.

  • Creation of a Popup Menu for a Tree Node

    Hi Ppl,
      I need to create a Pop-up Menu for a tree node in WebDynpro Application, please give me a "How to .." sort of material or a link which would have same sort of information...
    Also, My requirement is to call the pop-up on the right click of mouse on the tree node, please let me know on which event handler I can call it ? Do I require a custom event handler for it ?
    Thanks in advance
    Anish

    Hi Anish,
    You simply add a Tree UI element, and then right-click the tree UI element and insert a TreeNode element.
    To the TreeNode element you can add a menu, and then to this menu you can add menu items. When the user right click the tree node, the menu item is displayed. If the user clicks the menu item, the action for the menuitem is run.
    Hope that helps.
    Daniel

  • How to handle the button "cancel" in a dialog box for displaying views?

    Hello!
    I ve a question about handling the cancel button in a dialog box for displaying views.
    I ve already implemented the dialog box by using the following code:
    METHOD eh_onnewqact.
      DATA stitle TYPE string.
      IF m_popup IS BOUND.
        stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
        m_popup = comp_controller->window_manager->create_popup(
          iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
          iv_usage_name = 'CUNewQAct'
          iv_title = stitle
        CALL METHOD m_popup->set_on_close_event
          EXPORTING
            iv_view       = me
            iv_event_name = 'NEWQACT_POPUP_CLOSED'.
      ENDIF.
      m_popup->open( ).
    ENDMETHOD.
    My dialog box consists two buttons - cancel and create.
    The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
    me->close( ). But that didnt works!
    Could u give me further information about that, because my cancel event-handler is empty?
    method EH_ONCANCEL_QACT.
    endmethod.
    After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
    Thank you very much!

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • Display tree node data in bold characters

    Hi,
    I have a requirement where I need to display tree nodes data in bold characters. If I click on a particular tree node, next time it should appear in normal font only which means that some task had done using that tree node. Is my question clear??
    Plz help me....
    thanks,
    ravindra.

    Hi Ravindra,
    I think it is possible, i have not done it but let me explain how we can do it.
    In <htmlb:treeNode> tag there is an attribute 'text' in
    which we specify title of that treeNode.
    Now you define a page attribute 'treeNodeTitle' type
    edpline and in onCreate assign it value <html><b>MyTreeNode</b></html>
    When you click on this node then you do event handling
    in onInputProcessing, there assign only 'MyTreeNode' to
    treeNodeTitle.
    sample code may look like this...
    <htmlb:treeNode
      id = 'treeNode1'
      text = '<%=treeNodeTitle %>' >
    </htmlb:treeNode>
    Page Attribute
    treeNodeTitle type edpline
    in onCreate
    treeNodeTitle = '<html><b>MyTreeNode</b></html>'
    in onInputProcessing
    in event-handling code for that treeNode write
    treeNodeTitle = 'MyTreeNode'
    I hope this will work.
    Regards,
    Narinder Hartala

  • Context Mapping for Non-Singleton Node

    Hi ,
    I have following context structure
    Node_A
    |     attr 1
    |________ Node_B
                                  attr2
                                  attr3
    Node_B is the child of Node_A.  NOde_B has attributes attr2 and attr3.
    Node_B is a Non SIngleton Node.
    Node_B is mapped to Node_View of the View Controller.
    Node_A had 2 elements. Initially Element 1 is the Lead selection Element for Node A. I get the reference for Node_B using the Lead Selection Path
    NodeA_element1 = Node_A->GET_ELEMENT( ). 
    Node_B = NodeA_element1->GET_CHILD_NODE( 'NODE_B' ).
    Node_B is filled with elements, lets say attr2 = 'Dallas', attr3 = 'Detroit'
    Node_View shows the values Dallas and Detrait since its mapped to Node_B
    Now the Lead selection of Node_A changes to 2.
    I again gett he reference for NOde_B usign the Lead Selection Path (index 2)
    NodeA_element2 = Node_A->GET_ELEMENT( ). 
    Node_B = NodeA_element2->GET_CHILD_NODE( 'NODE_B' ).
    Node_B is now filled with, lets say attr2 = 'Mexico', attr3 = 'Canada'
    Since element 2 is Lead selection for Node A, now, and NodeB is mapped to Node_View, I expect the contents of Node_View to be attr2 = 'Mexico', attr3 = 'Canada' since this is along the Lead Selection of Node_A
    But it stays attr2 = 'Dallas', attr3 = 'Detroit'
    So in a nut shell,  the Context Mapping of the Non Singleton Node  DOES NOT map the Lead selection Path when its parent  , changes in Lead Selection.
    Is this a BUG ?
    Thanks

    Hi Anand,
    There is no bug. See when you are saying
    "Node_B is now filled with, lets say attr2 = 'Mexico', attr3 = 'Canada' "
    I am just not sure how you have filled the data in node B. Because the way u populate node data that way only you can get the data. The way you want to get data you must populate data in this way:
    1. Get Node A instance let say in lv_node_A.
    2. Get Node A element instance (lead selection) in your case lets say in lv_elem_A.
    3. Now get node B instance by lv_elem_A->get_child_node( 'B' ) lets say in lv_node_B.
    4. Create element of lv_node_B and bind it to the node B and also populate the value of attributes.
    Repeat the steps as per your requirement. Also Singleton and Non singleton has nothing to do with this it is all about how the instances will be manged in the memory.
    Look at this sample code and will help you while populating data in nested nodes:
        DATA lo_nd_a TYPE REF TO if_wd_context_node.
        DATA lo_el_a TYPE REF TO if_wd_context_element.
        DATA lo_nd_b TYPE REF TO if_wd_context_node.
        DATA lo_el_b TYPE REF TO if_wd_context_element.
        DATA ls_a TYPE wd_this->element_a.
        DATA lv_test LIKE ls_a-test.
        data lv_btest type string.
      navigate from <CONTEXT> to <A> via lead selection
        lo_nd_a = wd_context->get_child_node( name = wd_this->wdctx_a ).
      @TODO handle not set lead selection
        IF lo_nd_a IS INITIAL.
        ENDIF.
        data count type c.
        data count_i type i value 1.
        do 2 times.
          lo_el_a = lo_nd_a->create_element( ).
          lo_el_a->set_attribute(
          EXPORTING
            name =  `TEST`
            value = count_i ).
          lo_nd_a->bind_element( new_item = lo_el_a
                                 SET_INITIAL_ELEMENTS = abap_false ).
          lo_nd_b = lo_el_a->get_child_node( 'B' ).
          lo_el_b = lo_nd_b->create_element( ).
          move count_i to count.
          concatenate count 'in node b' into lv_btest.
          lo_el_b->set_attribute(
          EXPORTING
            name =  `BTEST`
            value = lv_btest ).
          lo_nd_b->bind_element( new_item = lo_el_b
                                 SET_INITIAL_ELEMENTS = abap_false ).
        count_i = count_i + 1.
        enddo.
    This code will set value 1 and 2 in node A's test attribute. and on change of lead selection between 1 and 2 it will show value of attribute BTEST in node B as 1 in node B and 2 in node B...
    Regards,
    Neha

  • Display Parent node in a separate column in BEx

    Hi all,
    I have a requirement to display parent node of a node in a separate column in BEx.
    For e.g. If 'a' and 'b' belong to the parent node 'c,' I need to display 'c' in a separate column whenever 'a' or 'b' occur in the report.
    Any ideas how I can accomplish this? I already have a hierarchy enabled in the report. The client
    still wants to display the parent node in a separate column
    Thanks and points will be assigned.

    Hi Claus,
    You can use the following as table cell editor:
    1. Image -- just displays plain image
    2. Caption -- dislays image along with text or image only (or text only).
    3. LinkToAction -- same as caption, however provides you a way to have something like "onClick" action.
    Regards,
    VS

  • Logic for Expand/compress icons

    Hi all,
    iam creating a custom transaction in which if you click on partner row in Partner tab an address dialog box pops up...
    (similar to sales order/header/partner tab)
    now, i want my window have the same func as the SAp window has but iam having problems in trying to understand what SAP is doing..
    My question:
    logic for expand/compress icons in the dialog box..
    how can i implement the logic for expand/cmpress icons..
    if i click on expand, i should see all the fields and if i compress ,all initial fields should compress and if all fields are filled and then u click on compress the icon should disappear(similar to SAP)..
    my present logic is not able to switch the expand/compress properly..iam using screen-names for these...i see that SAP is using icons but iam not sure how to do this..
    can anyone input..
    gretaly appreciate....

    Hi Karunya,
    I have done something similar on the selection-screen of a Custom Report using text symbols & icons. You can probably try it out.
    parameters:
      p_cstopn type c no-display. 
    selection-screen:
      pushbutton 1(33) p_pcust user-command cus.
    at selection-screen.
    Check whether the additional selections screen is open or closed
      if p_cstopn = space. 
        p_pcust = text-opn. 
      Make all fields invisible
        loop at screen.
          if screen-group1 = c_customize.
            screen-input = 0.
            screen-invisible = 1.
            modify screen.
          endif.
        endloop.
      else.
        p_pcust = text-clo.
      endif.
    In the text symbols :
    use @3S@ Open Additional Selections forTEXT-OPN &
        @3T@ Close Additional Selections for TEXT-CLO
    Good Luck,
    Suresh Datti

Maybe you are looking for

  • Itunes store won't load on XP

    done everything i know to fix this problem also..completely  removed everything Itunes from my computer..restarted and installed  again..only to have the same problem..at my wits end..here is a copy of  the diagnostic run If anyone could please help

  • Issue with Update Rules

    Hi,     I am working on IM  (Inventory Management), following the steps as in " How to Handle Inventory management Scenario In BW ". I installed all objects from Business Content that are required for IM like Infocube(0IC_C03) and three communication

  • How to be sure if webdav is enabled in Oracle UCM?

    Hello all. I know it is a silly question, but I need to know: how can I be sure if webdav is enabled and working OK? These are my specs: Windows 7 64 bits Desktop Integration Suite 11.1.1.6.0 64 bits Oracle UCM 11g in a Linux Machine Using Desktop In

  • OVM Server 3.1.1 errors

    I am running OVM 3.1.1 in a 2 servers cluster. on one of the server I noticed that following errors happening very frequently in /var/log/ovs-agent.log. whereas 2nd OVM Server has no errors. I also noticed in OVM manager that if I go to "repository"

  • My iPod Touch 5 is useless iPhone 5 isn't responding and I need it for work..

       I'll tell ya the these people are screwing around long enough, I was patient the first couple days now its interfering with my job. I need my phone in order to perform at work and the new updates they sent out were claimed to be the solution and a