Make a field obligatory by clicking on a check box

SELECT-OPTIONS:
            so FOR ztable-so OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-b02.
PARAMETERS: check1 TYPE char1 AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b2.
here my requirement is that so should be obligatory only when checkbox is clicked ie check1 = 'X'.
Plz help

Hi,
get off the obligatory addition from your select option and then write this.
<b>
At selection-screen output.
IF check1 = 'X'.
LOOP at screen.
   if screen-name = 'SO-LOW' OR
      screen-name = 'SO-HIGH'.
      screen-required = 1.
      modify screen.
   endif.
ENDLOOP.
ELSE.
LOOP at screen.
   if screen-name = 'SO-LOW' OR
      screen-name = 'SO-HIGH'.
      screen-required = 0.
      modify screen.
   endif.
ENDLOOP.
ENDIF.
</b>
Regards,
Wasim Ahmed
Message was edited by: Wasim Ahmed

Similar Messages

  • How can we make screen fields obligatory?

    hi, guru's
             how can we make screen fields obligatory while desiging a screen in screen painter (se51)?
    regards,
         satheesh.

    Hi,
    Go to attributes of the field in layout..
    go to program tab and check input field..
    and in drop downlist put required..
    Thats it..
    Reward points if it helps..
    Regards,
    Omkar.

  • Popup when clicking on a check box

    Hi All,
    I have created a report which has check boxes for each record. Now I need to do the following.
    1. When clicking on the check box cause a pop up box to appear
    2. This popup box will allow you to enter a date.
    3. The date is then populated into a field linked to that record
    I don't expect a answer but just some hints or links that would help.
    Thanks
    Nahim

    Thanks Pleiadian,
    I'll do that for the date field. I have another scenario as follows:
    1. You have multiple records with 4 check boxes on each record
    2. Each records represents a job.
    3. The check boxes allow you to accept ,reject,start or complete the job.
    4. When selecting "Reject" a pop up box needs to appear to allow the user to enter a rejection reason.
    Could you please give me some idea on how to get this done.
    Thanks for you help
    Nahim

  • Make Requisitioner Field OBLIGATORY in ME51N.

    Hi All,
    In Transaction ME51N and ME52N I want to make REQUISITIONER field Mandatory.
    for that I Chanegd the Attribute of the field AFNAM from screen 3328 of Function pool MEGUI to REQUIRED.
    In the preview of the screen its showing that field as Obligatory but in the Transaction ME51N and ME52N it is not reflected as mandatory.
    Can someone help on this please?
    Regards,
    Tejas

    I hope you are making mandatory in SE51 Layout ->doble click on field as keep as obligatory.
    but somewhere it is changed from mandatory to regular field ,look at code and somehwhere they written loop at screen.
    try to write down in PBO as
    loop at screen.
    if screen-name = ur field name.
    screen-input = '1'
    modify screen.
    endif.
    endloop.
    Reward Points if it is helpful
    Thanks
    Seshu

  • CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    Hello Bhupinder
    If the field is on a selection screen you can use the following coding:
    AT-SCREEN OUTPUT.
      IF ( <condition is true> ).
        LOOP AT screen.
          IF ( screen-name = 'my field name' ).
            screen-required = '1'.
            MODIFY screen.
         ENDIF.
        ENDLOOP.
      ENDIF.
    The same logic can be applied for dynpro fields (also code in a PBO module).
    Regards
      Uwe

  • Re- Single click in the check box ensure to select all check boxes

    Hi All,
    I have an issue to notify the urgency of the cart to the buyer while creating the cart.For that scenario we have a check box in the Basic data of shopping cart.I added the check box in the basic data. Now the  quote check box is available for all the line items.
    The requestor can select any check box in any line items,so whenever he selects the check box- automatically all the check box should get selected , if any of the check box get deselected then imediatelely all the check box in different line items also should get deselected.

    Hi Batchu,
    Thanks for your reply, See if you add any custom field it will come one by one in the basic data section. Adding one more check box doesnot work for this case.
    Moreover the problem is change to any particular line item can be captured in DOC_CHANGE_BADI but i cannot bring the same change to all line items (ie) If 3 rd line item check box is marked then immediately rest of the line item also should get marked.
    In the case of DOC_CHECK_BADI to identify the line on which the change happens is tough.
    SO thats is the problem for me to bring the logic in the code.
    Please if any one come across similar kind of issue please give your suggestion.
    Thanks,
    Sibi

  • Firefox security settings will not save any of my passwords even when i click on the check box for saving passwords. please help.

    When a pop-up comes up on the screen it will ask to save my password or not, well, I click on save password but it doesnt save any passwords even when I have the check box checked for remembering my passwords for certain sites it will not save any type of passwords at all. What am I doing wrong? I am using linux-mac OS user.

    Simply because I don't think about using this option that takes more time to close... I always close ALL my windows with the X.
    Firefox doesn't hang at exit also...
    Using Firefox / Exit doesn't always save the bookmarks also... let's say there is 80% chances it will but not always... I noticed the first time I open firefox after booting the computer... Bookmarks won't be saved... But if I close firefox and re-open it, then it might save it... 50% guess...
    I tried the safe mode, but since its closing firefox and re-open it... new saved bookmarks sometimes work, sometimes don't... it's pretty unstable...
    Hopefully there is a solution to this problem in a near update, annoying... else I will simply reverse to firefox 3.6.16

  • 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.

  • DYNAMICALLY MAKE A parameter OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

    Hi,
    Here is the code.
    parameters : p_abc type i.
    at selection-screen on p_abc.
    if <condition1>.
      if p_abc is initial.
        message e001 .
      endif .
    endif.
    Regards,
    Richa

  • Making a Text Field Required if User Checks box

    Hi,
    I am currently using Adobe Designer 7.0, and am trying to make a text field required if a user clicks on a check box above the text field.
    I have the following code for the check box (on Change) but it doesn't appear to be working!! Any suggestions??
    Thanks!
    if (this.rawValue == 1 ){
    TextField7.value = "User Entered - Required";
    else {
    TextField7.value = "User Entered - Optional";

    Hi Krisitan,
    you are trying to change the value of the field instead of it's accessability.
    Try this:
    if (this.rawValue == 1 ){
    TextField7.mandatory = "error";
    else {
    TextField7.mandatory = "disabled";

  • Making a field as not selectable(Readable) in dropdown box in HTML

    Hi All,
    I have one requirement like make a field as no selectable(readable) in dropdown box(combo) in HTML, Could you please any one of you help me out in this regard.
    If Drop down box contains values like blue,red,white..
    I want to make blue as not selectable from drown down list but it should be displayed in the drop down box.
    Thanks in advance.
    Thanks.
    Suresh Eluri.

    Add the disabled="true" tag in ur select box as shown below ....
    <select name="color" disabled="true">
    <option value="blue">Blue</option>
    <option value="red">Red</option>
    <option value="white">White</option>
    </select>
    Regards
    Rohit Kumar

  • How to update field when check box checked

    Hi All,
    I am using oracle Forms 10g,
    I have a block with 20 fields.So first 10 Fields are not updatable and remaining are Editable. So the user will enter the Data and changes the data.And check the Check box and save the data.
    Inside the save button i have written the update code.
    When the user Edit two or three records and click three Check box and click the save button only one record is getting entred in my custom table.
    This is my code please correct me where i went worng.
    This is my code inside my button
    declare
    Begin
    If :ASSEMBLIES_BLOCK.CHECK_IN_OUT='Y' THEN
    IF SHOW_ALERT ('UPDATE_ALERT') = alert_button1 THEN
    LOOP
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    STANDARD.COMMIT;
    fnd_message.set_string ('Transaction Saved Successfully');
    fnd_message.show;
    ELse
    NULL;
    END If;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    NULL;
    END;
    I have write a procedure in program unit.
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE
    Assemblies block is my current block that user enter the data and click the check box and save the data.
         Update XXTLX_PO_ASSEMBLIES set CASE_NO=nvl(:assemblies_block.CASE_NO,Null),
              PACKAGE_TYPE=nvl(:assemblies_block.PACKAGE_TYPE,null),
              PACKAGE_QTY=nvl(:assemblies_block.PACKAGE_QTY,Null),
              GROSS_WT=nvl(:assemblies_block.GROSS_WEIGHT,Null),
              OPI_DATE=nvl(:assemblies_block.OPI_DATE,Null)               
              Where ponum=:DETAIL_BLOCK.PO_NUMBER
              AND PO_LINE_NUM=:DETAIL_BLOCK.LINE_NUM          
              AND BOM_NO=:assemblies_block.BOM_NO;
    So when we click the multiple check box and save the data only one data is entering.
    Thanks & Regards
    Srikkanth

    I guess I don't understand.
    >
    ... my requirement is only the checked fields need to get updated. If in a block there are 10 records means ill update only the 3rd and 4th record and then click the check box.. and then ill click the save button.
    >
    Is this block a database block or a non-database block? If it is a database block then Oracle can handle updates to that block for you because if keeps tabs if a record was updated or not and you wouldn't need to do an UPDATE statement.
    If it is a non-database block, and you are looping through each record and only updating the items that have checkboxes next to them you would still have to go to the first record then step through each record and see if it needs to be updated. I am just guessing here because I don't think I have a good grasp on what you are doing, but you could change your XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGISTICS_UPDATE package to only update the items that have checkboxes next to them, by checking each checkbox:
    -- Check Case No
    if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set case_no = :assemblies_block.case_no
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Type
    if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set package_type = :assemblies_block.package_type
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Qty
    .

  • How can I make a check box active ONLY if another check box is activated?

    How can I make a check box active ONLY if another check box is activated?
    I have an editable PDF for a client, which contains text fields and check box fields.
    There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
    However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
    I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
    Regards
    Tony

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • Check boxes, Radio Buttons, and XML Field Order

    I am working with Adobe Designer Version 7.0. Hopefully this forum can still address my issues.
    I am creating a registration form that will often be submitted via email to us for processing. To help make the data both easy to transfer for us into our excel file  and to minimize the errors made by the people using the form, I need the form to be able to do a couple of things that I am having a hard time figuring out. My questions are the following:
    I have a list of 7 check boxes that each insert a dollar value into a seperate numeric field on the form. Each check box has a unique dollar value associated with it. Is there any way to design the form so the user can only choose one of the check boxes? I tried using radio buttons in a group, but if a user mistakenly chose the wrong radio button and then selected another button from that group, it would add to the total in the Application Fee field and not subtract out the previous amount. Below is the code i used for one of the check boxes.
    I have two numeric fields that the user must choose one or the other. Can I design those two fields (numHomes and numBuildings) so that if the you enter a value for one field, you cannot enter a value for the other field? Both fields are then calcuated in a seperate numeric field. Below is the code i used for the numeric field.
    I want to be able to take the data emailed to us as an XML file  when a user submits the results via email and directly paste it into our Excel file. To keep the cut and paste process simple, I want to make sure the order of the XML fields matches the order of the database fields so it can be done in one shot. Do you know how to organize the XML fields? They do not seem to correspond to the ordering found under the Hierarchy tab. Any thoughts on this?
    Thanks
    if (this.rawValue == 1) then
           numAppFee.rawValue = numAppFee.rawValue + 350;
    else
           numAppFee.rawValue = numAppFee.rawValue - 350;
    endif
    numHomes * 50 + numBuildings * 100 + numDups * 10

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Need Check Box Help using Acrobat Multiple Fields

    I am trying to get the check marks on this form to act as individual units that can be tabbed through (going down left column, then to right column). I used the "Place Multiple Fields" command to get all the check boxes in. Now, when I do my preview test run, if one box is checked more than one gets checked off someplace else in the form. I want them each work as their own unit and not be associated wiht the other boxes. Do I have to draw each one of these in individually to get this to work the way I want it to work? I am guessing that can't be true. This is a computer after all.I am betting it is an adjustment I need to make to the "Place Mulitple Field"  command when I put them in???? I know this one will be a simple answer witha simple soultion. I'm tap dancing all around it and just can't get it. The visual shoudl expalin it all. Thank you.
    I check on one box in the left column and it also checks other boxes in the right column or elsewhere.

    You need to give each separate check box a unique name. If check boxes have the same name and export value, they will behave that way. If several check boxes have the same name but unique export values, they will behave as a group, where only one in the group can be selected, very similar to how a radio button group normally would behave.

Maybe you are looking for

  • Installing BI Discoverer Plus for multidimensional OLAP ?

    Hi there, it seems I really need to ask for help after getting lost in the forest that Oracle Software is. I hope my question is not too bothersome to people on this forum. So here's the situation: I have an Oracle 11g database on a CentoOS server, w

  • Downgraded to Free but am being charged for Premium

    A few weeks ago, my spotify subscription was randomly downgraded to Free from Premium, however, the charges went through on my card for May, and I was just charged again on June 25th- yet, it's still Free. I've uninstalled, I've emailed a thousand ti

  • OID replication on different OS

    I cant find anywhere in the documentation where it confirms or denies if you can have OID replication (Fan-out or Multimaster) running on two different OS's eg one on Windows and one on UNIX. Has anyone tried this? knows if it works or not? Many than

  • Strange deadlock on an unrelated table

    Hi everyone, we're having a hard time with deadlocks, and we have no idea what's causing it (we have some guesses but no proofs). We have to "main" tables - DOCUMENTS and MESSAGES, that are not directly linked (there's no foreign key between them), a

  • Changing a background

    I need more information about changing a background.