Disabling an table in a screen

hi,
i am working in webdynpros where i have a scenario like this.
i have only one view and in that view i have taken three transparent contaienrs and each transparetn container has a table and other transparetn contaienr has some input fiields and text view fields.Now my question is when i am testing my aplkcation for the first time i do not want all the fields to be displayed first on the screen though there are on the same view.I just want only one transparent container to be seen and then when i click on continue i shoulld see the next transparent container and after that when i  fill the needed fields then continue i need to see the third container.Can you please tell me how to work with the visibility of the fields and also the containers..
Regards,
Madhuri Oruganti

hi ,
proceed like this :
1 create two  attributes of type WDUI_VISBILITY under the context node , say  attr2 , and attr2 .
2 bind these with visible property of ur tansparent containers  TC2 and TC3 .
3 u have to set the attribute to 01 to make ur UI invisible and vice versa 02 to make UI visible.
4 u have to initially make invisible ur tc2 and tc3
to set the attributes to 01 , press CNTRL + F7 , select the tab  read context node/attribute , select the corresponding attribute
read it and set it to 01 , using set_attribute method
*   set single attribute
    lo_el_cn_gddb->set_attribute(
      EXPORTING
        name =  `CA_GDDB`
        value = ' 01' ).
u can alternatively do it like this
wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible
5 In the onaction method of ur CONTINUE button , make tc2 visible by setting the attr2 to '02'
6 *similrly proceed for transparent container 3 , u can use the attribute WDY_BOOLEAN wid ur input field .using get_attribute method , check if all fields r filled , and make ur tc3 visible*
regards,
amit

Similar Messages

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • How to disable perticluar cell of the table on the screen,at run time?

    HI All,
    I am using table control on the screen.
    I have 5 field in the table control.
    out of which one is posnr.
    Now, if user doesnt enters the value of posnr then it should be created automatically.
    I have written the code for that ,but this perticlar cell (for which posnr is generated automatically ) should be disabled now.
    Can anybody tell me how can i do it?
    Thnx in advance.

    Hello Sanjay,
      Write a module inside the loop...endloop in the PBO of your screen. Inside the module, check the field and disable it by modifying the SCREEN table.
    loop at itab with control tctrl.
      module modify screen.
    endloop.
    module modify_screen output.
      loop at screen.
       if screen-name cs 'POSNR'.
       if itab-posnr is not initial.
         screen-input = 0.
       else.
         screen-input = 1.
       endif.
       modify screen.
       endif.
      endloop.
    endmodule.
    Regards,
    Manoj

  • Disable the table control

    Hi all,
    How to disable the table control. User cant enter anything to the table control. Code pls
    thks

    hi,
    in screen flow logic make new module disable....
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TAB1'
      MODULE tab1_change_tc_attr.
    *&SPWIZARD: MODULE TAB1_CHANGE_COL_ATTR.
      LOOP AT   itab
           INTO itab
           WITH CONTROL tab1
           CURSOR tab1-current_line.
        MODULE tab1_get_lines.
        MODULE disable.
    *&SPWIZARD:   MODULE TAB1_CHANGE_FIELD_ATTR
      ENDLOOP.
      MODULE status_1000.

  • How to capture a selected row in a table control in screen

    Hello,
        I have a table in a screen and hv data in it also from a table.Now i want if a user selects a row n clicks a display button , i should display the same fields in empty text fields created outside the table on the same screen.
    Rite now i m lookin for single selection but any help on multiple selection is also welcomed.
    I have given a line-selection element name as 'LSELECT1'  to the table in screen painter n have declared a variable also with the same name of type C(1) in my abap prog.But dont know wat to write in PAI now to caputure the selected row.
    THANKS

    Hi,
    Use ALV to display your table records from FM 'REUSE_ALV_GRID_DISPLAY'.
    In your internal table add a field with char1. This will show you the selected records by 'X' or ' '. Use this field in your layout like g_layout-box_fieldname = 'CHK'.
    Here i used CHK TYPE CHAR1 added to internal table to display. Now ur ALV will be showing u a column to select records. U can select multiple records also. Evry selected record will reflect into internal table by modifying value of CHK as 'X'. Add button to ALV by creating PF-STATUS and  add code its behavior when executed.
    DATA: BEGIN OF ls_ekko,
          ebeln TYPE ekko-ebeln, " this is my internal table showed in alv
          bukrs TYPE ekko-bukrs,
          bstyp TYPE ekko-bstyp,
          bsart TYPE ekko-bsart,
          lifnr TYPE ekko-lifnr,
          ekorg TYPE ekko-ekorg,
          ekgrp TYPE ekko-ekgrp,
          waers TYPE ekko-waers,
          chk(1)   TYPE c, " check field
          END OF ls_ekko.
    DATA it_ekko LIKE TABLE OF ls_ekko.
    DATA : gt_fcat    TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           g_layout   TYPE slis_layout_alv,
           gt_fcat1    TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           g_layout1   TYPE slis_layout_alv.
      g_layout-colwidth_optimize = 'X'.
      g_layout-box_fieldname = 'CHK'. " adding check field to alv
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
       i_callback_program                = sy-repid
       i_callback_pf_status_set          = 'PF_STATUS_ALV'
       i_callback_user_command           = 'USER_COMMAND_ALV'
      IT_EXCLUDING                      =
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
          is_layout          = g_layout
          it_fieldcat        = gt_fcat[]
          i_default          = 'X'
          i_save             = 'A'
        TABLES
          t_outtab           = it_ekko
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    *&      Form  PF_STATUS_ALV
        Subroutine for PF status
         -->RT_EXTAB   text
    FORM pf_status_alv USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'SELOBJ' EXCLUDING rt_extab.
    ENDFORM.                    "PF_STATUS_ALV
    Hope this help

  • How to display data in a table on the screen

    Dear members,
    I have to display data from the database in a table on my screen when the page loads.
    I have created the VO and the AM and made the mappings for the columns i want to display but the table on my screen is not fed when the page loads.
    I have created my "table" region with the columns to display but i don't know the code to implement in the processRequest of the AM and the VO to display thes results of the VO query when the page loads.
    Thanks in advance for your answers.

    Hi,
    In CO Process Req:
    import xxx.oracle.apps.pa.setup.server.ApplicationModuleAMImpl ;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ApplicationModuleAMImpl AM=(ApplicationModuleAMImpl )pageContext.getApplicationModule(webBean);
    AM.init();
    In AM:
    public void init()
    searchVOImpl Searchvo=getsearchVO1();
    Searchvo.executeQuery();
    Note:
    This is simple execute query.
    Regards
    Meher Irk

  • How to display a table data on Screen having a Table control

    Hi ,
    I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.

    Hi Gayatri,
      After creating table control do the following steps.
    1. In the flow logic section write the following code:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0200.
    LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
      MODULE ASSIGN_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0200.
    LOOP AT I_LIKP.
    ENDLOOP.
    I_LIKP is the internal table which is used to display table data in the table control.
    2. In Process Before Output, in the module STATUS_0200 write the following code:
      DESCRIBE TABLE I_LIKP LINES FILL.
      LIKP_DATA-LINES = FILL.
      In Process After Input, in the module USER_COMMAND_0200 write the following code:
      CASE SY-UCOMM.
       WHEN 'LIPS'.
        READ TABLE I_LIKP WITH KEY MARK = 'X'.
        SELECT VBELN
               POSNR
               WERKS
               LGORT
               FROM LIPS
               INTO TABLE I_LIPS
               WHERE VBELN = I_LIKP-VBELN.
        IF SY-SUBRC = 0.
         CALL SCREEN 200.
        ENDIF.
       WHEN 'BACK'.
        SET SCREEN 200.
      ENDCASE.
    In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
    MOVE-CORRESPONDING I_LIKP TO LIKP.
    So, Totally your flow logic code should be like this.
    TABLES: LIKP, LIPS.
    DATA: BEGIN OF I_LIKP OCCURS 0,
           VBELN LIKE LIKP-VBELN,
           ERNAM LIKE LIKP-ERNAM,
           ERZET LIKE LIKP-ERZET,
           ERDAT LIKE LIKP-ERDAT,
           MARK  TYPE C VALUE 'X',
          END OF I_LIKP,
          BEGIN OF I_LIPS OCCURS 0,
           VBELN LIKE LIPS-VBELN,
           POSNR LIKE LIPS-POSNR,
           WERKS LIKE LIPS-WERKS,
           LGORT LIKE LIPS-LGORT,
          END OF I_LIPS,
          FILL TYPE I.
    CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
              LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
    DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
      WHEN 'LIKP'.
       SELECT VBELN
              ERNAM
              ERZET
              ERDAT
              FROM LIKP
              INTO TABLE I_LIKP
              WHERE VBELN = LIKP-VBELN.
       IF I_LIKP[] IS INITIAL.
         CALL SCREEN 200.
       ENDIF.
      WHEN 'EXIT'.
       LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  assign_data  OUTPUT
          text
    MODULE ASSIGN_DATA OUTPUT.
    MOVE-CORRESPONDING I_LIKP TO LIKP.
    ENDMODULE.                 " assign_data  OUTPUT
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE STATUS_0200 OUTPUT.
      DESCRIBE TABLE I_LIKP LINES FILL.
      LIKP_DATA-LINES = FILL.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE USER_COMMAND_0200 INPUT.
      CASE SY-UCOMM.
       WHEN 'LIPS'.
        READ TABLE I_LIKP WITH KEY MARK = 'X'.
        SELECT VBELN
               POSNR
               WERKS
               LGORT
               FROM LIPS
               INTO TABLE I_LIPS
               WHERE VBELN = I_LIKP-VBELN.
        IF SY-SUBRC = 0.
         CALL SCREEN 200.
        ENDIF.
       WHEN 'BACK'.
        SET SCREEN 200.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    Save and Activate the program along with the screen in which you have included table control.
    Hope this will help you.
    Regards
    Haritha.

  • SELECT-OPTIONS in table maintenance generator screen

    Hi
    Is it possible to create SELECT-OPTIONS in table maintenance screen?
    My requirement is to allow the user to enter single Company code and Range of G/L Accounts in the Table Maintenance input screen. Please let me know.
    Thanks
    Abdul Hakim

    Hello Tamas,
    As a matter of fact we can add a custom selection-screen to the TMG screen & without manually modifying the TMG
    You can do so by using the [Event AA: Instead of the Standard Data Read Routine|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f56a9d111d1a5690000e82deaaa/content.htm].
    Please check the code snippet:
    DATA: gv_fldate TYPE s_date.
    * User-defined selection-screen
    SELECTION-SCREEN: BEGIN OF SCREEN 9000.
    PARAMETERS:     p_carrid TYPE s_carr_id OBLIGATORY.
    SELECT-OPTIONS: s_fldate FOR gv_fldate OBLIGATORY.
    SELECTION-SCREEN: END OF SCREEN 9000.
    *&      Form  sub_yvsflight_event_aa
    *       text
    FORM sub_yvsflight_event_aa.
      DATA: ls_temp_data TYPE yvsflight,
            lt_temp_data TYPE STANDARD TABLE OF yvsflight.
    * Call the user-defined selection-screen
      CALL SELECTION-SCREEN 9000 STARTING AT 25 10.
    * Populate the int. table TOTAL
      PERFORM get_data_yvsflight.
    * Delete the records which are not required
      LOOP AT total.
        ls_temp_data = <vim_total_struc>. "Copy to local struct.
        IF ls_temp_data-carrid NE p_carrid OR
           ls_temp_data-fldate NOT IN s_fldate.
          DELETE total. "Remove the record from the TOTAL
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "sub_yvsflight_event_aa
    BR,
    Suhas

  • Display 2 different structured internal tables in single screen using ALV

    Hi,
    I have two internal tables. Both has different structures. My requirement is to display both the internal tables in single screen using ALV Grid but NOT using OO ALV Grid display.
    Is there any way of spliting the Final ALV display screen into two with two different headers and details as shown below.
    Header1 for internal table 1
    Data of internal table 1
    Header1 for internal table 2
    Data of internal table 2
    Can anyone suggest a better way to display this.
    Regards,
    Senthil

    hi
    first think i can say ALV GRID means only for OO ALV it is not possible to display two I.T. data in singr report screen.
    better to use of the fm: REUSE_ALV_BLOCK_LIST_DISPLAY
    so that u can display both I.T. data in separate report list under single screen
    Check the example programs:
    BALVBT01 Testprogram ALV: Block list
    BCALV_TEST_BLOCK_LIST Program BCALV_TEST_BLOCK_LIST
    Regards,
    deepak

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • My daughter has disabled her iphone from lock screen. how do i fix it?

    my daughter has disabled her iPhone from lock screen.  how do I fix this?

    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • How to set a value to a disabled field in an B1 screen ?

    Hi,
    Can anyone tell me how to set a value to a disabled field in an existing screen.
    For example , I want to set a value to the Paid/Credited field in the Sales - A/R Invoice screen, which is a disabled field.
    I tried setting the field as enabled but it throws an error.
    Thanks in advance
    Mina

    It depends on the business process required for generating the invoice.  (What is this process just now?)
    I can think on quite a few ideas, but can't be sure if any of them will match your specific requirements.  I'll list a few here and see if any of them might work, or at least generate some new ideas for you. (Unfortunately you can't change an existing payment object to add an invoice to it at a later date, nor is the reconciliation process exposed through the SDK.  This limits your options a bit.)
    1) Is there a need for a separate delivery and invoice?  Would skipping the delivery process and using the standard Invoice + Payment screen work for you?  Stock would be issued, invoice created and payment matched directly to invoice without any work.
    2) This might apply if the invoice is simply a one for one match with the delivery.  Rather than just generate a payment in the delivery screen, generate the invoice and a payment at the same time.  The standard invoice screen will then show it as paid.  You can control the dates on the invoice raised through DI code.
    3) Where do you write the Paid Amount to?  How is it not available in the invoice screen?  Put it somewhere accessible and write it to the user field.
    John.

  • ABAP Webdynpro: Creating a table on webdynpro screen to enter new data.

    Hello Experts,
    Does anyone know, how to create a  table on webdynpro screen that can be used to enter new data in database?
    I have tried to create a Table UI element (with Standard Cell Editor as Input Field) but it is "Display only" if there is no data in the table. This means, while you can use it to modify the data if some data already exist, but you cannot use it to enter new data if no data already exist. What I am looking for is something similar to a Table Control (or Step-Loop) functionalty of a traditional (non webdynpro) SAP screen. How to achieve this in Webdynpro for ABAP?
    Thanks in advance.
    ABAPer

    Even if no data is not there,  you can pass blank work areas to table, so now table will blank rows where you can enter the data even if  previous data is not there.
    below is the sample code to get blank rows in table in  order to enter data.
      DATA LO_ND_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_N_EDUCATION1 TYPE WD_THIS->ELEMENT_N_EDUCATION1.
    navigate from <CONTEXT> to <N_EDUCATION1> via lead selection
      LO_ND_N_EDUCATION1 = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_N_EDUCATION1 ).
    DATA: ET_DATA TYPE WD_THIS->ELEMENTS_N_EDUCATION1,
            EW_DATA TYPE WD_THIS->ELEMENT_N_EDUCATION1.
      DO 10 TIMES.
        APPEND EW_DATA TO ET_DATA.
      ENDDO.
    get element via lead selection
      LO_EL_N_EDUCATION1 = LO_ND_N_EDUCATION1->GET_ELEMENT(  ).
      LO_ND_N_EDUCATION1->BIND_TABLE( NEW_ITEMS = ET_DATA SET_INITIAL_ELEMENTS = ABAP_FALSE ).
    now table will have 10 rows, here node name is N_education1.
    Thanks and REgards
    Srinivas

  • Suppress or Disable SAVE button in Approval screen (BBPSC07)

    Dear Experts,
    i would like to ask how to suppress or disable SAVE button in Approval Screen (BBPSC07). Thanks in advance..
    Edited by: Mochamad Affan Rasyidi on Oct 3, 2009 6:38 AM

    Hi
    If you mean disabling the Variant Save Option of the SAVE button in a Selection-Screen without getting rid of the button in the screen you can do this.
    FIELD-SYMBOLS <fs>.
    AT SELECTION-SCREEN.
      IF sy-ucomm EQ 'SPOS'.
        ASSIGN ('(RSDBRUNT)<SSCRFIELDS>-UCOMM') TO <fs>.
        <fs> = ''. 
    *  Logic you want to apply to the SAVE button
      ENDIF.

  • Table in selection screen...

    Dear Abapers,
                   Is it possible to get the table in selection screen,I want to give input from table in selection screen itself.Can anyone suggest some ideas pl?
    Thanks in Advance.

    Hello,
    Yes it is possible using Module pool programming. You can use table control for your multiple inputs.
    Then loop throgh the table control to populate table control data(input data) to your internal table for further use in PAI of the screen.
    Regards
    Arindam

Maybe you are looking for

  • Can I return my iMac to snow leopard

    Can I return my iMac from Lion to Snow Leopard?

  • 9IAS error when updating or deleting DAD

    Hello, I created a DAD and when i am updating or deleting the DAD i am getting the following error Changes not applied : Instance not found for fqn et="system";ei="0",et="DADList";ei="45",et="StandardDAD";ei="64". any suggestions, Thanks, Sudheer

  • Copy selection criteria from quotation to Sales order

    Hi Experts, I am creating a quotation. For the quotation line item, i am going to batch determination. Then i am clicking the SELECTION CRITERIA button. It gives me the batch characteristics screen. There i am entering the values to the characteristi

  • Saving as smaller PDF

    I am using Adobe Technical Communication Suite ( with Framemaker)and trying to create a PDF of a book of Framemaker documents. Note that from within the Book, I am just going up to the file menu and clicking Save book as PDF (I have also just tried S

  • Bootcamp windows 7 displays will not extend monitor only mirror?

    I have bootcamped my mac with windows (have done this before about 2 years ago and has worked fine) when i boot windows my second monitor turns on and mirrors the display but i can no-longer extend it like i use to any ideas?