How to position a check box in an ABAP query's selection screen?

Hi Experts,
I am working on SAP queries and for that I have created an infoset. There was a requirement to have a checkbox at selection screen, which we can obtain by Infoset-> Extras->"Selections" tab -> create a parameter as a checkbox.
However, it is appearing at the first place among all the selection screen elements which are defined in the infoset.
Is there any way to have it positioned as per the requirement? (We have checked the option of "sequence on selection screen" provided while creating the checkbox, however, it does not work for us).
Kindly have a look at the attached screen shots.
Here , in the file, “Test Par” is the selection text for the parameter declared.
Thanks
Mohit

I think I have it 90%there. I have no error now, it edits a
record fine, if you add the checkbox to the record it adds it, and
if you take it away, it does that. BUT now it will not add a new
record.
This is my code now for the update / insert
<cfif not IsDefined("FORM.admin")>
<cfset IsAdmin= 0>
<cfelse>
<cfset IsAdmin= 1>
</cfif>
<cfif isDefined("Form.RecordID")>
<cfquery datasource="#APPLICATION.dataSource#">
UPDATE user
SET user.Fname=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.Fname#">,
user.Lname=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.Lname#">,
user.userName=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.userName#">,
user.password=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.password#">,
user.email=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.email#">,
user.admin =<cfqueryparam value="#IsAdmin#"
CFSQLType="CF_SQL_INTEGER">
WHERE ID =<cfqueryparam value="#form.RecordID#"
cfsqlType="CF_SQL_INTEGER">
</cfquery>
<cflocation url="indexUser.cfm?RecordID=#Form.RecordID#"
addtoken="no">
<cfelse>
<cfquery result="GetNewRecord"
datasource="#APPLICATION.dataSource#" dbtype="ODBC">
INSERT INTO user
(Fname, Lname, userName, password, email, admin)
VALUES (<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.Fname#">,
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.Lname#">,
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.userName#">,
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.password#">,
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.email#">,
<cfqueryparam value="#IsAdmin#"
CFSQLType="CF_SQL_INTEGER">)
</cfquery>
<cflocation url="indexUser.cfm">
</cfif>
Is there a better way to write this so it will work? I have
everything else working including the checkbox showing checked if
it is checked in the db, I believe this is my last hang up on a
checkbox.
Any ideas?

Similar Messages

  • How to name the Check Box as "Want Free Gift" using PARAMETERS statements

    Hi all,
    I am new to check boxes. I have a existing report where I have to add a check box to the selection screen.
    So i said
    PARAMETERS: p_cncldc AS CHECKBOX.
    everythibng is fine and I get the check box on the selection screen. when i execute the report i get the name of check box as p_cncldc. but i want the name of the check box as "Want Free Gift".
    How to name the check box as "Want Free Gift".
    if i am saying
    PARAMTERS: Want Free Gift AS CHECKBOX. it says a syntax error saying it canot be more that 8 chars.
    Some one please help. I am new to Check boxes
    Regards,
    Jessica Sam
    Edited by: jessica sam on Mar 31, 2009 10:37 PM

    Text on the Right hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    parameters: w_check as checkbox.
    selection-screen: comment  4(30) TEST .
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    Text on the Left hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    selection-screen: comment  2(30) TEST .
    parameters: w_check as checkbox.
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    OR:
    GOTO(Menubar)>Text Elements>Selection Texts
    Regards,
    Gurpreet

  • How to activate the Check box in Purchase Order after Goods Receipt

    Hi All,
    How to activate the check box after Goods receipt of Purchase order in Item view (Goods Receipt is completed).
    Where t make the settings in SPRO.
    Regards,
    Shailendra Hadkar

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • How to handle the check box in the alv tree display

    Hello,
    in my ALV Tree Report i have a check box in the output.
    I have one check box in the selection screen as select all .
    if this is selected then all the check boxes in the output must be selected that is (X).
    am using CL_GUI_ALV_TREE  for this.
    Please give me some input how to make that check boxes 'X' in the above mentioned case.
    With Regards,
    Sumodh.P

    Sumodh,
    check this
    Re: Select all checkbox in ALV tree
    please search before posting
    Thanks
    Bala Duvvuri

  • How to get a check box on the selection screen

    Hi all
    can any body tell me how to get a check box on the selection screen

    parameter: pa_check   as checkbox.
    To define the input field of a parameter as a checkbox, you use the following syntax:
    PARAMETERS <p> ...... AS CHECKBOX ......
    Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
    If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
    REPORT DEMO.
    PARAMETERS: A AS CHECKBOX,
    B AS CHECKBOX DEFAULT 'X'.

  • How to default a check box?

    Hi,
      How to default a check box?
    Regards,
    Jaya

    Hi
    DATA :
       w_c type c value 'X'.
    WRITE :
       w_c as CHECKBOX , 'XYZ'.
    Regards
    Pavan

  • How to keep a check box in script

    hi
    how to keep a check box in script

    Hi,
    go to sapscript editor
    Change the editor to 'PC Editor' and take the menu.
    Include -> Characters -> SAP Symbols
    whether this will not be visible in the print preview.
    other wise..
    Just keep it like <697> in your text element.
    Telephone <697> : &W_TAB-TEL&
    Corresponding symbol will be printed in the paper.
    Note: It will not be displayed in the print priveiw.
    Regards,
    Shiva k

  • How to create a check box that can be unchecked

    How do I create check boxes that can be checked and the unchecked in Forms Central?
    For example, if you accidentally check a box - you want to uncheck it. Right now it doesn't allow you to do that.
    please help.
    Thanks
    Gen

    Are you sure you're not using radio buttons? Check boxes behave the way you'd expect for me with a form generated by FormsCentral.
    I'm going to move this to the FormsCentral form since the team there may want to take a look at the form.

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

  • How to display that Check Box In Down of Tabular Rows .

    Dear Friends,
    i have created tabular form and one check box Item in that region.
    i want to display that checkbox Item after tabular form Rows .
    How to display that Check Box In Down of Tabular Rows .
    Thanks

    Hi,
    From report attributes, you can change column order
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/bldapp_rpt.htm#sthref1348
    Regards,
    Jari

  • How to Add a parameter of currency exchange rate in the selection screen

    Dear Friends,
    How to Add a parameter of currency exchange rate in the selection screen with format (9999.99999). wich field i need to take.
    Thanks,
    Sridhar

    TCURR-UKURS.
    ~Suresh

  • How to revert the changes done  in  an  ABAP query

    hi experts,
    how to revert the changes done  in  an  ABAP query.
    I renamed a field in ABAP Query in development system, but the output list now has overlapping fields.
    the renamed field is getting overlaped with other fields, also one more field has overlapped.
    now the problem is how to get back to the previous version of the query so that the overlapping fields can be corrected.
    renaming one field has led to the problem of overlapping fields in the output.
    the sequence of the fields has also been affected.
    Please help

    Hi,
    Goto Utilities-> versions-> version management.
    It will show you list of previous TR's. Just click on the version which you want to retrieve and click on Retrieve button on the top.
    Your program will be retrieved to your previous version before change.
    Hope this will help.
    Regards,
    Aravind.

  • How can we place a F4 help in a parameter in selection screen

    Hi,
    How can we place a F4 help in a parameter in selection screen. Can we do add a  Process 0n Value request similar to a module pool prg in stadard report program.
    saji

    Hello Saji,
    Try below attached report.
    Regards,
    Naimesh.
    Reward, if it is useful..!
    REPORT ZTEST_NP_1.
    DATA: HELPVAL1 LIKE HELP_VALUE OCCURS 0 WITH HEADER LINE .
    DATA: VALUE_TAB     LIKE PDTASK-OTEXT OCCURS 2 WITH HEADER LINE.
    DATA: VALUE         LIKE FEBMKA-BANKN,
          GIVEN_VALUE   LIKE HELP_INFO-FLDVALUE.
    DATA: IT_T005T LIKE T005T OCCURS 0 WITH HEADER LINE,
          IT_T002T LIKE T002T OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK BLK1 WITH FRAME TITLE ABC.
    PARAMETERS:       P_SPRAS  LIKE  T002T-SPRAS,
                      P_LAND1  LIKE  T005T-LAND1.
    SELECTION-SCREEN: END   OF BLOCK BLK1.
    INITIALIZATION.
      ABC = 'Selection Criteria:'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LAND1.
      PERFORM VALUE_REQUEST_LAND1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SPRAS.
      PERFORM VALUE_REQUEST_SPRAS.
    *&      Form  VALUE_REQUEST_land1
    FORM VALUE_REQUEST_LAND1.
    *---- Reading the Screen values.
      DATA: LT_DYNPFIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,
            LV_DYNAME     LIKE D020S-PROG,
            LV_DYNUMB     LIKE D020S-DNUM.
    *-------Append field which you want to read from the screen
      LV_DYNAME = SY-REPID.
      LV_DYNUMB = SY-DYNNR.
      LT_DYNPFIELDS-FIELDNAME = 'P_SPRAS'.
      APPEND LT_DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME     = LV_DYNAME
                DYNUMB     = LV_DYNUMB
           TABLES
                DYNPFIELDS = LT_DYNPFIELDS.
      SELECT * FROM T005T
             INTO  TABLE IT_T005T
             WHERE SPRAS = P_SPRAS.
        REFRESH: HELPVAL1, VALUE_TAB.
        CLEAR:   HELPVAL1, VALUE_TAB, GIVEN_VALUE, VALUE.
    *---- Append field name for the columns in the help popup
        HELPVAL1-TABNAME    = 'T005T' .
        HELPVAL1-FIELDNAME  = 'LAND1' .
        HELPVAL1-SELECTFLAG = 'X' . " will return the value on the screen
        APPEND HELPVAL1 .
        CLEAR  HELPVAL1 .
        HELPVAL1-TABNAME    = 'T005T' .
        HELPVAL1-FIELDNAME  = 'LANDX' .
        HELPVAL1-SELECTFLAG = ' ' .
        APPEND HELPVAL1 .
        CLEAR  HELPVAL1 .
        LOOP AT IT_T005T.
          VALUE_TAB = IT_T005T-LAND1.
          APPEND VALUE_TAB.
          VALUE_TAB = IT_T005T-LANDX.
          APPEND VALUE_TAB.
        ENDLOOP.
        GIVEN_VALUE    = P_LAND1.
        CALL FUNCTION 'HELP_VALUES_GET_WITH_VALUE'
           EXPORTING
                DISPLAY      = SPACE
                GIVEN_VALUE  = GIVEN_VALUE
           IMPORTING
                SELECT_VALUE = VALUE
           TABLES
                FIELDS       = HELPVAL1
                VALUETAB     = VALUE_TAB.
        IF NOT VALUE IS INITIAL.
          P_LAND1 = VALUE. " Assing value to the parameter
        ENDIF.
    ENDFORM.                    " VALUE_REQUEST_land1
    *&      Form  VALUE_REQUEST_SPRAS
    FORM VALUE_REQUEST_SPRAS.
      REFRESH: HELPVAL1, VALUE_TAB.
      CLEAR:   HELPVAL1, VALUE_TAB, GIVEN_VALUE, VALUE.
      HELPVAL1-TABNAME    = 'T002T' .
      HELPVAL1-FIELDNAME  = 'SPRSL' .
      HELPVAL1-SELECTFLAG = 'X' .
      APPEND HELPVAL1 .
      CLEAR  HELPVAL1 .
      HELPVAL1-TABNAME    = 'T002T' .
      HELPVAL1-FIELDNAME  = 'SPTXT' .
      HELPVAL1-SELECTFLAG = ' ' .
      APPEND HELPVAL1 .
      CLEAR  HELPVAL1 .
      SELECT * FROM T002T
             INTO   TABLE IT_T002T
             WHERE  SPRAS = SY-LANGU.
      LOOP AT IT_T002T.
        VALUE_TAB = IT_T002T-SPRSL.
        APPEND VALUE_TAB.
        VALUE_TAB = IT_T002T-SPTXT.
        APPEND VALUE_TAB.
      ENDLOOP.
      GIVEN_VALUE    = P_SPRAS.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_VALUE'
           EXPORTING
              DISPLAY      = SPACE
              GIVEN_VALUE  = GIVEN_VALUE
           IMPORTING
              SELECT_VALUE = VALUE
           TABLES
              FIELDS       = HELPVAL1
              VALUETAB     = VALUE_TAB.
      IF NOT VALUE IS INITIAL.
        P_SPRAS = VALUE.
      ENDIF.
    ENDFORM.                    " VALUE_REQUEST_SPRAS

  • How to read the check box value in alv report

    hi experts,
    i m working on one alv report where i m using the check box for field selection in alv display.
    but i don't know how to read the only selected fields.
    wa_fieldcat-fieldname = 'BOX'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Box'.
      wa_fieldcat-checkbox = 'X'.
      wa_fieldcat-input = 'X'.
      wa_fieldcat-edit = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'AUFNR'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Sales Doc'.
      wa_fieldcat-hotspot = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_repid
         I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         it_fieldcat                       = i_fieldcat[]
         i_save                            = 'A'
         it_events                         = v_events
        TABLES
          t_outtab                          = it_header
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->,          text
         -->RS_SLEFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    when '&RELEAS'.
    endcase
    endform.
    i gone through some already posted que for same problem i tried options like
    loop at it_header.
    endloop.
    but i m getting box field empty.
    is there i missed something? plz sugeest.. if u have any other solution plz post...

    Have this code in your user command fm:
    * For capturing changed data
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = w_grid.
      CALL METHOD w_grid->check_changed_data
        IMPORTING
          e_valid = w_valid.
      IF w_valid = 'X'.
    loop at itab where mark = 'X'.
    endloop.
    ENDIF.
    Regards,
    Ravi

  • How to use a check box in ALV

    Hi All,
    I have a urgent requirement in my <b>ALV list</b>.
    Where in the output list i need to create a check box, which is followed by Sales order, quantity columns etc......
    Requirement:  1. tell me how to <b>create</b> a <b>check box</b>
    2.   i need to select the checkbox(Sales Order) and press  a push button which is above the list(push button) in the tool bar.
    I am able to see the output using  <b>reuse_alv_grid_display</b>.
    <b>But kindly let me know how to <b>link</b> the <b>check box</b> and the <b>push button</b> which is above the list for further processing.</b>
    Possibly a sample code will help a lot.
    Thanks in advance.
    Rajesh Kumar.

    TO create a check box, take one field in your internal table as:
    CHK TYPE C.
    Now, pass the LAYOUT by filling up the LAYOUT strucutre.
    LAYOUT-BOX_FIELDNAME = 'CHK' .
    This will provide you the BOX field in the GRID and Checkbox in the LIST.
    When you select the  checkbox the field value will set to 'X' in the table.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • How to make a flat object look round?

    I have a round logo for a company. I want to make it look like it is painted on to a christmas tree ornament.. so it almost needs to look 3D. Can I do this in photoshop or illustrator or something? Any thoughts?

  • Voucher Number with Forms Personalization

    I am trying to use forms personalization to accomplish the following: We've enabled vouchering in Payables and now each invoice, when saved, is assigned a voucher number. (INV_SUM_FOLDER.VOUCHER_NUM_DISPLAY). When you click the attachments icon, we w

  • Window's On Mac...

    Well im getting a Mac soon!Yay!But at the moment im using Window's XP,And on my Pc I use an object called a Nintendo Wi-Fi USB Connector.Today I found out that the Nintendo Wi-Fi USB Connector only work's with Window's XP or higher!I am so mad!But wh

  • Themes problem

    Hey i download themes some themes not support my device please give me solution

  • Time Capsule download issues with Windows 7

    Hello together My problem is as follows: upload to Time Capsule with two PCs running on Windows 7 (both 32 and 64 bit) and a Mac Book Pro is working without any problems occuring. TC and the two PCs are in the same workgroup and PCs are connected via