How to uncheck a checkbox using Screen Variants?

Hi Masters!
Anybody knows how to uncheck a checkbox that is already checked by default?
I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn't work), but at runtime it always shows the checkbox checked.
At the same transaction there is a unchecked checkbox by default witch I can check it with a screen variant, but somehow I can't do the other way around...
Any suggestions?
Many thanks in advance,
José Omar

I checked the code and found something interesting. The
variable I'm trying to uncheck is GV_WITH_CONTACT_PERSON.
It's declaration:
DATA: GV_WITH_CONTACT_PERSON TYPE XFELD VALUE 'X'.
At the initialization of the program (at the first screen module):
PROCESS BEFORE OUTPUT.
MODULE INITIAL_STATE.
And inside the MODULE INITIAL_STATE there is also:
MOVE 'X' TO GV_WITH_CONTACT_PERSON.
So there are places in the code that the checkbox is checked.
Now we get another problem. I don't now when the values set at a screen variant are inserted in the screen. Is it possible that the code itself is overwriting the value set with a screen variant? Or is this not possible at this point in the code?
Many Thanks,
José Omar

Similar Messages

  • Actual GI date mandatory using screen variant SHD0

    Hello All,
    I have a requirement to make the Actual GI Date as mandatory field in Vl01n.
    I am using  screen variant in SHD0
    TRANSACTION CODE -- VL01N and
    SCREEN VARIANT --- BUS2124_DEC_CREATE_1102
    PROGRAM -
    SAPMV50A
    SCREEN ---1102
    and click on change mode
    This will lead to nex screen where you can find the Field ACTUAL GI DATE against which the field status are available
    Check the REQUIRED field and save it.
    Here comes the problem when i tested from SHD0 transcation the actual GI date is showing has mandatory field but when i Run VL01n Transaction  Actual GI date is not showing has mandatory field. Could you please tell me what may be the problem?
    or let me know if any other method to make the  Actual GI date has mandatory field in Vl03n.
    Thanks in Advance.
    Satish

    You should've created a transaction variant. (You can attach the screen variant to the trxn variant as well).
    In SHD0 there is a tab "Standard Variant", there you've to enter the name of your transaction variant & activate it. This will bind the trxn variant with the trxn & everytime you run the trxn your trxn variant will be executed.
    BR,
    Suhas

  • Changing the column position & width using Screen Variant..

    Hi Experts,
        Iam trying to change the column position and width for the standard transaction (eg. FB60 or VA02) using the transaction code SHD0 (Transaction and Screen Variant).
        Iam able to create and save the transaction and screen variant and i could see the check box options for table control like
        a. Auto Column Position
        b. Auto Column Width
         I tried checking and unchecking both the check boxes but iam unable to modify / maintain the column position and width.
         Please guide me in changing the column position and width.
       Thanks in Advance.

    Hi Mudit,
    Kindly go through this link below:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm
    Hope it helps you
    Regrds
    Mansi

  • Disabling post ability in FV50 using screen variants

    Hi,
    I'm attempting to eliminate the post ability in FV50 by deleting the post options (drop-down menu and button) using a screen variant. I've successfully eliminated it on the main FV50 screen but during testing discovered there is a post button within the "simulate" sub-screen.
    Does anyone know how to disable the "Post" button within the sub-screen?
    Thanks,
    Pete

    Hi All,
    Worked around this by eliminating the post button on the main screen. It appears that the 'Simulation' screen does not have a unique identifier therefore I was unable to restrict via transaction variant. We decided to accept the risk of having the post button on this screen. We managed our exposure to is by restricting F_BKPF_BUK - ACTVT - 01 to only authorized users.
    Thanks to everyone who responded!
    - Pete

  • Cal transaction using screen variant

    All Experts:
         I want to call a transaction with a variant, this is a screen variant I set in that transaction? can I do this? how to do that? please kindly give me an example for reference, thanks.
    T-code A, Report A
    T-code B, Report B
    variant 1 is set in the screen of Report, I want to call T-code B with vartiant 1 in the T-code A.
    Thanks in advance.

    Hi,
    you can't use call transaction with variant.
    1. in SE93, create a transaction with variant type. so that without varianet you can't execute the transaction.
    2. try to use Submit Statement.
    Examples:
    *Submit report and return to current program afterwards
    SUBMIT zreport AND RETURN.
    *Submit report via its own selection screen
    SUBMIT zreport VIA SELECTION-SCREEN.
    *Submit report using selection screen variant
    SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    Reward if found helpful
    Regards,
    SB

  • How to update the ztable using screen.

    hi experts,
    i have one ztable with 8 fields
    and i created one screen with 8 fields
    how to update the ztable using this screen menas when i press the some push button in my screen the table should update.
    Devi

    hi
    check the link shown below
    Coding & screen shots of how to update a database table from screen(Module poool)
    http://www.scribd.com/doc/15628693/moduleprog090311165111phpapp011
    in the attachment u will find
    data  : begin of i_ysrtmm occurs 0,
            sno type ysrtmm-sno,
            sname type ysrtmm-sname,
            scity type ysrtmm-scity,
            sedu type ysrtmm-sedu,
            spercent type ysrtmm-spercent,
            select(1),
            end of i_ysrtmm.
    in the SE51 click on layout & in that menu goto - secwindow- enter the internal table i_ysrtmm
    and click on get from program.u will get all the fields of the internal table select all of them except
    SELECT  field  and then drag and drop on table control . double click on the table control u see the attributes screen there in the w/colselect enter i_ysrtmm-select for tab selection of table control.
    Regards

  • How to uncheck a checkbox from a dialog box and remove from view

    Hi All,
    I have button where on click opens a dialog box which has 5 check boxes with text for each check box [generating dynamically using row repeater].
    If one or all of the check box is checked, the check box with its text should get displayed in the view on closing the dialog box. I am able to display this, that is the checked ones.
    But, after closing the dialog box if the user wants to unselect a check box that is not required for the next time, the check box that is unchecked should get removed from the view.  How is this possible ?
    Thanks,
    Ravikiran

    Hi Robin,
    Pleas find the below code,
    var oDialogScope = new sap.ui.commons.Dialog({
      width : "20%"
      oDialogScope.setTitle("Add Scope of Work");
      var oScopeButton = new sap.ui.commons.Button({
      text : "OK",
      var oRowRep = new sap.ui.commons.RowRepeater();
      var oChkBox = new sap.ui.commons.CheckBox({
      text : "{EventDropDown>label}",
      checked : "{EventDropDown>checked}",
      change : function(oEvent) {
      var l1 = new sap.ui.commons.CheckBox({
      editable : false
      l1.setChecked(this.getChecked());
      l1.setText(this.getText());
      oScopeButton.attachPress(function() {
      var cellM = new sap.ui.commons.layout.MatrixLayoutCell();
      cellM.addContent(l1);
      var oScopeRow = sap.ui.getCore().byId("SR1");
      oScopeRow.addCell(cellM);
      oDialogScope.close();
      return;
      oRowRep.bindRows("EventDropDown>/checked", oChkBox);
      oDialogScope.addContent(oRowRep);
      oDialogScope.addContent(oScopeButton);
      oDialogScope.addStyleClass("DialogCss");
      oDialogScope.open();
    Regards,
    Ravikiran

  • How to record video or use screen capture WHILE capturing audio from Logic??

    Hi,
    I want to record my self playing guitar and singing using my mac book pro built in camera. I want the audio to come from Logic so I can add whatever effects I want to the vocals. When I say audio from Logic I don't mean recording in Logic and adding it in post. I want it to be on the fly.
    What I used to do was use the screen capturing program Snapz Pro. I would screen capture a box around photobooth for the video, and then record while having Logic's audio in the background. It screen captures my entire computers audio. So for example if I get an aim message the bleep would show up in the recording. Or if I raise the volume or lower it the little click sound fx would be in it as well.
    Capturing the audio this way let me get Logic's audio effects in my video on the fly. It worked out great....until now! :/
    I just got the audio interface "Duet 2". And am using a microphone instead of my mbp's built in one. When ever I tried to record and capture my systems audio - my entire computer would crash. Snapz Pro won't work with the system audio with the interface. It works fine without it though.
    I then tried to use Quicktime's new movie recording feature. I see it only gives an option for microphone and now system audio. So I got soundflower to re route the audio but that doesn't help either. This is because when you capture this way you can't hear anything while your capturing. So if I were to record a video and wanted Logics audio in it, I would have to set the output to Soundflower first. So when I record I cant hear myself which defeats the purpose.
    So my final question is, how can I record video while having Logic's audio? I don't need to record with the mic, because in Logic the mic audio is going thru the system audio with everything else.
    I would like to use a process more similiar to Quicktimes straight movie recording instead of doing an odd way like I used to screen capturing a box around the photobooth screen.
    Thanks

    use Yawcam from Yawcam.com

  • How to active the checkbox using another checkbox

    Hello Experts,
    I have one requirement, in standards module pool screen.
    Program:SAPLQM06
    Screen:2050
    The requirement is when the user select the email radio button then automatically check the attachment check-box (I added the attachment in the standards screen) customer don't want check again the check-box.
    logically:
    if email = 'X'
    attachment  = 'X'.
    endif.
    but I am not getting where will I write the code..
    kindly help me on this..

    thank you for all reply's,
    1. created the FCODE for email radio button,
    2. In PAI I written the logic
    IF sy-ucomm = 'RAD' AND rqm07-email = 'X'.
         LOOP AT SCREEN.
           attachemnt = 'X'.
         ENDLOOP.
       ENDIF.
    its working now..

  • Using Javascript To UnCheck A Checkbox

    Hi,
    I have a select list with two options in. When one of them is selected I have two checkboxes that I want hiding and setting to unselected. I can hide and show them fine using *$x_HideItemRow* and *$x_ShowItemRow*, but when I hide them I want the setting as unselected.
    Have tried using html_GetElement(pThat).checked = false; but when the items are displayed again they are still displayed as selected.
    Can anyone show me how to uncheck a checkbox using javascript?
    Cheers
    Simon

    Simon,
    Use firebug in firefox to see what's happening. The name of your item is applied to an HTML fieldset element that contains the actual inputs of type checkbox. Each of those has a name based on the item name with "_X" on the end as in PXX_ITEM_NAME_0.
    You'll need to select the one you want to check/uncheck directly by adding the underscore and the number. Also, you can use $x over html_GetElement (just shorter).
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Screen variants for Header details info

    Hello Experts,
    I have a requirement to use Screen variants for the header related details to default values in FB50 and use Account assignment template for line item related details.
    We can create the screen variants in FB50 by right click on "screen variants for item" folder and select Create Screen variants in Screen variants. Even if i follow the alternate path to create screen variants in SHD0, and add it in the Tree of FB50, i still am not able to get the header details after choosing the created screen variant.
    Can someone help me to achieve defaulting the header information in FB50 using screen variant and tell me how can we use account assignment template after defaulting the header data?
    Thanks,
    Sindhu
    Edited by: SindhuSSwamy on Dec 22, 2009 2:55 AM

    Hi Bill,
    Yes, There are ways to disable these links. Since, You are in SRM40 (Think There is SRM40/EBP(SRM Server 50)only), you should be able to use BADU BBP_SC_MODIFY_UI to hide them which is simple.
    Regarding Ship-to/Performance Location, Use Doc Change BADI to read storage location address and pass it onto Ship-to/Performance Location. We have done many times in the past.
    SAP standard screen variants for the Shopping view is very limited. But, you can develop you own screen variants in SHDO and use Screen Variant BADI to trigger your customs.  We had used this and is pretty good. No hassle of HTML changes / maintaining them every upgrade. 
    Thanks,
    Jay

  • Uncheck a Checkbox when Select List Clicked

    version 4.0.2.00.06
    Hello,
    Jari helped me with a javascript function to select all options in a multi-select list when a checkbox is checked by the user.
    A bug was reported that after clicking the checkbox to select all the options in the list, if the user then clicks on a single value in the select list the checkbox is still checked.
    Would someone help me with how to uncheck the checkbox when a single value is selected in the select list after the checkbox is checked to select all of the options in the select list?
    If you need more information please let me know.
    Thanks,
    Joe

    Hi,
    Same sample as in this post
    Re: The requested URL /apex/wwv_flow.accept was not found on this server
    I did add page JavaScript
    function checkSelected(pThis,pChk,pVal){
    var self=$($x(pThis));
    var o=self.find("option");
    var s=self.find("option:selected");
    if(s.length==o.length){
      $s(pChk,pVal);
    }else{
      $s(pChk,"");
    }And to P65_EMP multiu select HTML Form Element Attributes
    onchange="checkSelected(this,'P67_SELECT_ALL','ALL')"Regards,
    Jari

  • Screen Variants in Webdynpro

    Hi @ all,
    just a simple question. Is their a possibility for using screen variants in WD4A like know out of R/3 selection screens?
    Thnx
    Matt

    Hi Matthias,
    This is feature is not available for SelectOptions in WDA. Nonetheless, it can be emulated by providing save/load buttons and saving/loading the data to/from some place.
    Best regards,
    Thomas

  • How to design select-option through screen painter

    I am new to screen painter. I want to make a screen having range of values high/low (just like select-option)......How can I do this using screen painter?

    Hi!
    Method 1
    a) Create a subscreen area in your screen layout where you want to create the select options.
    b) In the top include of  your module pool program declare a selection screen as a subscreen e.g.
           SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
                 select-options s_matnr for mara-matnr.
           SELECTION-SCREEN END OF SCREEN.
    c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
           CALL SUBCREEN sub_area INCLUDING    
      This call subscreen statement is necessary for transport of values between screen and program.
    Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
    Method 2
    a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
    struc_tab_and_field-fieldname   = con_cust.      " 'KUNNR'
    struc_tab_and_field-tablename = con_kna1.     " 'KNA1'.
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
              EXPORTING
              TITLE                   = ' '
                text                         = g_titl1                                " 'Customers'
                tab_and_field     = struc_tab_and_field
              TABLES
                RANGE                   = rng_kunnr
              EXCEPTIONS
                NO_RANGE_TAB          = 1
                CANCELLED                    = 2
                INTERNAL_ERROR     = 3
                INVALID_FIELDNAME = 4
                OTHERS                           = 5.
    IF NOT rng_kunnr[] IS INITIAL.
             Read the very first entry of the range table and pass it to
             dynpro screen field
               READ TABLE rng_kunnr INDEX 1.
               IF sy-subrc = 0.
                  g_cust = rng_kunnr-low.
               ENDIF.
    You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements
    You can go with it also ....
    Re: Select-options in dynpro
    Regards....

  • Screen Variants and Special Purpose Ledgers

    Hi,
    We have 2 company codes ACT and SCIN.Screen Variants and Special Purpose Ledgers In ACT.But now i need to do the same Screen Variants and Special Purpose Ledgers in the 2nd company code SCIN.
    Now how to Check which are the Screen Variants and Special Purpose Ledgers of ACT company code? How can i copy them into 2nd company code SCIN?
    Is it possible to copy Screen Variants and Special Purpose Ledgers or do i need to create them from the scratch?
    Kindly advice me
    Thanks
    Supriya

    Are you talking about document entry screen variant?  If yes, check what is the indicator set for company code ACT in transaction OBY6.  Specify the same one for SCIN too, in OBY6.  Special purpose ledgers are not copied from company code to company code.  If you have them assigned to one company code (ACT), they are there in the system.  Just go to T Code GCL2 and assign SCIN also to those special purpose ledgers.

Maybe you are looking for