How to code for select all& deselect all?using menu buttons

hai,
i have generated a report with a single field from a database table and
i have a checkbox for each record/item in the report.
i need help in the following ..
now that i have menu buttons say "select all" and "deselect all"..
if select all is clicked then all checkboxes should be selected.
if deselect all is clicked, then all checkboxes should be deselected
i know that we have to use functional code and use case sy-ucomm etc.
when "selectall"  etc..
can someone help me how to code for this to work exactly?

it did not work for the code u had suggested...
plz check it out and send me the exact working code..
REPORT  ZINTRACTIVE_PROJ                        .
TABLES : SFLIGHT.
DATA : BEGIN OF IT OCCURS 0,
       CARRID LIKE SFLIGHT-CARRID, FLDATE LIKE SFLIGHT-FLDATE,
       END OF IT.
DATA : BOX TYPE C,
       LINE TYPE I.
SELECT CARRID FLDATE FROM SFLIGHT INTO TABLE IT.
LOOP AT IT.
WRITE : / BOX AS CHECKBOX, IT-CARRID.
ENDLOOP.
LINE = SY-LINNO .
SET PF-STATUS 'SELECT'.
AT USER-COMMAND.
CASE SY-UCOMM.
  WHEN 'SELECT'.
      DO LINE TIMES.
        READ LINE SY-INDEX FIELD VALUE BOX.
        IF BOX = 'X'.
           NEW-PAGE.
           WRITE : / IT-FLDATE.
        ENDIF.
      ENDDO.
  <b>WHEN 'SELECTALL'.
      LOOP AT IT.
        IT-CARRID = 'X'.
        MODIFY IT TRANSPORTING CARRID WHERE CARRID = IT-CARRID.
        EXIT.
      ENDLOOP.
  WHEN 'DESELECTALL'.
      LOOP AT IT.
        IT-CARRID = ''.
        MODIFY IT TRANSPORTING CARRID WHERE CARRID = 'X'.
        EXIT.
      ENDLOOP.</b>ENDCASE.

Similar Messages

  • How to search for a string in ALL Function Modules source code

    Hello,
    I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
    Is this possible? How?
    Cheers,
    Andy

    hi,
    Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
    Regards,
    Santosh

  • I need php code for copy paste our all histroy of browser in a text page.

    I need php code for copy paste our all histroy of browser in a text page can any one send me the code please.

    You can use an application like GarageSale for doing this....
    http://www.macupdate.com/info.php/id/16035/garagesale

  • How to go for selective deletion if the request is rolled up???.. URGENT!!!

    hi all,
    we a have a data target which was compressed and rolled up...
    please do suggest us how to go for selective deletion  if the data target was rolled up???
    on what basis we need to do the selective deletion ??
    thanks for ur understanding...
    suggestions would be highly rewarded
    regards
    Prince

    Hi,
    in the subsequent datatargets of your ODS:
    if the requests are only rolled up, then you can delete those requests; now if your aggregates are collapsed then you'll have to dactivate them and reactivate them after. If not you can simply delete them.
    then delete all the requests from your ODS up to the request right after the missing one. This will deactivate you ODS delta init. This is not a problem since when you'll have finished with the above your ODS and subsequent targets will have a consistent status in terms of data.
    Reinit your ODS delta without datatransfer, reconstruct your missing request and the subsequent requests in your ODS.
    Reactivate them (not all together as a single activation, but separately).
    Then load the delta into your subsequent targets.
    Now if the subsequent datatargets are collapsed then you'll have to either reinit with full load or selective delete them. the missing request in your ODS still must be reloaded before!
    If you go for selective deletion you'll have to find the right selection criteria based on the data of your ODS. For instance if you can ensure that only a selected period is incorrect (all the ODS requests from the missing one to the last only contain data for JAN08) then you can selectively delete JAN08 from your subseq targets and perform a FULL load selecting JAN08 from your ODS.
    Then perform an INIT without data transfer... you can then continue your deltas as usual....
    hope this helps....
    Olivier.

  • Code for selection screen,  urgent

    Hi Everyone,
      I need code for selection screen.
      I have four radio buttons, p1, p2,p3,p4(assume)
    If I select second radiobutton, remaining three radiobuttons should be in disable mode and also the information under them should be in disable mode. Give the coding details. Thanks in advance. U will be rewarded.
    Regards,
    Nagaraju

    Hi,
    REPORT ZTEST222 .
    PARAMETERS : p_add  RADIOBUTTON GROUP radi
                             USER-COMMAND radio MODIF ID MOD,
      p_disp RADIOBUTTON GROUP radi DEFAULT 'X'  MODIF ID pod,
      p_chng RADIOBUTTON GROUP radi MODIF ID rad,
      p_er_log RADIOBUTTON GROUP radi MODIF ID cod.
    SELECT-OPTIONS : s_idn    FOR  vendor   MODIF ID mod,
                                   s_pcode  FOR ws_c_pcode MODIF ID pod.
    PARAMETERS:  p_plant    LIKE  zaw_pol_plan-plant   MODIF ID rad,
                 p_zzvend   LIKE  zaw_pol_plan-zzvendor   MODIF ID cod.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_add EQ 'X'.
          IF screen-group1 EQ 'MOD'.
            screen-active = 1.
            MODIFY SCREEN.
    ELSE.
             screen-active = 0.
            MODIFY SCREEN.
    ENDIF.
    IF p_disp EQ 'X'.
          IF screen-group1 EQ 'POD'.
            screen-active = 1.
            MODIFY SCREEN.
    ELSE.
             screen-active = 0.
            MODIFY SCREEN.
    ENDIF.
    IF p_chng EQ 'X'.
          IF screen-group1 EQ 'RAD'.
            screen-active = 1.
            MODIFY SCREEN.
    ELSE.
             screen-active = 0.
            MODIFY SCREEN.
    ENDIF.
    IF p_er_log EQ 'X'.
          IF screen-group1 EQ 'COD'.
            screen-active = 1.
            MODIFY SCREEN.
    ELSE.
             screen-active = 0.
            MODIFY SCREEN.
    ENDIF.
    Pls. reward if useful
        ENDLOOP.
    Pls. reward if useful

  • [svn] 4634: First part of glue code for allowing Halo components to use the new Text Layout Framework , in order to get functionality such as bidirectional text.

    Revision: 4634
    Author:   [email protected]
    Date:     2009-01-22 17:38:56 -0800 (Thu, 22 Jan 2009)
    Log Message:
    First part of glue code for allowing Halo components to use the new Text Layout Framework, in order to get functionality such as bidirectional text.
    Background:
    TLF is making this possible by implementing a TLFTextField class. It is a Sprite that uses TLF to implement the same properties and methods as the legacy TextField class in the Player. Thanks to the createInFontContext() bottleneck method in UIComponent, it can be used by a properly-written Halo component (such as those in Flex 3) without any modifications to the component.
    Note: Text should render similarly -- but is unlikely to render identically -- when a component uses TLFTextField vs. TextField. The width and height may be different, affecting layout; text could wrap differently; etc. This is a fact-of-life based on the fact that TLF/FTE and TextField are completely different text engines.
    Whether a Halo component uses TLF or not to render text will be determined in Flex 4 by a new style, textFieldClass. (Gumbo components always use TLF.)
    TLFTextField is currently only partially implemented. It does not yet support scrolling, selection, editing, multiple formats, or htmlText. Therefore it can only be used for simple display text, such as a Button label.
    Details:
    The TextStyles.as bucket 'o text styles now includes a non-inheriting textFieldClass style. It can be set to either mx.core.UITextField or mx.core.UITLFTextField. These are the Flex framework's wrapper classes around the lower-level classes flash.text.TextField (in the Player) and its TLF-based workalike, flashx.textLayout.controls.TLFTextField.
    The global selector in defaults.css currently sets it to mx.core.UITextField using a ClassReference directive. For the time being, all Halo components will continue to use the "real" TextField.
    The new UITLFTextField is a copy of UITextField, except that it extends TLFTextField instead of TextField. This class has been added to FrameworkClasses.as because no classes in framework.swc have a dependency on it. It will get soft-linked into applcations via the textFieldClass style.
    The TLFTextField class currently lives in a fourth TLF SWC, textLayout_textField.swc. This SWC has been added to various build scripts. The external-library-path for building framework.swc now includes all four TLF SWCs, because UITLFTextField can't be compiled and linked without them. However, since they are external they aren't linked into framework.swc.
    Properly-written Halo UIComponents access their text fields only through the IUITextField interface, and they create text fields like this:
    textField = IUITextField(createInFontContext(UITextField));
    (The reason for using createInFontContext() is to support embedded fonts that are embedded in a different SWF.)
    The createInFontContext() method of UIComponent has been modified to use the textFieldClass style to determine whether to create a UITextField or a UITLFTextField.
    With these changes, you can now write code like
    to get two Buttons, the first of which uses UITextField (because this is the value of textFieldClass in the global selector) and the second of which uses UITLFTextField. They look very similar, which is good!
    Currently, both Buttons are being measured by using an offscreen TextField. A subsequent checkin will make components rendering using UITLFTextField measure themselves using an offscreen TLFTextField so that measurement and rendering are consistent.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITLFTextField.as

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • How to search for a certain cross reference using its name in FM 11?

    How to search for a certain cross reference using its name in FM 11?

    Well, thank you. I am only using Find dialog box. By "name", I'd like to give an example. The background is FM 11 structured. I have an element "xref" which is used to make cross reference. Now In Chapter 1, there is a sentence like "This is an ODU for ...". I made a cross ref of the word "ODU" to its full name "outdoor unit" in Chapter 2 (in the same book). After this, the word "ODU" in the sentence in Chapter 1 will no longer be a plain text. So I no longer can use the find dialog box to search for "ODU" because it is already an xref rather than text. I am not if it's clear.

  • What is the pairing code for an HP Photosmart 309a using windows 7?

    what is the pairing code for an HP Photosmart 309a using windows 7?

    Hi,
    The Default priting code is 0000.
    If you changed the code, you may locate the current on by clicking the Setup Menu,
    Scroll to the Bluetooth Menu and then click Passkey.
    For any issue, you may find a step by step bluetooth configuration guide below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02530249&cc=us&dlc=en&lc=en&product=3737195&tmp...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can I measure selected area of pixels using photoshop elements 12?

    how can I measure selected area of pixels using photoshop elements 12?

    Show the 'information' panel F8).
    In the middle horizontal section, select 'pixels' on the left drop-down menu.
    Use the rectangular marquee tool to select your area: the dimensions in pixels of the rectangle is shown under 'dimensions' on the right.
    I think there are other ways to measure a line segment, but you could use the above measure by adjusting the rectangular marquee tools to both extremities of the segment,
    - use the move tool to rotate the rectangle so that the diagonal measuring the segment is horizontal,
    - move the rectangle to the left, and check validate, which creates another rectangle including the first one
    - read the pixel dimension (L:) in the info panel like above.

  • I can't print out my claim code for my HPDeskjet 2540 All-In-One printer.

    So i have been trying to get the claim code for my printer for the past hour and i seem to not be able to get the code. I want to set up my printer with eprint but in order for me to be abe to get theoption i got to input the claim, which i cant print or get any where. I have tried calling HP cloud service and waited for like 20mins just for them to tell me to call back tomorrow. If any one can help me in showing me how to get the code will be reatly appriciated. Thanks.

    Hi,
    Given your printer has a claim code, please ue the following method:
    Option one: If you see an ePrint buttonOn the printer control panel, press the ePrint ( ) button to open the Web Services menu.
    If Web Services is enabled , touch Print Info . An information sheet prints that has your claim code.
    If Web Services is not enabled , touch OK to accept the terms of service, and then touch OK to accept the update. An information sheet prints that has your claim code.
    Option two: If you see a Setup iconOn the printer control panel, touch Setup ( ), and then touch Web Services Settings .
    If Web Services is enabled , touch Print Info . An information sheet prints that has your claim code.
    If Web Services is not enabled , touch Continue , touch Yes to accept the terms of service, touch Yes to accept the update, and then touch Print Info . An information sheet prints that has your claim code.
    Source: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03550536#N79
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to code for DSynamci Selections without using a logical database?

    In a custom program, how to generate dynamic selections without specifying a LDB int he attributes.
    Thanks,
    Ven

    This does not relate to the dynamic selections I am looking at.
    If you look at FBL3N or FBL1N, there will be a Dynamic Selections button which gets in as part of the LDB associated with it.
    I want to know if there is a simpler way of putting this in a custom program without reference to the LDB.
    Thanks,
    Ven

  • How to create t.code for report painter report created using CJE5

    Hi All,
    I'm trying to create T.code for a report painter program created using CJE5.
    I using the D_SREPOVARI-REPORTTYPE as "RE" and
    D_SREPOVARI-EXTDREPORT as KP 01RPSCO_X <report name>
    If I provide spaces between KP 01RPSCO_X <report name>, its not allowing spaces.
    If I didn't provide the space then its saying that "report does not exists"
    Please let me know how to overcome this issue?.
    What this KP  & 01RPSCO_X stands for? Is this always constant?
    There is a similar kind of transaction in other system which Looks like this " KP 01RPSCO_X <report name>" spaces in between
    I dont understand why its not allowing spaces in this system. As its in different system i cant make a copy of this transaction and change the parameters.
    Edited by: Mr A on Feb 18, 2010 5:28 PM
    Edited by: Mr A on Feb 18, 2010 5:54 PM

    thanks for giving me the link.
    I searched for all these link in SDN before posting itself.
    my issue is how to give the value for the parameater EXTDREPORT.
    If i give spaces for the value KP  01RPSCO_X <report name>, its throwing error, T,code its self is inconsistent.
    if i didnt give spaces its i'm able to create the t.code, but when i execute it, its giving error message saying "report does not exists"
    but if i go to CJE5, that report is there.
    thanks

  • Code for selection screen

    hi all,
    in selectin screen i have to populate two fields VIQMEL-KDAUF(sales order) & VIQMEL-QMNUM( shop visit notification),
    here i have to give any of the inputs.like, if i give the SALES ORDER  as input, SVN should be retrived& if SVN is given as input SO should be retrived.
    depending on the given input the second input also should be retrived and passed to others as input.
    can any one send me the code for this..i need it immediately.

    Hi,
    Tables: viqmel.
    Data: begin of it_itab occurs 0,
               ls_qmnum like viqmel-qmnum,
               ls_kdauf like viqmel-kdauf,
            end of it_itab.
    select-options: s_qmnum for viqmel-qmnum,
                           s_kdauf for viqmel-kdauf.
    select QMNUM KDAUF
               from VIQMEL
               into table it_itab
               where qmnum in s_qmnum
               OR kdauf in s_kdauf.
    loop at itab.
    write: /it_itab-ls_kdauf,  it_itab-ls_qmnum.
    endloop.
    Reward pts if helpfull

  • Standard Match Code for Selection Options with Example

    Hi Guys,
                 Can anybody tell me Standard Match Code or Search help for Selection Options.
             ex: MBEW-MATNR , MBEW-BWKEY and MBEW-BWTAR. can anybody tell how to keep Search Help or Match Code for the Above Fields in ECC 6.0 with Example
              Very Urgent.
    Thanks,
    Gopi.

    Well Gopi.. as per your requirement no need to use collective search help.
    I guess you have three fields in selection-screen,out 3 fields you have two fields contains search help.
    Create your user defined search help BWTAR ..
    Check the below links for creation search help :
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Hope you got it.
    Thanks
    Seshu

Maybe you are looking for

  • Hard Drive Is Flickering:

    I have been podcasting...downloading lots of the free ones... and some of them are a few megabytes but some are 1/2 of a gigabite. This takes up space, and also OS X And OS 9 on the same 10gb hard drive. There is 1.5 gb left. My 80gb samsung hard dri

  • Is there any way to transfer an entire library from an ipod to a new laptop (not just the purchases)?

    My laptop was stolen that had my itunes installed and was synced with my ipod classic. I now have a new laptop. Is there any way I can transfer ALL the music from my ipod to itunes on the new laptop, not just the purchases? I don't have access to all

  • SSH ciphers help

    Hello, One of my co-worker changed our the ssh ciphers that we currently use. We made a change to /etc/ssh/ssh_config on our Solaris 10 servers. Security said that we have to use aes128-ctr or higher, but not aes128-cbc. The issue is that many of the

  • Best way to delete data before sale of iMac

    I have created a new user with Admin privileges but I'm not sure where to go from there. I 'think' I have to delete all other accounts on the machine? But what about my data? Can it still be accessed? Should I run a utility to get rid of the current

  • Tomcat Server window closes automatically when I start it

    Hi, I am using Apache Tomcat 4.1 to work a small Web application. Each time when I start the Tomcat server the window comes up and closes automatically. Is something wrong with my configuration ? Do I have to make any changes to server.xml ? Pls help