Want check box checked as default for a newly added subscreen in ME21N

Hi Guys,
             I have added a subscreen in ME21N with one field with check box.
When I enter ME21N I should get that checkbox CHECKED automatically.
How to do this.
And one more thing is when manually putting checkmark,when I press enter that check mark is getting deselected.How to overcome this???
I have used screen exit
                                  SAPLXM06 
                                  screen: 0101   for this subscreen.
Thanks in Advance.
Prasad.

Hi,
the deselection problem could be caused of an incorrect name of that screen field name. You should check in screen painter if that check box field name is the same name as your data object (e.g. gv_checkbox) .
Unfortunately it is not possible to define default values within Screen Painter. You have to do this in PBO.
Regards
Mark-André

Similar Messages

  • In MIGO quantity & Item OK check box should be supressed for 543 movement

    Dear all,
    I am doing Subcontracting goods receipt. when the item OK check box for the PO item with movement type 101 is checked, it automatically applied for the line items with movement type 543.
    But the quantity & Item OK check box can be edited for the line items with movement type 543. I want to suppress the same only for line items with movement type 543.
    So the quantity consumed of the send items will be same as per BOM quantity.
    How to do this?

    Hi,
    In SPRO- MM-Inventory Management-Setting for Enjoy Transaction-Setting for Good Movement - Field selection per Mvt type ,add the neccessary fields and select the radio button "Suppress"
    Thanks and Regards,
    Maheshwari

  • How to add get the field name for a newly added site column.

    I have the following:-
    Enterprise wiki site collection inside SharePoint server 2013.
    I added a new site column of type managed metadata.
    I opened the enterprisewiki.aspx page layout using the SP designer, to add the newly added site column to it.
    But I have noted that to add any site column I need to know the field name , for example the default wiki category column is referenced inside the page layout as follow:-
    <Taxonomy:TaxonomyFieldControl FieldName="Wiki_x0020_Page_x0020_Categories" EmptyValueDescriptionForTargetTemplate="<%$Resources:cms,enterwiki_nocategories_assigned%>" DisableInputFieldLabel="true" runat="server"/>
    <b>
    So my question is how I can know the field name for my newly added site column?
    Thanks in advance for any help.
    Regards

    Hi,
    The “FieldName” should be the internal name of the column, you will find it at the address bar at the “Site Columns”->”Edit Column” page:
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Specify the location for any newly added column

    Hi friends,
    Is it possible in Oracle to specify the location for any newly added column. why it always goes to
    the last , I want to add a new column at first.
    If it is possible and anybody knows please tell me.
    Thanks & Regards
    Chandrakishore Bankhede

    Hi Chandrakishore,
    Not exactly a spatial question but the answer is "no" as far as I am aware.
    TOAD for Oracle has a nice feature called "Rebuild Table" that provides a GUI interface for redefining and moving columns around. Basically it generates all the required DDL for you - it saves all the constraints, indexes, triggers, etc. Then it creates a new table with your changes, renames the old table with a suffix and replaces all the constraints, indexes, triggers on the new table. Most helpful.
    However - see this makes the post spatial in nature :) - for as long as I have been around this feature of TOAD has not been able to handle SDO_GEOMETRY columns - failing with "ORA-22917: use VARRAY to define the storage clause". The good news is the new TOAD 10 now is free of this bug.
    This is not meant to be a commercial for TOAD, I just don't know of any other product with this feature. Others may know of similar things perhaps or you can write a function yourself in PL/SQL.
    Cheer,
    Paul

  • Setting a Primary Key for a newly added Column

    Is it possible for setting a primary key for a newly added column in a table having records?

    Hi,
    km**** wrote:
    oh if the table has records then it is not possible ah...No, the table can have rows at the time you add the Primary Key constraint. Solomon was just saying that the column(s) that you are making into the Primary Key must already have unique values. A Primary Key can not be NULL, so you must do the steps in this order:
    (1) ALTER TABLE to add the column(s) (if this hasn't been done already)
    (2) UPDATE the table, to put unique values in all rows for the Primary Key column(s)
    (3) Add the PRIMARY KEY constraint
    You need to do step (2) before you do step (3)

  • Check box  in ALV Header for selection

    Hi,
    I'm working on ALV in ABAP web dynpro. We have a requirement to check some rows and based on the selection a FM should be executed.
    I've used checkbox in the column for selection. Is there anyway to use a check box (or any element)  in the column header and use that to select all.
    I checked the ALV column header class documentation but didnt find anything that allows UI elements in header.
    Any workaround to tackle this?
    Thank you,
    Vasu

    Hi Thomas,
    I've already done that (in toolbar).  Checking if there is some hidden option that I missed to do this. Looks like there isn't

  • Hiding text box based on check box checking

    Hello,
    I have a jsp in which based on whether the check box is checked or unchecked I want to hide or show a text box. I am including the text box in a div tag & calling a javascript function to set the style of the div to hidden or shown based on whether the check box is checked or not. although i am getting the correct values in the alerts the text box is not getting hidden.
       <td class="label"><label for="chk1"><gbms:message key="lblSearchforDeletedCustomer"/>:</label></td><td class="input">
                  <html-el:checkbox property="chk1" value="N" tabindex="3" onclick="javascript:checkboxClicked(document.forms['formCustomerOrVehicleMaintenance'])" onfocus="fnShowError(document.formCustomerOrVehicleMaintenance.chk1);"></html-el:checkbox> <gbms:message key="chek"/> 
                                 </td>
                                 <div id="delDateDiv" style:hidden>
                            <td class="label"><label for="txtDeleteDate"><gbms:message key="lblDeletedAsOf"/>:</label></td><td class="input">
                 <html-el:text property="txtDeleteDate" size="6" maxlength="40" tabindex="3" onchange="fnChanged()" onfocus="fnShowError(document.formCustomerVehicleMaintenanceDelete.txtDeleteDate);"></html-el:text> <a href="#" onclick="cal1xx.select(document.forms[0].txtDeleteDate,'anchor1xx','MMddyy'); return false;" name="anchor1xx"><img src="<%=request.getContextPath()%>/css/common/calendar.gif" border="0" style="cursor: hand"></a><gbms:help jsp="customerVehicleMaintenanceDelete" module="admin" languageCode="<%=request.getLocale().getLanguage()%>" field="DeletedAsOf"/>
                        </td></div>javascript function being called..
    function checkboxClicked(aThis)
                        var aform = document.forms['formCustomerOrVehicleMaintenance'];
                        var aDiv = document.getElementById('delDateDiv');
                        alert(aDiv.style.visibility);
                        alert(aDiv.innerHTML);
                        alert(aform.chk1.checked);
                        if(aThis.chk1.value == true)
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = false;
                             aDiv.style.visibility = 'visible';
                        else
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = true;
                             aDiv.style.visibility = 'hidden';
                   }

    in my javascript function the value returned is true when checkbox is checked & false when it is unchecked. visibility is also giving correct value in the alert. but still field is not hiding
              function checkboxClicked()
                        var aform = document.forms['formCustomerOrVehicleMaintenance'];
                        var aDiv = document.getElementById('delDateDiv');
                        alert(aDiv.style.visibility);
                        alert(aform.chk1.checked);
                        if(aform.chk1.checked)
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = false;
                             aDiv.style.visibility = 'visible';
                             alert("inside if");
                             alert(aDiv.style.visibility);
                        else
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = true;
                             aDiv.style.visibility = 'hidden';
                             alert("inside else");
                             alert(aDiv.style.visibility);
                   }

  • Check Box checked

    I am developing a small program in VB 2008. In my application there is one MDI form its child forms. On MDI form ToolStrip there is one button "Save". In child Form "Child1" there one Panel "Panel1" in which 20 check box are
    there from "cb1 to cb20". After selecting few of the check boxes when I press Save button of MDI Toolstrip I need to save the names of check boxes in a table with comma delimiter. But I am not getting the desired out put from the code what I have
    written. the code sample in given below
    Update_Record in called form the button click even of SAVE button and I is a public variable
    Public Sub Update_Records()
    Dim X
    As
    Integer
    For X = 1
    To 20
                I = X         
    Dim Str
    As
    String =
    "CheckBox" &
    CStr(X.ToString)
    cb=DirectCast(Me.Controls(Str),
    CheckBox)
    AddHandler Cb.CheckedChanged, cb_CheckedChanged(Cb, Cb.CheckStateChanged)
    If Cb.Checked
    Then
                    MsgBox("Checked")
    End
    If
    Next
    End
    Sub
    Public
    Sub cb_CheckedChanged(ByVal
    sender As
    Object,
    ByVal e
    As EventArgs)
    If Cb.Checked
    Then
                Rcpt &= I
    End
    If
    End
    Sub

    After selecting few of the check boxes when I press Save button of MDI Toolstrip I need to save the names of check boxes in a table with comma delimiter.
    You indicate that the expected result will be a comma-delimited string, but you aren't adding the commas.  The code to create a comma-delimited string would be
                Rcpt &= I & ","
    but if you wanted the list of control names, not just the numbers, it would be
                Rcpt &=
    "CheckBox" &CStr(I.ToString)
    That would work if Rcpt is a global variable that you can access to save to the table.  However, the real problem is that the code to test the checkboxes is in the CheckChanged event handler, which isn't relevant to the Save process.  CheckChanged
    is invoked when the user clicks the checkbox to change its value - that's not happening here.  Your code should be
    Public Sub Update_Records()
    Dim X As Integer
    For X = 1 To 20
    Dim Str As String = "CheckBox" & CStr(X.ToString)
    cb=DirectCast(Me.Controls(Str), CheckBox)
    If Cb.Checked Then
    Rcpt &= cb.name & ","
    End If
    Next X
    End Sub
    As good practice you should declare UpdateRecords as a function and return a result, rather than updating a global variable.  It also seems like poor design to record the names of controls on the form - the application should be indifferent to something
    internal like the names you have chosen in the designer.

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

  • I/O field grayed out after check box checked ( Dynpro)

    Hi ,
    I have dynpro  dialog screen  with several check boxes linked with input/output field
    When check box is checked the I/O field is editable when check box is empty I/O field should be grayed out.
    I am trying to find the way how checking the check box can trigger the change of attribute of I/O field.
    The IO field should be gray out after checking check box without hitting enter or any other button.
    Please advice
    Chris

    Hi ,
    Thank you for your answer. I was missing Functional code of my check boxes.
    Now i have still issue my I/O field do not turns in gray ( only output) In loop
    I dide like you said ( this is example from my PAI module user-command)
    when 'CB1'.
          loop at screen .
            if screen-name = 'LT_FORMAT_IO'
              and lt_format_cb is initial.
              screen-input = '0'.
              screen-invisible = '1'.
              modify screen.
            endif.
          endloop..
    Once screen is displayed again , the IO field stll remains non grayed out.
    Please advice
    Chris

  • Freezing document unless check box checked

    I need to stop a user from continuing to fill out a form unless they check a required check box.
    Where can I find out how to do this?

    if check_box = 'X'. " then it should only send messages not posting
      call functiona module for BAPI BAPI_ACC_DOCUMENT_CHECK.
    returns bapiret2 ..here messages will be there
    else.
    call function for post. you may use BAPI BAPI_ACC_DOCUMENT_POST.
    this one also returns messages. success and error
    endif.

  • Grey out the input field as soon as check box checks on selection screen!

    HI Experts,
    In my report selection screen I have input_field1, input_field2, check_box1. Both input fields are mandatory fileds.
    My requireemnt is: If user as soon as checks the check_box1, the first input_field1 must go grey out (not allow allow to enter)!
    So I have assigned a user command to check box and assigned a modif-ID to the input_field1
    and wrote a LOOP AT SCREEN code as below,
    PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1 TYPE c LENGTH 10,
                p2 TYPE c LENGTH 10,
                p3 TYPE c LENGTH 10.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,
                p5 TYPE c LENGTH 10 MODIF ID bl2,
                p6 TYPE c LENGTH 10 MODIF ID bl2.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all <> 'X' AND
           screen-group1 = 'BL2'.
           screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    But,am getting an error message saying "Enter all required fields"
    Pls. let me know how to fix this?
    Thank you

    I assume P1, P2 and P3 are marked as obligatory.
    You cannot achieve that. But here is an alternative to achieve a similar functionality.
    AT SELECTION-SCREEN.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm = 'SJOB' OR sy-ucomm = 'PRIN'.
      IF p1 is INITIAL or P2 is INITIAL or P3 is INITIAL.
        MESSAGE 'Enter all required fields' TYPE 'E'.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all = 'X' AND
           screen-group1 = 'BL2'.
          screen-input = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.

  • Badi for Customer Master adding Subscreens

    Hi,
    I am working on BADI for Customer master. Basically I am adding Subscreen for Z Table Fields, So I got the screen and designed the screen.
    I have written some code
    Data:   txtCMSDP(40) type c, “ which I declared in Subscreen text field name
            txtCMSBL(40) type c, “ which I declared in Subscreen textfield name
            txtCustomerNumbercms(7) type c.
    Data:   wa_zdt_sm_kna1_attr type zdt_sm_kna1_attr,
            it_data             type table of zdt_sm_kna1_attr.
      select * from zdt_sm_kna1_attr into corresponding fields of table it_data where kunnr = i_kunnr.
      loop at it_data into wa_zdt_sm_kna1_attr.
        txtCMSDP               = wa_zdt_sm_kna1_attr-dpguid.
        txtCMSBL               = wa_zdt_sm_kna1_attr-blguid.
        txtCustomerNumbercms   = wa_zdt_sm_kna1_attr-cms_num.
      endloop.
    Here I have only Import parameter I_kunnr but I don’t have Export parameters for the field’s dpguid, blguid and cms_num
    I am using BADI customer_add_data and Method READ_ADD_ON_DATA.
    I need to display the data in Subscreen form the Ztable , Please help some sample code for Display values in subscreen fields.
    Thanks in Advance
    vanaja

    Hi Vanaraja,
    You are very close . But chosen a different BADI. You need to implement BADI 'CUSTOMER_ADD_DATA_CS' where you will get a Tab strip. Display your data on the tab strip either as label or as input fields greyed out.
    Pls reward if useful.
    Regards,
    Laxman Nayak.

  • Hot Synch does not work, Treo 755p, USB, 17" Mac Pro Laptop, even with RevD installed and Allow other HotSynch applications preference check box checked

    Hi,
    I am a long time Palm enthusiast who is frustrated.  No more Palm products for me or anyone I speak to until I solve this problem.  Someone at Palm should be paying attention to their long time cusotmers.  I bought Palms in 2002 and 2003.
    The support literature coming with two Treo 755p that I bought was so poor that never saw the fine print that there was three months of support if I registered the devices.  The registration page does not let me register.  All the fields are ghosted after I put in the serial number.  I bought one in June 2008 and the other in early 2008.  So never registered and can get no help from Palm now it seems.
    So beside that gripe below is the problem issue info.
    I can't get a Verizon Treo 755p to USB cable Hot Synch with my daughters 17" Mac Pro Laptop.  It is using OS 10.5x  She lives in another city so I am trouble shooting this remotely.
    Did - Revd Palm upgrage has been installed.
    PalmDesktopMac421Revd.dmg (17MB)
    http://kb.palm.com/SRVS/CGI-BIN/WEBCGI.EXE/,/?St=4518,E=0000000000255177998,K=6239,Sxi=3,case=obj(33...
    Did in advanced settings on the Treo select in the Synch preferences allow other Hot Sync applications.
    That process worked however on my own Treo 755p Verizon as below:
    After much work, hours over several months, I got my my Treo 755p Verizon to Hot Synch with a QuickSilver desk top Mac running os 10.5x. 
    Did the RevD upgrade.
    Did in advanced settings on the Treo select in the Synch preferences allow other Hot Sync applications.   Otherwise the Wireless Synch feature prevents a Hot Synch.
    Once those both were done than Hot Synch works fine, and Wireless Synch works fine and does not interfere.
    The Wireless on both PDAs is scheduled to be removed on both Treos due the economy on Feb. 4th, so I would like the HotSynch to be working so her Treo is backed up.
    Thanks so much to anyone who replies to help out.
    Best
    Post relates to: Treo 755p (Verizon)
    Post relates to: Treo 755p (Verizon)
    This question was solved.
    View Solution.

    Works now, she had created a user ID as prompted when installing the HotSynch Software, but it was not the same name of the Treo 755p.  The default ID was the one she from installing the software, so it showed nothing in address or contacts, but when she switched to the Treo ID than all her stuff was there.
    Post relates to: Treo 755p (Verizon)

  • Logic for a report with check boxes

    Hi All ,
    I m writting a report , I need to put FOUR check box in this report ,
    For example you  can say Check1 ( material1)
                                           Check2 ( material2)
                                           Check3 ( material3)
                                           Others
    In selection critriea I defined one select option ( eg materail )
    Now I have to diplay data accordingly checkboxes
    If Check box '<b>check1'</b> is selected -list must contains only material1
    If Check box '<b>check2'</b> is selected -list must contains only material2
    If Check box '<b>check3</b>' is selected -list must contains only material3
    If Check box '<b>check1</b>' or any other one is  selected -list must contains  material1 and other materail as per other selected check box .
    If Check box<b> others</b> is selected then all other fields ( except the selected check box ) are the out put of this report .
    IF you need more explaination of my query , plz let me know .
    Regards ,
    Narender

    REPORT ZTEST3 line-size 400.
    tables : mara.
    data i_mara like mara occurs 0 with header line.
    data i_marc like marc occurs 0 with header line.
    data i_mcha like mcha occurs 0 with header line.
    data i_mkol like mkol occurs 0 with header line.
    select-options: s_matnr for mara-matnr.
    parameters : p_check1 as checkbox.
    parameters : p_check2 as checkbox.
    parameters : p_check3 as checkbox.
    parameters : p_check4 as checkbox.
    start-of-selection.
    if p_check1 = 'X'.
    select * from mara into table i_mara where matnr in s_matnr.
    loop at i_mara.
    endloop.
    endif.
    if p_check2 = 'X'.
    select * from marc into table i_marc where matnr in s_matnr.
    loop at i_marc.
    endloop.
    endif.
    if p_check3 = 'X'.
    select * from mcha into table i_mcha where matnr in s_matnr.
    loop at i_mcha.
    endloop.
    endif.
    if p_check4 = 'X'.
    select * from mkol into table i_mkol where matnr in s_matnr.
    loop at i_mkol.
    endloop.
    endif.

Maybe you are looking for