FIFO Query to generate report Which relates the out-quantity to in-quantity

Dear Experts,
I am trying to generate a report to find out the Inward documents of Items which are issued or transfered. Items are managed with FIFO. Certain Items are serially managed and certain not.
I am using the tables OIVL, OIVE and OIVQ for getting the details.
Now my problem is in certain situations the relation between OIVE and OIVQ returns more line items than required and not able to specifically found out the rows. (Same TreeID is used for several transactions)
Please help
Thanks and regards
Ajith Gopalakrishnan

Hi,
This Query help you a lot as I made this query for displaying the recieve and out quantity of an item as per the date i.e. On which date you recieve how much quantity of an item and how much quantity you release of an item. and please amend the remaining transtype from the transaction table (OINM).
In case of FIFO you know that First IN First OUT is followed so you can easily see that which item on a particular date you recieve and which item on a particular date you release...and if any more further enhancement you required then please let me know ....if will definitely make out some time to help you out.
select distinct SUM(InQty)as InQty,SUM(OutQty)as OutQty,ItemCode,Dscription,DocDate, TransType,
case TransType
when '-2' then 'opening Balance'
when '20' then 'Goods Reciept PO '
when '59' then 'Reciept From Production/Good Reciept '
when '15' then 'Deliveries '
end as 'TransName'
from (
select ItemCode,Dscription,DocDate, InQty,OutQty,TransType from oinm ) as OINM
group by DocDate,ItemCode,TransType,Dscription order by  docdate asc
Thanks
Randy

Similar Messages

  • Can we create a report painter report which shows the details of CC/CE/IO?

    Hi,
    I am trying to create a report painter report which shows the details of cost elements,cost centers and internal orders in a single section.I am able to create reports with 2 characteristics (like CC/CE or IO/CE etc.) but not with 3 characteristics (CE/CC/IO)  which is my case.I am trying to get data something like below.Is this even possible using report painter?I will appreciate if any one could suggest how to do this.
    CE          CC                        IO                        Amt
    600000  8190001100           1100001                $1000
                                              1100002                $2000
                                              1100003                $3000
                                                                          $4000
    620001  8190001101           1100004                $6000
                                              1200001                $2500
    . . . . . . . .and so on
    Thanks,
    Saurabh.

    >
    But when i am using the same synonym in crystal report design, my report is working fine.. but the same synonym is available as invalid in database..
    >
    What does 'my report is working fine' mean? Are you saying that if you rerun the query it retrieves fresh data from the database?
    What does 'same synonym is available as invalide in database' mean? How are you determining this.
    Synonyms can be created for objects that do not yet exist.
    create synonym q for table_does_not_exist
    select * from user_objects where object_name = 'Q'
    SYNONYM_NAME,TABLE_OWNER,TABLE_NAME,DB_LINK
    Q,SCOTT,TABLE_DOES_NOT_EXIST,

  • Error generating report job with the task name 'FSRM_Report_Task

    Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand).
    We get the following in the event logs:
    Log Name:      Application
    Source:        SRMREPORTS
    Date:          09/06/2014 08:09:55
    Event ID:      752
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      FILESERVER2.curriculum.riddlesdown.local
    Description:
    Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="SRMREPORTS" />
        <EventID Qualifiers="0">752</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-06-09T07:09:55.000000000Z" />
        <EventRecordID>42920</EventRecordID>
        <Channel>Application</Channel>
        <Computer>FILESERVER2.curriculum.riddlesdown.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    </Data>
      </EventData>
    </Event>
    We have uninstalled and reinstalled the FSRM role service but are still having the same problem.
    Anybody have any ideas?

    Hi,
    From the error message, it failed because of "invalid argument: storagetype = '101' ".
    101 means the storage type is "system" + "cache". Is there any change on your storage before the issue occurs? For example whether the source storage is changed?
    FsrmStorageModuleType enumeration
    http://msdn.microsoft.com/en-us/library/dd392346(v=vs.85).aspx
    If you have any feedback on our support, please send to [email protected]

  • A report which shows the purchase order MM and the linked vendor invoice

    Hi All,
    I wonder if ther's a SAP standard report which shows the purchase order MM and the linked vendor invoice (the FI document)  with the Net due date.
    Could anyone help me?
    Thanks
    G.Rossi

    Hi,
    ME80FN with PO History View
    ME2N with Scope of List "ALLES"

  • A report which shows the vendor invoice and its purchase order MM

    Hi All,
    I wonder if ther's a SAP standard report which shows the vendor invoice (the FI document) and its purchase order MM.
    Could anyone help me?
    Thanks
    G.Rossi
    Edited by: Lakshmipathi on Aug 2, 2011 2:24 PM
    Thread Locked - Reason  Cross Posted

    Dear,
    you can use FBL1N,
    From there you can view following things:
    1. Vendor Invoice = Reference
    2. Document type = KR and RE for Invoices
    3. Po Number
    4. Amount
    you can enable there many fields as per your requirement.
    Hope this helps!!!
    Br,Vivek

  • I want the report which gives the material having Shelf life.

    I want the report which gives the material having Shelf life, but without batch management in the master .
    Thanks in adavnce...
    Vikrant

    Hi,
    Report MB5M can be used for this.

  • Asset report which related to PO number

    Dear Experts,
    I would like to display all asset which related to its with PO (purchase order) number. Is there any sap standard report for that requirement?
    Thank you.

    Hi Puri,
    There is no standard report for this. You will have to develop a report with the help of ABAP person.
    Thanks.
    Regards,
    Ameet.

  • Query on generating report using XMLP based on a search spec

    Hi,
    We are using XMLP reporting tool to generate reports for our application. Our requirement is to generate reports based on a search spec. Should I send this search spec as a input parameter to the FO processor? In other words, what is the exact procedure to generate reports based on a search spec? This search spec is provided at runtime.
    Thanks,
    Sudha.

    Hi Henry,
    Thank  you for your response.
    BEx query has not been created yet. we need to create accordingly and require your help in creating the same.
    Regarding reporting requirements,  User wants to have adhoc reporting  with rolling months ( 12 months or 6 months) functionality. Users want to link any KF to this rolling months dimension.
    If we can't have this, what is the alternative that we can propose to user.
    Thanks
    Akshara.

  • Need to generate report which executes automatically.

    Dear gurus.
    I like to generate a report  which execute automatically when the probation of an employee expires or list of employees having birthday in current month and print automatically.
    can this be done ? if so can you guide me
    regards
    Saad Nisar.

    hi Saad,
    i think we can do this if you condition satisfies then use fm Job_open submit and job close
    CALL FUNCTION 'JOB_OPEN'
                EXPORTING
                  jobname          = l_name
                IMPORTING
                  jobcount         = l_number
                EXCEPTIONS
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  OTHERS           = 4.
    IF sy-subrc = 0.
                SUBMIT z_report1 VIA JOB l_name NUMBER l_number
                                            AND RETURN .
                IF sy-subrc = 0.
                  CALL FUNCTION 'JOB_CLOSE'
                    EXPORTING
                      jobcount             = l_number
                      jobname              = l_name
                      strtimmed            = 'X'
                    EXCEPTIONS
                      cant_start_immediate = 1
                      invalid_startdate    = 2
                      jobname_missing      = 3
                      job_close_failed     = 4
                      job_nosteps          = 5
                      job_notex            = 6
                      lock_failed          = 7
                      OTHERS               = 8.
    endif.
    endif.
    so once your condition satisfies then open the job and run it in background mode.
    Hope this helps.
    Thanks,
    Tanmaya

  • Query to generate report in order

    Hi ,
    I want to generate report in below order using sql query. In this col2, col3 and col4 will have only 1 value at time remaining will be NULL. What i want is i want to group by Axx or Bxx or Cyy in a specific order based on col2, col3 and col4. please help me
    Result:
    Example
    col1 col2 col3 col4
    100 Axx <null> <null>
    200 <null> Axx <null>
    300 Axx <null> <null>
    400 <null> Bxx <null>
    500 Bxx <null> <null>
    600 <null> Cyy <null>
    .........

    Naga wrote:
    Hi ,
    I want to generate report in below order using sql query. In this col2, col3 and col4 will have only 1 value at time remaining will be NULL. What i want is i want to group by Axx or Bxx or Cyy in a specific order based on col2, col3 and col4. please help me
    Result:
    Example
    col1 col2 col3 col4
    100 Axx <null> <null>
    200 <null> Axx <null>
    300 Axx <null> <null>
    400 <null> Bxx <null>
    500 Bxx <null> <null>
    600 <null> Cyy <null>
    .........Thanks for not posting the original data or explaining clearly ({message:id=9360002})
    It sounds like you want something like...
    group by coalesce(col2,col3,col4)
    order by coalesce(col2,col3,col4), col1

  • UMX Roles - Is there a report which lists the roles created through UMX

    Hi
    Are there any reports available which will detail the roles created in User Management. We need a listing of the roles created by categories.
    tia
    Kumar

    Hi,
    If you are on 11i, there is no seeded report to list the roles -- Query the tables listed in "Oracle Application Object Library Release Notes, Release 12.1.1 [ID 566521.1]", under "3.8 Oracle User Management - SOX Compliance RBAC Reports" to get those details.
    The (List of Users"/" List of Roles/Responsibilities"/"List of Functions/Permissions"/"List of Data Security Objects) is only available in 12.1.1 and above.
    Thanks,
    Hussein

  • Report which shows the discounts taken

    Hi All
    Is there a report for AP which shows the list of invoices that we paid with a discount?

    This report will do you work, this is tab in layout, called cash discount, add that to display.
    Thanks
    Nishan dEv

  • Fix the coulmn width of main report which contain the sub report( remains white space of extra width)

    Hi,
    I am setting the column width of main report and that column is bounded with the sub report which contain some data.
    But if width is exceeded other than sub report data that width is showing as white space block. 
    It should be showing as normal header in gray shade.
    Please provide the solution for this. see the screen attached.
    Thanks

    Hi Raj,
    According to your description, you want to show the sub report without any white space in the textbox. Right?
    In Reporting Services, when we display a sub report in a textbox, this textbox will always show the whole sub report area. If the textbox is smaller than the report area, this textbox will extend automatically to fit the size of the sub report. Otherwise,
    it will has white space inside of the textbox. And if you have white space in your sub report, it will also be displayed in the textbox. So you may need to adjust the sub report size to make it fitted in main report.
    Reference:
    Subreports (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou (Pactera)

  • Can we fetch a report which shows the information carrying the emails sent and received by exchange servers?

    Can we fetch a report through scom 2007 r2 which shows the information carrying the emails sent and received  by exchange servers?

    Hi,
    Within the imported Exchange management pack, we have some default reports that could be run. Have your imported the proper MP to your management group, please check whether those default reports can achieve what you want.
    In addition, here is a powershell script to show total number of emails sent and received per user:
    Exchange 2007/2010 Email stats
    https://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Query to identify to which resposibilities the business areas asre shared

    Hey,
    I have a requiremnt to identify to which responsibilities the Business Area's in the EUL are shared with.
    Can anyone help me if with query to get this info?
    Thanks,
    SK

    SK,
    This is the query I have been using. As you can see, my eul schema owner is eul_us:
    select upper(ba.ba_name) business_area ,
    resp.responsibility_name ,
    resp.responsibility_id ,
    nvl(crtd_by.user_name,'Seeded Business Area') created_by,
    --usrs.eu_username                                   ,
    regexp_substr(usrs.eu_username,'[[:digit:]]+',1,1) user_id1,
    regexp_substr(usrs.eu_username,'[[:digit:]]+',1,2) user_id2,
    crtd_by.user_name
    from eul_us.eul5_eul_users usrs ,
    eul_us.eul5_access_privs privs ,
    eul_us.eul5_bas ba ,
    applsys.fnd_responsibility_tl resp,
    applsys.fnd_user crtd_by
    where privs.ap_type ='GBA'
    and privs.ap_eu_id =usrs.eu_id
    and privs.gba_ba_id =ba.ba_id
    and resp.responsibility_id (+)=regexp_substr(usrs.eu_username,'[[:digit:]]+',1,1)
    and crtd_by.user_id(+) =regexp_substr(ba.ba_created_by,'[[:digit:]]+',1,1)
    and resp.language= 'US'
    order by 1;
    I hope this helps.
    Patrick

Maybe you are looking for