How to make a field editable, this field is dependent on a checkbox.

Hi Frens,
On the selection-screen of a report, i have a field and a checkbox in one block only.I want to make this field non-editable if the checbox is unchecked and if the checkbox is checked than, the field shouls be editable.
Currently, it is happening but when i press enter after checking or unchecking the checkbox.
How can we do it without pressing enter.
Thanks and regards.

Hi Anshul
first describe your parameter like :
PARAMETERS p_chkb AS CHECKBOX USER-COMMAND chkb.
when user clicks on this checkbox
the event  AT SELECTION-SCREEN OUTPUT. will be triggered without touching enter button.
Than write a code like this to make P_OTHER parameter editable or non-editable :
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name EQ 'P_OTHER'.
      IF p_chkb EQ 'X'.
        screen-input = '1''.
      ELSE.
        screen-input = '0''.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Hope it helps,
Bulent
Edited by: Bulent Balci on Jul 6, 2010 5:23 PM

Similar Messages

  • How to make table as "editable false"

    Dear Forum,
    i am user of jDeveloper jClient/Swing .jpr.
    cutomer table having following attributes-
    1.cust_id (primary key)
    2.cust_name
    3.cust_add
    Suppose customerview bind with jTable1.
    Using ViewObjectEditor, i set "updateable never" for all fields.
    This show error, when data insert into table " cust_id as
    read only".
    Help me, Using jClient Binding how to make Table as "editable false".

    Overriding method prepareEditor() for new table:
    private JTable tableList = new JTable(){
    public Component prepareEditor(TableCellEditor editor, int row, int column) {
    // 1 and 2 column is not editable
    if(column == 0 || column == 1){ return null; }
    return super.prepareEditor(editor, row, column);

  • I want VBELN field but this field isn't

    Hai All,
    I query is I am creating Generic DataSource for VBAK table . i want VBELN field but this field isn't
    allowing to select, only hide field is allowing to select, how to select the VBELN field?
    Thanks & Regards,
    Suresh

    Hi,
    For your issue not seems the error correctly.
    It may be because of system error not recognizing correctly.
    You can edit this through Debugging also If you know how to edit the field VBELN and do.
    OR
    shutdown the system completely and rebuilt the Generic datasource once again on VBAK and see.
    Already we have std. datasource, why don't you use the standard extractor 2LIS_11_VAHDR for VBAK.
    Regards,
    Anand Tej.

  • How to make background image editable in a template

    I have built a template and would like to make the background
    image editable, but not the rest of the settings in the body style.
    (I'm not sure of my terminology yet.) The background image is
    currently set in the locked part of the page. I've tried to insert
    an editable region in the html code, as I cannot get to the
    background image by clicking on it or selecting on the Design page.
    But I am not allowed to change the code in this way.
    What is the best way to do this? I'm not sure how to make a
    div of this one setting. Or even if that is what is needed.
    Thanks for any suggestions.

    So to give a different background image to different pages using CSS.
    Create a CSS file in your Dreamweaver site.
    Link it to your pages.(in your head tag like so: <link href="path/to/stylesheet.css" rel="stylesheet" type="text/css" />)
    In your HTML code find the body tag and give it an id (like so: <body id="myUniqueID">)
    In your stylesheet write the following code:
    #myUniqueID{
    background: #color, url("path/to/image.jpeg") repeat);
    And now extrapolate the above steps and code to your other pages and voila, you now have different background images for your different pages.
    To learn more about CSS - visit your local web search engine.
    To see the power of CSS, check out http://csszengarden.com/ where the exact same HTML file is styled by different CSS stylesheets.

  • How to make an avatar like this,

    Hello Adobe Community, i'm new here, i have a big question. I want to know HOW to make an avatar like this:
    I want to know how to do that effect that who zoom in and zoom out etc. WITHOUT SNOWING, only that effect, if you can help me please!
    That zoom effect is AWESOME... send me a tutorial please!

    I thought you said you knew how to make animated gif.  A frame is the composite of the layers that have their visibility on for the frame a frame may be made using many layers. You use tools and filters on layers.You make frame using layers.
    Photoshop also supports any size layer. Layers can be  larger the canvas size can have image data out side the canvas.  Layer image data position above can be move relative to the canvas.  The Cloud logo animation has two layer one is masked is masked the mask is not linked to the layers image data it stationary over the canvas and is more on less a masks more foe the background canvas then the layer its on. The layer it is on image data is more off canvas then over canvas. Photoshop also notes layer position in a frame information, A layer potion can be change from frame to frame. I only create two frame for that animation.  The first and last frame, The first frame I had the top late image JJMACK high and off canvas to the left.  The last frame had it low and off canvas to the right. I then had Photoshop generate 138 frames between the two frames I created.  So Photoshop moved the top layer position across the canvas  left to right and high to low direction and the stationary layer mask masked it as if it were going through the background layers clouds.  The two layers are visible in all frames.

  • How to make jar file for this compilation method ?

    can any one tell me how to make jar file for this compilation
    D:\java\browser\IEInJava>javac -classpath jdic.jar;. IEInJava.java
    D:\java\browser\IEInJava>java -cp jdic.jar;. IEInJava
    *this is a compile code:-*
    D:\java\browser\IEInJava>javac -classpath jdic.jar;. IEInJava.java
    *and this is a run code:-*
    D:\java\browser\IEInJava>java -cp jdic.jar;. IEInJavanow how make JAR file ?

    Assuming IEInJava only uses classes inside the jdic jar, this is one way. D:\java\browser\IEInJava> jar cf yourjar.jar IEInJava.classThen to run it you would use D:\java\browser\IEInJava> java -cp jdic.jar;yourjar.jar IEInJavaAnother way would use the jar manifest file to specify the Main-Class and Class-Path.

  • How to make WD ALV Editable Fields (Cell) Mandatory (Obligatory) ?

    Hello Friends,
    I have requirement where I need to make WD ALV editable inputfield as Mandatory fields. I found out that there is no method available to do this.
    If anybody has any solution then please reply to this thread.
    Thanks,
    Chandra

    Hello Friends,
    Thanks for your reply. I just wanted to elaborate more on this so that others will benefit from this thread.
    I used method SET_STATE from class CL_SALV_WD_UIE_A_INPUT which is super class for class CL_SALV_WD_UIE_INPUT_FIELD.
    The code looks as below,
    Data:    lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field.
            CALL METHOD lr_input_field->set_state
              EXPORTING
                value = cl_wd_abstract_input_field=>e_state-required.
    well, I just forgot to check super class and its available methods...But got clear hint from Tulasi.
    Thanks to all.
    Chandra

  • How to make Sales group and office field mandatory in VA01 first screen

    hi gurus,
    can anybody tell me how to make Sales group and sales office mandatory field on VA01 tcode first screen. i have requirement to make it compulsary on the first screen otherwise they wont be able to goto next screen.
    will reward points for sure
    thanks
    mandy

    Hi! Mandy,
    Try using t.code SHD0, choose your transaction variant here, further choose your screen variant.
    Next select your screen variant and in the Menu bar select Variant> change with processing>Make repairs in foreign namespaces only if they are urgent> Continue(Enter)>again 'enter'>Object can only be created in SAP package>continue(enter)> Exit and save >This variant contains other screens, adopt these as well?>enter>enter> scroll down to the entry required by you make the necessary changes(Output only, invisible or required) and save.
    The system will prompt to assign a package and request enter the necessary values.
    Provide your feedback.
    Regards,
    PATHIK

  • How to make default values in selection field?

    hi,
          i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.
    DATA: LT_RANGE_TABLE TYPE REF TO DATA.
    CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
      EXPORTING
        I_TYPENAME                     =     'QENTST'
      RECEIVING
        RT_RANGE_TABLE           =     LT_RANGE_TABLE.
    CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
      EXPORTING
        I_ID                                     = 'QENTST'
        IT_RESULT                         = LT_RANGE_TABLE
        I_OBLIGATORY                 = ABAP_TRUE.
    What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?
    Thanks In Advance.
    Saurin Shah

    Hi,
    Refer this Article by Thomas on how to make default values in Select Options:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
    I hope it would solve your problem.

  • How to make a selection screen two fields obligatory

    Dear friends...
       I wish to know how i make two fields obligatory in the selection screen
    like
       select-options  Po_Num for  ekpo-ebeln obligatory.
       select-options  Po_Date for  ekko-aedat.
       select-options  Material for  mara-matnr.
    in the above example i am looking for po_num and po_date both obligatory but if i dont enter data in the po_num, po_dat becomes obligatory and po_dat has no data entererd po_num is obligatory. i wish to know how i achieve single field act as a obligatory in absence of another field. please help in this regards..
    thanking you,,,
    regards.
    Naim

    REPORT  ZMM_COMP_POS  no standard page heading line-size 225
    tables:  ekko, ekpo, mara.
    data: begin of i_ekko occurs 0,
          ebeln like ekko-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekko-aedat,
          waers like ekko-waers,
          ernam like ekko-ernam,
          end of i_ekko.
    data: begin of i_ekpo occurs 0,
          ebeln like ekpo-ebeln,
          ebelp like ekpo-ebelp,
          matnr like mara-matnr,
          aedat like ekpo-aedat,
          waers like ekko-waers,
          menge like ekpo-menge,
          meins like ekpo-meins,
          ernam like ekko-ernam,
          lgort like ekpo-lgort,
          netwr like ekpo-netwr,
          recd(16) type p decimals 3,
          rec_val(16) type p decimals 3,
          end of i_ekpo.
    data: lines type i.
    data :itab_output like i_ekpo occurs 0 with header line.
    data: itab_output3 like standard table of itab_output .
    data  data.
    data  total like sy-dbcnt.
    data  recd(16) type p decimals 3.
    data  rec_val(16) type p decimals 3.
    data : it like i_ekpo occurs 0 with header line.
    selection-screen begin of block b1 with frame title text-010.
    select-options Po_Num for ekpo-ebeln .
    select-options Po_Date for ekko-aedat.
    select-options Material for mara-matnr.
    selection-screen end of block b1.
    at selection-screen.
    if po_num[] is initial
      and po_date[] is initial.
    message e001(00) with 'Make at least one entry'.
    endif.
    start-of-selection.
    if  PO_NUM is initial and
         Po_Date is initial or
         Material is initial.
             select ebeln ebelp matnr
                    menge meins netwr
                    aedat
                    from ekpo
                    into corresponding fields of table i_ekpo
                    where ebeln in Po_Num.
    endif.
            loop at i_ekpo.
                  select ebeln aedat waers ernam
                         from ekko
                         into corresponding fields of table i_ekko
                         where ebeln in Po_Num.
                  if sy-subrc = 0 .
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
                     modify i_ekpo transporting ebeln aedat waers
                                                ernam
                                                where ebeln = i_ekko-ebeln.
                     clear i_ekko.
                   endif.
               endloop.
               describe table i_ekpo lines lines.
               if lines le 0.
                  message e017(zk).
               endif.
          select ebeln ebelp matnr
                 menge meins netwr
                 werks
                 from ekpo
                 into corresponding fields of table i_ekpo
                 for all entries in i_ekko
                 where ebeln = i_ekko-ebeln .
          sort i_ekpo by ebeln ebelp.
          sort i_ekko by ebeln.
          loop at i_ekko.
            read table i_ekpo with key ebeln = i_ekko-ebeln.
            if sy-subrc = 0.
                     i_ekpo-aedat = i_ekko-aedat.
                     i_ekpo-waers = i_ekko-waers.
                     i_ekpo-ebeln = i_ekko-ebeln.
                     i_ekpo-ernam = i_ekko-ernam.
               modify i_ekpo transporting ebeln aedat waers
                                          ernam
                                          where ebeln = i_ekko-ebeln.
           endif.
        endloop.
      describe table i_ekpo lines lines.
      if lines le 0.
        message e017(zk).
      endif.
      loop at i_ekpo.
       write:/1 sy-vline,
           (5) i_ekpo-ebeln left-justified ,sy-vline,
           (10) i_ekpo-ebelp left-justified ,sy-vline,
           (15) i_ekpo-aedat left-justified ,sy-vline,
           (18) i_ekpo-ernam left-justified ,sy-vline,
           (23) i_ekpo-matnr left-justified , sy-vline,
           (27) i_ekpo-menge UNIT i_ekpo-meins left-justified , sy-vline,
           (29) i_ekpo-meins left-justified , sy-vline,
           (31) i_ekpo-netwr CURRENCY 'INR' left-justified ,sy-vline,
           (33) i_ekpo-waers left-justified ,sy-vline.
    endloop.
       write:/(743) sy-uline.
    top-of-page.
        write:/30  'ESSAR CONSTRUCTIONS LTD.' color 6 inverse.
        write:80 'DATE :' color 6 inverse, sy-datum  color 6 inverse.
        new-line no-scrolling.
        write:/30 'PO Details.' color 7 inverse.
         write: /(743) sy-uline.
      format color col_heading on.
         write:/1 sy-vline.
         write: (5) 'PO no.',sy-vline,
               (10) 'Item no.',sy-vline,
               (15) 'PO Date' color 1,sy-vline,
               (18) 'PO Created By.',sy-vline,
               (23) 'Material No.', sy-vline,
               (27) 'PO Quantity', sy-vline,
               (29) 'PO Unit', sy-vline,
               (31) 'PO Value',sy-vline,
               (33) 'Currency' , sy-vline.
        write:/(743) sy-uline.
        format reset.

  • How to make a column as Password field?

    Hi,
    I need to change the column as "Password" field.
    I.e. the data should be shown as "******" in DB Also.
    How to make this happen in Table column?
    Kindly guide / help me on this.
    Thanks,
    Orahar.

    Orahar wrote:
    Dear Kumaran,
    Thanks.
    Can you explain me about the view which I need to create to displays the column value as stars ("*****")?
    Thanks,
    Orahar.
    SQL> create table tbl_test (id number, name varchar2(10));
    Table created.
    SQL> insert into tbl_test values(111,'test');
    1 row created.
    SQL> select * from tbl_test;
            ID NAME
           111 test
    SQL> create or replace view vw_test as
      2  select '*****' id, name from tbl_test;
    View created.
    SQL> select * from vw_test;
    ID    NAME
    ***** test
    SQL> insert into tbl_test values(2,'test2');
    1 row created.
    SQL> select * from vw_test;
    ID    NAME
    ***** test
    ***** test2
    SQL>

  • How to Make u0091Contactu0092 Profile a required field in BP Maintenance?

    We are using "status" tab in the Tcode: /nBP- BP Maintenance and trying to do following two things:
    1.     Make ‘Contact’ filed as REQUIRED fields in BP Master in under ‘Status’ tab, and
    2.     Restrict one or more communication method(s) as ‘Disallowed’ while others remain Allowed. Here is the scenario: BP chooses NOT TO BE CALLED on Phone but agrees to receive Letters and/or Emails.
    We believe this would require development, but wonder if there are other options, or if anyone has done something similar and would be willing to share?
    Thanks in advance,
    Purush Chitkara

    Hi,
    Sort Key can be made as mandatory through SPRO settings.
    SPRO > Financial Accounting New > Accounts receivable and accounts payable > vendor accounts > Master Data > Preparations for creating vendor master data > Define Account groups with screen layout > Double click on your account group > Double Click on company code data > Double clcik on account management  > Make the field sort key as required entry.
    Regards,
    Prabu

  • How to make Plant as an optional field in ME21N

    Dear Experts,
    Is it possible to make plant as an optional field while creating a PO(me21n)? If so then please suggest the T-code and procedure.
    Thanks and Regards,
    Manish

    Dear All,
    I completely agree to all of you that Plant is mandatory, but since I am procuring with reference to WBS element, plant is already picked up. I am trying to avoid the error of assigning 2 plants to same PO.
    Please advise,
    Thanks and Regards,
    Manish

  • How to make a pdf editable and save for print

    Hi,
    I just joined Adobe Cloud and it's been a while since I have used acrobat. I have made a brochure that I need a couple of things to be editable on. See below. I need the two areas highlighted in red to be editable for different locales/people. My questions are:
    A) I assume Acrobat is the way to do this. I also have FormsCentral if that works better. Can someone tell me how to make these two fields editable?
    B) What program do they edit with?  Acrobat Reader?
    C) How do they save and output it for print?
    Thank you,
    John

    This is not about what Acrobat can or can't do - and you just said they won't have it anyway. It's about the limitations of PDF. A proper solution is to develop (at some expense) a server side PDF generator that takes the user's input and makes them a custom PDF. I don't know if you can just subscribe to a service to do this. If you aren't going to have them use Acrobat, form fields are your only option. Be sure they (and you) understand the limitations and that they must use Reader (not one of the many other PDF viewers). Be sure you understand about reader enabling: many versions of Reader CANNOT SAVE filled in files unless they are specially prepared.
    So back to your original question: how do you make the fields editable: with the Forms function in Acrobat. You may have better luck in the Acrobat Forms forum.

  • How to make certain rows editable in hierachy alv

    HI,
    i have called one alv function module where i have done certain fields editable by making fieldcatalog-edit = 'X' and fieldcatalog-input = 'X'.But i have to make the selected rows (based on checkbox in the output list) editable.any idea?

    Hello Priya,
    1) If u want to make fields of an ALV to be editable based on certain conditons then see the following code.
    First create an extra field in ur internal table.
            celltab TYPE lvc_t_styl,
    After that pass this field to the layout.
      gw_layout-stylefname = 'CELLTAB'.
    Here the layout structure is defined as
    gw_layout TYPE lvc_s_layo
    now based on the condition u can set the fields editable or non editable.U can check the following code.
      DATA: ls_celltab TYPE lvc_s_styl.
      ls_celltab-fieldname = 'CHK'.
      ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
      MODIFY gw_final-celltab FROM ls_celltab
      TRANSPORTING style
      WHERE fieldname = ls_celltab-fieldname.
      IF sy-subrc NE 0.
        INSERT ls_celltab INTO TABLE gw_final-celltab.
      ENDIF.
    Now if ur using OO-ALV then pass the layout to the method.
    If ur going by Function modules then u need to call the following function module.
      gw_layout-stylefname = 'CELLTAB'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout_lvc            = gw_layout
          it_fieldcat_lvc          = gi_fieldcat
        TABLES
          t_outtab                 = gi_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    2) If u want to read the changed contents from ALV grid back to ur program then use the following function modules.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = l_ref1.
          CALL METHOD l_ref1->check_changed_data
            IMPORTING
              e_valid = lv_valid.
    Shafi

Maybe you are looking for