Custom Net Change Booking Report

Friends,
I am in the process of creating a Custom Net Change Booking Report.
The Report should show the changes that affect the sale order Bookings.
The Audit history capture the changes but it stores two lines for each change.
Main Constrains are:-
* Order Lines getting splitted should not be consider since it will not affect the total quantity.
* Qty Change, price adjustment and the New lines created to the sales order should be considered.
Following is the query i tried.
The main issue in the query is if an order line is getting changed for qty and price at the same time it is not showing the changes correctly.
Any help is appreciated.
SELECT a.hist_creation_date, b.hist_creation_date,
TO_CHAR (a.order_number) order_number, a.header_id, a.line_id,
b.new_attribute_value - b.old_attribute_value net_qty_change,
0 net_price_change, a.hist_type_code,
'QTY UPDATE/CANCEL' type_of_adjustment
FROM oe_order_lines_audit_v a, oe_audit_attr_history b
WHERE b.entity_id = 2
AND a.line_id = b.entity_number
AND a.HIST_CREATION_DATE = b.HIST_CREATION_DATE
AND hist_type_code NOT IN ('SPLIT')
AND attribute_id IN (1230) -- Quantity Change
AND b.reason_code IS NOT NULL
UNION ALL
SELECT --DISTINCT
/* -- Type Of Price Adjustment */
a.hist_creation_date, b.hist_creation_date,
TO_CHAR (a.order_number) order_number, a.header_id, a.line_id,
0 net_qty_change,
b.new_attribute_value - b.old_attribute_value net_price_change,
a.hist_type_code, 'PRICE ADJUSTMENT' type_of_adjustment
FROM oe_order_lines_audit_v a, oe_audit_attr_history b
WHERE b.entity_id = 2
AND a.line_id = b.entity_number
AND a.HIST_CREATION_DATE = b.HIST_CREATION_DATE
AND attribute_id IN (1316) -- Price Adjustment
UNION ALL
SELECT
/* New Line */
wsh.creation_date, wsh.creation_date,
wsh.source_header_number order_number,
wsh.source_header_id header_id, wsh.source_line_id line_id,
wsh.requested_quantity net_qty_change, 0 net_price_change,
NULL hist_type_code, 'NEW LINE' type_of_adjustment
FROM wsh_delivery_details wsh
WHERE 1 = 1
AND wsh.source_line_id NOT IN (SELECT entity_number
FROM oe_audit_attr_history a
WHERE 1 = 1 AND entity_id = 2)
AND wsh.split_from_delivery_detail_id IS NULL
Thanks
Karthik

Sandeep,
Thanks for the reply i am in Oracle Application release 12.0.4 and I could not find the view oe_order_lines_all_ac1 in this version.
I appreciate your help.
Thanks
Karthik

Similar Messages

  • Order Booking Report-  URGENT

    Hai SAP GURUS,
    How can i get the Order booking report either any standard report or any other similar report which suits the my below mentioned requirement.
    my requirement is:
    cumulative value of i.e ( PR00 value - trade discount) of all line items of particular Sales Division for the particular duration.
    Please give your valuable suggestions and points to be credited for answers
    URGENT

    Hi Chakri,
    This is a common requirement, you can use the list of sales orders transaction VA05 give your customer number and organizational data then execute. You will get a report which shows your required data.
    You can change the layout of the report and arrange as per your need.
    Here you have a limitation that you will get details for one customer,
    but if you need a report based on user you give user name and org data in the selection screen and execute, you will get the details of sales orders created by that user.
    If you want only per sales org copy the above said programs and change it as per your requirement.
    reward if helpful
    bye
    Venkat Cheedalla

  • Fixed Asset Book Report

    When running the Fixed Asset Book report, the system shows every instance of an asset number. By that I mean that when and asset has changed locations the asset shows in the report in both locations with a value of zero in one location. This makes using this report for NBV reconciliations to the GL very difficult as I need to find ways of tracking and eliminating the duplicates before I can even begin.
    Is there a way to get the report to provide the data only in the current locations or is there a differant report I can use that provides a NBV at a period end broken out by cost and accumulated depreciation.
    Any assistance would be appreciated.

    Please see (FAQ: RXi Reports (JGRX/RXJG, FARX/RXFA, APRX/RXAP, ARRX/RXAR) [ID 430075.1]) -- How To Find The Source Code Of An RXi Report ?
    Thanks,
    Hussein

  • Customer Open Balance Aging Report S_ALR_87012178

    hello,
    we are using this report Customer Open Balance Aging Report S_ALR_87012178 but when run, it brings customers' names from VD03 search field, instead it would be handy to see full names from Name-field. I understand S_ALR_87012178 is a static report, but my question would be is there any other transaction/report which shows the same but with customers' full name?
    thanks in advance

    S_ALR_87012178 is the only standard customer aging report.
    Following two solutions I could think of to fit your requirements.
    Develop a custom report by copying standard customer reports that have full customer name and make changes according to your need.
    Or
    In report S_ALR_87012178 the customer name is populated in Address field. So you can use this field as your customer name and develop a custom report.
    Thanks

  • Net Change in Cross-Tab

    Post Author: EdHaberstroh
    CA Forum: Charts and Graphs
    I would like to report the net change or percent change between columns in crosstab report.  is that possible?

    Hi Oddmar,
    design studio in current release (1.4) is taking the date / time formats from user locale which is set by your browser. You are probably in EN, therefore the English formatting is taken.
    see admin help, https://websmp109.sap-ag.de/~sapidb/012002523100018707472014E/ds14_admin_bip_en.pdf
    8.4 Regional Formats for Numbers, Dates and Times
    The format for numbers, dates and times varies according to the defined language setting in the BI launch pad or
    the Web browser.
    ● If you define a language in the BI launch pad under Preferences Locales and Time Zone Preferred
    Viewing Locale , this language is used, and numbers, dates and times are displayed in the appropriate
    format.
    ● If you select Use browser locale under Preferences Locales and Time Zone Preferred Viewing Locale ,
    the Web browser language is used, and numbers, dates and times are displayed in the appropriate format.
    --> this means the SU01 settings are not evaluated (yet, as probably this extension needs to come at some time, not sure if for BIP deployment as this one can be used against many ABAPs.).
    Karol

  • How we can add custom field in standard report 2kee.

    Hi,
    How we can add custom field in standard report 2kee.
    I need one extra field to add in 2kee report for the same is there any customization req.
    Regards
    Ravi

    Ravi,
    Which extra field do you want to add or see?  Without specifying the field, it is difficult for one to tell you precisely whether you need a custom field or just change the layout to get the standard one.
    There are so many fields which exists but are not displayed when you execute 2KEE. You need to change the layout selections to your preference.
    Nonetheless, if the field you want to add does not already exist, then yes you can do customization.  Is there a customization requirement? No. But remember, you are making changes to SAP Standard program which will no longer be supported by SAP should in the case an issue arise in the future related to this very program.
    Have your abaper add the said field in the program or why not just create a query to pull the report?
    Elias
    Edited by: Elias Akorli on Sep 18, 2009 9:02 PM

  • Net Price List Report V_NL- SDNETPRO

    Dear  SAP Friends,
    I trying to use standard V_NL net price list report, the number are not matching up to the subtotals values in pricing procedure. While calculating manually it is found that the condition records whichever has scales involved is given a miss and calculation are done excluding them, could anybody help me out in understand the SDNETPRO and the way it functions. Thanks in advance.
    Kind Regards
    Rajesh

    Hi,
    To create new pricing report u can use
    Create - V/LA
    Change - V/LB
    Display - V/LC
    Execute - V/LD
    Slect table sales orgz, dist. chaneel, division, material, item, etc.
    kapil

  • Changing the report in one client , it is getting reflected in other client

    Hello experts,
    We are having one development system(EID) in which we are having two clients.One is development client(100) and one is sandbox client(710).We are having repository object like report.We are changing this report in EID 710 and it is getting reflected in EID 100.Now we want that once we changed this report in EID 710 it shld not get reflected in EID 100.We want to parallely work on this report.We tried with client change option  "no changes to cross client customizing object" but it is not working.Can you plz suggest something.

    Hi,
    you can not do like this...
    if you want to  work parallely copy the same report to $temp program. then you can work parallery on both.
    Regards,
    Satya.

  • India cash/bank book report is not matching with GL balance

    We have Changed one segment in cash account and cash clearing account for internal petty cash account.
    After changing the segment, Closing balance of India cash/bank book report is not matching with GL balance.
    Please help.
    Regards
    Suresh

    user702249 wrote:
    We have Changed one segment in cash account and cash clearing account for internal petty cash account.
    After changing the segment, Closing balance of India cash/bank book report is not matching with GL balance.
    Please help.
    Regards
    SureshPlease do not post duplicates -- India cash/bank book report is not matching with GL balance.

  • Change existence report LDB PNP to PNPCE

    Hi HR experts !!!
    We want to convert all the existence reports which are using <b>PNP</b> to <b>PNPCE</b>? Do you guys have idea how much time it’ll take? As we have around 1000 reports.
    I need your input guys
    Cheers
    Usman

    Usman,
        I am also on HR project . We’re also discussing the same thing !! but it looks like it need another project to change the LDB to PNPCE as reason being  lots of reports are written using PNP logic in mind.
    But PNPCE Behaves different . Well I must say its another project to change 1000 reports
    FYI...
    It is better to go in for PNPCE even if you do not have Concurrent Employment to take advantage of the new lDB. The one thing PNPCE does do is when the GET executes only the infotype records retrieved for the interval requested will be retrieved. Whereas PNP by default, will retrieve all infotype records for a given PERNR.
    SAP recommends to use PNPCE for all new development. But all the features are not available as of now. The Time Management functions for concurrent employment have not been released for all customers. They are activated for selected pilot customers only. Can get some info in SAP Note : 518520 , 516489..
    OSS Note # 561645 ( LDB PNPCE: compatibility with PNP )
    Symptom
    In some respects, logical database PNPCE responds differently from logical database PNP. This may cause errors in applications that do not know this difference.
    Other terms
    PNP, PNPCE, payroll period, PNPTIMR9, PNPTIMRA, error message, information message
    Reason and Prerequisites
    There are the following differences between logical databases PNP and PNPCE:
    Unlike PNP, logical database PNPCE does not have two radio buttons you can use to set the payroll period (parameters PNPTIMR9 and PNPTIMRA). Instead, the payroll period is set via parameter PNPTIMED (displayed as a dropdown box on the selection screen). This difference must be taken into account when you call a PNPCE report from another program. Otherwise, in incorrect system response occurs in the PNPCE report called. Problems may also occur if you convert an existing PNP report to PNPCE and want to use an old (PNP) variant.
    If you enter an invalid payroll arear or an invalid payroll period, PNP issues an error message whereas PNPCE only issues an information message. This causes problems if you run a PNPCE report in the background because in this case the program runs into an endless loop instead of terminating.
    Solution
    Implement the attached corrections or import the corresponding support package.
    This changes PNPCE in such a way that it responds like PNP
    Moreover, also look at OSS
    PNPCE: Performance improvement  ( OSS note # 687004)
    Symptom
    You use a report that is based on logical database PNPCE. Either the performance of the report is poor, or the program terminates due to a memory overflow.
    Other terms
    Performance, PNPCE, 0000, 0001, buffer, memory space, memory space consumption, partitioning, FILL_0000_0001_BUFFER, T77S0, LDB, PCEPS, PNP mode
    Reason and Prerequisites
    The PNPCE can be used in a PNP-compatible mode. The mode is 'PNP-compatible' if the report does not program on events GET PERSON and GET GROUP and does not use the 'AS PERSON TABLE' extension for the INFOTYPES statements (for more details refer to the documentation of logical database PNPCE in Transaction SE36).
    In this mode the performance is worse, as if logical database PNP is used. After the implementation of the correction from this note, the performance is significantly improved.
    Another problem is that all personnel numbers that meet the entered selection criteria are internally selected during the execution of the report. Then the system imports all data records of infotypes 0000 and 0001 for all these personnel numbers because they are needed for the internal processing for different reasons. If the amount of personnel numbers or the amount of data records per personnel number is very large, memory problems can occur. The attached correction solves the memory problems.
    Solution
    Implement the correction according to the correction instructions or import the corresponding Support Package. If you implement the correction manually, you first have to implement Note 705870.
    A part of the correction causes the internal processing of the persons/personnel numbers in blocks. If logical database PNPCE runs in PNP mode, the block-by-block processing is executed based on personnel numbers. Otherwise (in CE mode) it is executed based on persons. In PNP mode, logical database PNPCE behaves exactly like logical database PNP concerning the block processing. The settings are also made along the lines of logical database PNP. For a more detailed description refer to Note 705870.
    Standard setting of the block size
    In CE mode the block size is set to 10,000 persons by default. That is, as long as the number of selected persons does not exceed this value, no block processing is executed at all. A memory space analyses showed that this does not cause problems with the memory space in a system with an average number of infotype 0000 and infotype 0001 data records. However, if the amount of data records (= splits) is very large in your system, you have to reduce the maximum block size manually.
    Manual setting of the block size
    There are two different options to set the block size manually: a) report-specific by means of a switch which you have to set in the source code of the report, and b) cross-system by means of a switch in switch table T77S0.
    The report-specific switch is called PNP_MAX_PARTITION_SIZE. It has priority (if switch T77S0 is activated) and must be set in the source code of the report at event START-OF-SELECTION at the latest.
    Example: Set the maximum block size (number of persons that can be processed together) to 250:
    START-OF-SELECTION.
      PNP_MAX_PARTITION_SIZE = 250.
    The switch is recommended for customer-specific reports requiring a lot of memory and therefore need to minimize the additional memory space of logical database PNPCE. It is not suited for SAP standard reports because the report would have to be modified in that case.
    The cross-system switch is maintained in table T77S0. It affects all reports that are based on logical database PNPCE and do not use the report-specific switch PNP_MAX_PARTITION_SIZE.
    The switch belongs to the LDB group and is called PCEPS. The switch is maintained in Transaction SM30 (enter table 'T77S0' and choose 'Maintain'). The switch is delivered (for Release 4.70 in a Support Package) with initial value (0). An initial value causes the switch to be ignored and the standard setting to be used instead. If you want to set the switch, set it to a numeric value. This value specifies the maximum number of persons that are processed together in a block.
    Example:
    LDB  PCEPS  250
    For more information on the procedure of a system upgrade refer to Note 317722
    Thanks
    Saquib
    Message was edited by: Saquib Khan

  • Changing CRXI Report Datasource in VS2005/2008

    I am building a Windows application in VS2005 that contains several reports. Reports all use various tables from the same Access.mdb. How can I programmically change the report datasource location at runtime?

    Hi John,
    Since this involves Visual Studio, I would suggest you to please post this forum in our .net Developement thread. Click on the following link to navigate there SAP Crystal Reports, version for Visual Studio
    Hope this helps.
    Regards,
    Jay.

  • Got "HTTP - 404" error when apply change of report attributes

    Environment:
    Oracle 10g (not XE)
    APEX 3.1.2.00.02
    Oracle HTTP Server
    I tried to modify a page in "101 - Sample Application", changed the report attributes (changed the heading type from Column Names to Customer), and when I applied the change, I got a "HTTP - 404 Page not found" error.
    In error log file of Apach, the error message is "mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 ORA-25402......"
    Anyone can help me? Thanks.

    Please tell us your first name and update your profile with it to help us. Thanks.
    changed the report attributes (changed the heading type from Column Names to Customer)I don't follow that.
    Can you install this application into your workspace on apex.oracle.com (request one if necessary) and reproduce this problem there?
    Scott

  • Writing a custom plugin for Crystal Report Designer

    Hi,
    I need to add a custom functionality to Crystal Report Designer so that itu2019s available as a menu option is the CRD and should able to be selected by the Report Designer when they design a report using CRD. Is it possible to write and add custom plugins to the CRD? Is there a SDK available to do this or is there a specific method that I could use? Is this supported at all? I need to add the to Crystal Report Designer XI R2 but I could use Crystal 2008 is this is available in that version.
    Thank you in advance,
    Regards,
    Chanaka

    Hi Jamie,
    This sure looks promising  information for me this is exactly what I want to do. Can you direct me to a working Crystal Report 2008 .net Developer Guide and API reference? The chm files I got from searching doesn't seems to work
    [http://www.sdn.sap.com/irj/boc/crystalreports-sdk]
    [http://www.sdn.sap.com/irj/boc/sdklibrary#section7]
    [http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
    [http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Thanks,
    Regards,
    Chanaka

  • Customer and Vendor ageing report by ItemGroup@%@#$%@#$??

    Hi All
    How do we get Customer and Vendor ageing report by "ItemGroup"?
    I know there is a standard report in Business One which gives you the ageing report by Business Partner Group.  But I dont know whether it is possible to get by "ItemGroup".  Please help me and excuse me for weird requirement..
    Thanks

    Hi Gordon,
    that query is actually designed for getting the purchase reports with all the excise and other tax related information per line item in the marketing document.   my requirement is something different than this where the client wants to see the ageing report by Itemgroup. 
    Since ageing is based on the invoice due date it looks difficult to bifurcate the each individual line item, its group, its line total and their due date.  means we should add all the open invoices' line items to be grouped with its total based on the due date.  any other way to solve this?
    thanks

  • Change the Report Title for XML Publisher, depending on the field value.

    I want to change the Report Title as below.
    if the field_A='B' then the report title as it is defined in report defination
    else the report title is 'XXX"
    Please let me know whether it is possible, if yes please guide me. how can we do it.
    Thanks
    Venkat

    Tim covered the inline if statement, though not specifically regarding a title, in his blog recently:
    http://blogs.oracle.com/xmlpublisher/2007/12/18#a723
    The syntax is:
    xdoxslt:ifelse(.//WM_FLAG='C’,'Canceled','Approved')

Maybe you are looking for

  • Purchase and download

    I just started using Itunes again after a very long time. I don't know how to purchase and add to my ipod. I added songs to a wish list and thought at that point I would have an options to purchase. Can't seem to figure it out.

  • Learning Solution: Instructor / Tutor iView(s) not working in Portal

    Hi all . . . We just installed the Instructor/Tutor package in our sandbox portal.  I gave the role to myself so that I could see the Instruction and Tutoring tab. Yet, when I click on Work Overview to see the Instructor's Work Center iView, it throw

  • Can we have Timesheet widget?

    Hi All, I am from Portal. I have worked on ESS business package. Timesheet, used to book time, forms a main part of ESS package. It is an IAC (Internet Application Component) hosted on ITS (Internet Transaction Server). In Portal created iview for th

  • Not saving my midi keyboard positions

    When I setup a character to move via midi control I have to re-asign te keys everytime i reopen. Patrick

  • How to update ipad 2

    How do i update my ipad 2 from 4.3.3 to current ios 7?  In the settings I don't have a update section.