BAPI or FM to compare two different invoices

Hi,
Is there any BAPI or FM to compare latest invoice with previous month's invoice. When a customer calls for high bill inquires (via IVR) we want a program to compare previous bills (by line item or document type) and populate the reason like. due to dunning charges or Interest charges etc. etc.
Appreciate your responses!
Thanks,
Aravind

Hi Aravind,
Select all the values from table ERDK based on Business Partner or Contract account level using FM ISU_S_ERDK_SELECT_ALL
Pass the previous invoice to FM ISU_IMPORT_PRINTDOC_FROM_MEM to get the data from memory.
If not available, get detail from the database using FM ISU_DB_BUF_PRINT_DOC_SINGLE  in parameter Y_PRINT_DOC.
Regards,
Sudeep Singh

Similar Messages

  • Query to compare two different periods

    hello, I want to compare two different periods and put together following query and wondering if this is the right way to do it:
    WITH  MEMBER  [TotalForThePeriod] AS
     SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070228]}
          , [Measures].[Internet Sales Amount]
    MEMBER  [ThisMonth] AS
     SUM( {[Date].[Calendar].[Date].&[20070101]:[Date].[Calendar].[Date].&[20070131]}
          , [Measures].[Internet Sales Amount]
    MEMBER  [NextMonth] AS
     SUM( {[Date].[Calendar].[Date].&[20070201]:[Date].[Calendar].[Date].&[20070228]}
          , [Measures].[Internet Sales Amount]
    MEMBER [TotalForTherPeriod2] AS
       [ThisMonth] + [NextMonth]
    SELECT 
     [Product].[Category].[Category],
    //  [Measures].[Internet Sales Amount],
    //  [Measures].[Internet Order Quantity]
      [TotalForThePeriod],
      [ThisMonth],
      [NextMonth],
      [TotalForTherPeriod2]
    ) ON COLUMNS
      [Sales Territory].[Sales Territory Country].Members
    }  ON ROWS
    FROM [Adventure Works] 
    mark it as answer if it answered your question :)

    Hi Parry2k,
    According to your description, you want to compare the sales of two different periods. Right?
    Based on your query, both the Period1 and Period2 are from 20070101 to 20070228. They are same period, so it supposed to return same sales value on that two columns. Your query is right to me.
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • How tp compare two different programs

    Hi ,
    I have created a copy of a standard report , but both are giving outputs in different ways , the layout of the newly created report is distorted .
    Can someone advice of there is any way to compare two different reports in the same environment
    Regards
    Ashish

    Hi
    As I m new to this transcation ,
    Can you please advice what parameters do i need to enter to compare the std report & Z report in tcode SCu0.

  • Two different invoices created for  one order for two different lines

    Hi All,
    I have an order with four line items that was shipped on the same day, invoiced on the same day and all lines have the same delivery number yet two inovices were created for this order..one for the first three lines and one for the last line.
    Can anyone please explain what can cause this to happen?
    Thanks
    A/A

    Hi Asgar,
    If a single order has been split into two invoices, you should check the values of the mandatory columns. During Autoinvoice, the grouping is based on the madatory columns and also your grouping rules. If any of the mandatory column has a different value, it will split into different invoice.
    Please refer the following metalink note for further details
    Subject: How Autoinvoice Grouping Works
    Doc ID: 98772.1
    Hope that helps.
    Thanks,
    Anil

  • How to compare two different environments

    Can any please tell me how to compare two environments like DEVL to TEST?
    I know how to compare a project(like DEVL to TEST) but i want to see all the changes in all the objects between two different environments.
    Please help me.
    Thank you.

    That is really a good piece of information.
    Does it really matter where we are comparing from?
    i will explain,let us say we have DEV and TST environment.
    let us say both has same project name and the same number of objects but inside the object they may be different(like number of fields in the same record in both environments).
    Now we want to have a compare report between those environments.
    We can do in two different ways, right?
    (1. source DEV, Target TST)
    (2. source TST, Target DEV)
    will the result get changed in both the cases?
    (except like following)
    (first case souce target)
    ( absent *changed)
    (second case would be like following)
    ( souce target)
    ( *changed  absent)
    (but i gess the number of rows in both the cases does not get changed)
    let me know if you can not understand the question. sorry about the confusing explanation

  • To compare two different reports

    Hi!
    Iu2019ve just started in a new work and I have an important task to do. So, I need to know if there is
    some method to compare two reports. Let me explain:
    We receive reports from Oracle and from SQL Server: two different reports with the same information. I need to compare them in order to know if the information exactly is the same or not.
    Does someone know any tool to do that or do I have to revise each one by hand?

    May beu2026 Business Object u2013 Crystal Reports can explain us how is a report built and how we can find the u201Cdata sourcesu201D. If it can beu2026 I will be able to make a program to compare the u201Cdata fieldsu201D in two, three, four,u2026 reports.
    It will be very useful to compare if two reports have the same u201Cdata fieldsu201D or, two directories have the same number of reports and everyone in the first folder have the consequent in the second folder.
    Of course, when I talking about folders, Iu2019m want to say two folders who contains reports but each folder have reports linked to different DBMS (Oracle, SQL Server,u2026).
    Edited by: Carles Hernández on Jan 13, 2009 5:03 PM
    Edited by: Carles Hernández on Jan 13, 2009 5:05 PM

  • How to compare two different characteristics at the same time in polestar

    Hi Gurus,
    I would like to analyse the e fashion universe in polestar with comparison of previous year product line with current year product line at the same time.
    is there any way to do that we can compare two years of the product line sales revenue at the same time with comparison chart like 2003 T shirts vs 2002 T shirts 
    in polestar we can compare the two measures at the same time but i want to compare the sales revenue of product lines of two years in a comparison chart at the same time.
    Regards and thanks
    Abid Paul

    Hi Stratos,
    I am actually able to compare the Measures  but i want the comparison between the two different characteristics like this year  productline  vs last year productline at the same time with say one measure like sales revenue or any other.
    Is it possible to compare the both and it should represent in the chart as well at the same time.
    In the polestar i can compare three measures at the same time but i want to compare characteristics like year  2009 productline VS 2008 productline with one measure say sales revenue.
    I would really appreciate if you could help me out.
    Regards and thanks
    Abid

  • Compare two different iPhoto Libraries

    Is there any program that could compare two iPhoto Libraries and let me know the difference between them? I've got two libraries, they should have the same pictures, but for some reason one is 80GB bigger than the other one.
    I know there are duplicates, but 80GB seems a lot for only duplicates, so I want to compare both of them and see what pictures are missing.

    How many photos does iPhoto indicate in each of the libraries? Open the Photo mode, do a select all and see how many are indicated at the bottom of the window. See if that corresponds to the number beside the Photos icon under the Events library. Be sure to turn on Item Counts in iPhoto's General preference pane.
    Which is the larger: the old or the new?
    OT

  • Compare two different WA.

    Hi Team, I need a help on a topic in ABAP where I need to compare all fields of 2 different Work Areas and for any discrepancy in a particular field.
    I need to highlight in a different color.
    It would not be advisable to compare each field of both Work Areas as numbers of fields are more than 40. Please suggest. 
    I have attached a sample over here. Thanks in advance.

    I just made this report for you.....
    REPORT ztest_gb1.
    DATA: wa_1 TYPE t001,
           wa_2 TYPE t001.
    DATA: rf_descr_ref TYPE REF TO cl_abap_typedescr.
    FIELD-SYMBOLS: <fs1> TYPE any,
                    <fs2> TYPE any.
    START-OF-SELECTION.
       SELECT * FROM t001 INTO wa_1
       UP TO 1 ROWS.
       ENDSELECT.
       wa_2 = wa_1.
    *forcefully changing variable to test
       wa_2-stceg = '1'.
       DO.
    * Assign every field of this structure subsequently to the untyped
    *fieldsymbol.
    *    BREAK-POINT.
         ASSIGN COMPONENT sy-index OF STRUCTURE wa_1 TO <fs1>.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         ASSIGN COMPONENT sy-index OF STRUCTURE wa_2 TO <fs2>.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         IF <fs1> NE <fs2>.
    *      mismatch found.
           CALL METHOD cl_abap_typedescr=>describe_by_data
             EXPORTING
               p_data      = <fs1>
             RECEIVING
               p_descr_ref = rf_descr_ref.
           WRITE: / sy-index, rf_descr_ref->type_kind,
           rf_descr_ref->absolute_name.
         ENDIF.
       ENDDO.
    It should give an output like
            14  C
    \TYPE=STCEG

  • Wether can invoice have with two different VAT rates, 16%

    Dear SDN team,
    I have a requirement like a invoice should have two different VAT rates.
    Situation is below:
    A rebate agreement is created and it was settled partially and final settlement is also carried out.
    Rebate agreement nº  XXXXXXXX, with a validity period between the 01.05.2010 until 31.07.2010. This rebate agreement created the credit memo XXXXXXXXX with the VAT rate of 18%.
    Mean time the VAT rate was changed from 1st July from 16% to 18%.
    There are invoice created in the first half and others belonging to the second half.  Invoice created during the First Half it was created the VAT value with 16% (Before July)and the Invoice created with the Second Half it was created with 18% (After July1st).
    But customer request is to have an invoice with two different VAT rates, 16% and 18%. However, the invoice only takes into account the 18%.
    And i have suggested the below resolution - But user still needs to have two different VAT rates in one invoice for the line item this is for the have a legal precept which force me to have a different VAT rates depending on the original invoice date
    Please let me advice how to resolve this issue.
    Looking forward for your favorable reply.
    Thanks and Regards,
    Jana
    Suggested Solution:
    But having two different VAT rates in one single invoice or credit note is not possible at all.
    Further if you would liked to have different VAT rates for the two separate ivoices - This can be done by doing the Rebate agreement with partial settlement for the First half that is before 30.06.2010 and final settlement after 01.07.2010. By doing this rebate agreement will have two different invoices created with two different VAT rates.  But now this is not possible for the RA where it is done with final settlement.
    So, You can not have two different VAT rate in one single invoice.

    Dear,
    In order to solve this issue with wrong VAt rates I propose you to proceed as follow:
    1) Cancel the CN (Credit Note)
    2) In the CMR (Credit Memo Request) set the tax classification of the materials with wrong VAT % to 0 (inside the CMR in item-billing document).
    3) Maintain for the access sequence of MWST a higher access than the normal one for tax classification 0 with the old tax percentage (E.g.: 16% in your case)
    4) Determine a new pricing for the CMR (via menu path: Edit > New pricing document)
    At this stage your items will have some 18% and some 16% of VAT. When you create the CN those percentages will be kept.
    If you are satisfied with the result it is now a matter of making sure the program that prints your invoice is mentioning the different VAT rates of the items. As you didn't specify anything about this point, I seize the opportunity to advice you about. No matter of the type of print program you are using (SAP script, PDF or Smartforms), you need TO BE SURE that when the CN is created (with two different types of VAT %) also your PRINTOUT is properly created mentioning the two different rates and relative values.
    If not printed correctly because you did not foresee to have different percentages it is easy to solve it with a programmer.
    In case of questions or doubts do not hesitate to post back your answer.
    Regards,

  • Tool for comparing two schemas....

    Do we have any tool avalilable in oracle that compares two different schemas and find out the differences between two so that we can validate a schema against a standard one?

    Hi.
    Toad have option that is called just like that , compare schemas, and when used to compare two schemas it outputs diferences between them.
    I dont know about any other tool.

  • Compare two webdynpro components

    Hi all
    there is a webdynpro component with the name ZWDC_ONE.
    i copied it by giving a new name ZWDC_TWO.
    and I made few changes in the component ZWDC_TWO.
    now there are two webdynpro components ZWDC_ONE and ZWDC_TWO.
    i want to compare them with each other, to see what are the differences, what are new things added in ZWDC_TWO with respect to ZWDC_ONE.
    for abap programs, there is a transaction SE39.
    but it provides facility to compare programs, function modules, and classes, but not the web dynpro components.
    is there any way we can compare two different webdynpro components.
    thanks,
    Madhu_1980

    As far as i know there is no such tool available.

  • Extracting unique records from two different tables record

    Hello,
    In the following code of two different tables www.testing.com exists in both tables. I want to compare two different columns of the two different tables to get unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    VIDEOLINKS
    www.testing.com
    SQL> ed
    Wrote file afiedt.buf
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    PICLINKS
    test
    test14
    www.hello.com
    www.testing.comThanks & best regards

    Unfortunatly you didn't mention the expected output. I guess it would be the one line
    "www.testing.com"
    in that case simply join the two tables.
    select *
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;If needed then you could change the select list to retrieve only distinct values.
    select unique v.sa_id, v.videolinks
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;I usually avoid distinct/unique whereever possible. This requires the database to do a sort and makes the query slow.
    Edited by: Sven W. on Feb 10, 2011 1:55 PM

  • How to compare two big itunes libraries

    I´m looking for a way to compare two different itunes libraries, each one with about 50.000 tracks, in order to find all the tracks that aren´t common in both. How can I do this?. How many entries con handle itunes in windows without problems and how much memory I need?
    Thanks in advance
    Dell 9100   Windows XP  

    I don't think there is a way of doing this directly as iTunes can only handle one library at a time.
    You could export each library into a separate text file and then use other software fo compare them. If you have database software, it should be fairly easy to do using that. The files should be easy to import as tab delimited files.

  • Comparing two characteristics in query.

    Hi,
    In my CKF, I want to compare two different characteristics. Field 1 contains the value 'Y' and 'N' while Field 2 contains the value 'SP' and 'MP'. I tried to create a formula variable using key but the dimension ID supports does not give option of char.
    In the query i am trying to compare both the fields:
    ((Field 1 == 'Y')AND(Field 2 =='SP'))* (20 - X)+ ((Field 1 == 'Y')AND(Field 2 =='MP'))* (30 - X)
    Can anyone kindly suggest what can be done in this case. Any suggestion would be of gr8 help to me.
    Thanks
    Palak Vyasa

    i think its alomost not possible what you are trying to achieve (no idea if there is a way)..
    but i have an idea..why don't you try out with restricted KeyFigures?
    Create two dummy RKFs and hide them.
    RKF1: combination of Field1=Y,Field2=SP,and any Base KF.
    RKF2: combination of Field1=Y,Field2=MP,and same Base KF.
    Then try this formula:
    (RKF1<>0)(20 - X)+(RKF2<>0)(30 - X)
    One of these RKFs must be zero always then only you get desired result..isnt it?
    as both RKFs are restricted by same KF and Same Field1 but different Field2,one them should be zero always.

Maybe you are looking for