Make Invisible the table in webdynpro ABAP

hello all,
i have a requirement where i have two tables in a tray on one condition  i have to invisible the second table.
can one suggest is it possible, if yes how?
what i have done is in a tray i put 2 tables and the buttons.Is it the right way ??
Please Help me.
Thanks,
BSREDDY

Hi,
Tray is used to have expand/collapse the data to be shown to utilise the space.
Create a context attribute for visisbiity as WDUI_VISIBILITY and bind it to the visible property of the
2nd table.
based on the condition use the SET_ATTRIBUTE method of the if_wd_context_node and
set it to 01(None) or Visible (02).
lo_nd_previous->set_attribute(
    EXPORTING
      name =  'VISIBLE'
      value = 01 ).
You can use the tabstrip inside the Tray, where each table is shown inside the tab.
Do you want to show the 2tables at a time or only table to be shown.
Where are the buttons placed.
If you want to show the tables all the time to the user then use Tranparent containers otherwise you can
use the Tray.
Regards,
Lekha.

Similar Messages

  • Make entries in a table in webdynpro abap

    Hi all,
    We have a requirement to make multiple entries in a Table in webdynpro ABAP.
    We have created a table and inserted inputfield as cellEditor
    but at runtime it is being displayed in readonly mode we cannot enter anything in that inputfield.
    inputfield is binded with a context and table is not in readonly mode.
    Please help in this regards
    thanks & regards.....
    Gaurav Makin

    Hi Gaurav,
    Make sure the context node bound to the table has cardinality 0..N.
    When the app starts you probably need to read the table contents from the database or some other source and populate the contect node.
    The table will allow the user to edit values only for the rows that have a corresponding element in the context node.
    If the initial content is empty, i.e. no elements in the context node then the user will not be able to edit.
    You will need to either initialize the context node with a bunch of elements if the number of entries is fixed and known beforehand,  or provide a way for the user to create a new row.
    You can do this by adding a toolbar to the table with a create button with a CREATE action and the following method:
    method onactioncreate.
      data:
        lo_element type ref to if_wd_context_element,
        lo_node    type ref to if_wd_context_node.
      lo_node = wd_context->get_child_node( name = 'your node name here' ).
      lo_element = lo_node->create_element( ).
      lo_node->bind_element( new_item = lo_element set_initial_elements = abap_false ).
    endmethod.
    Regards... Lucio Menzel

  • How can I change column name in ALV table in WebDynpro ABAP?

    Hi Everyone,
    I have created an ALV table in WebDynpro ABAP. I have created a context node and added the required attributes there - for the ALV display.
    Now I want to change one columnn name of the ALV table.... Currently it is showing the description of the data element, which I don't want to show. I cannot create a new DE only for this purpose.
    Please let me know how can I change the name of the column.
    Regards

    Hi,
    This may help you to define your own column text in the ALV Table of webdynpro.
    see the below code.
    Here 'STATUS_ICON' is the column of the the output display of the ALV Table of webdynpro.
    "change the label of the report.
    DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
    CALL METHOD l_value->if_salv_wd_column_settings~get_column
    EXPORTING
    id = 'STATUS_ICON'
    RECEIVING
    value = lr_weeknum.
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    regarads,
    balu

  • How to refresh interal table in Webdynpro ABAP

    Hi all,
    I want to delete/free/refresh interal table in webdynpro abap.
    One of the form gave solution to pass blank internal table?
    I cleared node and itab in webdynpro, but internally SAP doesn't delete the context node and itab values.
    Please help me in how to refresh itab in webdynpro abap.
    Regards,
    Prasad

    Hi Srinivas,
    it doesn't work.
    I wrote like this in action list method.
    method lta_task.
    if not lcontext_node_task is intial.
    context_node_task->invalidate().
    endif.
    select.......
    populate data into internal table lt_task_output_table .
    if not lt_task_output_table  is inital.
        context_node_task = wd_context->get_child_node( name = 'TASK_PER').
        context_node_task->bind_table( wd_this->lt_task_output_table ).
    endif.
    endmethod.
    Starting of the mehod i have written to inavlidate, before upating the itab
    but donesn;t work. Where should I write the code
    Reagards,
    Prasad

  • How to upload XML file into the internal table in Webdynpro  ABAP ?

    Hi Friends,
    I am not able to upload the XML file into ABAP,can you please help me in solving this issue with the help of source code.
    Regards
    Dinesh

    Hi Dinesh,
    Try go through this program which I had developed earlier. It takes as input an XML file and then breaks it down into name-value pairs of an intrnal table. You need to pass an XML file as input to this program. (I had hard coded the path for my XML file in it. You need to replace it with 1 of your own or you can just delete it and use the browse button to selet the file on your PC)
    Regards,
    Uday
    REPORT  ZUDAY_XML no standard page heading.
    " Internal table to store the XML file in binary mode
    data: begin of it_xml occurs 1,
            c(255) type x,
          end of it_xml,
    " Name-value pairs table rturned by FM SMUM_XML_PARSE
          it_SMUM_XMLTB type SMUM_XMLTB occurs 0 with header line,
    " Table returned by FM SMUM_XML_PARSE for error handling
          it_bapiret2 type bapiret2 occurs 0 with header line.
    " XSTRING variable to be used by FM SCMS_BINARY_TO_XSTRING to hold the XML file in XSTRING format
    data: I_xstring type xstring, 
    " String variable to hold XML file path to pass to GUI_UPLOAD
          I_file_path type string,
    " Variable to store the size of the uploaded binary XML file
          I_LENGTH TYPE I VALUE 0.
    parameters: P_path type IBIPPARMS-PATH default 'C:\Documents and Settings\c5104398\Desktop\flights.xml'.
    " Get the XML file path from the user
    at selection-screen on value-request for P_path.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          FILE_NAME = P_PATH.

  • How to access SQL tables from WebDynPro ABAP application ?

    Hi,
    I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
    Basically ,I am trying to know:---
    a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
    b>What are the ways to do it.(by code or any other API/mechanism)
    I appreciate if anybody knows this.
    Thanks
    Praveen

    Hi,
    The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
    I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
    In WD for Java, we have these connection classes to connect to any databsae server.
    Or try to create an RFC with DESTINATION for this
    Pls check out this link for this -
    Pull data from another r3 server using abap dynpro
    Regards
    Lekha

  • How can I make all the Tables in my spreadsheet to work as one?

    I made a spreadsheet for work in Numbers '09 but do to the computers that we have at work, I have to have it exported to Windows Excel, but when I try to export the spreadsheet since I used more than 1 table to create this spreadsheet, each table is converted to an Excel worksheet, and all other objects are placed on separate worksheets since there's more than one table. and I want to know is there anything I can do, to export everything in one spreadsheet, for all the tables to work as one spreadsheet. PLEASE HELP!!

    You may be able to easily consolidate all your tables into one big table to make it equivalent to an Excel worksheet. You can copy/paste from one table to another and you can drag columns or rows from one table and insert them into another. Note that formulas that use column letters or row numbers instead of specific ranges (i.e., B instead of B2:B10) will now refer to the entire column/row in the destination table.
    Without doing this, all the tables, when exported to Excel into separate worksheets, should still work together just like they did in Numbers. Are you saying that they do not?
    Not much you can do about objects.

  • How to call the rfc in webdynpro abap..?

    Dear Experts,
    I need to add two numbers using RFC in webdynpro abap.
    First we have to give the input then click the submit button.. The result will be shown in next screen with addition of two numbers...  Please help me in this...
    Thanks.

    Calling an RFC Function module in Web Dynpro ABAP is nothing different from Classical ABAP
    use Pattern button to call function module and use DESTINATION syntax to specify the RFC destination
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_II.pdf?PHPSESSID=c528a60bf8857431c0fa6f6595639da7
    In Above document, page no 7, there is a wizard for Service call, in that 4th step is select service where
    you can specify the function module name and the rfc destination name
    Abhi

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • Inserting multiple records in to database table using webdynpro abap

    Hi all,
    I have created a username inputfield,a button and a table
    with one coloumn.
    If i enter  names in the input field then the values should be
    displayed in that table.
    Even i have got the answer i am not able to insert
    the values in to database(ztable) table.
    i.e. only one value(1st) was inserted the second value was
    not inserted ....
    so kindly send me the coding to insert multiple records
    into the database table......
    by,
    ranjith

    hi Ranjith,
    If you want to insert multiple records from the webdynpro view table to database table then try the following code.
    DATA lo_nd_tablenode TYPE REF TO if_wd_context_node.
      DATA lo_el_tablenode TYPE REF TO if_wd_context_element.
      DATA ls_tablenode TYPE wd_this->element_tablenode.
      DATA it_tablenode LIKE STANDARD TABLE OF ls_tablenode.
      navigate from <CONTEXT> to <tablenode> via lead selection
      lo_nd_tablenode = wd_context->get_child_node( name = wd_this->wdctx_tablenode ).
      get element via lead selection
      lo_el_tablenode = lo_nd_tablenode->get_element(  ).
      get all declared attributes
      lo_nd_tablenode->get_static_attributes_table(
      IMPORTING
        table = it_tablenode ).
    MODIFY databasetablename FROM TABLE  it_tablenode.
    here it_tablenode is the internal table which holds the value from webdynpro view..
    Regards,
    Shamila.

  • TO MAKE SINGLE ROW EDITABLE IN WEBDYNPRO ABAP

    HI
    I WANT TO MAKE A SINGLE ROW EDITABLE IN MY TABLE CONTROL IS IT POSSIBLE?
    IF YES THEN HOW?
    I KNOW ABOUT  READ ONLY FIELDS BUT I DO NOT KNOW HOW TO UTILIZE  IT

    Hi Rajan,
    Which particular row of the table do you want to set as editable? That would be important for formulating the way in which you should code.
    Suppose you are displaying the data of MARA using a table and want to make editable only rows in which the unit of measurement is equal to "CCM" then you can proceed as below.
    Create a context node (say MARA) with desired fields as attributes. (Cardinality 0..n, Selection 0..1, Initialize lead selection) In addition create an attribute (say READONLY) of type WDY_BOOLEAN under the same node (MARA) which you are using for binding to the table.
    First of all take all the cell editors of the table as type, "InputField" to make the entire table as editable. Then go to the each cell editor (TABLE_MATNR_EDITOR, TABLE_ERSDA_EDITOR,...) and bind the readOnly property of the cell to the attribute created earlier. (READONLY)
    Below is the coding in WDDOINIT through which you set the desired functionality
    METHOD wddoinit .
      DATA: lv_node TYPE REF TO if_wd_context_node,
            lt_mara TYPE ig_componentcontroller=>elements_mara,
            wa_mara TYPE ig_componentcontroller=>element_mara.
      SELECT matnr
             ersda
             ernam
             mtart
             matkl
             meins FROM mara INTO CORRESPONDING FIELDS OF TABLE lt_mara
                                     WHERE meins = 'GM' OR meins = 'CCM'.
      SORT lt_mara BY meins.
      lv_node = wd_context->get_child_node( name = wd_this->wdctx_mara ).
      LOOP AT lt_mara INTO wa_mara.
        IF wa_mara-meins = 'GM'.
          wa_mara-readonly = 'X'.
        ELSE.
          wa_mara-readonly = ' '.
        ENDIF.
        MODIFY lt_mara FROM wa_mara TRANSPORTING readonly.
      ENDLOOP.
      lv_node->bind_table( new_items = lt_mara ).
    ENDMETHOD.
    Regards,
    Uday

  • How can I make invisible the menu "window" on oracle webforms

    anybody can tell me how can I make invisible menu "window" that appears on webforms?
    Thanks in advanced.

    Hi Andrew,
    Thank you for looking at my problem!
    Both my development system and test system are Window XP. The font size are all set to Normal. What other details do you need to know?
    The text on front panel shows well on my development machine. But when the .exe runs on my test machine, the text size was not adjusted by itself so the text body got cut off.
    I found a way to "fix" this problem: I had to drag the text box down and right so there is enough magin between the text body and the box on the right and at the bottom. I had to try it a few times until it finally shows well on my test machine. However, with those magins, it doesn't look nice on my development machine anymore. Also, I only tried on one test machine, if it looks good on one test machine, will it look good on all the other machines? Eventually my app is going to run on Window 7. I'll have to test that out and find out if it's still going to be a problem. Anyway, I don't feel this is the right way to do it. I hope someone knows what I'm talking about and have a soluction to it.
    Thanks very much!

  • Call the webservices in webdynpro ABAP.

    Hi,
      I have WSDL file. please tell me the procedure how to call webservices in webdynpro -ABAP.
    Thank you
    neelima

    Hi neelima,
    Refer This,
    <b>Consuming XI Web Services using Web Dynpro</b>
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3593. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    <b>Web service related scenario with XI</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9.
          (Reward Points If helpful)
    Regards
    Nandha.

  • Best way for binding tables from webdynpro Abap with FlashIsland

    Hi,
    We've found several ways to access ArrayCollection columns in a Flex application embedded in an Abap Webdynpro.
    The SAP System is SAP Netweaver 7.01 SP7 and the flex application is compiled with SDK 3.0.
    1/ Syntax like MyArrayCollection[n][Column1]. In this case, the GACProperty's name of the GACDataSource must be "Column1" and it is case sensitive
    2/ Syntax like MyArrayCollection[n].COLUMN1 where COLUMN1 is the attribute's name in the webdynpro Abap context node. In this case, the GACProperty's name seems to not be important, and the column's names of the ArrayCollection must be upper case.
    Do you know which is the best way to do the binding and why?

    Check the Explan Plans for indexes, join orders
    and also check the link
    http://forums.oracle.com/forums/thread.jspa?messageID=2222015&#2222015
    Regards
    Singh

  • Visibility of a Table element  - WebDynpro ABAP

    hi all,
    I m trying to do the next  ...
    I have a select options with a button that trigger a method.  In this method I want to set on  the visibility of a table with the result of a SO .
    I see that I can put  'visible'  throgh  properties of the table . but I dont know how i can do visible again the table.
    any ideas?
    regards

    Hi,
    Check the code which give you idea about visability of fields, but bind table and change according to your requirement.
    DATA lo_nd_dctrl TYPE REF TO if_wd_context_node.     " Node of DCTRL structure
      DATA lo_el_dctrl TYPE REF TO if_wd_context_element.  " Element of DCTRL structure
      DATA ls_dctrl TYPE wd_this->element_dctrl.           " Structure for DCTRL
      DATA:lv_asn_ind TYPE wd_this->element_dctrl-asn_ind, " Variable of ASN fieldfor DCTRL
           lv_bool TYPE wdy_boolean.                       " Variable of boolean field for DCTRL structure
      DATA :wd_por_en TYPE REF TO cl_wd_checkbox.          " Workarea to declare check box
    navigate from <CONTEXT> to <DCTRL> via lead selection
      lo_nd_dctrl = wd_context->get_child_node( name = wd_this->wdctx_dctrl ).
    get element via lead selection
      lo_el_dctrl = lo_nd_dctrl->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_dctrl IS INITIAL.
      ENDIF.
      lv_bool = abap_true..
      CALL METHOD lo_el_dctrl->set_attribute_property
        EXPORTING
          attribute_name = 'ASN_IND'
          property       = if_wd_context_element=>e_property-read_only"if_wd_context_element~e_property-read_only
          value          = lv_bool.
      wd_por_en ?= view->get_element('SN_CHKBOX').
      CALL METHOD wd_por_en->set_enabled
        EXPORTING
          value = abap_false.
    Regards,
    Goutam Kolluru.

Maybe you are looking for

  • Start BPM Process from ABAP with another User as GUEST

    Hi all, i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin. My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calli

  • Min date for each month from list

    Hi all, I need to select only minimal date for each month from this sample query: select date '2011-01-04' as adate from dual union all select date '2011-01-05' as adate from dual union all select date '2011-01-06' as adate from dual union all select

  • Downpayment - configuration screen shots

    Dear gurus, can anyone send me step by step configuration - downpayment process - thank you, regards, Reshmi

  • Two fields about material in AFKO: PLNBEZ and STLBEZ,what's the difference?

    Two fields about material in AFKO: PLNBEZ and STLBEZ,what's the difference? correct answers will be rewarded. thanks in advance

  • IDoc Creation Issue

    Hi All, I am facing an awkward problem. I created a Partner Profile for a Customer and assigned the Message Type 'DESADV' to it. Then I created a Delivery For the Customer corresponding to a created Sales Order . I put a break-point on the Corrsepond