Hide/Delete lines from ABAP Query output when Quantity is 0

Hi all,
I'm changing an existing abap query. My requirement is to delete the rows from the report output where qantity = 0.
I tried the following ways.
1. In SQ01, select the quantity field and check the checkbox for "Display only field <> 0", but this didnt worked as it will 
     supress the zero from display.
2. I tried to write code in the Infoset SQ02->Edit->Code. I wrote the following code "CHECK vbep-wmeng IS NOT INITIAL".
    Here  the problem is, the code is not executing in the test client. When I open the Infoset in test(i mean development test) 
    client the code is there, but when i execute the program its not working. I tried using "BREAK-POINT", program executions
    does not stop at the break point. There is existing code in the event "START-OF-SELECTION", this code I'm able to see in the
    query program opened through SE38. I edited the existing code and kept a break point in between, and now checked in the
    program in SE38, but the changes are not reflected. I'm able to see old code only(even after save n generate).
3. Gave search in SCN, google etc.
Please note.
1. I'm not using any Logical Database in the Infoset. Its a simple join of 4 tables.
2. Query is created in the Global Area (cross client) not client specific.
Can anybody tell me what could be the problem and how can Over the above issues and achive the requirement.
Thanks in advance.
Edited by: Mr A on Feb 25, 2010 1:39 AM

Dear Mr A,
Can i know how did u solve the issue even i'm facing the same problem.
Regards,
Karan Bhasin

Similar Messages

  • Deleting line from ABAP screen..

    Hello,
    I have a ABAP report when excuted, showsn mulpiple reords one by one wirtten on screen using write statement along with checkboxes besides it and I am also appending an internal table with these values.
    Now, User can select the check boxes for the line records. Also there is a delete button in the application toolbar.
    Now, when the delete button is executed, I want the lines which are selected on the ABAP output screen to be deleted so that only records which were not selected using check box will be shown.
    I know for this I have to code in AT-User command but how do we delete the lines from ABAP screen.
    AT user-command.
      CASE SY-UCOMM.
        WHEN 'DELETE'.
    ENDCASE
    Regards,
    Jainam.

    Hello,
    Based on which ever field is selected you can delete from the internal table and then refresh the ALV.
    Hope it helps.
    Regards,
    Nabheet Madan

  • I am trying to manually Delete songs from my Ipad2, but when I delete it shows a Cloud with a Red Arrow pointing down, and the Song remains, how do I get rid of the Song Completely?.

    I am Manually Deleting Songs from my Ipad2, but when I press Delete, it shows a Cloud with a Red Arrow pointing down, and the Song remains, how do I get rid of the Song completely?.

    The cloud icon means that the songs are only in the cloud, they aren't stored on your iPad. You can turn off the showing of songs that are in the cloud via Settings > iTunes & App Store > Music (under the 'show all' heading) 'off'. If you want to some cloud songs to show but not all then you can hide the ones that you don't want via your computer's iTunes : iTunes Store: Hiding and unhiding purchases

  • ABAP query output

    hi all
    Is it possible to give a page break in ABAP query output. I want my new order number to be printed on a new page.
    Any pointers will be appreciated.
    Thanks.

    Hi,
    U can use AT NEW event.
    Ex:
    AT NEW orderno.
    NEW PAGE.
    endat.
    Regards,
    S.Nehru.

  • Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Albums are not places to store photos, they're more like "labels" you can apply to photos to better organize them. A single image file can be in multiple albums... they are not copies, it's simply been labelled as being in all those albums. So what you're trying to do doesn't make sense, because it's based on incorrect assumptions.
    The iPhoto library will always show all photos that you have added to iPhoto.

  • HT4236 I am trying to delete photos from my Ipad. When I go to "sync photos from" my only options are the photo folders on my PC I cannot see the albums on my Ipad. No options for Photoshop items. Help!

    I am trying to delete photos from my Ipad. When I go to "sync photos from" my only options are the photo folders on my PC I cannot see the albums on my Ipad. No options for Photoshop items. Help!

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • Hi there, my iMac has automatically been deleting files from my thumb drive when I try to open them.  The lost files aren'tin the trash or anywhere else I can think of.  Any ideas?

    Hi there, my iMac has automatically been deleting files from my thumb drive when I try to open them.  The lost files aren'tin the trash or anywhere else I can think of.  Any ideas?

    If one drive works and the other doesn't that points the finger at the errant drive. They are cheap, replace it. To check formatting right click it in Finder and choose Get Info and look for Format type. Finally do you eject it when removing it or do you just pull it out of the USB connection?

  • Is it possible to allow iphoto to delete fotos from the finder? (when iphoto doesnt copy the fotos into an own library)

    Is it possible to allow iphoto to delete fotos from the finder? (when iphoto doesnt copy the fotos into an own library)

    No  -- iPhoto does not ever touch an photo file that is not within its database
    THis is one (of the minior) resaons that it is very strongly advised not to uncheck the preference to copy imported items to the iPhoto library - it makes importing and deleting more difficult and makes upgrading or replacing defective hardware much, much more difficult
    LN

  • How do I delete photos from my  iPad? When I push the red delete button nothing happens.

    How do I delete photos from my  iPad? When I push the red delete button nothing happens.

    Which photos are you trying to delete?
    You should be able to delete photos in your Camera Roll that have been taken by your device or copied to it from emails, websites, etc.
    Photos that were transferred to your device during a sync process are deleted by doing another sync but before syncing deselect those albums you no longer want.

  • ABAP Query - output entries repeating

    Hi Friends,
    I have created an ABAP query but the output entries are repeating. I tried different joins but dint work. I found out the internal table in the query report in SE38 and used the following command in the Infoset code (SQ02):
    DELETE ADJACENT DUPLICATES FROM %G00.
    I am not able to generate the infoset without declaring the internal table %G00. Hence I declared it in the DATA section of the infoset code. After this when I go to the query (SQ01) and run it, the system is throwing an ABAP dump which says %G00 has been declared twice.
    Can someone plese help me out in getting this resolved. I've been stuck with this for almost a week now.
    Thanks in advance,
    Dikshitha

    Hello Dikshitha,
    In the data section of the infoset:
    Deletion of duplicates lines
    constants : wk_table(6) VALUE '%G00[]'.
    FIELD-SYMBOLS : <t1> TYPE table.
    In the END OF SELECTION (AFTER LIST):
    the other code lines.
    I checked my infoset, I never declare %G00[] as it is automatically generated. Perhaps you forgot to remove some of your previous code lines? Have you check everywhere (code related to additional fields, code tab, data read prog tab?).
    After the modification, try to create a new query from scratch related to this infoset. Perhaps it's a "refresh" problem.
    Olivier

  • Updating, Adding, or Deleting rows from a query

    So, I've got this page that originally was made of four
    different forms. It worked great. But, then the client asked that I
    "idiot proof" the page.
    Originally, I had a form that enclosed a one-line table (with
    Add & Clear buttons on the end) that took seven fields and
    "added" a new record to the "tbljob" table.
    That was followed with another form that created a table from
    the results of a cfquery and listed all the rows from tbljob (with
    Update/Delete buttons on the end of each row).
    This worked fine when it was two separate forms. Now, I'm
    trying to use only one "form" while displaying the two tables. The
    buttons are now done with Javascript (so there are dialog boxes).
    The problem is that I am getting a CF error message because the
    insert, update, and delete commands are trying to pass the contents
    of the fields as comma-delimited lists rather than the single data
    item that is actually in each field. I am passing a hidden field
    with each row that contains the "job_id".
    I know the problem is that I'm not identifying each row as
    being unique. I guess it's like I'm passing an "array" of data
    rather than just a "row".
    Basically, I just want to be able to display a blank row for
    adding records followed by multiple rows from a query. The blank
    row needs to have "Add" and "Cancel" buttons at the end and the
    multi-row part has to have "Update" and "Delete" buttons on the end
    of each row and manage the appropriate records.
    It's got me stumped. TIA.

    What you can do is try using <cfloop> to insert, update
    and delete your information.
    For instance deleting the information try this.
    <!---- Delete Jobs---->
    <cfloop index="JobIDs" list="#Job_ID#" delimiters=",">
    <cfquery name="delteall" datasource="dbsource">
    DELETE
    FROM table
    Where job_Id = #JobIDs#
    </cfquery>
    </cfloop>
    Do the same for your inserting and updating.
    Because what CF see is job_id = 1,2,3,4,5,6,7,8,9
    SO you are looping over a list = #job_id# and delimiter is "
    , " and we are calling the index JobIDs. JobIDs are the values - 1
    2 3 4 5 6 ....
    I hope this helps. As for the displaying of the images, use
    if then statements:
    <cfif isdefined("edittable") and edittable eq '"y">
    Then display the query and outputs for the editing options
    <cfelseif isdefined("deletetable") and addtable eq "y">
    The dispaly the query and outputs for adding options
    <cfelse>
    Then display the query for outputing the delete options
    </cfif>
    So your link will have soemthing of this sort <a
    href="samepage.cfm?deletetable=y">Add Table</a>
    Hope this helps,
    Sevor Klu

  • ABAP query issue when logoff error message query not created

    Hi All ,
    I created a ABAP query using SQ01 . I saved it and i'm able to see the output . But , if i logoff from the system and relogin again to system and trying to execute the query , it is showing an error message
    " The query has not been created " Please help me , is there any settings change or i have to do any thing else ?
    Thanks & Regards ,
    Sabu

    Hi ,
    Yes you are right , when i try that way i can see , is it the correct solution ?
    i have one more issue , i created the query , i can display and execute the query , but no one in the same system able to display or execute the query . What should i do .
    Thanks & Regards ,
    Sabu.

  • ABAP query output not showing all output fields

    I added a new field group in an existing query and marked them to display in the output list. When I test the output from SQ01 -> InfoSer Query, the output is what I expect. However, if I execute the query itself, it does not show the additional fields I just created.
    I notice that in the Basic List layout design, the new fields are on a new line and not appended to the same line as the output fields before I did the modifications. I already tried to manipulate the output length and positions, but it didn't help. I turned on the ruler to drag the fields in the desired positions, sometimes it works but not for all the fields. Can someone help me please?

    I figured it out already. The maximum width for the report output is 255 only. Switching from graphical query painter, I got the error that some fields were overlapping. Then I recalculated the starting positions of the fields and adjusted their lengths. 

  • How to hide some fields in ABAP Query

    Hi,
    My ABAP Query has a long list of extracted fields. I wanted to set some of these output to "HIDE".
    This allow User the flexibility to decide what fields to show.
    How can I set the field to "HIDE" in my query?
    Thanks
    bye

    Hi Tim,
    You can do this by setting the Report layout variant in following steps:
    1. First define the parameter on selection screent for report variant.
    2. Data decelaration for variant.
    3. Value request to get already present variants on report:
    4. If doesn't choose the layout take out the default report layout.
    5. Initialize the report variant.
    6. Apply the variant to the REUSE_ALV_GRID_DISPLAY funtion module.
             Here to generate report variant first to open report output and then as per according to user set the layout of report using the layout icon of ALV with summation on value fields (as required) and create layout name.
    *Data Deceleration as below:
    Data :g_save(1) TYPE c,
    **      g_default(1) TYPE c,
    g_exit(1) TYPE c,
    gx_variant TYPE disvariant,
    g_variant TYPE disvariant.
    *First Define the parameter to give layout of Report variant.
    SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-003.
    PARAMETERS: p_vari TYPE disvariant-variant.
    SELECTION-SCREEN END OF BLOCK 3.
    * Process on value request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
    PERFORM f4_for_variant.
    * Selection-Screen Checking
    AT SELECTION-SCREEN.
    PERFORM pai_of_selection_screen.
    INITIALIZATION.
    w_repid = sy-repid.
    PERFORM variant_init.
    * Get default variant
    gx_variant = g_variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 0.
    p_vari = gx_variant-variant.
    ENDIF.
    FORM f4_for_variant .
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
    is_variant = g_variant
    i_save     = g_save
    IMPORTING
    e_exit     = g_exit
    es_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 2.
    MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    **  ELSE.
    **    IF g_exit = space.
    **    ENDIF.
    ENDIF.
    ENDFORM.                    " f4_for_variant
    FORM pai_of_selection_screen .
    IF NOT p_vari IS INITIAL.
    MOVE g_variant TO gx_variant.
    MOVE p_vari TO gx_variant-variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant.
    g_variant = gx_variant.
    ELSE.
    PERFORM variant_init.
    ENDIF.
    ENDFORM.                    " pai_of_selection_screen
    FORM variant_init .
    CLEAR g_variant.
    g_variant-report = w_repid.
    ENDFORM.                    " variant_init
    **While Showing report pass the variant :::
    g_save = 'A'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = w_repid
    i_structure_name   = 'IT_MAIN'
    is_layout          = i_layout
    is_print           = i_print
    it_fieldcat        = i_fieldcat[]
    it_events          = i_events[]
    i_save             = g_save
    is_variant         = g_variant
    TABLES
    t_outtab           = it_main
    EXCEPTIONS
    program_error      = 1
    OTHERS             = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Many Thanks / Himanshu Gupta

  • ABAP Query output to XML file using Business connector

    Hi All,
    I would request your help on to know, how can I read the output of ABAP query executed in SAP system via Business connector and then generate a XML file.
    Also the existing business connector system, generates the XML file in encoding iso-8859-1. Where as customer wants the output XML file in encoding windows-1252.
    Please help with your valuable ideas.
    Thanks,

    Hello,
    possible solution:
    1. create a remote function module (FM) in SAP which returns your needed data
    2. create outbound map in BC for this FM
    3. call this FM from BC in a flow
    3. extract the result to XML (e.g. with service recordToDocument)
    CSY

Maybe you are looking for

  • Problems with Adobe account and Adobe support!

    We bought in December 2012 "Creative Cloud for teams" (10 licenses). I have since started our problems with support Adobe that continue today: ( 1. We do not receive invoices by e-mail - every month we have to ask several times adobe support on the c

  • Mapping in OWB with primary key and foreign key relationship

    Hi all, I am new to this datawarehousing field. I have just started my career. I have to now create a mapping in owb where a table has a field which is a primary key of another table in the same staging area. If you guys could help me out with the a

  • Menu not looping and titles not showing up

    Hello, I made some dvd\s which looked good before i send them to the guy who duplicates them for me and he noticed some issues i cannot figure out. If i could get some help or directions that would be great. i have included screen shots below the que

  • Unauthenticated user  when using web service

    Hi, I have built a session bean accessing some KM functionality. This sessionbean has a couple of business methods exposed as web services. The business methods are called fine, but when I try to access the KM Resource Context I get the following exc

  • First row trouble with datagrid component

    Dear all, I think my question is entirely explained in the topic summary of this post. I have a datagrid that uses a item renderer. The main app is defined like in the first part of the attached code. The itemrenderer looks like the second part of th