How to calculate Amount of goods received bill not received

Hi Gurus,
In my vendor aging report client require one filed which is amount of goods received bill not received (Goods received amount- Invoice amount)
can u please tell me what should i do?
Thanks in Advance
Kavita

Hi,
Actually i written a code in CMOD and enhanced the data source but the value is not proper......
something is missing ...can anyone explain
here is my code
when '0FI_AP_4'.
  data  wa_DTFIAP_3 type  DTFIAP_3.
    loop at c_t_data into wa_dtfiap_3.
     select single ebeln lifnr from ekko into  (it_ap03-ebeln,it_ap03-lifnr)
        where lifnr = wa_dtfiap_3-lifnr.
       it_ap03-budat = wa_dtfiap_3-budat.
       it_ap03-budat = wa_dtfiap_3-belnr.
      if sy-subrc = 0.
        append it_ap03.
       endif.
    endloop.
  loop at it_ap03.
   select SINGLE mblnr from mkpf into mkpf-mblnr WHERE budat =  it_ap03-budat and blart = 'WE' AND
     VGART = 'WE' .
     IF SY-subrc = 0.
     SELECT SUM( dmbtr ) from mseg into   it_ap03-dmbtr where mblnr = mkpf-mblnr and xauto = '' and
       bwart in ('101','102') and lifnr = it_ap03-lifnr .
   SELECT SINGLE ebeln matnr from mseg into (mseg-ebeln,mseg-matnr) where mblnr = mkpf-mblnr.
     select sum( dmbtr ) from ekbe into it_ap03-dmbtr1
     where ebeln = mseg-EBELN  and vgabe = 2  and matnr = mseg-matnr  and budat = it_ap03-budat.
     it_ap03-tamt = it_ap03-dmbtr - it_ap03-dmbtr1.
    ENDIF.
select sum( wrbtr ) from ekbe into it_ap03-dmbtr
where ebeln = it_ap03-EBELN  and bewtp = 'E' and budat = it_ap03-budat.
  select sum( wrbtr ) from ekbe into it_ap03-dmbtr1
where ebeln = it_ap03-EBELN  and bewtp = 'Q'  and budat = it_ap03-budat .
  modify it_ap03.
  clear it_ap03.
  endloop.
loop at c_t_data into wa_dtfiap_3.
read table it_ap03 with key lifnr = wa_dtfiap_3-lifnr belnr = wa_dtfiap_3-belnr.
wa_dtfiap_3-zzbillamt = it_ap03-tamt.
modify c_t_data from wa_dtfiap_3.
endloop.
endcase.
Edited by: kavita on Sep 11, 2010 8:48 AM

Similar Messages

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • HT1933 My daughter downloaded a bunch of apps and I need to know how to get them reveresed.  I have not received any email receipts, but they did show up on my bank statement.  This happened within the last few hours.

    My daughter downloaded a bunch of apps and I need to know how to get them reversed.  I have not received any email receipts, but the charges have shown up on my bank account.  This has all happened within the last couple of hours.  I have tried numerous times to "report a problem" but am not having any success.  Keeps redirecting me to support.  I need help trying to get a hold of someone.  I know that there has been a settlement recently about this situation.

    Apple - Support - iTunes Store - Contact Us - http://www.apple.com/emea/support/itunes/contact.html
    How to request a refund for an iTunes or App Store purchase - http://www.imore.com/how-request-refund-itunes-or-app-store-purchase
    iOS: Understanding Restrictions - http://support.apple.com/kb/HT4213 - "You can enable Restrictions, also known as Parental Controls, on an iPhone, iPad, or iPod touch to prevent access to specific features."
    Children should not have access to your iTunes account password.
    You should also consider removing credit card information from your account so no unconsidered purchases can be made by anybody.  iTunes Store: Changing Account Information - http://support.apple.com/kb/HT1918

  • Moving customer balance from Accounts Receivable to Notes Receivable

    Hi Experts,
    We would like to move a customer's accounts receivable balance from accounts receivable to notes receivable and have the amount removed from the aging report.
    What steps do we need to take to make that happen?
    THanks for your help?
    Jane

    Hi Jane
    In that case you do an Incoming Payment
    In the Incoming Payment - > Payment Means choose cash - Tab. select 'Notes to receivable' account there. since your 'Notes to receivable' is not a cash account your cash reports will also not be effected
    Regards
    Sandeep

  • How to calculate amount base on Num & Rate

    Dear all,
    I want to set the calculation in RULE to calculate amount base on number and rate:
    Amount = number * Rate.
    I tried:
    AMT=NUM
    AMT*RTE
    But I got error message: "Operatn AMT=N specificatn 'N' is only possible together with P0045 and PRT"
    Please help me how to make it.
    Thanks,
    SophieTran

    can you check the option of MULTI

  • HOW TO BLOCK DELIVERY OF GOODS WHICH ARE NOT EQUAL TO SALES ORDER

    Hi,
    I want to block user to create any sales invoice for some customers based on  sales order where quantity in sales order is not equal to invoice.
    Thanks,
    Anitha

    Hi Anitha,
    You can do this by selecting check marks on two field under BP Master data >>Payment Terms
    1) Allow Partial Delivery of Sales Order
    2) Allow Partial Delivery per row.
    Thanks,
    Regards,
    Sudhir

  • How to calculate Sum of records that are not Suppressed

    Hi All Experts,
    I have Created A layout for SAP B1 in crystal report.Because of Some Condition I have  to Suppress Detail Section.
    The Suppress Condition is As Follows
    {ExcisePur.ItemCode}=Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}=Previous({ExcisePur.Batchnum})
    And it is Working Fine,the Desired Detail Section is Suppressed.
    Now I Have to take Sum of Records ,But that records are also Calculated which are Suppressed.
    For these I have Read Several post where someone had same problem,
    there they have Asked to Create A Running Total And use the Formula in evaluate section same as in Suppress Condition but opposite of it.
    I did the same thing using these Formula
    {ExcisePur.ItemCode}<>Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum}<>Previous({ExcisePur.Batchnum})
    But it is Calculating only the Suppressed Record But Not the Record which is to be Calculated.
    Please help me to Accomplish this.
    I am very Much blank where I am  going wrong.
    Regards,
    Gayatri Shukla

    Hi Gayatri,
    I'm not too sure why this isn't working as the logic seems correct.
    Here's another way to do this:
    1) Create another formula and place this on the Details Section:
    whileprintingrecords;
    numbervar x;
    if onfirstrecord then
    x := {Field_to_summarize}
    else if {ExcisePur.ItemCode} <> Previous({ExcisePur.ItemCode}) And {ExcisePur.Batchnum} <> Previous({ExcisePur.Batchnum}) then
    x := x + {Field_to_summarize};
    2) Create another formula and place this on the Report Footer:
    whileprintingrecords;
    numbervar x;
    -Abhilash

  • Receiver is not receiving entire email

    My emails are not be received in full and my attachments are blank when received. HELP

    Is this to a single person or company? Usually blank attachments mean bad anti virus on the receiving end.

  • When I copy an excel spreadsheet to an email - the receiver does not receive the copy of the spreadsheet???

    With IE, this is not a problem. With Firefox, when I copy part of a spreadsheet and paste it to an email, when the email is sent, the person receiving the email does not get the information from the spreadsheet - it disappears??

    JPSchrader wrote:
    when I copy an artist over to itunes and that particular album has multiple albums...
    Should that read "when I copy an artist over to itunes and that particular artist has multiple albums," because if not, I don't understand?
    If I'm right about that, I'm still not really clear at all about what you're doing. Where are you importing these songs and albums from? Is it existing songs files and if so, what format are they in?

  • How to calculate cost(COGS) in Sales from project

    Dear all,
    I have a situation like this:
    My customer do not emplement PS(project system) and when managing sales from project, i don't know how to calculate cost of good sold for the service line.
    Each project (contruction site; building, ....), I use 1 material master as service item to manage. while project excecution, we issue material; collect labor cost; cost of external service, so on.... total up to COGS. but i don't know how to get this one in Sales order. Could you give me some suggestions?
    thanks!

    Dear,
    You need to create all these activities ( LABOUR CCOST/ COST OSFG EXTERNAL SERVICES)as Service Material and then put it into S.O. as Service Item and Bill the same.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • Serial Packet Question: How to calculate CRC

    Hi to all, i tryied to find an answer on how to calculate the CRC on a RS232 packet received, its really driving me crazy!
    im a newby, learnt how to use labview reading on different forums, and i had managed to design really good apps, but im stucked in this, hope some one can help me...
    ok, so im receiving 15byte packets constantly:
    A5 09 0C 00 3F 61 05 1E 10 A0 00 05 00 04 05
    A5 09 0C 00 3F 61 05 1E 10 A0 00 05 0C 2F 03 
    A5 09 0C 00 3F 61 05 1E 10 A0 09 05 09 04 09
    the provider for the hardware gave me the following code to calculate the CRC:
    CRC Check Program:
    #define unsigned char uchar
    uchar CRC_Bitwise8(uchar *buf, uchar size)
      uchar i,j,b;
      uchar crc=0;
      for (j=0;j<size;j++)
        b=*buf++;
        for (i=0;i<8;i++)
          if(((crc^b)&0x01)!=0)
          crc^=0x18;
          crc>>=1;
          b>>=1; 
      return crc;
    so my question is, how can i insert this code in labview? any example? 
    thanks in advance, this forums really helped me learn labview in a practical manner!
    Solved!
    Go to Solution.

    LabVIEW has all of the same programming primitives (loops, logical operators, comparisons, etc.) used in the above piece of code. You simply have to pick the pieces apart and write them using native LabVIEW constructs. If you are that unfamiliar with LabVIEW itself I suggest going through the online tutorials to help familiarize yourself with the basics.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • I have not received e-mail for 1of 4 addy's since Saturday.  Works ok on iPad, computer. Suggestions on how to fix?

    I have not received any e-mails on my iPhone 4s on one of 4 addresses since 4 days ago although the e-mails are being received on my iPad and computer. I have tried numerous things - turned off account, turned off phone, turned off phone with both home and power button at same time, etc.  any suggestions on how I can correct this?

    I have not received any e-mails on my iPhone 4s on one of 4 addresses since 4 days ago although the e-mails are being received on my iPad and computer. I have tried numerous things - turned off account, turned off phone, turned off phone with both home and power button at same time, etc.  any suggestions on how I can correct this?

  • Not receiving confirmation emails

    I logged into the the Creative Cloud and I am hit with a message that says I must confirm my email. However, no matter how many times I hit "resend" I am not receiving the email (I added adobe.com to my "safe sender list"). I never received a confirmation email of my order, either. This concerns me if you are going to rely on my confirming my email address to offer services that I may have problems using your new service. Any ideas?

    Agreed, but its still under final brush as if I know and would be live on 11th ,
    I would not say it is the small version its more for the trailer of the film, with jus few shots here and there,

  • How to  calculate salesperson commission from receivables TRX

    Hi All
    I need to know how i calculate salesperson commission from receivables trx
    Regards;

    Hi,
    If  you charge commission or brokerage as a service to other vendors and customers, then raising an Invoice for the Service performed can be checked in the database.
    It would be good, if you can give a detailed example of the business activity, so that we can further check.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How to calculate tax amount

    Hi,
    I am working in driver program of service sheet entry SF. i want calculate Tax Amount of every line item of service entry sheet number.
      tax code, net value, total value  mention in line item but tax amount not.
    then How to calculate tax amount according tax code...............?

    Hi,
    Try with the below function module.
    CALCULATE_TAX_FROM_NET_AMOUNT
    Jshree

Maybe you are looking for

  • Error running DBMS_REDEFINITION.copy_table_dependents!!!

    Hi, When i run DBMS_REDEFINITION.copy_table_dependents package i am getting the following error. Error at line 1 ORA-01031: insufficient privileges ORA-06512: at "SYS.DBMS_REDEFINITION", line 233 ORA-06512: at "SYS.DBMS_REDEFINITION", line 1952 ORA-0

  • T410/T510 DisplayPort features audio!!

    After calling with a member of the lenovo sales team, i have an important news for many interests i think: The new Thinkpad T-series will not transport audio signals through the DisplayPort to get digital audio on a television through an HDMI adapter

  • Text Scam? Lost/Recover Iphone

    Hello! My wife lost/Stolen her iPhone 5s in Las Vegas abour 2 weeks ago. Today I recieved a text from 213-712-8384 in the text content it stated. (Apple Device Recovery Priotity Code LV3-R3 please verify below validation.byethost7.com) (01/02 this is

  • Two MessageArea UI in One View

    Hello. !! My problem is the following one, I have two MessageArea UI (one to the final result, and the other for validacion of input file empty). and I need that these messages  appear in two MessageAreaUI different from different location inside the

  • Unable to create a new campaign in marketing planner iview

    Hi experts, I'm not able to create a new campaign in the marketing planner iview, or a new lead in the leads iview. Every time I click on ''create'', an error message: ''impossible viewing the page'' appears in the botton-left part of the screen. Tha