Wip Query have to display only rejection items

Hi,
     This is my customization form wip query
select m1.docnum 'WIP NO', d.U_RejQty 'WIPRej',d.U_RewQty 'WIP re-work' ,d2.U_RejQty 'QCRej',d2.u_rewqty'QC Re-Work',d2.U_Opename 'Operation',
m1.u_qchname as PreparedBy,m1.u_shift,m1.u_remarks,m1.u_remrej,m1.u_Remscrp,m.docnum 'FO NO',m.plannedqty,m.rlsdate,m.itemcode,m.u_tdrawno,m.CardCode,n.cardname,
(select itemname from oitm where itemcode=m.itemcode) 'Description'
from OWOR m
left outer join [@SHJ_WIP_UPD1] d on  m.DocNum =d.U_OrderNo
left outer join [@SHJ_WIP_OUPD] m1 on m1.DocEntry =d.DocEntry
left outer join [@SHJ_QC_INS5] d2 on m.DocNum =d2.U_OrderNo and m1.DocNum =d2.U_WIP
left outer join OCRD n on
m.CardCode=n.CardCode
where m.rlsdate between {?FromDate} and {?ToDate}
and (d.U_RejQty>0 or d.U_RewQty>0) and ( d2.U_RejQty>0 or d2.U_RewQty>0)
In ths query am displaying the rejection items and rework items alone but for me its showing all the items rejection and rework items zeros also showing.
am getting output like this
          I need output only highlighted item because there only rejection items
Regards
Vinoth

Try This
select m1.docnum 'WIP NO', d.U_RejQty 'WIPRej',d.U_RewQty 'WIP re-work' ,d2.U_RejQty 'QCRej',d2.u_rewqty'QC Re-Work',d2.U_Opename 'Operation',
m1.u_qchname as PreparedBy,m1.u_shift,m1.u_remarks,m1.u_remrej,m1.u_Remscrp,m.docnum 'FO NO',m.plannedqty,m.rlsdate,m.itemcode,m.u_tdrawno,m.CardCode,n.cardname,
(select itemname from oitm where itemcode=m.itemcode) 'Description'
from OWOR m
left outer join [@SHJ_WIP_UPD1] d on  m.DocNum =d.U_OrderNo
left outer join [@SHJ_WIP_OUPD] m1 on m1.DocEntry =d.DocEntry
left outer join [@SHJ_QC_INS5] d2 on m.DocNum =d2.U_OrderNo and m1.DocNum =d2.U_WIP
left outer join OCRD n on
m.CardCode=n.CardCode
where m.rlsdate between {?FromDate} and {?ToDate}
and (isnull(d.U_RejQty,0)>0 or isnull( d.U_RewQty,0)>0) or ( isnull(d2.U_RejQty,0)>0 or isnull(d2.U_RewQty,0)>0)
Regards
Kennedy

Similar Messages

  • In report i should have to display only single country

    Hello..
    In myreport its dispalying company,costelemt and many more fields,users want some changes they have to display only one country and also courency also.they should have to enter the country name starting letter.
    thanks...

    If they want only one country you should give them the possibility to filter the country......put country characteristic in Free Characteristic Panel ....this give users ths possibility to make a drill down and filter according to country...
    I hope this helps you

  • Display only in Items assignement block

    Hi experts.
    I have a requirement where one of the columns of the "items" assignment block should be made display only.
    I used the transaction bsp_wd_cmpwb to configure - but as this is a table view I don't have the option for display only (generally available for over view page. I am specifically looking for Product description in the items assignment block.
    Can this be done by configuring. Do I need to code any thing. if yes please suggest how.
    Thank you
    Ram

    Hello Ram,
    Did you try to redefine method GET_I_xxx of your DESCRIPTION field already?
    Check out if adding this line of code can do the trick:
        rv_disabled = 'TRUE'.
    Regards,
    Nicolas Busson.

  • How to get and display only some items out of an xml source

    hi everybody,<br /><br />i have a designer-pdf based on a xsd. from within this pdf i call a second one and pass global variables to it. i want to use these vars to get specifics items out of an xml source. example:<br /><br />say that my xml is build like this:<br /><br /><form(min1-max1)><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /></form><br /><br />and i want just to pic up the subform element with index '2'. is there a way to do that?<br /><br />thanks,<br /><br />valerio

    If you've got a chunk of XML in a string, you can read from it using XPath notation.  Here's an example.  Hope it helps:
    var strXML = "JaredLangdonFredFlintstone";
    var oXML = XMLData.parse(strXML, false);
    var oFirstLName = XMLData.applyXPath(oXML,"//MyRoot/Person[1]/LName");
    var oSecondLName = XMLData.applyXPath(oXML,"//MyRoot/Person[2]/LName");
    xfa.host.messageBox("First LName is: " + oFirstLName.value + "\nSecond LName is: " + oSecondLName.value);
    Jared Langdon
    http://www.jlangdon.ca

  • Display only "Active" Contacts and "Active" Account in LookUp

    Hello,
    I have a flag "Active/Inactive" on Account and Contacts.
    I would like to display only "Active" items in my LookUps.
    Has anyone a solution ?
    Thanks for your help.

    you would remove access to VD03 and give access to the new sap query (create a z-transaction)
    which you can easily build based on table KNA1.  The fields are AUFSD and LIFSD

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • How can i get the order form to display only those fields selected by user?

    Hi everyone,
    I'm a newbee so please bear with me.
    I would like to create an interactive form in a multi-page format. I would like to display our fifty odd products, divided into 5 different categories. The client browses through these pages then selects those that he wants to buy.
    The interactive order form at the end should display only the client’s choices along with the Total purchase order.
    In short, a little like a on-line catalogue and cart/basket that we see while buying online.
    Now, I've created my pdf brochure, and I have the order form on page 12-13 at the end with the subtotal, Vat and Total ...all that's fine. My only problem is I want the order form to display only those items selected by the user and not the entire list of items as shown in my current order form.
    Have a look at my pdf here http://www.upperside.fr/vijee/mpls09ex/EXHIBITOR%20SPECIAL%20ORDERS2010.pdf
    Can someone please help me/guide me to the right resources that I need to look up to achieve my end result.
    Thanks a lot in advance.
    Vijee

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

  • Displaying non contract items also in the contract catalogue

    Hi SRM guru's
    While i am doing a shop using the contract catalogue in SRM 5.0.The non contract items are also displaying in the contract catalogue.
    Please let me know what i have to do for displaying only contract items in the contract catalogue.
    Thanks in advance.

    Hi,
    Please check help.sap.com.
    http://help.sap.com/saphelp_ccm20/helpdata/en/6e/89c4e2038c49969ab5ede5f6e24bd5/frameset.htm
    Regards,
    Masa

  • Can users display only own documents in Web CRM?

    Hello
    is it possible to have a limitation for users in diplaying documents (sales order, quotes, tickets, and so on) in web CRM?
    Each user can access to own documents with a super user able to display all.
    We are in the situation where sales reps do have to displays only own orders, while the Sales Manager can display all.
    Thanks
    Paolo

    As a default, users with the Sales Rep Role will only see their own assigned customers and assigned customer documents in the Sales View.  However, they could still search for customers assigned to other reps in any of the search fields. 
    If you wanted to go further than that you could create a custom role that keeps them from accessing pages or components that allow searching but I doubt you could disable them all without seriously affecting some pages and functions (like searching for a customer's name and contact when creating an activity).
    I suspect it would take some custom work to truly isolate every rep and his/her customers and documents from every other rep in every situation.

  • How to Add Spacing between display only fields in Oracle APEX

    Hi
    I have a screen which display some values. I want to seperate the two display items with a 10 spaces.
    How do I achieve this. I tried to create a dummy field and inserted <p>    </p>
    but it is not interpreting the value as html tag and displays the values on the screen.
    Any help would greatly be appreciated.
    Thanks
    sukarna

    Hi Sukarna,
    You have two "Display as Text" items, side by side on a page and you want to push the second one further to the right?
    If so, you can add &amp;nbsp; in front of the label text.
    Your dummy item may have been showing the &amp;nbsp; values if you have selected "Display as Text (escape special characters, does not save state)" for the item type?
    Andy

  • Input ready query and display only rows

    I am trying to replicate scenario which is equivalent to creating manual layout in SEM-BPS with settings for layout category - Key Figures in Data columns, and rows defined individually.  In this version it is possible to restrict certain rows as comparision only.
    How can I acheive this using Input ready query? In my query I have created a strucure for Planning Items, but I am not able to show certain planning item selections as display only.
    Any thoughts?

    Hello Gregor,
    Thanks for you answer.
    I already have two structures as mentioned by you.
    Can you please let me know what exactly you meant by set the input flag on the cell level? What settings I have to change to set the flag, do I have to use any formula?  In my example I have three rows for Planning item row structure and I want only one row to be selected as display only row. 
    Regards,
    Sachin

  • Getting a "Displaying only the newest results below. To view all results, narrow your query by adding a filter" message in error

    I have a list with almost 10000 items. I have a view that should be returning 8 items. For me, the Farm Admin, I see the full set of expected values. The message "Displaying only the newest results below. To view all results, narrow your query by
    adding a filter" shows for other users. This makes no sense -
    there ARE filters on this view. I'd rather not increase the throttle limit.
    Anthony Kelly

    Hi Ajk,
    Check that the list is not scoped by an audience; but, I'm afraid that either way admin, (e.g. non Farm admin or site collection admin)
    I'd recommend exporting to excel, create two new spreadsheets and then import as custom lists.
    Best of luck and cheers,
    Stacy Anothersharepointblog.blogspot.com

  • Mapping display only item to three output parameters from a procedure?

    Hi all
    I have a procedure with three output parameters, which I would like to map the three output parameters to three display only items on the page.
    there is a page process called the procedure, which output statement1,statement2,statement3 parameters.
    I have three items on the page which I would like to map them to the three parameters respectively,
    how can I achieve this?
    thanks

    Rajesh,
    please check if this following proposal could serve you.
    Define the Query with mode FixedQueryWithOutput. In the package define a ref cursor as IN OUT parameter. To get your 3 values back, open the cursor in your procedure like "Select val1, val2, val3 from dual". Then the values should get into your query.
    Here is an example how this could be defined.
    Package:
    type return_cur IS ref CURSOR;
    Procedure:
    PROCEDURE myProc(myReturnCur IN OUT return_cur) ...
    OPEN myReturnCur FOR SELECT val1, val2, val3  FROM dual;
    Query:
    DECLARE
      MYRETURNCUR myPackage.return_cur;
    BEGIN
      myPackage.myProc(
        MYRETURNCUR => ?
    END;
    Good luck.
    Michael

  • Displaying only the newest results below. To view all results, narrow your query by adding a filter.

    Hi,
    In one of my list there are 33,000 records.
    It gives message "Displaying only the newest results below. To view all results, narrow your query by adding a filter."
    I don't want to change my threshold limit. Can anybody please tell me steps to resolve this issue?
    Regards,
    Amit Khatri

    I have a list of 11,000 items. Even though I have setup filters on it and it shows all 10 records based on that filter, it still shows that warning on top. For some items, even with those filters, I don't see the list items at all. How do I deal with
    this situation. I don't want to change my threshold limits from CA either. Please help.
    MAK

  • VA01 Item category display only for specific order type

    Hi,
    I have a requirement to deactivate(display only) item category field in VA01 table item for certain order type . I tried the user exit  MV45AFZZ(USEREXIT_FIELD_MODIFICATION). This is working only if the table item has a value. i.e I could able to enter an item category first and then enter the material and quantity.
    So please suggest any alternative how to make the item category field(VBAP-PSTYV) column display only for centrain order type.
    Regards
    Aromal R

    Hi,
    Create a Custom Authorization Object so that you can control it for certain users.  2. Write implicit enhancement spot in the include TCS MV45AF0T_TCTRL_U_ERF_AUFTRAG_I,
    FORM TCTRL_U_ERF_AUFTRAG_INIT
    AUTHORITY-CHECK OBJECT 'ZITMCAT'
              ID 'ACTVT' FIELD '02'.
    IF SY-SUBRC NE 0.
    *    DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
    LOOP AT   TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
       IF WA_COLS-SCREEN-NAME = 'VBAP-PSTYV'.
       WA_COLS-SCREEN-INPUT = 0.
       WA_COLS-SCREEN-OUTPUT = 1.
      MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
       ENDIF.
    ENDLOOP.
    ENDIF.
    Regards
    Aromal R

Maybe you are looking for

  • Some app issues

    I have a problem with maps and an app. Maps seems to have the compass backwards.  It shows me facing east when I'm pointing west on the maps screen.  I did the compass calibration and it still shows the opposite direction. Also I did reset my phone b

  • [SOLVED] No more CD/DVD in wine applications

    I read quite a few threads about udev problems with /dev/sr0. I think my problem has a link with this, but I am not sure. Since a week, I cannot use my cdrom drive with wine applications. My /dev/sr0 is : brw-rw----+ 1 root disk 11, 0 1 nov. 12:09 /d

  • Install problems with Fedora Core 5

    I'm having problems getting XE running on FC5. I've tried various suggestions in this forum and elswhere, but found no complete description of what might be wrong. Hope somone can help. I've turned SELinux off, which made a big improvment, but things

  • Uninstall Office 2010

    I have a windows virtual machine, I think Windows 7 (via vmware fusion 4.1.4) on my MBA that is running a Yosemite beta. Fusion 4.1.4 does not run on Yosemite, and probably never will. Fusion 7 is not worth it for me, but I thought I'd try to keep th

  • My iPad3 is freezed because the iCloud notification stays on the screen even after I touched the OK button.

    My iPad3 is freezed because the iCloud notification stays on the screen even after I touched the OK button.