Report for showing pending (ageing) quantity according to store location w

dear ABAP Gurus,
I have made a roport for showing pending (ageiing) quantity acc to location wise.
and i m sending here the code i made for same.Tell me if sme amendments required.
Report for showing pending (ageing) quantity according to store location wise:   
1.     Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
2.     Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date. 
the code is:
REPORT  ZAGEIN_SUDHA.
TABLES: mara,mseg,makt.
TYPES: BEGIN OF t_mara,
matnr LIKE mara-matnr,           "material number
maktx LIKE makt-maktx,           "material description
ersda LIKE mara-ersda,           "material creation date
lgort like mseg-lgort,           "storage location
bwart like mseg-bwart,           "goods received or issued
menge like mseg-menge,           "value at movement type
werks like mseg-werks,           "plant
END OF t_mara.
DATA: i_mara TYPE STANDARD TABLE OF t_mara with header line,
      itab type standard table of mara with header line,
*wa_mara TYPE t_mara,
v_date TYPE i,                      "age in days
GI type mseg-menge,                 "goods issued
GR type mseg-menge,                 "goods received
bal type mseg-menge,                "balance
total type i,
grace type i,
g_quan type mseg-menge.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS: p_matnr FOR mara-matnr.
select-options: p_werks for mseg-werks.
select-options: p_lgort for mseg-lgort.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
REFRESH i_mara.
SELECT mr~matnr                        "mara-matnr
mk~maktx                               "makt-maktx
mr~ersda                               "mara-ersda
mg~lgort                               "mseg-lgort
mg~bwart                               "mseg-bwart
mg~menge                               "mseg-menge
INTO corresponding fields of table i_mara
FROM mara AS mr INNER JOIN
makt AS mk
ON mrmatnr = mkmatnr INNER JOIN mseg AS mg on mkmatnr = mgmatnr
WHERE mrmatnr IN p_matnr and mgwerks IN p_werks and mg~lgort IN
p_lgort.
total = 0.
IF sy-subrc = 0.
*CLEAR wa_mara.
LOOP AT i_mara.
if i_mara-bwart = '101' .
GR = total + i_mara-menge.
total = GR.
elseif
i_mara-bwart = '102' or i_mara-bwart = '122'.
GR = GR - i_mara-menge.
endif.
if i_mara-bwart = '261'.
GI = total + i_mara-menge.
elseif i_mara-bwart = '262'.
GR = GR + i_mara-menge.
endif.
bal = GR - GI.
if bal GE  GR.
grace = 30.
else.
grace = 10.
endif.
g_quan = bal - GR.
v_date = sy-datum - i_mara-ersda.
endloop.
WRITE: / i_mara-matnr ,i_mara-maktx,' is ',v_date,' ,days old  and
stored at' ,i_mara-lgort ,   ' with balance =', bal ,'the grace time is
', grace, 'and' ,'grace quantity is ' ,g_quan.
*ENDLOOP.

Hi,
That sounds like a nice report.  What about it?!
Gareth.

Similar Messages

  • Report for showing pending (ageing) quantity according to store location wi

    Report for showing pending (ageing) quantity according to store location wise:   
    Fields on selection screen (input screen) : Plant code From to , Material code From to , Current date, Numbers of days(for display the ageing(pending) balance for a given period,Storage locations from to.
    Field in the output List : Material code , Material descriptions, Balance quantiy,Balance value ,Consumptions date.

    Hi,
    That sounds like a nice report.  What about it?!
    Gareth.

  • A report on pending quantity according to store locationwise

    hello!!
    i m seeking for a guideline to make a report on pending quantity according to store locationwise.
    regards,

    Hi,
    That sounds like a nice report.  What about it?!
    Gareth.

  • Report for open purchase order quantity

    Dear experts,
    Is there any report for showing open purchase order quantity for which goods are not yet received?
    Regards
    babu

    Hi
    ref the blw link which will have the complete sap std reports
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erplo/sapStandardReports

  • Query to generate a report for incoming pending payments as per Item Group!

    Dear All,
    I need a Query to generate a report for incoming pending payments through Item Group.
    Please provide me the same.
    Thanks in advance..........................
    Edited by: Param Deshwal on Nov 22, 2011 7:11 AM

    Hi
         try this
    SELECT T0.[DocNum] as 'Invoice Number', T0.[DocDate] as 'Invoice Date', T0.[CardName], T0.[DocTotal] as 'Invoice Amount', T0.[PaidToDate] as 'Paid Amount',(T0.[DocTotal]-T0.[PaidToDate]) as 'Pending Amount',T3.[ItmsGrpnam] FROM OINV T0 Inner join inv1 t1 on t0.docentry=t1.docentry inner join oitm t2 on t2.itemcode=t1.itemcode inner join oitb t3 on t3.[ItmsGrpcod]=t2.[ItmsGrpcod] where T3.[ItmsGrpnam]=[%0] 
    Regards,
    sudhir B.
    Edited by: B.sudhir on Nov 22, 2011 7:28 AM

  • Hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part wh

    hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks

    hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks

  • Report for POs pending Release (approval) and POs overdue (past deliv date)

    Hi All,
    In ME2N - std report for POs. How do I set the selection critieria in order to get the following information
    1. POs pending Approval (subject to Release Strategy)
    2. POs pending delivery from Vendor where the delivery date requested in the POs is past. (How does Selection parameter WE101 help in this report.? How to show how many days past requested delivery date in the PO?)
    Thanks in advance

    Dear,
    1. POs pending Approval (subject to Release Strategy) : -
    Enter ME2N, select Dynamic Selection.
    Here click on Purchasing Document Header,
    Double click on Release Indicator field and assign "X" ,
    Then souble click on Subject to release and also give "Yes" indicator then click on execute you get list of purchase order which is unrelease.
    2) POs pending delivery from Vendor: -
    Enter ME2N, Select selection parameter WE101,
    Here you can find list of pending purchase order, You can see document date or delivery date from change layout to find out how it is past.
    Regards,
    Mahesh Wagh

  • Standard report for invoices against a quantity contract

    dear experts,
    is there any standard report for how much invoices(billing) should be made against a quantity contract.
    my requirement is suppose if  i enter a quantity contract number then it will display all the invoices against that contract with
    invoice values.if any please let me know so that we make make our process much better.
    regards,
    amar.

    Dear Amar,
    In SAP, this contract to Invoice their is not standard report.
    Report
    If you enter a quantity contract number, to get a list of invoices with qty and invoice amt
    Prepare a SQVI REPORT
    USING TABLES
    VBRK for Invoice qty amt
    VBRP for Invoice number, dates...
    VBFA to get the intial document number
    VBAK - to get the contract number
    VBAP - to get the material.
    Its worth spending little time to create the report.
    Ensure standard SAP contract to Invoice is like compartments
    Regards,
    Mani

  • SAP standard report for showing the stock at customer location

    Hi All,
    Can any one let me know if there is a standard SAP report which can show the following
    Stock at the customer location on a monthly basis
    I tried the following t-code - MB58 but that doesnt have the
    From date - Till date
    Any pointers on this one will be really helpful.
    Regards,
    Pandi

    Hello,
    MB52   -   List of Warehouse Stocks on Hand
    MB53   -   Display Plant Stock Availability
    MB5B  -    Stock for Posting date.
    Prase

  • Calling infotype 0002 in ALV  report for showing employee photo

    Hi all,
    The requirment from business side is a report in which employees personal data shuold be shown with employee photo, I had tried for employee photo in ALV report but it didnt sucessed, then I went for other solution like calling transaction in ALV report.
    In this case I am calling Infotype 0002 but the issue is that the transaction PA20 is coming with PERNR but I am not able to go directlly to infotype which shows employee Photo,please suggest any solution.
    Thaks.
    JAY

    Hi Jay,
    It is possible. Please refer the syntax for the CALL TRANSACTION
    CALL TRANSACTION ta { [AND SKIP FIRST SCREEN]
                        | [USING bdc_tab [bdc_options]] }.
    You can do a recording till the required page comes & call the transaction accordingly. Hope, you are aware about the same.
    For example, I just had a solution to go to the roles tab in the user profile and I did as below:
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLSUU5'.
        wa_bdcdata-dynpro   = '0050'.
        wa_bdcdata-dynbegin = k_ok.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_CURSOR'.
        wa_bdcdata-fval   = 'USR02-BNAME'.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'USR02-BNAME'.
        wa_bdcdata-fval   = g_value.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_OKCODE'.
        wa_bdcdata-fval   = 'SHOW'.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLSUU5'.
        wa_bdcdata-dynpro   = '0100'.
        wa_bdcdata-dynbegin = k_ok.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_OKCODE'.
        wa_bdcdata-fval   = '=ACTG'.
        APPEND wa_bdcdata TO it_bdcdata.
        g_opt-dismode = 'E'.
        g_opt-defsize = k_ok.
    *** if user click on the User Name, call SU01
        CALL TRANSACTION 'SU01' USING it_bdcdata
                    OPTIONS FROM g_opt.
    Regards,
    Selva K.

  • Sap standard report for showing line items of any GL with its offsettinga/c

    Dear all,
    Is there any standard report in SAP to show line items of GL with its offsetting accounts. in short i want to see all journal entries of one specific GL account.could any of you help me in this?
    points will be rewarded for the relevant answer.
    thanks,
    hemanth

    Hi Dave,
    I have gone through the note 112312.But there it is mentioned that it relates to 4.6x versions.We are in ECC 6.0.and we have not implemented new GL accounting concept.Is there any other alternative functionality or any other OSS note which meets my requirements.Can you please suggest me on this ?
    Thanks,
    Hemanth

  • Transaction or report for showing partitions and total amount in BW 3.5?

    Hello,
    I want to fulfill a unicode conversion of a BW 3.5 system and found out, that this system has some tables with plenty of table partitions (700-1200). To calculate the table splitting it would be very helpful if there is a transaction or report where I can enter the name of a table and the result will be the amount of partitions and the calculated sum of all partitions including the header table.
    Does this exist in a SAP BW 3.5 system?!
    If not, are there useful alternatives?
    Thanks in advance

    Hey you two,
    Yes, I know already DB02 and I used it to show a list with object type "TABLE PART*". But then, I get a list of ca. 4900 table partitions. I just want to have a list looking like:
    /BIC/B000637000      155 Partitions   106,0 Gb Whole Size
    I don't want to know the partitions themselves, but the amount and the header table - and of course the whole size. Is that also possible with DB02?

  • Re: Report for showing comparsion between Inventory & Norms

    Hi All,
    I have a requirement for developing a report where I need to compare the current inventory for a plant and compare it with the predecided inventory norm & to get red flagged in case there is a dissference between this comparision.
    Regards,
    Vivek

    Hi,
    Current Inventory is available in table MARD at storage location level with different stock types
    From where you are going to pull the norms ? Probabaly may need to create one Z table to update norms
    with Material, Qty stock type and storage location and run report between MARD and Z table
    Just to give you head start, you can explore further
    Thanks
    Diwakar

  • Production order report for changes in component & quantity

    Dear all Hi,
                       Is there any standard report/functionality in SAP PP to see changes made to the production order once it is created. This is the client's requirement, changes that are made to components, quantities, operations & dates of a production order should be displayed in a report. Please do guide me, thanks in advance.

    Hi,
    One Option could be Order Change Management (OCM).
    The second could be , use the modification which is provide by SAP in SAP note 390635.
    (This OSS Note was suggested by Sabine Trosse number of times in the Forum, there were number of success feedbacks after using this.)
    Hope this helps..
    Regards,
    Siva

  • Report for age of consignment materials

    Is there a report that shows the age of consignment materials.Meaning to say when they were received into our inventory.
    Thanks
    Anusha

    Without batch management you would not be able to track the age, as you cannot seperate the stocks.
    In batch record the GR date is saved.
    I dont know any report that shows the age for consignment material directly (we do not have such).
    But you can create a query that shows the GR date from the batch record (tables MCHA, MCH1 MCHB)

Maybe you are looking for

  • The application Adobe Reader quit unexpectedly

    We have version 9.1.1 installed on iMacs & MacBooks running MacOS 10.5.7. Every time it is launched, it runs for a few moments and then quits with the MacOS error message above. I'd appreciate members ideas please. Brian Bowell ICT Support Berkley Sc

  • Problem with add Spotlight Comments script.

    Hello, I am trying to add Spotlight Comments to some files using Automator. I have made an very simple script in Automator that add Spotlight Comments to the files that I have selected in Finder. I save this script as an app and it work great. I also

  • Wireless is coming through a LAN port

    Just got broadband, and there tech support has done something to my computer that now my wireless signal comes through a lan port and not the wireless port. Anyone know how to fix this?

  • Is possible to enhance the resolution of a FLV

    I have downloaded some FLV videos from many sources like Youtube, Vimeo and Daily Motion. Is it possible to enhance the resolution of this videos to be watched in a HD television? I have tried the video conversion using flv converter to pass from flv

  • Why is my filter selection greyed out

    What cause the filters tap and everything under to be greyed out