Fund wise PR pending

Dear sir
i have a fund t034 and want to know the pending PR against it.
i tried FMEM but there is no PR no.
i tried me5a but the figure didnot match with fmem
pls suggest what to do.
waiting for your immediate response.
regds
devesh

waiting for your response

Similar Messages

  • Payment reversed after sending client purchase

    Hi. So I sold some items on eBay. 4 people wanted to get refund so I canceled the purchase, but couldn't refund because my funds were in pending balance. I waited couple of days, but the money  still was in  pending balance. After that I contacted PayPal support and asked to refund certain transactions on my behalf as suggested by support on facebook. After a while I saw that only 2 transactions were reversed. Then I noticed that one of those reversed transactions was from successfully sold & shipped  item and I didn't ask paypal to refund this particular transaction. What should I do ?How can I get my money back ?

    Yes Robert you are right,
    If you select the tick box the SAP system will generate a seperate line as per business area.
    But business requirement is :
    User wants both, after executing the APP,payament document should be generated in seperate lines for all the involvesd business areas, where as in DME file it must summerize the value of a particular Vendor,
    Regards
    Edited by: tabassum naaz on Jul 2, 2010 4:01 PM

  • Help regarding how to show total and grand total

    hi all
    please help me to show the total / grand total fund wise
    i m giving final output that i want
    which functions may i use .
    following is my query
    SELECT MUT_NAME , NATURE , BROK_TYPE ,sum(BROKERAGE) brokerage   FROM (
    SELECT MUT_NAME , NATURE , BROK_TYPE ,BROKERAGE  FROM (
      select mf.mut_name , si.nature ,'UPFRONT' BROK_TYPE ,  sum(up1.paid_brok)  BROKERAGE from upfront_paid up , upfront_paid_dtl upd , upfront_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by   grouping sets (  (mf.mut_name , si.nature) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
      UNION ALL
      select mf.mut_name , si.nature ,'TRAIL' BROK_TYPE ,   sum(up1.paid_brok)    BROKERAGE  from TRAIL_paid up , TRAIL_paid_dtl upd , TRAIL_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
    UNION ALL
    SELECT 'TOTAL ' MUT_NAME , ' ' NATURE , ' ' BROK_TYPE ,SUM(BROKERAGE)  FROM (
      select mf.mut_name , si.nature ,'UPFRONT' BROK_TYPE ,  sum(up1.paid_brok)  BROKERAGE
      from upfront_paid up , upfront_paid_dtl upd , upfront_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
      --and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
      UNION ALL
      select mf.mut_name , si.nature ,'TRAIL' BROK_TYPE ,   sum(up1.paid_brok)    BROKERAGE  from TRAIL_paid up , TRAIL_paid_dtl upd , TRAIL_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ) ROLLUP(MF.MUT_NAME,SI.NATURE)))
    GROUP BY grouping sets (MUT_NAME),( NATURE ),( BROK_TYPE)
    ORDER BY MUT_NAME , NATURE , BROK_TYPE 
    Sl. No.     Fund House     Fund Type     Brokerage Type     "Type-wise
    Commission "     Gross Commission
    (1)     Fidelity Mutual Fund     Equity     Upfront Commission     xxx     
                   Trail     xxx     
                   Others     xxx     
              Debt     Upfront Commission     xxx     
                   Trail     xxx     
                   Others     xxx     
    T O T A L :                         xxxxx
    (2)     Franklin Templeton Mutual Fund     Equity     Upfront Commission          
                   Trail          
                   Per Form          
                   AUM Linked          
                   SIP Advance Annual Brokerage          
                   Others          
              Debt     Upfront Commission          
                   Trail          
                   Others          
    T O T A L :                         xxxxx
    CONSOLIDATED TOTAL COMMISSION :                         xxxxxany help appriciated.

    how can i use compute in procedure
    actually i am giving the output from query to ref_cursor and from front end ( .NET) they are fetch rows and show the output.
    i want output as fallows
    fund name -- nature --- brok type --- brokerage
    1] fidelity     equity     upfront       2000
                 equity     trail         1000
                 debth      upfront       1500
                 debth      trail         500
      Fidelity                            5000
    2] abc       --                     
    so on hope this clears you
    Message was edited by:
    Pankaj M

  • Facing Problem on Material No field in all the standard TCode

    Dear Gurus
    I am facing a problem which is like when ever I am trying to fint out the material no of our desire with material text with the Ffour option in Material No field on any of standard report like pending PO material wise  party wise r pending pr  the Ffour option is nt cming and instead a same material no is cming across all the tcode which is causing us problem to find out the our desire material no. Where as its wrking fine in other usr ids .
    Thnz
    Subrat

    Subrat,
    I am a bit confused by your use of abbreviations.  However, it sounds like you are having an issue whereby your USERID does not manage the Material Number in the same way that other USERIDs are doing.  Pls confirm.
    First thing to check are your USERID parameters.  SU3 > select parameters tab.  Look for any parameter that contains the material number that is plaguing you;  if you find one delete the material number from the parameter.
    If you don't see the material number, then compare your parameters with the parameters of a user whom you want to emulate.  Delete/add parameters from your profile to make yours similar to the 'good' one.
    Best Regards,
    DB49

  • Cumulative Query

    Hi,
    I am writing logic to fetch and display summary of transactions between two given dates. The required columns are shown below(Please paste in excel to display correctly). Have used analytic function to fetch summary of cumulative units fund wise.
    I am looking to display the Total Cumulative Value, which is Fund wise Cumulative Units* Fund NAV as on date.
    Need assistance on same.
    Regards
    Date of     Nature     Type of     Number     NAV     Cr          Fund Wise     Fund Wise     Cumulative Value          
    Transaction     of Transaction     Fund     of Units          (Rs.)          Cumulative Unit     Cumulative Value(Rs.)     (Rs.)          
    23/01/2008     Contribution     Bond     421894.645     11.8513     5,000,000.00          421894.645     5,000,000.00     5,000,000.01          
    23/01/2008     Initial Allocation     Bond     4218.946     11.8513     50,000.00          426113.591     5,050,000.00     5,050,000.00          
    10/06/2008     Claims     Bond     168571.928     12.0707          2,034,781.17     257541.663     3,108,708.15     3,108,708.15          
    27/06/2008     Contribution     Bond     377919.73     11.9073     4,500,003.60          635461.393     7,566,629.44     7,566,629.44          
    27/06/2008     Initial Allocation     Bond     3779.198     11.9073     45,000.04          639240.591     7,611,629.48     7,611,629.49          
    27/06/2008     Contribution     Money Market     483774.085     13.0226     6,299,996.40          483774.085     6,299,996.40     13,911,625.89          
    27/06/2008     Initial Allocation     Money Market     4837.741     13.0226     62,999.96          488611.826     6,362,996.36     13,974,625.85          
    05/07/2008     Claims     Money Market     33949.336     13.0415          442,750.27     454662.489     5,929,480.85     13,534,078.69          11.8963
    28/07/2008     Claims     Money Market     23274.276     13.1736          306,606.00     431388.214     5,682,935.77     13,332,344.38          11.9664
    25/08/2008     Claims     Money Market     31151.175     13.3189          414,899.39     400237.038     5,330,717.09     13,208,013.36          12.0174
    12/09/2008     Contribution     Money Market     119540.367     13.3846     1,600,000.00          519777.405     6,957,012.66     14,683,194.06          12.0865
    12/09/2008     Initial Allocation     Money Market     1195.404     13.3846     16,000.00          520972.809     6,973,012.66     14,699,194.06          12.0865
    15/09/2008     Claims     Money Market     13437.455     13.3946          179,989.33     507535.355     6,798,233.06     14,529,720.17          12.0948
    03/10/2008     Claims     Money Market     34659.451     13.4604          466,530.08     472875.903     6,365,098.81     14,128,867.55          12.1453
    12/11/2008     Claims     Money Market     48728.777     13.6749          666,361.15     424147.126     5,800,169.54     13,599,224.36          12.2005
    16/12/2008     Claims     Money Market     35102.913     13.9264          488,857.20     389044.214     5,417,985.34     13,885,877.60          13.2468
    15/01/2009     Contribution     Bond     369332.377     13.8087     5,100,000.00          1008572.968     13,927,081.54     19,399,610.88     Money Market     14.0666
    15/01/2009     Initial Allocation     Bond     3693.324     13.8087     51,000.00          1012266.292     13,978,081.54     19,450,610.89          14.0666
    21/01/2009     Claims     Money Market     71451.717     14.2494          1,018,144.10     317592.497     4,525,502.52     16,460,527.02     Bond     11.7904
    23/01/2009     Bonus Allocation     Bond     2849.454     13.7493     39,178.00          1015115.746     13,957,130.93     18,497,496.78     Money Market     14.2962
    05/03/2009     Claims     Money Market     40448.383     14.5089          586,861.55     277144.113     4,021,056.22     18,201,106.57     Bond     13.9689
    Query
    SELECT trdt.EFF_DT AS DateOfTransaction
         ,trcd.tr_cd AS trcd
         ,' '||trim(DECODE(trcd.tr_cd,'1000','Contribution','1001','Contribution','1004','Contribution','1901','Switch From','1902','Switch To','1903','Claims','1904','Admin Charges','1905','Bonus Allocation',trcd.tr_cd_desc)) AS Nature_of_Trans
    --     ,' '||SUBSTR(fndd.long_fd_nm,INSTR(fndd.long_fd_nm,'GROUP')+7) AS typ_of_fund
    ,(SELECT UDDT.USER_DATA
         FROM USER_DEF_LABELS UDLB,
         USER_DEF_DATA UDDT
         WHERE UPPER(UDLB.user_label_alias) = UPPER('FUNDNAME')
         AND UDLB.UDLB_KEY = UDDT.UDLB_KEY
         AND UDDT.REF_KEY = fndd.fndd_key) AS typ_of_fund
         ,ROUND(ABS(trdt.unit_ct),3) trunitct
    ,(SELECT ROUND(uvda.unit_value,4)
         FROM uval_detl_act uvda,
    unit_values_ii uvls,
    uval_types uvtp
    -- bat_grp      btgp
    WHERE uvda.uvls_key = uvls.uvls_key
    AND uvda.rec_stat_cd = '0'
    AND uvda.uvtp_key = uvtp.uvtp_key
    AND uvtp.typ_cd = '01'
    AND uvls.case_key IS NULL
    AND uvls.fd_desc_id = trdt.fd_desc_id
    -- AND btgp.dflt_cyc_dt_cd = '1'
    AND uvls.calendar_dt = trdt.eff_dt
    AND ROWNUM = 1) AS trn_unit_price
         ,TO_NUMBER(DECODE (SIGN(trdt.amt), -1, '', trdt.amt),'999999999.99') AS CR
         ,ABS(TO_NUMBER(DECODE (SIGN(trdt.amt), +1, '', trdt.amt),'999999999.99')) AS DB
    , SUM(trdt.unit_ct) over (PARTITION BY trdt.fd_desc_id
    ORDER BY trdt.eff_dt, trdt.fd_desc_id, trdt.tdtl_key) cum_unit_count
    ,ROUND(SUM(trdt.unit_ct) over (PARTITION BY trdt.fd_desc_id
    ORDER BY trdt.eff_dt, trdt.fd_desc_id, trdt.tdtl_key) * (SELECT ROUND(uvda.unit_value,4)
         FROM uval_detl_act uvda,
    unit_values_ii uvls,
    uval_types uvtp
    -- bat_grp      btgp
    WHERE uvda.uvls_key = uvls.uvls_key
    AND uvda.rec_stat_cd = '0'
    AND uvda.uvtp_key = uvtp.uvtp_key
    AND uvtp.typ_cd = '01'
    AND uvls.case_key IS NULL
    AND uvls.fd_desc_id = trdt.fd_desc_id
    -- AND btgp.dflt_cyc_dt_cd = '1'
    AND uvls.calendar_dt = trdt.eff_dt
    AND ROWNUM = 1),2) cum_fund_value
    , ROUND(SUM(trdt.unit_ct) over (ORDER BY trdt.eff_dt, trdt.tdtl_key)*(SELECT ROUND(uvda.unit_value,4)
         FROM uval_detl_act uvda,
    unit_values_ii uvls,
    uval_types uvtp
    -- bat_grp      btgp
    WHERE uvda.uvls_key = uvls.uvls_key
    AND uvda.rec_stat_cd = '0'
    AND uvda.uvtp_key = uvtp.uvtp_key
    AND uvtp.typ_cd = '01'
    AND uvls.case_key IS NULL
    AND uvls.fd_desc_id = trdt.fd_desc_id
    -- AND btgp.dflt_cyc_dt_cd = '1'
    AND uvls.calendar_dt = trdt.eff_dt
    AND ROWNUM = 1),2) transact_amt
    FROM transact_details trdt
    ,tr_code_rules trcd
    ,fund_desc fndd
    WHERE trdt.case_key = :cp_case_key
    AND trdt.case_mbr_key = :pi_case_mbr_key
    AND trdt.rvsl_cyc_dt IS NULL
    AND trdt.tr_cd NOT IN ('1909')
    AND trdt.tr_cd = trcd.tr_cd
    AND trdt.fd_desc_id = fndd.fd_desc_id
    AND fndd.fd_desc_id NOT IN ('8888','9999')
    AND trdt.eff_dt BETWEEN :cp_from_dt AND :cp_to_dt
    ORDER BY trdt.EFF_DT, trcd.tr_cd_desc, shrt_fd_nm

    I have used placeholders for each fund, to store unit values at report global level and when ever cum total is required, i sum up all the values and print the same. The revised count is overwritten in the respective fund place holder.

  • So frustrated with PayPal

    I teach kids math online and have them pay me through PayPal. I send invoices from which they pay from and paypal keeps holding my money for 21 days, saying that I need to ship now. How can you ship a tutoring service? I contacted PayPal last month and they told me to upgrade to a business account which I did and to tell my customers to select "no Shipping required". Upon telling my clients, they now say they can't find that option when paying from the invoice. They dont have paypal accounts. This is getting really annoying as I need access to my money. I have hundreds of dollars on hold.

    Holding received funds in a pending balance Funds Availability Why isn’t the money I’ve received immediately available for me to use?Sometimes funds that you’ve received are not immediately available for withdrawal. This is a common industry practice that we implement to help ensure the safe use of the PayPal service by buyers and sellers alike. The funds will be shown in your pending balance, rather than in your available balance. Funds shown in your pending balance will be moved to your available balance within 21 days. Your pending balance helps ensure there is money in your account in case problems arise with any of your transactions. The money still belongs to you. It’s just temporarily not available to use, until your buyer has received the item they ordered in the condition promised.In this article, we will explain the different reasons why funds are temporarily unavailable, and how you can prevent delays in funds being available in the future.Why are funds placed into my pending balance rather than into my available balance?There are three main reasons funds may be unavailable:You’re a new seller with PayPal.
    It takes time for new sellers to build up enough history to demonstrate a pattern of positive buyer-seller transactions. The good news is that by building up a history of positive selling activity, your funds may become available immediately.Customers indicate issues about your selling performance.
    Performance is based on the speed of delivery of goods or services. The percentage of refunds, disputes, and chargebacks compared to sales on your PayPal account are key indicators of seller performance. Having performance issues increases the likelihood of received funds being temporarily unavailable. Working with your customers to prevent disputes and chargebacks will help avoid the delay in availability of funds.There’s a higher than average risk associated with your sales activity.
    If there is an indication that a high level of risk is present, your money could be temporarily unavailable. You may be selling what we consider high-risk items. High-risk items include tickets, gift cards, consumer electronics, computers, and travel packages. Further examples of higher risk sales activity would be a recent spike in sales, a change in average selling price, or a change in business model or type of item being sold.When will I have access to my money?If there aren’t any problems with the order, such as a customer filing a dispute, the funds will move to your available balance within 21 days of receipt.How can I prevent delays in funds availability?There are three things you can do to help prevent delays in funds availability in the future:Build a history of good performance as a seller.
    The number one thing you can do to prevent delays in funds availability is build a history of consistent performance. Here are some ways to help you do this:Use clear photos of the product and detailed, accurate descriptions of items, so buyers know exactly what they’re getting. This will help cut down on buyer disappointments and disputes.Be clear about shipping and handling times, costs, and methods; process orders promptly to avoid delays.Be sure to pack items carefully with appropriate, quality packing material, so customers receive the items in good condition.Track packages you’ve shipped. Use a shipping method that provides tracking information, such as Royal Mail, Parcel Force or FedEx.Clearly define your return policy up front.Communicate and work with your customers.
    When customers contact you, do your best to be responsive and helpful. Working with customers early on can prevent a minor issue from ballooning into a much larger problem, and following the guidelines listed previously will help to reduce the number of buyer disputes, claims, and chargebacks that you receive. If you are involved in a buyer dispute, start working to resolve it right away. Frequent, honest, and open communication with the seller via the Resolution Center will help clear up any misunderstanding.
    Also, setting up a customer service message in the Resolution Center may help to prevent disputes. For example, if shipments will be delayed because of bad weather, letting the buyer know may answer their question and make a dispute unnecessary.Always review all communications from PayPal.
    We’ll always send you an email if anything regarding the availability of your funds changes. We also inform you about each transaction that’s placed into your pending balance and ask you to take action if required.Selling on eBayIf you sell on eBay, take a look at these eBay-specific tips for improving your Detailed Seller Ratings (DSRs). SummaryOccasionally, we may delay the availability of funds from payments you receive. It’s a common industry practice that we implement to help ensure the safe use of PayPal services by buyers and sellers alike. Money may not be immediately accessible because you’re a new seller, your customers indicated issues about your seller performance, or another indication of high risk is present. You can help to prevent funds from being temporarily unavailable by improving your selling performance and communicating with customers.     Key FactsTemporarily holding payments when they are received is a common industry practice implemented to help ensure the safe use of the PayPal service by buyers and sellers alike.The money still belongs to you. It’s just temporarily unavailable for use.Review the payment email you received for details about when your money will become available and information on how you can get access to the money more quickly in the future.Funds may be unavailable if you are a new seller, if you have received a lot of disputes from buyers in the past or if you sell goods or services in certain categories which are considered high risk (such as tickets or consumer electronics).If there aren’t any problems with the order you fulfilled, you’ll be able to use the money within 21 days of receipt.We will continually reassess your account to determine if your funds may be made available immediately 

  • Find Out Quality Material Document

    Dear All,
               I need how to find out the quality material pending document in mkpf or mesg table.
    I want to split date wise quality pending documents for material wise. Only correct quality pending qty is there in MARD table.
    but i want to view the date wise.
    Any other table is there to get the documents
    Thanks
    Saravanan

    not solved

  • GR into Bloacked Stock

    Dear All,
    we want to do the GR every time into blocked stock with 103 mvmt type. after that another user will post to Unrestricted use stock with 105. Now how can i see the list of doc which still were in GR Blocked stock. MB51 is not suitable one for this.
    And after that out of 100 pcs we found 90 pcs were OK & i did 105 mvmt type for only 90 Pcs. What procedure we need to follow for remaining 10 pcs ? in case of returning to vendor
    regds,
    CB

    Dear
    If you want to check the reaming Block stock PO mean 103 has been done but not done 105 so use ME2N standard report and select (selection parameters WE105 and run the report with Plant wise or Pur. Org wise  all pending document will be appear.
    Also below link will help you.
    diffrence between GR Blocked stock and Blocked stock
    Regards

  • Invoice wise pending GR/IR report

    hello ,
    can anyone tell me how to find the invoice wise pending goor receipt and invoice receipt details ,
    what tables contain that data.
    i need to write the report on the basis of GL account,,posting date and document type .
    thanks

    Hi
    Tables are
    GoodsReceipt  -
    >MSEG or T663A
    InvoiceReceipt  -
    >EKBE
    Even you can see in BSEG
    Regards
    Venkat

  • Pending tds report bills wise and date wise

    Dear ALL,
      In my client place they want Pending TDS Certificate Report Bill wise  , it is there any standard tcode for that or else for this report preparation what are the tables we have to give to ababer for creating new report. Please guide to solve this issue.
    girija

    Dear,
    You can use following tables to get detailed report on TDS...
    1. WITH_ITEM
    2. J_1IEWTCHLN
    3. J_1IEWT_CERTIF_N
    4. BSIK or BSIS.
    Regards,
    Chintan Joshi.

  • Product wise pending sales order

    Hello,
    From which transaction code we can find out the Product wise pending sales order list.
    thanks
    harish

    Hi,
    Kindly make use of filter options and change layout options.This might help you for report format.But ultimately the details are going to be the same I guess
    In the initial screen if you give the date range you will get the list of pending orders for that particular material and the organizational detail you give.
    Reward points if helpful.
    Regards,
    Amrish Purohit

  • Date Wise Pending Delivery Report

    Hi all,
    I need a pending delivery report as per the date which user enters. For ex on a particular date what were the pending deliveries and total pending stock which was to be delivered.
    Is there any standard report or any Function module available. If not, is there any logic by which we can fulfill this requirement.

    VL06 gives same data as VL06O/VL06i and gives only real-time delivery status (you can't look at 07/10/2011 date & see what delivery documents were pending PGI, only can see latest delivery status as of now for that date).
    So, If "historical" data is needed for past date and status of delivery documents at that time, then need to go with BI report or similar reporting tool where you can set specific parameters like take snap-shot of table(s) of open deliveries due for PGI but not PGI'd on specific date/time.

  • Purchase Order list pending for MIRO days wise

    i want to know t.code for outstanding Purchase order list dayswise which is pending for Miro....for example payments will be in 15days 30days which is mention in P.O.
    Thanks & Regards
    Rekha Sharma

    Hello,
    Please check MR11
    Regards,
    Ravi

  • Pending List of Miros PO wise

    Hi Fnrds,
    Do we have any standard reports or table through which i can get the list of Pending purchase order where Migo has been done.
    regards
    rajesh

    Hi,
    Can check report in MB5S, where you can get report wrt PO for status of GR done and IR done
    Regards,
    Biju K

  • 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.

Maybe you are looking for