Custom / manual pagination - batched collection report
<p>I am trying to create a report with custom/manual pagination because I wish to implement a data access package where all request for data are via PL/SQL packaged functions returning Collections that represent the application data (i.e. no direct access to tables).</p>
<p>I pass in the 'Slice number' to the data access function - first fetch is Slice number = 1, second fetch is Slice number = 2 and so on. I can implement an On Submit Branch to increment a session state Slice number, but dont seem to be able to tie this to the Next Button, and therefore cannot decrease the Slice number when pressing the Previous button!!</p>
<p>I paste below sample SQL and PL/SQL code I am using.
Can you give me any tips / advices? Many thanks.</p>
<pre>create or replace type User_Objects_Obj as Object (
Owner varchar2(30),
Object_Name varchar2(128),
Object_Type varchar2(19),
Last_DDL_Time date
show errors;</pre>
<pre>create or replace type User_Objects_Vat as Varray(15) of User_Objects_Obj;
show errors;</pre>
<pre>create or replace package Data_Access_Pkg
as
function Get_User_Objects (Slice_No in integer)
return User_Objects_Vat;
end Data_Access_Pkg;
show errors;</pre>
<pre>create or replace package body Data_Access_Pkg
as
function Get_User_Objects (Slice_No in integer)
return User_Objects_Vat
as
User_Objects_Var User_Objects_Vat;
Slice_Size integer := 15;
lb integer := Slice_Size*(Slice_No - 1) + 1;
ub integer := lb + Slice_Size - 1;
begin
with Bounded as (
select 'X_User' as Owner, t.Object_Name, t.Object_Type, t.Last_DDL_Time
,Rownum r
from User_Objects t
order by t.Object_Type, t.Object_Name
select User_Objects_Obj(
Bounded.Owner, Bounded.Object_Name
,Bounded.Object_Type, Bounded.Last_DDL_Time)
bulk collect into Get_User_Objects.User_Objects_Var
from Bounded
where Bounded.r between Get_User_Objects.lb and Get_User_Objects.ub;
return Get_User_Objects.User_Objects_Var;
end Get_User_Objects;
end Data_Access_Pkg;
show errors;</pre>
<p>I create a SQL Report Region and use this query (in the region source) to retrieve the collection of data;</p>
<pre>select Owner, Object_Name, Object_Type, Last_DDL_Time
from TABLE(
CAST(Data_Access_Pkg.Get_User_Objects(:P1001_SLICE_NO)
AS User_Objects_Vat)
)</pre>
Hi Craig,
Sorry - yes, the setting of the next/previous vaules should be a process, well spotted!
In your report, if you click on the Region Footer heading to popup its help, you'll see that you have various values available to you:
#TIMING#
#ROWS_FETCHED# (items shown on the page)
#FIRST_ROW_FETCHED# (X in X-Y of Z in pagination)
#LAST_ROW_FETCHED# (Y in X-Y of Z in pagination)
#TOTAL_ROWS# (total rows in report - Z in X-Y of Z in pagination)
As these are only available AFTER the report has been generated, you can not easily use them to conditionally hide/show your next/previous buttons. However, you can use them within javascript to do this instead. For example (put this in the region footer for the report and change the button names to match yours):
<script type="text/javascript">
var n = $('P1_NEXT_BUTTON');
var p = $('P1_PREVIOUS_BUTTON');
p.style.visibility = (#FIRST_ROW_FETCHED# == 1) ? 'hidden' : 'visible';
n.style.visibility = (#LAST_ROW_FETCHED# == #TOTAL_ROWS#) ? 'hidden' : 'visible';
</script>So, if we're on the first page, the first row fetched will be row number 1, so we hide the Previous button, otherwise it is displayed. If we're on the last page, the last row fetched will match the total number of rows in the report, so we hide the Next button, otherwise it is displayed.
Andy
Similar Messages
-
Customer wise collection report
hi,
can you help me for T. code of customer wise collection report.
thanks and regard
sai krishnaHi,
Run t-code FBL5N
Then under status tab select CLEARED ITEM and execute
You will get report payment received/collection by customer
kapil -
Regd Customer payment/collections reports
Hello Gurus,
Can someone please tell me if there are any Customer payment/collections reports that could be run by profit center/plant and payment date.
Regards,
SNK.Hi Dianne,
Thanks for the reply.
Warm Regards,
SNK. -
Hi,
any standard report available for customer incoming payment collection report.
SAP user.Hi,
Try this report if it will meet your requirements - S_ALR_87012198 - List of Cleared Customer Items for Printing
Regards,
Darrel -
Hello all
There is a report that user is using at R3 end that has input values as posting date,Period,Business area and sales office for collection report and in output they get customer number,customer name, advance,payment against invoice, cheque bounce and total.I am not able to figure out the logic that can be used in BW to get a similar report output...and i believe there is no standard report available to fulfill the requirement.Kindly suggest how to achieve this.
The report looks like this in R3. tcode for the report is YBUS
Input screen
CAMno. From date-- to date--
Postng date from date-- to date--
period From date-- to date--
business area From date----- to date--
Sales office From date----- to date--
below this there are 5 check boxes on the input screen that generally users check everytime
SEGMENT
INDUSTRY SECTOR
UPDATE TO Z1BUS TABLE
UPDZCONT
CUSTOMER
The output for the same report is as follows:
CUST CODE I CUST NAME I ADVANCE I PAYMENT AGAINST INVOICE I CHEQUE BOUNCE I TOTAL I
I checked in R3 posting date is picked from BSIS and BSAS table and the period is picked up from a transparent table Z1BUS
We are using the standard ds 0FI_AR_4 and the cube 0FIAR_C03.Kindly suggestThanks for your replies
The report looks like this in R3. tcode for the report is YBUS
Input screen
CAMno. From date-- to date--
Postng date from date-- to date--
period From date-- to date--
business area From date----- to date--
Sales office From date----- to date--
below this there are 5 check boxes on the input screen that generally users check everytime
SEGMENT
INDUSTRY SECTOR
UPDATE TO Z1BUS TABLE
UPDZCONT
CUSTOMER
The output for the same report is as follows:
CUST CODE I CUST NAME I ADVANCE I PAYMENT AGAINST INVOICE I CHEQUE BOUNCE I TOTAL I
I checked in R3 posting date is picked from BSIS and BSAS table and the period is picked up from a transparent table Z1BUS -
Difference in Customer account statement and collections
Kindly clarify my doubts about customer account steatement and Collections. basically whats the difference in the two and what are the standard T_codes for these two.
thanks
anyaHI ANYA
T-code: F.27
Definition
An account statement and open item list are two types of correspondence. They differ with respect to the information they contain and the way it is displayed. Unlike an open item list, an account statement displays all items in a specified period along with the balance carried forward. The open item list merely displays the open items for a certain key date.
Type of correspondence that your company sends to its customers.
The system includes a SAPscript form that you can use for customer account statements for the Philippines, form F140_CUS_STAT_P1. You can modify this template to meet your company's requirements. To do so, from the SAP Easy Access screen, choose Tools ® Form printout ® SAPscript ® Form.
Structure
The following information is displayed in the template for the customer account statement:
Account balance at the start of the selected period
Open item list as of the key date, including the total
It is sorted by transactions with or without special G/L indicators, currency, posting date, and document number.
Account balance at the end of the selected period
Cleared item list between selected key dates
It is sorted by currency, posting date, and cleared item document number.
Withholding tax list between selected key dates
It is sorted by withholding tax type, posting date, and document number.
Aging in 0, 30, 60, 90, and 120 days
Integration
You can print the customer account statement.
Note the following restrictions regarding customer statements:
You cannot create statements for one-time customers.
In the case of customer head offices with local branches, customer statements contain the address of the head office and not that of the branch.
The account statement can be created for your customers or vendors is an extract from the customer account which enables him to check the items there or is merely for information purposes. The account statement displays the balance carried forward, all items in the chosen period and the closing balance of the account.
The open items list is a special form of account statement. It is also sent to the customer for verification or information purposes. Occasionally, the list is also used as a reminder letter. The open items up to the chosen key date are displayed in this list.
Both letters contain the document number or reference document number, the document date, the document type, the currency and the amount for every item as well as the balance of the open items at the key date. The account statement may also contain the clearing document number. If branches were included in the letter of a head office, their addresses are listed at the end of the letter.
The layout of the letter is determined via a form. Depending on the form used, the letter may also contain, for example, the days in arrears per item at the key date or other information. The form must be defined and stored in the system.
Printing Customer Account Statements
Use
Printing of customer account statements is based on correspondence type SAPP3. Correspondence type SAPP3 is preconfigured to run the RFKORDP3 print program, which is delivered with report variant SAP&SAPP3. You can modify SAP&SAPP3 to meet your company's needs. For example, you can change the aging period and the number of the aging column.
To modify or define a new report variant for the RFKORDP3 print program, in Customizing for Financial Accounting, choose Financial Accounting Global Settings -- Correspondence -- Assign Programs for Correspondence Types. Select correspondence type SAPP3 and choose Environment -- Maintain variants.
Procedure
Printing Individual Account Statements:
Request correspondence type SAPP3 . To do so, from the SAP Easy Access screen, choose Accounting -- Financial Accounting --Accounts Receivable --Account -- Correspondence --Request.
Issue the correspondence request by choosing Accounting -- Financial Accounting -- Accounts Receivable -- Periodic processing -- Print correspondence -- As per request.
Print the customer account statement from the spool file by choosing System -- Own spool requests. Select your spool request and choose print.
COLLECTIONS
Collection is the settlement of receivables due, in particular, bills of exchange.
Collection Account
Definition
A G/L account that the system uses to record checks receivable that you have presented to banks for collection. It denotes that a check has been sent to a bank and is awaiting clearing
Reward if useful to u
narendran vajravelu -
Hi,
This is request to you that in sap any standard report for customer wise collection report/receipt report in SAP.?. Please provide the tcode.
Regards
JibanjyotiHi,
Run t-code FBL5N
Then under status tab select CLEARED ITEM and execute
You will get report payment received/collection by customer
kapil -
Duplicating Doc Num field on SAP PLD Collection Report
Hi all
Is there a way to duplicate the Reference field on the SAP Collection report (Customer)
When i do, it doesnt actually show the field..but the text "placeholder"
I also tried to create a new field and linked it to that field.
The customer in on SAP8.82 PL05
Thank you
JerushaHello
The collection report in the customer ageing report.
I basically need to duplicate this field:
Thank you. -
Measure Formulae for Uploadable and Data collection report
Hi,
I have query related to application of measure Formula for Uploadable and Data collection report.
Consider a scenario where i use a MDX query to create a data collection report and I map these columns from these reports to an rowsource using a loader file. Can I use measure formula feature like onchange to work with Uploadable and Data colection reports such that changes to any one column should take effect in another column.
Regrads,
WesleyWesley,
IOP uploadable reports are used for sending data to the server in batch. They are coupled to the IOP model via a rowsource. You have a lot of flexibility with the spreadsheet you build for staging the upload. It's really just a function of how crafty you are with vb. Cascading changes from one column to another can be easily accomplished this way.
Onchange formulas are for something else. They are part of the model definition and are used for describing how to cascade changes between IOP data blocks. -
Hello all
There is a report that user is using at R3 end that has input values as posting date,Period,Business area and sales office for collection report and in output they get customer number,customer name, advance,payment against invoice, cheque bounce and total.I am not able to figure out the logic that can be used in BW to get a similar report output...and i believe there is no standard report available to fulfill the requirement.Kindly suggest how to achieve this.Thanks for your replies
The report looks like this in R3. tcode for the report is YBUS
Input screen
CAMno. From date-- to date--
Postng date from date-- to date--
period From date-- to date--
business area From date----- to date--
Sales office From date----- to date--
below this there are 5 check boxes on the input screen that generally users check everytime
SEGMENT
INDUSTRY SECTOR
UPDATE TO Z1BUS TABLE
UPDZCONT
CUSTOMER
The output for the same report is as follows:
CUST CODE I CUST NAME I ADVANCE I PAYMENT AGAINST INVOICE I CHEQUE BOUNCE I TOTAL I
I checked in R3 posting date is picked from BSIS and BSAS table and the period is picked up from a transparent table Z1BUS -
I would like to add page numbering to the Customer Statement Report (One page per customer) "Collection Report". This can print more than 1 page per customer if there are a large number of invoices. I would like to print 1 of 1, 1 of 2 etc per customer.
Using the standard page() and totalpages() does ot work as it prints for all pages and not per customer.
Any ideas please let me know - AndyAndy,
This report is a hard coded report. There is no option to print page number by customer. Try create Crystal Report for the report you preferred.
Thanks,
Gordon -
We currently are testing XML Publisher 5.6.2 and are very new to the this product. I have it running in OC4J test instance on 10g 10.1.2.0.x.
My question is reqarding pagination support for reports via xml publisher in HTML format. Can someone give me an example of how to do this?
I have created a sample .rtf template using the XMLP users guide. What I need is the following:
Call the report from anywhere ( in this case from Oracle Portal) in HTML format (already have this working). Need the ability to pass page numbers to the report so that I can get back only the page(s) I need. So basicly I want to call the URL with a pagenumber param and have xmlp only send me that specifc page. Well, I assume this is the correct way to do it.
Also I want to be able to inlcude the links to the different pages of the report within the HTML content that is generated so that users can click on either a previous/next button or acutal page numbers, which again would be sent to XMLP for the report in question. I guess that would mean that I have to do all this using XSL-FO within the report so that I can display these as hyperlinks as well as determining the total number of pages so that I can calculate how many page links I need to display.
Any help would be appreciated.I thought somehow I could send the page numbers to XMLP and in the template we could just bring back the data based on these params.
Currently I am already passing customer specific data to only get back what I need for example in this particular report I am passing customer name and site which brings back details for this customer/site, however, the issue is that this report/data could bring back 20 or 30 pages, in HTML the file size could be huge.
Is there no way to set up parameters in the template itself, so the when I passed the parameter I would only get back a specific page? So lets say the report has 20 pages, I pass a parm that specificies page 4, could I not use XSL FO somehow to only deliver page 4 back? Basicly just filerting out all the other records in the XML.
Thanks -
Saving a Custom (Manual) Sort
I searched and searched through Bridge and found NO way to save a custom sort (manual) with a name (or a collection if you prefer). I created a manual custom sort in a folder and ran a PS action to reduce the size of each photo and put them into a new folder. When I opened the new folder the sort was alpha, not like the old folder. I now have to manually sort over 300 photos in new folder.
Is there a way to do this and if not, can a script be written for it. I create slide shows and no of hundreds of examples of how I would use this. It is really labor intensive to put the photos in a special order and then have no way to save it for future use.
Any suggestions or help would be appreciated. If I have to pay someone to do this, I will. thanks.I am using Bridge (Version 1.0.4) and CS2 on WinXP, SP2. I am extremely disappointment in a limitation in Bridge that seems to be related to JamesAGrover's challenge to save a manual sort that he has created in a collection.
A review of topics related to manual sorting in these Adobe forums indicate that there is a general limitation to sorting a collection. This limitation seems to exist in any of the Adobe products for Mac or PC that offer the ability to view "collections" of images, for example, Lightroom and Bridge.
A "collection" seems to be a set of file names that are handled independently of the real files themselves. The magic resides in the user's experience of handling the "collection" of filenames as if they were the actual files themselves.
Of course, there is no "magic"; the collection is working with some kind of pointer to the actual files, where ever they may truly reside.
There are many powerful reasons for offering functionality of this kind. The one that primarily interests me is that by working with pointers to the same file from different collections, I can create different subsets of images and unique sort orders without copying the original files. I avoid filling my harddrive with copies, but I can burn thousands of CDs and DVDs each with different selections and sorts.
But unfortunately, inside a "collection", I am unable to execute a manual sort at all. The problem exists if my collection includes files from a single directory or from several different directories (folders). Since this seems to contradict the basic promise of a "collection" of filenames, I keep thinking that I misunderstand the user's interface.
I have set the "View - Sort" menu with every permutation of checks and unchecks for "Ascending Order" and "Manually" with no luck.
I have discovered a workaround to my problem: I have been able to manually sort, and save, a direct view of a real file system directory from the Bridge interface. But that has forced me to create copies of my images in one unique new directory for every selection and sort that I need.
To tie this back to the first post in this topic, I must observe that for me, after creating and manually sorting a collection, I will want to save the collection with its unique and idiosyncratic, manual sort. I don't want to copy the original files umpteen times! It seems that I will encounter the problem described by JamesAGrover.
I wonder if any forum member, or any one at Adobe, has a comment. Specifically I wonder about two things:
1) Am I misunderstanding the user's interface? Is there a setting that I have not discovered?
2) Is there a basic limitation with "collections" that has been removed in CS3? -
Batch Management report Issue.
Hi Friends,
I have a question on batch management report, for detailed information please see the steps below
Step 1 : I have material X and Y created with class u2018XYZu2019, and characteristic value temperature 10 u2013 100 c
Step 2 : I have done Goods receipt for both the material
Material document Material Batch Number Characteristic Value
123 X TEMP1 10 C
124 X TEMP2 10 C
125 Y TEMP3 10 C
126 X TEMP4 20 C
127 Y TEMP5 20 C
I have two questions now?
1. Is there any report to find out the list of materials with characteristic value 10 C?
2. is there any report to find out list of batches for 10 C?
Thanks and Regards,
ChalaaThere is no standard report for your requiremet, go for ABAP development.
-
Customer exit for Batch management
Hi experts,
I'm using customer exit for batch management for internal number assignment.
I need the Batch number as i mentioned below
DDMMYYB01
DD-Date
MM-Month
YY-Year
B-Block
01-Number
For this i need to give logic. How to give i'm not getting. This batch number creation will come at the time of GR.
Anybody help me?
NarenHi
Please use the user exit SAPLV01Z as I mentioned in your other thread, please go to SMOD to read its documentstion.
In SMOD, select the 'Documentation' and click 'Display', this will show the overview documentation.
Select the 'Componnet', then ciick the 'Display'. select each component and click 'Documentation Ctrl+F4) this will show the detailed documentation of them.
Best Regards.
Leon.
Maybe you are looking for
-
How can I get the right click to work in firefox -- it works in internet explorer
how can I get the right click to work in firefox -- it works in interne
-
Don'T repeat item with a LEFT JOIN QUERY
Hello, I would like to know how display the following results: *Name*: John Fox *Sales:* 1- LAPTOP 2- HARDDRIVE 3- COMPUTERHere is my 2 tables: CUSTOMER and SALES CUSTOMER ID NAME GENDER 1 John Mayer F 2 Melissa John
-
JDBC system in System Landscape
Hi, I'm trying to connect to a Database SQL Server 2000 by creating a JDBC system in System Landscape. I'm having some difficulties to configurable the Connection URL and System Alias. Can anyone help me? Thanks, Daniel Silva.
-
Adobe reader's compatibility comes up Adobe plug in false
Testing my computers compatibility with a program turned up an error message that "adobe reader plug in false this version of Adobe Reader unsupported ". I uninstalled and reinstalled Adobe Reader X 4 times and still have the same problem. When I try
-
Does anyone know of a way to edit caf files? I got some caf files from the web and I want to change it to make the volume louder. Are caf files like mp3 files where I can just run it through some encoder and change it's properties (like volume etc)