Counting of AR/AP Invoices

Hi Gurus,
Can we get no. of invoices posted in a particular period from SAP?
Is there any report which gives no. of invoices posted in particular month?
Please revert asap.
Thank You

Hi
There are so many ways to approach for your requirement.
Standard report FBL1N -->Vendor Line Item Display gives you the required.
If you want to check only the Invoices, then select Dynamic Selections and there you will find Document Type and there give the KR and RE(if MM Docs are there).
select the All Items Radio Button.
Give the Dates From as starting date of period or month & To as ending date of period or month and Execute.
You will get only the Invoices passed in a period.
If you want to get the Invoices only for 1 Vendor then give the Vendor Number or if you want for all Vendors just leave the Vendor field Blank.
Go to BSIK and BSAK tables and search by giving the dates.
Open Items will be in BSIK and Cleared Items will be in BSAK.
These will get you the required.
Regards
Venkat

Similar Messages

  • Count Invoices without Invoice Drill-Down

    I have a requirement to count the number of invoices by  posting period and vendor, for invoices that are less than a certain amount (say $500). I intend to get this data from the standard AP line item cube. Seems like it should be simple.
    I can do this as long as I list each invoice (reference) in the workbook, and activate an exception. However, there are enough invoices to run out of rows in Excel.
    How can I do the count, and only display the subtotals by period and vendor, and the total for the entire time frame?
    I tried displaying the Posting Period, Vendor and Reference as a Hierarchy and then setting the expansion level to Vendor, but the 'Calculate Results as' is not invoked with the <$500 Condition activated.
    I also tried using a formula variable, replacement path on the reference:
    Variable defined as follows:
    Type: Formula
    Variable Name: ZFA0REFD
    Description: Ref. Doc. No. Repl. Path
    Processing by: Replacement Path
    Characteristic: Reference (0REF_DOC_NO)
    Replace Variable With: Attribute Value
    Attribute: Characteristic Reference (Constant 1)
    For Intervals Use: From Value
    Offset Start & Offset Length: left blank
    Evaluate as "Boolean" (Value 0 or 1) not selected
    Variable used in formula (local to query) to count non-zero amounts less than $500, formula syntax as follows:
    ( 'Credit amt in LC < 500 ) * ( 'Credit amt in LC  <> 0 ) * 'Ref. Doc. No. Repl. Path'
    Using the logic as described above, I get correct counts only if I have drill-down to the Reference (0REF_DOC_NO) level.
    If I remove the drill-down to the Reference (0REF_DOC_NO) level, leaving rows only for Fiscal Period (0FISCPER) and Vendor (0CREDITOR), then the evaluation on amounts <> 0 and <500 is done at the Vendor (0CREDITOR) level, not at the Reference (0REF_DOC_NO) level. 
    I have also tried counting with the drilldown by reference number, with a Condition applied, with no suppression of repeated key values, and with no supression of result rows. I was able to then apply Excel Auto Filter to the entire results area, selecting only the rows with "Result" of blank in the Reference characteristic column. This way only the sub-total and total rows appear in the spreadsheet.
    I still have problems though with running out of rows in Excel (we process more than 70,000 invoices per month).
    Please advise if any of you can think of a better solution that will work. I need to do this in a query -- I cannot modify the infocube.
    I did do a forum search, and all I could find is how to add a count calculated key figure to the infocube. I need to do this at the query level.
    Any clues will be much appreciated. (BW3.5 SP15 BEx deployment only - no web).

    One of the 3rd-party Crystal Report viewers listed at http://www.kenhamady.com/bookmarks.html provides that functionality (but it requires you add some formulas to the report to enable that behavior).
    You can see a video demonstration at: [In-Place Drill Down|http://www.milletsoftware.com/Download/DLV_InPlace_DrillDown.wmv]

  • How to create a counter (with fixed increment) in DME file

    Hi Experts,
    Is there a way to define a counter in one of the Segment/loop of DME (Such as number of invoices), where we have to increment the actual value of the counter reading by a fixed value, say 2. Example, if the counter can print the invoice numbers as 1,2,3, 4,5 etc. then it should rather print X+2 in each case, i.e. 3, 4, 5, 6, 7 and so on.
    Regards
    Harsh

    Hi Amitash,
    Thanks for the response. Sorry I couldn't articulate my question correctly. Let me try to rephrase.
    I have to print all the invoice details related to each payment document, in the DME output. One of the field in the invoice details is a simple counter, which prints a simple sequence number 1 to 5 (for 5 invoices). This counter can go upto any number depending on the number of invoices (1 to n). Now with the help of aggregation functions I am able to generate such a counter. But here is the twist now. Instead of printing 1 to 5, the counter should print 3 to 8. ( i.e. 1 to n, it should be printing 3 to n+2 ). Is that possible?
    Regards
    Harsh

  • Get Invoice Number after adding the invoice

    Hi,
       I am adding a service invoice to SBO using the DI api. I am able to create the Invoice successfully. Immedietly after I execute the Invoice.Add line, I would like to get the Docentry that was assigned to the invoice. What is the bst way to do this? Appreciate any help you can give me.\
    See code I am using:
    private void CreateSAPServiceInvoice()
                   SAPbobsCOM.Documents oServiceInvoice;//ChargeBack Invoice.
                   SAPbobsCOM.Documents oPaymentInvoice; //Orig: Invoice
                   SAPbobsCOM.Payments_CreditCards pCC;
                   oServiceInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
                        SAPbobsCOM.BoObjectTypes.oInvoices);
                   oPaymentInvoice = (SAPbobsCOM.Documents) frmMain.oCompany.GetBusinessObject(
                        SAPbobsCOM.BoObjectTypes.oInvoices);
                   oServiceInvoice.DocType=SAPbobsCOM.BoDocumentTypes.dDocument_Service;
                   oServiceInvoice.CardCode = pmt.CardCode;
                   int x = pmt.Invoices.Count;
                   //Get CC Payment Info
                   pCC = pmt.CreditCards;
                   for (int i=0;i<pCC.Count;i++)
                        pCC.SetCurrentLine(i);
                        this.CBAccountInfo= modcb.cbaccts.Find(pCC.CreditCard);
                        if (this.CBAccountInfo != null)
                             //Service lines
                             oServiceInvoice.Lines.ItemDescription = this.pCBAcct.AccountName;
                             oServiceInvoice.Lines.AccountCode = pCC.CreditAcct;
                             oServiceInvoice.Lines.Price = pCC.CreditSum;
                             oServiceInvoice.Lines.TaxCode="0";
                             oServiceInvoice.Lines.Add();
                   //Add the invoice only if any lines have been added to the
                   //Service Invoice.
                   if (oServiceInvoice.Lines.Count > 0)
                        //Add the invoice
                        int j = oServiceInvoice.Add();
                        if  (j!=0)//If there is an error
                             int ix; string m;
                             frmMain.oCompany.GetLastError(out ix,out m);
                             throw new Exception(ix + ":" + m);          
                        else
                             j =oServiceInvoice.DocNum;

    I think this thread might have some useful information for you.
    After Save Document: How to get DocNum, LineNum

  • Counter in PLD

    Hi All
    I wantd to knw if is there a formula i can put to count the number of invoices that are displayed after
    executing query.
    Thanks

    Hi Bongani
    Can you give us more details on the type of report. Is each Invoice displayed only once, or are row details included? The usual way would be to use LineNum() under formulas.
    Kind regards
    Peter Juby

  • XL Reporter and Count function

    Hi,
    Using XL Reporter to produce financial reporting and sales analysis reporting is great. It would be good to be able to use count functions as well for other data analysis (ie in Service modules) without having to drop out huge volumes of data from the database, hide it and use the Excel countif functions to analyse the data.
    An example is to provide reporting on the number of service calls in a period analysed by Problem Types, by Item Groups, Top 10 customers by number of calls etc.
    This is all good supporting reporting but it is resource hungry to produce using the existing methods.
    Edited by: Julie Jamieson on Aug 1, 2008 3:26 PM

    Hi you all
    Thats right, im doing like you: hiding lots of data... but it would be great to use a count function.
    For example, i am doing a report where i need to count the number of invoices made for a sale of type a manufacturer brand.
    If anyone have a solution, please share it.
    Thanks
    Luis Barros

  • Reports 10g Printing  report (invoice)  in Multiple printer

    Recently  I  visited  a  famous electrical and tools  shop. I purchased  two  small tool and   one  heavy tool .. As soon as i paid the amount at cash counter  i got my invoice and  the  less weight two items -salesman gave to me and for the heavy weight tool ,he asked me  to collect from  their store.
    As soon i reached  store i can  see that  the same invoice is printed  in their printer as well. And the person is ready with  that heavy item . I understand items classified  for delivery place (pick from showroom or store).
    I would like to know  how can i print -  the same invoice  at one in  cashier printer  and another in store printer at the same time.
    I  am trying to simulate the same in Reports 10g.(Report Builder 10.1.2.0.2)
    Any lead to understand my requirement is highly appreciated.
    Thanks

    This is just the way reports works. You can't circumvent the cache. You can however tell the reports server to clear cached files after a certain amount of time:
    http://docs.oracle.com/cd/B14099_19/bi.1012/b14048/pbr_cla.htm#i637688
    you can set the expiration via SET_REPORT_OBJECT_PROPERTY from forms
    cheers

  • Invoicing with numbers

    i purchased iWork in hopes of creating invoices for our small business, but it's turning out to be more of a headache!
    here's my issue:
    i have a product list, each product has a product number and a weight/count measurement. on the invoice i want to be able to type in the product name and it pull up the product number, along with the unit price AND the weight/count measurement. then once that info is there, when i put in a quantity, i need it to calculate the total price. then of course total all the totals at the bottom. the formula i'm looking for is somewhat like this: (QUANTITY * WEIGHT/COUNT) * UNIT PRICE = TOTAL
    i've tried numerous times to get numbers to do this using the VLOOKUP functions, but i can't seem to get it. the math part is somewhat easy, it's the being able to insert the product name and it bring up a PLU # (product number), a weight/count, and a unit price for that specific product.
    all in all... is what i'm needing more complex than just building a spreadsheet? is there an invoicing/billing software that is inexpensive out there that can do this better for me?
    i appreciate all of your help and suggestions! thanks, melissarae

    melissa,
    Only yesterday I posted a method for producing invoices and it seems that your situation is a variation. If you refer to the thread:
    http://discussions.apple.com/thread.jspa?threadID=1562442&tstart=0
    you will see a tiny table for entering an account number. For starters I would expand that table to include all of the columns of information you need plus one or two extra columns for needed calculations. Then using the LOOKUP() function, as was done in the invoice table, information could be assembled from your master table.
    As a matter of fact, all this information does not have to be strung out across separate columns. You could design the placement in this table any way you want since you will be pulling up only one set of information at a time.
    I hope what I've described here to you makes sense.
    pw

  • Count in BW

    Hi,
    I have an ODS 0FIAP_O03 where I want to count the number of invoices for a patricular company code. Is there any method in BW where I can define a counter to get the # for a company code or all together ?
    Please help.

    Hi,
    There is no option directly to count you have to have a logic written there.There is a count function but it is not useful for you requirement.
    Hope this helps.
    Venkat

  • Sum function within if/then/else (xdofx:if)

    I'm attempting to display a total at a particular group within my report. This total is conditional and should choose to display a placeholder value or the sum of another placeholder value (in a child group).
    I have been able to vary my output based on the value I want to check: FIXED_QUOTE_FLAG - I have the if/then/else working in a simplified fashion
    I can display literals and some placeholders correctlly eg. print a literal value of 00110011 or the value of placeholder QUOTED_PRICE
    I can also display a calculated placeholder, using sum within the group I am concerned with: sum (current-group()/ACTIVITY_CHRG)
    But when I try to get everythign working together ...
    I cannot get the sum to work inside the if/then/else condition. The result is NULL (blank in HTML output).
    The following is the snippet which is not working correctly:
    <?xdofx:if FIXED_QUOTE_FLAG = 'Y' then QUOTED_PRICE else sum (current-group()/ACTIVITY_CHRG) end if?>
    Message was edited by:
    gareth_adamson

    To answer you first question, perhaps sum is not a supported function in the xdofx namespace. It's annoying when this problem comes up because xdofx namespace seems to be the only way to do if then else clauses. I'm not entirely certain on the above, but you could resort to using BI Publisher's built-in if statement.
    For your problem, something like this:
    <?if: FIXED_QUOTE_FLAG='Y'?>
    QUOTED_PRICE
    <?end if?>
    <?if: FIXED_QUOTE_FLAG!='Y'?>
    <?sum(current-group()/ACTIVITY_CHRG)?>
    <?end if?>
    EDIT:
    There is a way to do if else without xdofx namespace. It is done with <?choose:?> <?when:?> and <?otherwise:?> tags. Here is example syntax copied from Tim Dexter's blog:
    <?choose:?>
    <?when:count(TRX_NUMBER) > 0?>
    Invoice Table
    <?end when?>
    <?otherwise:?>
    No Data Found
    <?end otherwise?>
    <?end choose?>
    To answer the second question about a running total, you will need to use the <?xdoxslt:set_variable($_XDOCTX,'var_name',var_value)?> and the <?xdoxslt:get_variable($_XDOCTX,'var_name')?>. This method of working with variables is the only method that allows you to update a variable. This makes it good for running totals. Consult the official user guide under "Creating an RTF Template" the section about using variables and calculating running totals.
    So, in your problem, once you get the first part working, you will have to add that value to your running total. It will look something like this:
    <?xdoxslt:set_variable($_XDOCTX,'running_total',xdoxslt:get_variable($_XDOCTX,'running_total') + conditional_value)?>
    Remember to initialize the running total to zero! Hope this helps.
    Thanks,
    Matt Soukup
    Message was edited by:
    Matt Soukup

  • Problem In Calling API  fa_addition_pub.do_addition

    Hello friends,
    I am workin on the addition Of asset program
    In which i called API fa_addition_pub.do_addition
    but when i am executing it it gives me error
    Error(157,1): PLS-00306: wrong number or types of arguments in call to 'DO_ADDITION'
    Error(196,1): PLS-00201: identifier 'UPDATE_ERROR_MSG' must be declared
    THE CODE WHICH I USED IS GIVEN BELOW
    PLZ HELP ME TO SOLVE THIS PROBLEM.
    CREATE OR REPLACE PROCEDURE APPS.FA_ADDITION_API (p_row_number NUMBER) AS
    l_trans_rec fa_api_types.trans_rec_type;
    l_dist_trans_rec fa_api_types.trans_rec_type;
    l_asset_hdr_rec fa_api_types.asset_hdr_rec_type;
    l_asset_fin_rec_old fa_api_types.asset_fin_rec_type;
    l_asset_fin_rec fa_api_types.asset_fin_rec_type;
    l_asset_fin_rec_new fa_api_types.asset_fin_rec_type;
    l_asset_fin_mrc_tbl_new fa_api_types.asset_fin_tbl_type;
    l_asset_deprn_rec fa_api_types.asset_deprn_rec_type;
    l_asset_deprn_rec_new fa_api_types.asset_deprn_rec_type;
    l_asset_deprn_mrc_tbl fa_api_types.asset_deprn_tbl_type;
    l_asset_desc_rec fa_api_types.asset_desc_rec_type;
    l_asset_type_rec fa_api_types.asset_type_rec_type;
    l_asset_cat_rec fa_api_types.asset_cat_rec_type;
    l_asset_dist_rec fa_api_types.asset_dist_rec_type;
    l_asset_hierarchy_rec fa_api_types.asset_hierarchy_rec_type;
    l_inv_rec fa_api_types.inv_rec_type;
    l_inv_trans_rec fa_api_types.inv_trans_rec_type;
    l_period_rec fa_api_types.period_rec_type;
    l_who_rec fa_api_types.standard_who_rec_type;
    l_inv_tbl fa_api_types.inv_tbl_type;
    l_inv_rate_tbl fa_api_types.inv_rate_tbl_type;
    l_asset_dist_tbl fa_api_types.asset_dist_tbl_type;
    l_tax_book_tbl fa_cache_pkg.fazctbk_tbl_type;
    l_initial_book boolean := TRUE;
    CURSOR xx_addition_cur (p_row_number NUMBER)
    IS
    SELECT *
    FROM xx_reg_book_load_interface
    WHERE ROW_NUMBER = p_row_number;
    -- Get the inventory details for Asset Addition API
    CURSOR xx_dist_info_cur (p_asset_id NUMBER)
    IS
    SELECT fdh.*
    FROM fa_distribution_history fdh
    WHERE fdh.transaction_header_id_in = (SELECT MIN(transaction_header_id)
    FROM fa_transaction_headers fth
    WHERE fth.asset_id = p_asset_id
    AND fth.transaction_type_code in ('TRANSFER IN', 'TRANSFER IN/VOID') );
    -- AND transaction_header_id_in = p_transaction_id
    -- AND NVL (transaction_units, 1) > 0;
    -- Get the inventory details for Asset Adjustment API
    CURSOR xx_inv_rec_type_adj_cur (p_row_number NUMBER)
    IS
    SELECT fai.invoice_transaction_id_in, fai.deleted_flag,
    fai.invoice_number, fai.po_number, fai.unrevalued_cost,
    fai.project_id, fai.task_id, fai.payables_code_combination_id,
    fai.fixed_assets_cost, fai.source_line_id, fai.payables_cost,
    xrbli.transaction_type_code, fai.ap_distribution_line_number,
    fai.description, fai.po_vendor_id,
    fai.payables_units,
    fai.invoice_id,
    fai.invoice_date
    FROM fa_asset_invoices fai, xx_reg_book_load_interface xrbli
    WHERE fai.invoice_transaction_id_in = xrbli.invoice_transaction_id
    AND xrbli.ROW_NUMBER = p_row_number;
    -- Out parameter for Addition API
    l_return_status VARCHAR2 (1);
    -- Out parameter for Addition API
    l_mesg_count NUMBER := 0;
    -- Out parameter for Addition API and used for error tracking
    l_mesg VARCHAR2 (4000);
    -- Index for inventory record table
    l_dist_rec_count NUMBER := 0;
    l_inv_rec_count NUMBER := 0;
    l_stat_class VARCHAR2(50) ;
    BEGIN
    -- Open XX_ADDITION_CUR cursor by passing the period
    FOR p_asset_addition IN xx_addition_cur (p_row_number)
    LOOP
    -- ASSET_FIN_REC_TYPE Asset Structure
    l_asset_fin_rec.date_placed_in_service :=p_asset_addition.date_placed_in_service;
    l_asset_fin_rec.COST := p_asset_addition.COST;
    l_asset_fin_rec.depreciate_flag := 'YES'; -- YES for all the records
    -- Transaction Info
    /* BEGIN
    SELECT segment4
    INTO l_stat_class
    FROM fa_categories_b fcb
    WHERE fcb.category_id = p_asset_addition.asset_category_id ;
    EXCEPTION WHEN OTHERS THEN
    l_stat_class := NULL ;
    END ;
    IF ( NVL(l_stat_class,'*') = 'I' ) THEN
    l_trans_rec.transaction_subtype := 'AMORTIZED' ;
    END IF ;
    l_trans_rec.who_info := l_who_rec;
    -- ASSET_HDR_REC_TYPE Asset Structure (Asset ID should not be there for Addition API)
    l_asset_hdr_rec.book_type_code := p_asset_addition.book_type_code;
    -- ASSET_DESC_REC_TYPE Asset Structure
    l_asset_desc_rec.asset_number := p_asset_addition.asset_number;
    l_asset_desc_rec.description := p_asset_addition.description; ----modify by anand
    l_asset_desc_rec.current_units := p_asset_addition.current_units;
    l_asset_desc_rec.asset_key_ccid := p_asset_addition.asset_key_ccid;
    -- ASSET_TYPE_REC_TYPE Asset Structure
    l_asset_type_rec.asset_type := p_asset_addition.asset_type;
    -- ASSET_CAT_REC_TYPE Asset Structure
    l_asset_cat_rec.category_id := p_asset_addition.asset_category_id;
    -- Initialize the count
    l_inv_rec_count := 0;
    -- INV_REC_TYPE Invoice Structure
    FOR i IN xx_inv_rec_type_adj_cur (p_row_number)
    LOOP
    --IF l_asset_id_count p_asset_adjustment.asset_id THEN
    l_inv_rec_count := l_inv_rec_count + 1;
    l_inv_trans_rec.transaction_type := i.transaction_type_code;
    --l_inv_rec.source_line_id := i.source_line_id;
    l_inv_rec.fixed_assets_cost := i.fixed_assets_cost;
    l_inv_rec.payables_cost := i.payables_cost;
    l_inv_rec.payables_code_combination_id :=i.payables_code_combination_id;
    l_inv_rec.invoice_number := i.invoice_number;
    l_inv_rec.po_number := i.po_number;
    l_inv_rec.unrevalued_cost := i.unrevalued_cost;
    l_inv_rec.project_id := i.project_id;
    l_inv_rec.task_id := i.task_id;
    l_inv_rec.deleted_flag := i.deleted_flag;
    l_inv_rec.description := i.description;
    l_inv_rec.po_vendor_id := i.po_vendor_id;
    l_inv_rec.ap_distribution_line_number :=i.ap_distribution_line_number;
    l_inv_rec.payables_units := i.payables_units;
    l_inv_rec.invoice_id := i.invoice_id;
    l_inv_rec.invoice_date := i.invoice_date;
    l_inv_tbl (l_inv_rec_count) := l_inv_rec;
    --l_asset_id_count := p_asset_adjustment.asset_id;
    --END IF;
    END LOOP;
    -- ASSET_DIST_REC_TYPE and ASSET_DIST_TBL_TYPE Asset Structure
    FOR i IN xx_dist_info_cur (p_asset_addition.asset_id
    -- , p_asset_addition.transaction_header_id
    LOOP
    l_dist_rec_count := l_dist_rec_count + 1;
    -- l_asset_dist_rec.assigned_to := i.assigned_to;
    l_asset_dist_rec.units_assigned := i.units_assigned;
    l_asset_dist_rec.expense_ccid := i.code_combination_id;
    l_asset_dist_rec.location_ccid := i.location_id;
    l_asset_dist_tbl (l_dist_rec_count) := l_asset_dist_rec;
    END LOOP;
    -- Update to 0 for further use
    l_dist_rec_count := 0;
    --fnd_file.put_line(fnd_file.log, 'Calling the Addition API') ;
    -- Call Addition api
    fa_addition_pub.do_addition
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_false,
    p_commit => fnd_api.g_false,
    p_validation_level => fnd_api.g_valid_level_full,
    x_return_status => l_return_status,
    x_msg_count => l_mesg_count,
    x_msg_data => l_mesg,
    p_calling_fn => 'FA_ADDITION_API', ---modify by anand
    px_trans_rec => l_trans_rec,
    px_dist_trans_rec => l_dist_trans_rec,
    px_asset_hdr_rec => l_asset_hdr_rec,
    px_asset_desc_rec => l_asset_desc_rec,
    px_asset_type_rec => l_asset_type_rec,
    px_asset_cat_rec => l_asset_cat_rec,
    px_asset_hierarchy_rec => l_asset_hierarchy_rec,
    px_asset_fin_rec => l_asset_fin_rec,
    px_asset_deprn_rec => l_asset_deprn_rec,
    px_asset_dist_tbl => l_asset_dist_tbl,
    px_inv_tbl => l_inv_tbl,
    px_inv_rate_tbl => l_inv_rate_tbl
    --fnd_file.put_line(fnd_file.log, 'Addition API returned status as : '|| l_return_status) ;
    IF (l_return_status = fnd_api.g_ret_sts_success)
    THEN
    l_mesg_count := fnd_msg_pub.count_msg;
    IF l_mesg_count > 0
    THEN
    l_mesg :=CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_first,fnd_api.g_false),1,512);
    FOR i IN 1 .. (l_mesg_count - 1)
    LOOP
    l_mesg :=l_mesg|| CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_next,fnd_api.g_false),1,512);
    END LOOP;
    fnd_msg_pub.delete_msg ();
    END IF;
    l_mesg := 'FAILED (' || SQLERRM || '): ' || l_mesg;
    -- Procedure to update XX_REG_BOOK_LOAD_INTERFACE table with rejection reason
    update_error_msg ('Addition', l_mesg, p_asset_addition.ROW_NUMBER);
    ELSE
    -- Display the successful record
    fnd_file.put_line (fnd_file.output,p_asset_addition.asset_number|| ' -> '|| p_asset_addition.description|| ' for asset Addition Success.'); --- modify by anand
    END IF;
    -- Delete PLSQL table and record type variables data
    --empty_rec;
    END LOOP;
    END fa_addition_api;
    tahnk you

    You call do_addition with a wrong set of parameters or you use the wrong datatypes from your parameters.
    Check what parameters ( and their datatypes ) that procedure expects.
    Also check if you have the right privileges for using UPDATE_ERROR_MSG and that a synonym exists for it.
    fa_addition_pub.do_addition
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_false,
    p_commit => fnd_api.g_false,
    p_validation_level => fnd_api.g_valid_level_full,
    x_return_status => l_return_status,
    x_msg_count => l_mesg_count,
    x_msg_data => l_mesg,
    p_calling_fn => 'FA_ADDITION_API', ---modify by anand
    px_trans_rec => l_trans_rec,
    px_dist_trans_rec => l_dist_trans_rec,
    px_asset_hdr_rec => l_asset_hdr_rec,
    px_asset_desc_rec => l_asset_desc_rec,
    px_asset_type_rec => l_asset_type_rec,
    px_asset_cat_rec => l_asset_cat_rec,
    px_asset_hierarchy_rec => l_asset_hierarchy_rec,
    px_asset_fin_rec => l_asset_fin_rec,
    px_asset_deprn_rec => l_asset_deprn_rec,
    px_asset_dist_tbl => l_asset_dist_tbl,
    px_inv_tbl => l_inv_tbl,
    px_inv_rate_tbl => l_inv_rate_tbl
    );

  • Query Help Plz

    Hi experts:
    I have a problem with my query, I have 2 series of billing
    If I want to get a report of a single series that I only get the full amount without detail.
    I am not throwing well this amount. In fact is bigger
    It's just that simple add up the total of all invoices of that series, omitting the invoices canceled (with the targettype <> 14) who comes to me for being alive only bills that are not within any notes credit
    This is my query:
    SELECT TIPO = 'SELLOS', (SUM(T0.DOCTOTAL)) MONTO FROM OINV T0 INNER JOIN NNM1 T1 ON T0.SERIES = T1.SERIES INNER JOIN INV1 T2 ON T0.DocEntry = T2.DocEntry  WHERE T0.DocDate BETWEEN [%0] AND [%1] AND  T1.SeriesName  = 'SELLOS' AND T0.CANCELED = 'N' and  T2.TargetType <>'14'
    Best regards.

    Thanakz Suda Sampath  !
    I have to join The name of series for print in papers.
    Secondly a test in my query your sugestions (T2.Linetotal)and the result is lower compared with the correct report becuse my report is based in total of invoices(but thankz! )
    here other test, in this test i count the # of docnums in which      
    summarize my total, here is my error (i belive) because the query shows 37,  and in my other report (is correct) i have 32 rows (invoices)
    SELECT Distinct TIPO = 'LASER', (SUM(T0.DocTOTAL)) Total,count(T0.Docnum) 'No Invoices' FROM OINV T0 INNER JOIN NNM1 T1 ON T0.SERIES = T1.SERIES INNER JOIN INV1 T2 ON T0.DocEntry = T2.DocEntry WHERE T0.DocDate BETWEEN [%0] AND [%1] AND  T1.SeriesName  = 'LASER' AND T0.CANCELED = 'N' and  T2.TargetType <>'14'
    The result of my query:
    TIPO                    Total                               No. Invoices
    Laser                  32,186.94                              37  
    I think that my query is having some bug in the validation (and T2.TargetType '14
    Why? Simple, I have five bills that were canceled.
    37(invoices) - 5 (cancelled) =32 Invoices  But not work
    Best regards

  • Widget creation in Web Dynpro ABAP

    Hi All,
    I have one doubt that is there any way to create simple widgets in WD4A just to display some data on the SAP screen.
    For eg. There will be invoices which will either be posted or blocked. Based on the status i want to display the counts of the posted invoices and blocked invoices on the SAP screen.
    Please let me know if it is possible in Web Dynpro for ABAP ??? if yes then how??
    Thanks in Advance,,
    Abhijeet

    Hi Abhijit,
    There is a tool wigdet gallery is there for this it only in beta version, once it is ready you can use it,
    Best regards,
    Rohit

  • Joining with sub query not working

    Hi
    I am new with these complex queries. I am trying to join a sub query to a query as below;
    SELECT Events1.InvoiceBatch AS BatchNo, Events1.InvoiceBatchDate AS BatchDate, tblClients.Company, tblClients.ID AS ClientID, COUNT(Events1.ID) AS Invoices,
    COUNT(*) - COUNT(Events1.InvoicePrintDate) AS E, Events1.InvoiceBatchFromDate AS BatchFrom, Events1.InvoiceBatchToDate AS BatchTo, (SELECT EventID, SUM(Total) FROM tblStaffBookings AS StaffBookings WHERE StaffBookings.EventID = Events1.ID GROUP BY EventID) AS Total
    FROM tblEvents AS Events1 LEFT OUTER JOIN
    tblClients ON Events1.ClientID = tblClients.ID
    WHERE (Events1.FactoringExportDate IS NULL) OR (Events1.AccountsExportDate IS NULL) OR (Events1.InvoiceSentDate IS NULL)
    GROUP BY Events1.InvoiceBatch, Events1.InvoiceBatchDate, tblClients.Company, tblClients.ID, Events1.InvoiceBatchFromDate, Events1.InvoiceBatchToDate
    HAVING (Events1.InvoiceBatch = 5212)
    ORDER BY tblClients.Company
    I am getting these two errors;
    Msg 8120, Level 16, State 1, Line 2
    Column 'tblEvents.ID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
    Msg 116, Level 16, State 1, Line 2
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    What am I missing?
    Thanks
    Regards

    SELECT Events1.InvoiceBatch AS BatchNo, Events1.InvoiceBatchDate AS BatchDate, tblClients.Company, tblClients.ID AS ClientID, COUNT(Events1.ID) AS Invoices,
    COUNT(*) - COUNT(Events1.InvoicePrintDate) AS E, Events1.InvoiceBatchFromDate AS BatchFrom, Events1.InvoiceBatchToDate AS BatchTo,Total
    FROM tblEvents AS Events1 LEFT OUTER JOIN
    tblClients ON Events1.ClientID = tblClients.ID
    LEFT OUTER JOIN (SELECT EventID, SUM(Total) AS Total FROM tblStaffBookings AS StaffBookings WHERE StaffBookings.EventID = Events1.ID GROUP BY EventID) sb
    ON sb.EventID = Events1.ID
    WHERE (Events1.FactoringExportDate IS NULL) OR (Events1.AccountsExportDate IS NULL) OR (Events1.InvoiceSentDate IS NULL)
    GROUP BY Events1.InvoiceBatch, Events1.InvoiceBatchDate, tblClients.Company, tblClients.ID, Events1.InvoiceBatchFromDate, Events1.InvoiceBatchToDate,Total
    HAVING (Events1.InvoiceBatch = 5212)
    ORDER BY tblClients.Company
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page
    Says;
    Msg 4104, Level 16, State 1, Line 5
    The multi-part identifier "Events1.ID" could not be bound.
    on
    LEFT OUTER JOIN (SELECT EventID, SUM(Total) AS Total FROM tblStaffBookings AS StaffBookings WHERE StaffBookings.EventID = Events1.ID GROUP BY EventID) sb
    Regards

  • Agregation exception not working - bug or normal behaviour

    We want to define a key figure with an  exception agregation to count a number of invoices of a selection.
    We decided to create a specific Key figure with the following properties :
    Type : Integer / Cumulative values
    Exception agregation :  Minimum or Maximum
    Agregation Sum
    It doesn't work as we want and I'm sure I already did it in the pas on another project. Please let me know if it's a bug or a normal behaviour.
    With the following data set :
    Day | Invoice | Invoice Item | KF
    D1  |INV1     | ITM1         | 1
    D1  |INV1     | ITM2         | 1
    D1  |INV1     | ITM3         | 1
    D1  |INV2     | ITM1         | 1-
    D1  |INV2     | ITM2         | 1-
    D1  |INV2     | ITM3         | 1-
    D1  |INV3     | ITM1         | 1
    D1  |INV3     | ITM2         | 1
    D1  |INV4     | ITM1         | 1
    D1  |INV4     | ITM2         | 1
    We expect to have the following aggregation behaviour :
    Without Invoice Item display :
    Day | Invoice |  KF
    D1  |INV1     |  1
    D1  |INV2     |  1-
    D1  |INV3     |  1
    D1  |INV4     |  1
    With neither Invoice nor Invoice Item  :
    Day |  KF
    D1  |  2
    Instead we have :
    Without Invoice Item :
    Day | Invoice |  KF
    D1  |INV1     |  3
    D1  |INV2     |  3-
    D1  |INV3     |  2
    D1  |INV3     |  2
    Day |  KF
    D1  |  4

    Hi,
    App user is string so try
    <script>
    alert("&APP_USER.")
    </script>Regards,
    Jari

Maybe you are looking for

  • Silent Install for JRE 1.4.2_02

    I am having trouble running a silent install of the JRE. I've referenced the following document, but have not had any luck. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/silent.html The command I attempted to use is: j2re-1_4_2_02-

  • How to exclude statistic using Data Pump API?

    How to exclude all statistics while exporting data using Oracle Data Pump API (DBMS_DATAPUMP package)?

  • On my CC drop down menu why is it only Lightroom app that does not have CC

    I have historically used Lightroom as a single purchased product and recently I purchased Creative Cloud. As a new user I am very unfamiliar with things but I noticed On my Creative Cloud drop down menu containing a list of all my apps I noticed that

  • No longer have the original Captivate files but need to make changes to a movie

    I have two Captivate movies for which I no longer have the .cp files. Is there some way to import the existing parts of the movies (.swf, html) into Captivate so that I can make changes or do I need to start a new movie? Thank you, Stephanie

  • Sandy Bridge processors in new iMacs issues.

    Hello Does anyone know if any of the faulty Sandy Bridge processors which were produced at the start of the year made it into this iMac refresh? Or did Apple wait until the updated versions were produced before using them in their macs? By updated ve