Customer Balance Summary Report
Dears,
I have this query for custom report from receipt screen under receivable responsibility, but i need to view the organization code that create the invoice and the org. code that receive it, any help to modify this query ?
SELECT mpv.organization_code org_code, gcc.segment2 branch, z.customer_id,
z.segment2 branch_acc, xba.description, z.customer_number,
z.customer_name, z.invoice_amt, z.cm_amt, z.receipt_amt, z.balance
FROM (SELECT /*main.type,
main.trx_type_id,
GL_ID_REC,
rctt.name transaction_type,
rc.customer_number, rc.customer_name, --main.value,
main.customer_id, gcc.segment2,
hca.account_number customer_number,
hp.party_name customer_name,
--SUM (DECODE (main.TYPE,'Invoice', DECODE (SIGN (main.VALUE),1, main.VALUE,0),0)) invoice_amt,
SUM (DECODE (main.TYPE,'Invoice',main.VALUE,0)) invoice_amt,
--SUM (DECODE (main.TYPE,'Invoice', DECODE (SIGN (main.VALUE),-1, main.VALUE,0),0)) cm_amt,
SUM (DECODE (main.TYPE,'CM_Manual',main.VALUE,0)) cm_amt,
SUM (DECODE (main.TYPE, 'Receipt', main.VALUE, 0)) receipt_amt,
--SUM (DECODE (main.TYPE,'Invoice', DECODE (SIGN (main.VALUE),1, main.VALUE,0),0))
SUM (DECODE (main.TYPE,'Invoice',main.VALUE,0))
--+ SUM (DECODE (main.TYPE,'Invoice', DECODE (SIGN (main.VALUE),-1, main.VALUE,0),0))
+ SUM (DECODE (main.TYPE,'CM_Manual',main.VALUE,0))
- SUM (DECODE (main.TYPE, 'Receipt', main.VALUE, 0))balance
FROM
(SELECT 'Invoice' AS TYPE,
rct.cust_trx_type_id trx_type_id,
rct.bill_to_customer_id customer_id,
SUM (ROUND(DECODE (NVL (rctl.quantity_invoiced,0),0, rctl.quantity_credited,rctl.quantity_invoiced)
* NVL (rctl.unit_selling_price, 0),2)) VALUE
FROM ra_customer_trx_all rct,
ra_customer_trx_lines_all rctl
WHERE rct.customer_trx_id = rctl.customer_trx_id
AND trx_date BETWEEN TO_DATE (:fdate,'RRRR/MM/DD HH24:MI:SS')
AND TO_DATE (:tdate,'RRRR/MM/DD HH24:MI:SS')
AND rct.org_id = '102'
and (rct.bill_to_customer_id = :p_cust_id or :p_cust_id is null)
AND rctl.sales_order IS NOT NULL
GROUP BY rct.cust_trx_type_id, rct.bill_to_customer_id
UNION ALL
SELECT 'CM_Manual' AS TYPE,
rct.cust_trx_type_id trx_type_id,
rct.bill_to_customer_id customer_id,
SUM (ROUND(DECODE (NVL (rctl.quantity_invoiced,0),0, rctl.quantity_credited,rctl.quantity_invoiced)
* NVL (rctl.unit_selling_price, 0),2)) VALUE
FROM ra_customer_trx_all rct,
ra_customer_trx_lines_all rctl
WHERE rct.customer_trx_id = rctl.customer_trx_id
AND trx_date BETWEEN TO_DATE (:fdate,'RRRR/MM/DD HH24:MI:SS')
AND TO_DATE (:tdate,'RRRR/MM/DD HH24:MI:SS')
AND rct.org_id = '102'
and (rct.bill_to_customer_id = :p_cust_id or :p_cust_id is null)
AND rctl.sales_order IS NULL
GROUP BY rct.cust_trx_type_id, rct.bill_to_customer_id
UNION ALL
SELECT 'Receipt' AS TYPE,
rcta.cust_trx_type_id trx_type_id,
rcta.ship_to_customer_id customer_id,
SUM (NVL (araa.amount_applied, 0)) VALUE
FROM ar_receivable_applications_all araa,
ra_customer_trx_all rcta,
ar_cash_receipts_all acra
WHERE araa.status = 'APP'
AND araa.display = 'Y'
AND araa.applied_customer_trx_id = rcta.customer_trx_id
AND acra.receipt_date
BETWEEN TO_DATE (:fdate,'RRRR/MM/DD HH24:MI:SS')
AND TO_DATE (:tdate,'RRRR/MM/DD HH24:MI:SS')
AND rcta.org_id = '102'
and (rcta.customer_trx_id = :p_cust_id or :p_cust_id is null)
AND araa.cash_receipt_id IS NOT NULL
AND araa.cash_receipt_id = acra.cash_receipt_id
GROUP BY rcta.cust_trx_type_id, rcta.ship_to_customer_id
) main,
hz_cust_accounts hca,
hz_parties hp,
ra_cust_trx_types_all rctt,
gl_code_combinations gcc
WHERE main.customer_id =hca.cust_account_id
AND hca.party_id=hp.party_id
AND main.trx_type_id = rctt.cust_trx_type_id
AND gcc.code_combination_id = gl_id_rec
AND rctt.org_id = 102
GROUP BY gcc.segment2,
main.customer_id,
hca.account_number,
hp.party_name) z,
xx_branch_acc xba,
mtl_parameters_view mpv,
gl_code_combinations gcc,
hr_organization_units_v houv
WHERE xba.branch_acc = z.segment2
AND gcc.code_combination_id = mpv.material_account
AND houv.organization_id = mpv.organization_id
AND gcc.segment2 = xba.branch_acc
AND mpv.organization_code BETWEEN NVL (:forg, mpv.organization_code)
AND NVL (:torg, mpv.organization_code)
AND date_to IS NULL
ORDER BY mpv.organization_code, z.customer_name
According to (Solution for China Accounting Software Data Interface Standard for R12 [ID 858435.1]) those reports are available without applying any new patches. Have you checked from (System Administrator > Concurrent > Program > Define) if you have those reports or not?
Thanks,
Hussein
Similar Messages
-
Custom Template for Third Party Balance Summary Report(Java type executable
Hi Al,l we have a requirment to have a layout with some of the fields from
Third Party Balance Summary Report( Which is a Java type executable and
Data definition has Data Template attached(.xml)).
I tried in below way.
Coppied the Third Party Balance Summary Report program with same application and parameters
with. Then defined a Datadefinition with my concurrent prog short name
attached the same standard .xml file(Not sure what it is) and developed a custom template with
a custom rtf(excel output type), and submitted the program
the output is generated in excel but my custom .rtf layout is not getting applied
rather it is showing same layout as in standard.
Some thing I am missing here or else it is not the way of changing the
template.
If any one know how to do this please let me know.
My client want only some files from the standard report(no need of new fileds)
with output type xls.
Thanks in Advance.
The same content is posted in Custom Template for Third Party Balance Summary Report(Java type executable sorry for duplicating the thread, just for increase the visibility for my issue I did this.I gave up on using a different font or figuring out if I could use Times New Roman's built-in fractions visible in Font Book (as unicodes) and did a work-around based on Michael Wasley's tips in this discussion.
https://discussions.apple.com/message/11622842#11622842
I adapted it however and think it looks a little better.
Font: Times New Roman 12 point
I used the fraction bar in 12-point (Shift-Option-1) for automatic kerning.
For the numerator, I changed the font style to superior (12-point).
For the denominator, I changed the font style to subscript (Shift-Command-hyphen) and reduced the font size to half, or 6-point using the short-cut Shift-Command-<.
When the fractions occured in my footnotes (9-point), I used 4-point in the denominator; 10- and 11-point, I used 5-point in the denominator. This seemed to produce the best result when printing.
Thank you, Michael.
-Dottie -
Regarding Customer Payment Summary report
Hi Gurus,
FI -AR:
in Customer Payment Summary report we have key figures like Arrears with cash discount and Arrears with out cash discount along with key figures Payement with cash discount and payment without cash discount.
Could some one explain about what does the meaning of Arrears with cash discount and Arrears with out cash discount key figures.
Regards,
KoteshThe report looking like as bellow.
Paymt w. Cash Discnt Arrears w Cash Disct Paymnt w/o Cash Dist Arrears w/o Cash Dct
Company
code Customer £ £
2000 2001 0.00 0 5,104.93 152
2000 2002 0.00 0 3,272.46 0
2000 2002 49,609.74 12 0.00 0
2000 4999 2,637.88 29 0.00 0
Thanks in advance.
Regards,
Kotesh -
Error in standard Customer Listing Summary report
I have three questions about this report.
1) Has this report by chance been deprecated? All of the environments that I have checked have the customer listing summary (and detail) concurrent program as NOT enabled. We are on oracle applications version 11.5.10.2.
2) When I try to run the report wide open it fails with the message "process terminated by signal 10". I figure this is due to the fact there are over 1 million customers in the table and the server is running out of memory or something of that nature. Any other ideas as to why I'm receiving this error?
3) The report will complete successfully if you include some parameters. I used customer number in this case and it worked; however, when I tried customer name low and customer name high. Any value I choose would result in the following error: REP-0091: Invalid value for parameter 'P_CUSTOMER_NAME_LOW', which seems to point to a data type error. I checked the value set, AR_CUSTOMER_NAME, and it has a char data type of size 360 which matches the data type varchar2 and size 360 of the database column, hz_cust_accounts.party_name. Any suggestions as to why I am receiving this error?1) Has this report by chance been deprecated? All of the environments that I have checked have the customer listing summary (and detail) concurrent program as NOT enabled. We are on oracle applications version 11.5.10.2.I believe not.
XML Publisher and Concurrent Manager Integration [ID 276691.1]
Publishing Concurrent Requests with XML Publisher [ID 295409.1]
Customer Open Balance Report APPS-FND-01030 customer name ... is longer than maximum length 50 characters [ID 1118825.1]
Why does Customer Name LOV parameter in Autoinvoice Import Program Gives APP-FND-01564: ORACLE error 24345 in fdlget? [ID 1058105.1]
2) When I try to run the report wide open it fails with the message "process terminated by signal 10". I figure this is due to the fact there are over 1 million customers in the table and the server is running out of memory or something of that nature. Any other ideas as to why I'm receiving this error?Please check the CM/OPP log files for any errors.
3) The report will complete successfully if you include some parameters. I used customer number in this case and it worked; however, when I tried customer name low and customer name high. Any value I choose would result in the following error: REP-0091: Invalid value for parameter 'P_CUSTOMER_NAME_LOW', which seems to point to a data type error. I checked the value set, AR_CUSTOMER_NAME, and it has a char data type of size 360 which matches the data type varchar2 and size 360 of the database column, hz_cust_accounts.party_name. Any suggestions as to why I am receiving this error?See if (When Customer Names Greater Than 50 Characters, Reports With This Parameter Have No Output Or Error [ID 307979.1]) helps.
Thanks,
Hussein -
Hi is there a way to do a host summary report that gives me a list of all of the hosts and their current status.
I know I can run a detail report but this gives me pages and pages of information, and I can run a management report (host count) which is great.
But... What I would like is a one page report that provides me with the host name description and if the are active or not. Similar to the information contained on the system/host screen on CSA.
I am running v6.0.1.106
Many thanks
Ian VickeryIan,
Probably the easiest way to get a report with just these 3 data fields would be to query the database directly. Otherwise you could use the API and parse the output for those fields:
http://www.cisco.com/en/US/docs/security/csa/csa601/user_guide/Scripting_Interface.html#wp965225
If you are looking for this report just to find which hosts are not active the I would recommend using the host search with your criteria.
Thanks,
Josh -
Summary Report by Cost Element/Cost Center.
Hi SAP Experts,
Could you please help me in generating the following report.
I/Customer need the cost center + the cost element + the dollars + the quantity (SKF) + the currency - in the same report.
Could you please tell me from which table I need to retrieve the above fields.
Thanks for all your help in advance
Regards,
Rajkumar.Hi Akhilesh,
Thanks for your help. Your answer helped me very much.
The customer wants summary report by Cost Element i.e
SKFActual(SKF Qty)Cost CenterCostElementDollars+Report Currency.
First 2 fields (SKF+Actual - SKF Qty) we got from S_ALR_87013611 report. Then we double clicked on SKF then it will take to KSB1 transaction code(as said by you) there we got the rest of the fields.
Currently we are developing the same Custom Report but it should show by summary i.e by Cost Element.
Could you please tell me what Tables and Data types we need to refer?
Again, I wish to hear from you soon.
Thanking you,
Regards,
Raj -
Problem in making logic for customer balance report
Hi,
I am working on a customer balance report in which i am picking the data from BSAD and BSID tables. I am facing a problem that i am able to calculate the opening balance in it but not able to calculate closing balance. I am comparing the data with tcode FBL5N for opening and closing balances for a given date range. Kindly help me out where i am getting wrong:-
Here the link to the code :-
http://docs.google.com/View?id=dfxswwff_11fdktr7ct
Edited by: nav009 on Feb 6, 2010 9:30 AMHi Nikhil,
Thanks for you response but i had developed the report and i am able to pick the correct data but i am facing the problem in displaying the NETAMT which is displaying the data using this formula :-
1.) NETAMT = NETAMT + W_TAB1-DR + W_TAB1-CR.
so that the last value matches with the closing balance.
When i am using this formula i am not able to display the correct data of deducting or addition of the opening balance in it but the value matches with closing balance .
2.) NETAMT = NETAMT + W_OPBAL-OPBAL + W_TAB1-DR + W_TAB1-CR.
When i am using this formula it is showing the first value correctly but not the last one which will be displayed in the closing balance.
I want to have desired output to display the first value to be displayed as it is showing in the (2) and last value to be displayed as it is showing in (1) last value.
How can i achieve this functionality? i really want to know...
Edited by: nav009 on Feb 10, 2010 6:29 AM -
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 advanceS_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 -
Customized responsibility not run " Supplier Open Balance Letter Report"
I have customized standard Responsibility from " Payable Manager " , this Responsibility run the " Supplier Open Balance Letter Report" with completed Error Status . ?
Even it has same Request Group " All Reports " and " Payables " Application.
The Error Message in the log is =
ERR REP-1401: 'beforereport': Fatal PL/SQL error occurred.
needs help urgently.
Message was edited by:
alihaddawiDear,
I have Enabled the parameters ( Debug Flag , Trace Flag) with checking Display of both , ran the Report got that from LOG this one:
Payables: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
APXSOBLX module: Supplier Open Balance Letter
Current system time is 23-SEP-2007 09:46:02
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_AS_OF_DATE='2007/09/01 00:00:00'
P_SUPPLIER_NAME_FROM='BABYLON Eagles Security Co.'
P_SUPPLIER_NAME_TO='BABYLON Eagles Security Co.'
P_CURRENCY='USD'
P_INCLUDE_PREPAYMENTS='Y'
P_MIN_INVOICE_BALANCE='0'
P_MIN_OPEN_BALANCE='0'
P_DEBUG_FLAG='y'
P_TRACE_FLAG='y'
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AR8MSWIN1256
LOG :
Report: F:\oracle\prodappl\ap\11.5.0\reports\US\APXSOBLX.rdf
Logged onto server:
Username:
LOG :
Logged onto server:
Username: APPS
ERR REP-1401: 'beforereport': Fatal PL/SQL error occurred.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 3
Cause: The program terminated, returning status code 3.
Action: Check your installation manual for the meaning of this code on this operating system.
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 268930.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 23-SEP-2007 09:46:03
--------------------------------------------------------------------------- -
Hi masters, want bapi for customer balance report
HI Masters,
please can any one give reply about bapi whch one is using for developing customer balance report in webdynpro java
I want to see the customer balance report in portal through developing webdynpro java application only. for developing , i need bapi regarding customer balance report. Customer when he login the portal he has to view his ledger balance in portal.please give reply about the bapi to see customer ledger balance . we can do by transactional iview. but i need only through webndynpro java application
reply will appreciated.Hi surya,
The tcode for customer balance report is FBL5N
BAPI_AR_ACC_GETKEYDATEBALANCE -
>Customer account balance at a key date .
Regards,
srikanth -
How can i have customer balance report at Ship to Party Level
HI All
My client want to have a report for customer balances at ship to party level
For example for a customer ABC has 4 ship to party and they want to track Sales at each ship to party level for Customer ABC
Regards
SandipThanks Buddi,
Partner function SB works the way we wanted it to.
Regards -
How to get Daily Customer Balance Report?
Hi
I have received a requirement from the user where he has to send the Daily Customer balance report currently he is using the T.Code S_ALR_87012172 Customer Balances in Local Currency for fetching the monthly data.
I want to know what are the ways to make the report and what is the best way out of them to do it. Can it be done through user Exit, BADI, query or we have to get the Z report made by the apaber.
Also, if it is possible please tell me the way step by step for user exit, badi or query if that is to be used.
Please help
Thanks in advance
PankajThanks for your reply Aleksey...
We are using the report S_ALR_87012172 - Customer Balances in Local Currency and user want the same report on daily basis like Total Debit/Credit, Balance carryforward and the Accumulated balance. I have checked but unable to find out any such output.
Please suggest what to do whether to make chnges in report painter or have to write a query. If I write a query then plz suggest me the tables as I am trying to do that but unable to link the Balance carryforward and accumulated balance.
Regards
Pankaj -
Customer balance report - S_ALR_87012172
Hi sap gurus, I searched forum but I couldn't get enough knowledge. how does S_ALR_87012172 calculate customer's balance value? based on posting date, clearing date, document date or other date? I'm checking with fbl5n but balances are different.as I understand, other sap users have same problem but there isn't clear information.
difference between the balance of FBL5N and the balance of S_ALR_87012172
Difference between FBL5N & S_ALR_87012172
S_ALR_87012172 when compared with FBL5N does not reconcile
diff in customer balance in the report S_ALR_87012172 & fbl5nHello,
You don't need to check clearing date.
Please select data from BSID and BSAD less equal to key date. Is it equal to total balance report?
You can balance report per each customer, I think you can check it for wrong balance's customer.
Please share result to me.
Regards,
Burak -
Customer Balance Report throught Abap
Hi,
I want to develop a report Customer Balance Report in which along with details i have to display the closing and opening balance of it. As per search through SDN i come to know that BSAD,BSID tables to be used so that data can reterived and for cross checking the out put Standard Report named S_ALR_87012172 and the Tcode FBL5N ..
I want to know is this data is sufficient to start this report and the data for displaying the closing and the opening balance of the customer?Hi ,
To derive an opening balance, you need to decide on key date. The date one which you want to see an opening balance.
Suppose that date is wf_keydt . Then your logic for calculating opening balance should be as folloes :
SELECT kunnr bukrs belnr gjahr buzei blart shkzg dmbtr
INTO TABLE it_data
FROM bsid
WHERE bukrs = p_bukrs
AND kunnr IN s_kunnr
AND budat <= wf_keydt
AND hkont = p_hkont
AND gsber = p_gsber
AND bstat = space
AND umskz = space.
SELECT kunnr bukrs belnr gjahr buzei blart shkzg dmbtr
APPENDING TABLE it_data
FROM bsad
WHERE bukrs = p_bukrs
AND kunnr IN s_kunnr
AND budat <= wf_keydt
AND augdt > wf_keydt
AND hkont = p_hkont
AND gsber = p_gsber
AND bstat = space
AND umskz = space.
LOOP AT it_data INTO wa_data.
CLEAR wa_tab.
wa_tab-kunnr = wa_data-kunnr.
wa_tab-dmbtr = wa_data-dmbtr. "+nvj15102007 security deposit added in output
IF wa_data-shkzg = 'S'.
wa_tab-opbal = wa_data-dmbtr.
ELSE.
wa_tab-opbal = wa_data-dmbtr * -1.
ENDIF.
COLLECT wa_tab INTO it_tab.
ENDLOOP.
REFRESH it_data.
Hope this helps to you.
Btw I am leaving for the day now. Any thing else do reply to me. I will revert to you tomorrow.
Regards,
Nikhil -
Customer Balances Report problem?
Hi,
I am facing some problem it may have been discussed before but it is urgent so I am posting it.
1) User wants to see the S_ALR_87012172 - Customer Balances in Local Currency on daily basis or any report which is similar to that.
As far as I know he can't have this report on date wise for that we may have to go for the customization.
Please suggest any other T. code or way out if we have in SAP.
2) I have checked the records and I am confused as when I am running the FBL5N then I can see the balances for a customer
1660000056 DR 31.03.2010 50,000.00
5432402564 GL 31.03.2008 56,545.00-
1900005638 AB 30.06.2007 56,545.00
50,000.00
which is fine as all are open items and due but when I run S_ALR_87012168 - Due Date Analysis for Open Items
Due - Total OI Total OI - Total OI
NAZIMA STORES 10,681.45 23,809.50
Please suggest me why is it so.
Thanks and Regards
NitinHi,
Thanks for your reply PPIO_ENTRY....
The customer does not want the report that is in FD10N and FD11 he wants the report based on the T. code S_ALR_87012172 - Customer Balances in Local Currency or something related to that.
Please suggest...
Thanks and Regards
Nitin
Maybe you are looking for
-
How to extract data from cluster of component levels?
I use harmonic analyzer function to read out the component levels cluster, which cotain data for channel 0 and 1 but have problem reading out the fundamental component for each channel ( array element 1). Pleas help. Thanks Solved! Go to Solution. A
-
Picking two-step type of material on consignment
Hi experts I have a problem with the processing of materials on consignment at the time of the assignment sends message: Unable to determine location. when the force generated OT be displayed on the field LT03 Stock Special (SOBKZ) is in white, and a
-
Host command not working properly
Hi, I am using oracle forms 10.1.2.0.2. In my form, I need to call a unix shell script. { Oracle forms will run on application server. Unix will run in a development server. (Both the servers are different) From forms, if I click a button, it should
-
Hi All, What do we do test in cProjects and xRPM? Is it just the navigation and creating the roles, authorizations etc? or do we need to go into the backened (ECC) and validate? can someone throw some idea of testing cProjects. Also if we need to
-
Can you DEBUG Fireworks files?
I've created a flyout menu using Fireworks. When I "test" the flyout from Fireworks it appears to work fine - all levels of the menu working as I had designed. I integrated the nav menu into my Dreamweaver template for a client's website and FTP'd th