How to find the Rejected quantity in the Itemmaster data-- Inventory Tab

Hi Experts,
I want to find the Rejected quantity value when iam raising a production order->issue>and Receipt.
                     In the Receipt from production, if iam giving 10 qty as rejected the value must get displayed in the inventory tab of item master.
                     I have created a UDF called Rejectedqty in the inventory tab, but how to import that rejected value from the receipt form to this inventory tab,the value 10 must also be subtracted from the available qty present in the inventory tab.
This query is used for finding the available items to sell:
SELECT T0.OnHand - T0.IsCommited FROM OITW T0 WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]
I want the same for the Rejected Value(it must get subtracted from the Available qty).Keep me posted if solution is found out.
Regards,
Magesh.

I am thinking you want to show the rejected quantity on the Parent Item in the Inventory Tab.
Use the following SQL for showing the Net Available Qty after subtracting the rejection.
<b>SELECT T0.OnHand - T0.IsCommited - (SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R')
FROM OITW T0
WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]</b>
Use the following SQL to get just the rejected quantity
<b>SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R'</b>
Suda

Similar Messages

  • How to find last inserted record in the table.

    Version: Oracle 10g
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".
    As i come to know that Rowid is not result perfect results. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
    If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
    If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more.

  • How to find out which type of the driver is used in our application?

    Hi all,
    can anyone tell me how to find out which type of the driver is used in our application?
    Thanks in advance,
    Phoeniox

    Hi,
    Check out this...
    Class.forName("com.mysql.jdbc.Driver"); //if u r using MySql
    List drivers = Collections.list(DriverManager.getDrivers());
                   for(int i=0;i<drivers.size();i++)
                        Driver driver = (Driver)drivers.get(i);
                        String driverName = driver.getClass().getName();
                        System.out.println("Driver "+i+":::"+driverName);
    you need to load the driver and display in the same program.
    Then only you'l get the required result.
    prakhyath

  • How to find out who has deleted the production Query

    Hi All,
    I have searche SD , i can find it for infoobject deletion but i couldn't find it for Query.
    Please let me know is there any possiblity to kow
        How to find out who has deleted the production Query
    Awaiting for your replies.
    cheers

    Hi Mahesh and all,
    Thanks for all your  inputs.
    I have tried with RSRREPDIR tabel , I am unable to see that query at all.
    If I use theT-code SLG1,
      please guide me on the steps with paramets to be given in the respective ..object, subobject etc..
    OR
    could you please suggest any other way.
    cheers
    leena

  • How to find out who had deleted the function moldule? S O S

    how to find out who had deleted the function moldule Thank you very much.

    if this fm was assigned to device class (package) you'll find it in
    tables tadir, e070, e071
    try with name of function module or function group
    hope that helps
    Andreas

  • How to find out what are all the change pointers assoicated for an idoc ??

    Hi ,
    How to find out what are all the change pointers activated for an idoc ??
    Thanks,
    Varma

    Verma,
    You can check what are the active Change Pointers for the message type in tcode <b>BD50</b>
    Use tcode <b>BD61</b> to check whether change pointers are active or not??
    Hope this helps..

  • How to find which function module write the relevant idoctype?

    Dear All,
    how to find which function module write the relevant idoctype?

    Hi,
    Generally the function modules of the idoc types are having a naming convention as IDOC_INPUT for inbound processing and IDOC_OUTPUT for outbound processing followed by the idoc type name
    for example : For IDOC type ORDERS
    the inbound function module will be IDOC_INPUT_ORDERS and for outbound IDOC_OUTPUT_ORDERSP
    In this way you can find the function module for a particular IDOC
    P.S: Hope this is what you have asked for
    Regards
    Sarves

  • How to find user exit implemented in the program

    how to find user exit implemented in the program or standerd transaction

    try this program to get the list of all the user exits for a transaction...
    *& Report  Z_USER_EXIT                                                 *
    *REPORT  Z_USER_EXIT                             .
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
      TABLES : tstc,     "SAP Transaction Codes
               tadir,    "Directory of Repository Objects
               modsapt,  "SAP Enhancements - Short Texts
               modact,   "Modifications
               trdir,    "System table TRDIR
               tfdir,    "Function Module
               enlfdir,  "Additional Attributes for Function Modules
               tstct.    "Transaction Code Texts
    *& Variables
      DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
      DATA : field1(30).
      DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
      SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
      SELECTION-SCREEN SKIP.
      PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
      SELECTION-SCREEN SKIP.
      SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
      START-OF-SELECTION.
    Validate Transaction Code
        SELECT SINGLE * FROM tstc
          WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
        IF sy-subrc EQ 0.
          SELECT SINGLE * FROM tadir
             WHERE pgmid    = 'R3TR'
               AND object   = 'PROG'
               AND obj_name = tstc-pgmna.
          MOVE : tadir-devclass TO v_devclass.
          IF sy-subrc NE 0.
            SELECT SINGLE * FROM trdir
               WHERE name = tstc-pgmna.
            IF trdir-subc EQ 'F'.
              SELECT SINGLE * FROM tfdir
                WHERE pname = tstc-pgmna.
              SELECT SINGLE * FROM enlfdir
                WHERE funcname = tfdir-funcname.
              SELECT SINGLE * FROM tadir
                WHERE pgmid    = 'R3TR'
                  AND object   = 'FUGR'
                  AND obj_name = enlfdir-area.
              MOVE : tadir-devclass TO v_devclass.
            ENDIF.
          ENDIF.
    Find SAP Modifactions
          SELECT * FROM tadir
            INTO TABLE jtab
            WHERE pgmid    = 'R3TR'
              AND object   = 'SMOD'
              AND devclass = v_devclass.
          SELECT SINGLE * FROM tstct
            WHERE sprsl EQ sy-langu
              AND tcode EQ p_tcode.
          FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
          WRITE:/(19) 'Transaction Code - ',
          20(20) p_tcode,
          45(50) tstct-ttext.
          SKIP.
          IF NOT jtab[] IS INITIAL.
            WRITE:/(95) sy-uline.
            FORMAT COLOR COL_HEADING INTENSIFIED ON.
            WRITE:/1 sy-vline,
            2 'Exit Name',
            21 sy-vline ,
            22 'Description',
            95 sy-vline.
            WRITE:/(95) sy-uline.
            LOOP AT jtab.
              SELECT SINGLE * FROM modsapt
              WHERE sprsl = sy-langu AND
              name = jtab-obj_name.
              FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              WRITE:/1 sy-vline,
              2 jtab-obj_name HOTSPOT ON,
              21 sy-vline ,
              22 modsapt-modtext,
              95 sy-vline.
            ENDLOOP.
            WRITE:/(95) sy-uline.
            DESCRIBE TABLE jtab.
            SKIP.
            FORMAT COLOR COL_TOTAL INTENSIFIED ON.
            WRITE:/ 'No of Exits:' , sy-tfill.
          ELSE.
            FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
            WRITE:/(95) 'No User Exit exists'.
          ENDIF.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'Transaction Code Does Not Exist'.
        ENDIF.
    Take the user to SMOD for the Exit that was selected.
      AT LINE-SELECTION.
        GET CURSOR FIELD field1.
        CHECK field1(4) EQ 'JTAB'.
        SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
        CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • Hi experts, how i can make confirmed quantity for the same day ???

    Hi experts, how i can make confirmed quantity for the same day ???
    regards,
    uday

    Hi Joao/ Phani,
    I have created a sales order in my IDES system with VA01 today and the delivery dates is confirmed for tomorrow ie 21st.
    My Question is how can i change the confirmed delivery date for the same day ???

  • The sum of the confirmed quantity exceeds the sum of stock items

    Hi,
    I have two sales order. Material is same. Both of them related project stok.
    First sales order's qty=1. I created purchase order and post goods receipt.
    Second sales order's qty=2. I created only purchase order.
    I cannot create delivery for first sales order. System giving message.
    Information message : The sum of the confirmed quantity exceeds the sum
    of stock items
    20000978     10     Only 0 ST of material 7ML18301CF  available
    20000978     10     An item with no delivery quantity is not permitted. Item will be deleted.
    But I have a 1 qty on project stock.
    Please help me.

    hi,
    this is to inform you that,
    please run this report in SE38, SDRQCR21 if you have any inconsistencies in the system.
    it seems there is an issue with MARD-DISKZ  & please correct it.
    but i have a doubt MB51 is material document llist.  why you are checking stock there.
    please confirm.
    regards,
    baljia
    Edited by: balaji timmampalli achari on Nov 17, 2010 9:00 AM

  • MQ Adapter does not clear the rejected message from the queue

    Hi All,
    I'm using a MQ Adapter to fetch the message from the queue without any Backout queue configured. However, whenever there is any bad structured message found in the queue, MQ adapter rejects the message and moves the message to the rejmsg folder but does not clear it off the queue, as a result of which it keeps retrying the same hence, filling the logs and the physical memory. Somehow we do not have any backout queue configured so I can move the message to blackout queue. I have tried configuring the jca retry properties and global jca retry as well but to no avail.
    - Is it not the default behaviour of MQ Adapter to remove the rejected message from the queue irrespective of Backout queue is configured or not? The same behaviour working well with the JMS and File Adapter though.
    - Is there any way I can make MQ Adapter delete the message from that queue once it is rejected?
    Regards,
    Neeraj Sehgal

    Hi Jayson,
    Check this URL which answers a problem with com.sap.engine.boot.loader.ResourceMultiParentClassLoader problem:
    http://209.85.175.132/search?q=cache:RnFZ9viwuKkJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.sdn.folder.sdn!2fcom.sap.sdn.folder.application!2fcom.sap.sdn.folder.roles!2fcom.sap.sdn.folder.navigationroles!2fcom.sap.sdn.role.anonymous!2fcom.sap.sdn.tln.workset.forums!2fforumtest!2fcom.sap.sdn.app.iview.forumthread%3FQuickLink%3Dthread%26tstart%3D45%26threadID%3D1020700+com.sap.engine.boot.loader.ResourceMultiParentClassLoader&hl=en&ct=clnk&cd=3&gl=in&client=firefox-a
    Please check that the JDK compliance level is at 5.0
    Window->Preferences->Java->Compiler->Compiler compliance level set this to 5.0
    Set the installed JRE to the one you have mentioned JDK 5.0 update 16
    Window->Preferences->Java->Installed JRE's->
    Click on the add button to select the path of your JDK.
    once completed click on the check box next to it.
    regards,
    AKD

  • Update the material quantity in the sales order using LSMW...

    Hi Guru's,
    I created one sales order using BAPI..now i wanted update the material quantity in the sales order using LSMW...
    could you please provide the step by step process....
    if anyone of you provide the program logic similar to requirement that would be helpfull to me...
    thanks in advance
    Srinivas....

    Hi Sri,
    Hope it may help you.
    First do the recording for VA02 transaction, in that give the existing sales order number
    and update the Quantity and save it. Remaining steps are same what we used(LSMW) to upload data to applications.
    Regards,
    Vishvesh
    if helpful, rewards it.

  • How to find tables and fields in the standard program.

    Hi to all,
                  I am very new to ABAP,
                i am willing to write Report ,that is  if i enter  the vendor number i have to get item,quantity , name...with dateetc....
    My approach was :  i went to ME2L and i gave vendor number and date in that then i got some data ,then i got the program of that list ( it was there in  bottom right) i.e, SAPMSSY0 .
               Then i entered in SE38,in that i go with Display Object LIst to find out the tables and fields,but i failed to found.
    My question is : I can write the reports if i know the fields and tables location....
                              Here i want to know the ,if i enter the Vendor No, i have to get the regarding information about that NO,_for that i have to know the fields and tables_ of item and cost ....every thing ...
           if my question was not clear please ask me i will explain you again...
          Can you help me how to find...
    Thanks in Advance
    Bhanu.

    Hi Bhanu,
       Goto transaction SE84 then follow the path
    SE84-->ABAP DICTIONARY--->FIELDS---->TABLE FIELDS-->ENTER THE TABLE OR FIED NAME you want to find
        and EXECUTE the programm you will get all the information regarding that field or table.
        Hope this solves your problem.
    Thank you,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:57 PM
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:58 PM

  • How to find out which user has the permission to execute startsap ?

    Hi All
    How do I find out which user has the permission to execute the startsap and stopsap? Do I control the permission on those script using windows standard authorization? For example: only allow certain user have the read and write permission?
    Thank you.!
    Vincent Lo

    Well to me this is really weird question..
    <b>noone un-authorized should have access to OS on your system</b>
    If this is valid you do not need to solve problems who can and who cannot start/stop SAP, because if you want to prevent some users from shutting down the SAP you have really hard job to do - there are many ways how to kill the SAP (for example killing relevant process from task manager, killing of database, messing with services etc.) - yes, this is harmful way of stopping SAP, but we are talking about attack, right? I would contact some Windows specialist to help you disable all the ways how to harm the running SAP. But still after that - there are many files that can be modified/deleted so SAP will crash after restart - you need to protect them too, etc.
    In case you take the first assumption as granted (and you really limit access to this server) you do not need to worry who can stop or start SAP - at the other hand it may be handy to be able to start/stop SAP from other users - for this you can run the stop/start script "under different user".
    But to answer the question - to me this is question just of access control (but really never tried that myself):
    <a href="http://technet2.microsoft.com/WindowsServer/en/library/c6413717-511e-42bd-bd81-82431afe4b2a1033.mspx">Permit or restrict access to a snap-in for a domain</a> (or see other related links down there on this page)
    Please award points for useful answers.
    Thanks

  • How to find out which control triggered the event?

    In my program, there are six buttons that does similar things, like changing the value of an array depending on which button is clicked. I used an event structure to do this. However, instead of repeating my codes six times in six events (one for each button click), I'd like to program one event case that responds to any of the six buttons. The question is, how do I know which button is clicked inside the case (any of the button can be either false or true, so reading the button value won't help)?
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    Jeff Bohrer wrote:
    Oh when will the snipet tool get fixed?
    Jeff, are you using Ton Plomp's Code Capture tool? It is awesome for a lot of reasons. The nicest part is that when you do a capture it saves the snippet to a temporary file and places the path to the temp file in the clipboard. You can create a VI, capture a selection, then in the browse for image control on the forum you just paste the file name from the clipboard. No need to go through the hassle of saving the snippet first then browsing for it.
    Unfortunatly I'm behind a curtain here that discourages third party tools. I know of the third party stuff but it might as well not exist unless it comes on the installation DVD.  Thanks for the response though some other member may find the link useful
    I can't even load Firefox on this machine and am stuck with IE
    Jeff

Maybe you are looking for

  • HT1766 is this possible tto take backup of sms from iphone 3gs to computer??????

    is this possible tto take backup of sms from iphone 3gs to computer??????

  • Regarding error : Subscript beyond count

    PROCEDURE up_value_set_blk(p_upload_phase IN VARCHAR2 DEFAULT NULL,                                  p_upload_mode IN VARCHAR2,                            p_custom_mode IN VARCHAR2 DEFAULT NULL) is                 cursor cur_flex_load is select * fro

  • I can not reverse "transfer of reserves" transaction in t-code : AB08

    I'm testing the function of "transfer of reserves" in Asset module First, I did transfer of reserves in t-code ABMR Then, I wanted to reverse that in t-code AB08 But error occured (See the attached file) This is message ==============================

  • RG112, Format of GUID is invalid

    Hi experts, i work with the new BW (2004s). I activate some info-objects and try to load data with data transfer process. all times i see in monitor the error message: RG112 the format of 25-st GUID is invalid. can you help me. regards Andy

  • SLM248p web interface down and time reset

    My SLM248P web interface keeps locking up (i.e. I get noting when I go to the IP address of the switch).  I need to power cycle the switch to get the web interface to work.  Also, whenever I reset the power, it goes back to Jan 1, 2000 (time).  The s