Crystal Report Hyperlink to Sub-report or other report
Hi,
I would like to create a report on which the first part will show project summary page. The second part will have all project detail pages and third part with all project financial informations.
The report should work in such a way whenever user clicks on any project at first summary page this has to jump to corresponding detail page of projects.
I have the following question regarding design of this report.
1. Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
2. How can I establish hyperlink between the pages i.e. summary to detail pages?
3. back hyperlink to first pages.
I am expecting more information about hyperlink options within Crystal report.
Thanks
-Sunil Prasad
Hi Sunil
- For your first question: . Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
You can create a separate report and then insert it as a subreport in the main report or create it with sub report wizard.
Once you click on Insert -> Subreport, you can see there are two options, one is to point to an existing report and another is to create it through wizard.
- 2. How can I establish hyperlink between the pages i.e. summary to detail pages?
You can use the hyperlink between report objects. Also you can apply a customized formula for this.
Check the below SAP Notes:
[1. 1207011 - How to create an OpenDocument link in Crystal Reports XI/XIR2 |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes]
[2. 1212849 - How to pass a parameter value through a hyperlink from one report to another |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
For detailed information on Hyperlink Click on Crystal Reports Help Help -> Search for the keyword Hyperlink.
You can also refer to the Crystal Reports User guide for the respective version that you are using.
Hope this helps!!
Regards
Sourashree
Similar Messages
-
Can we use the output of a report as in input for the other report?
Dear All,
I would like to know if we have any option in OBIEE where in we can save the output of a report and use it as a filter for another report?
My scenario is like:
1) I have a report on ORDERS which gave me 250 orders.
2) I want to have a report on SHIPMENT table for these 250 Orders.
Can we save the result of report 1 as a filter and use it in 2nd report?
please advise.
Thanks,
SumaHi,
By using advanced tab in filters like filter based on another request we can achieve this
Regards
Naresh -
2 BW reports on a cube TIMESOUT intermittently; other reports on cube ok
Hi,
I have Report1 and Report2 against Cube1.
Sometimes it takes about 5 mins for each report to execute after putting in the selection criteria. It did not use to be so last year. We thought it was an issue with partition so the we added new partitions to the cube still same problem. Sometime when we refresh the stats on the cube it gets a better for a few mins.
The main observation is that when it times out and you try a second or third time, you may get lucky and the report will generate data. Sometimes it still times out.
Sometimes it only needs you to refresh the browser and execute again then it works.
Sometimes also, while it is working, as you keep drill down it may also timeout out.
On one employees desk, she got this once:
an error has occurred during loading Please look in the upper frame for further information but there was no other message on upper frame.
She clicked on the Ok button and it continued to give an output.
Sometimes, after drilling down, and after waiting for 5 mins it may work but very slowly.
Any help?
ThanksHi,
The output was SQL statements and at the bottom, there was this tree
SELECT STATEMENT ( Estimated Costs = 338 , Estimated #Rows = 1 )
5 72 PX COORDINATOR
5 71 PX SEND QC (RANDOM) :TQ10013
( Estim. Costs = 338 , Estim. #Rows = 1 )
Estim. CPU-Costs = 99,635,949 Estim. IO-Costs = 290
5 70 HASH GROUP BY
( Estim. Costs = 338 , Estim. #Rows = 1 )
Estim. CPU-Costs = 99,635,949 Estim. IO-Costs = 290
5 69 PX RECEIVE
( Estim. Costs = 337 , Estim. #Rows = 1 )
Estim. CPU-Costs = 97,574,342 Estim. IO-Costs = 290
5 68 PX SEND HASH :TQ10012
( Estim. Costs = 337 , Estim. #Rows = 1 )
Estim. CPU-Costs = 97,574,342 Estim. IO-Costs = 290
5 67 HASH JOIN
it continues for about 2 pages ..
1. How do I identify the which is taking most time / costs?
2. Once this identification is known, how do you address the point you made Accordingly create aggregates / OLAp cache for the same
Thanks -
Show a report region only when link in other report is clicked
Hi Friends,
I am having 2 report regions.In my first report region i am having a column as a link. I want to show the 2nd report
region only when the link in the 1st report region is clicked. There is a button in the 2nd report region i want to show
that button only when the link in the first report is clicked.
The code for my first report is
select * from tasks;i have a link column task_id as
f?p=&APP_ID.:10:&SESSION.::&DEBUG.::P10_TASK_ID:#TASK_ID#My 2nd report code is
select * from task_details where task_id=:P10_TASK_ID;Plz help,
Thanks,
TJHi Andy,
I tried this but having one problem. When i press a link the vaule of P10_TASK_ID is set and the 2nd report is shown.
When i go to other page and come back to this page the 2nd report is showing even with out pressing the link this is
because the value set for :P10_TASK_ID is still there. Where can i put the value back to null so that the 2nd report is
not shown with our pressing the link in the 1st one.
Thanks
TJ -
Post Author: pranay
CA Forum: Crystal Reports
Hi ,
I have a Main report and a Sub report . When a subreport spans across multiple pages , the page header and page footer of the main report gets displayed along with it . I want to hide the Page Footer and Page Header of the main report when a sub report is displayed . Is there any way it could be acheived in Crystal Report 6.0.I am assuming you are talking about the JSControl dropdown menu navigation. The easiest way to hide Community pages is to disable the Below Banner View for that navigation scheme, although it also disables the Subcommunties, Related Communities and Go up to Parent Community links. If you still want these in below the banner menu you could not display Community Pages in the "In this Community" tab and only leave the "Community Members and Knowledge Directly" link in there.
You would think that it would be better to remove the "In this Community" tab althogether but it is tricky to remove it due to the fact that there needs to be a default horizontal menu displayed all the time. Not all Communities will have a Subcommunities or Related Communities tab so these communities would not display any below banner menus at all if there is no "In this Community" tab, which could be confusing. -
Report containing 15 sub reports crashing - Crystal Reports 2008
I am using Crystal report 2008 with all latest service packs applied. I have more then 20 different reports wich work absolutely fine and never crash. One of my report contains 15 sub reports since its bringing data from 15 different queries. This consistently keeps crashing everytime I try to run it. Not sure what could be the root cause.
We are using Postgres database and connected to it with ODBC connection using Microsoft DSN.
- All Subreport data is being displayed on Report Footer
- All subreports are included in the Main report page header section. (I have also tried doing it on report footer section but it still crashes)
I have tried searching through the forum and did not find similar issue resolutions. Did someone face similar problems before?
The crash message is:
"crw32.exe has encountered a problem and needs to close. We are sorry of the inconvenience."
Error report contains this data:
AppName: crw32.exe AppVer: 12.2.0.290 ModName: psqlodbc35w.dll
ModVer: 9.0.2.0 Offset: 0004c538
I am using Windows XP
Crystal Report Version Details:
CR Developer Version 12.2.0.290
Product Type: Full
Let me know how can I debug this issue? Any help is appreciated.@Don - We performed extensive testing for this crash issue and found that now this crash is not happening only in one scenario. So we have partially fixed this.
Now the report crashes if I get disconnected from database and reconnect. This is what happens
1. open the report in crystal report 2008
2. try to run the report when db is connected- it works fine.
3. Now disconnect the database (we are using ssh tunnel to connect to db so we just close the tunnel)
4. now try to refresh the report - it fails to retrieve data.
5. Now close the report without saving it.
6. Now Close Crystal Report.
7. Now Connect the DB using ssh tunnel so crystal report can connect.
8. Now open Crystal Report
9. Launch the target report.
10 Preview the report - it works for first time.
11. Now do a refresh keeping same parameters - Report crashes here.
- I tried these steps with some of my other reports and they do not crash.
- Now I have only one report which contains a Postgres Query with date range,order by and a union join.
- No subreports now - I am trying to run this one subreport as a standalone report which I created from scratch(using blank report wizard) and just copied the query.
Any more pointers would help. -
Converting a Crystal Report with Many Sub-Reports into CF Report Builder
I am trying to rewrite a Crystal Reports report which has 11
subreports in CF Report Builder. In the CR report, each subreport
has it's own report footer seciton. I have not been able to find
anything in CF Report Builder that allows me to do the same. Is CF
Report Builder capable of producing a report with multiple
subreports?Having successfully created a report with 5 or 6 subreports
(with each sub-report containing a multiple sub-sub reports) I can
say with confidence, "Yes you can." However the real question you
should ask is, "
Should I create a report with multiple sub-reports in CF
ReportBuilder?" And the answer to that is.... NO, WHAT ARE YOU
CRAZY!
If you have something that works in Crystal Reports I would
suggest you stick with that. Otherwise you're setting yourself up
for a lot of headaches. Now maybe it was because I started using
the report builder that came with MX7, but it seems there are still
quite of few bugs that will leave you shaking your fist at your
computer. If however you do continue and do the CF Report Builder
route, be prepared for your application to crash unexpectedly, and
for many things to not work they way you expect them to. And if you
ever need help good luck. Take the fact that you had difficulty
finding good documentation as a sign of how little Adobe supports
this product.
CF Report Builder is fine for very simple reports, but don't
get fancy with it, you'll only regret your decision in the
end. -
Creating a report with hyperlinks to other reports in data fields
First sorry for my bad english.
I've to generate a report where i can click on a field in a specific column and generate
another report from that, where i can use the record data for another
query.
How can i make this?
In few words I've a report and i've to make clickable some columns.
There i've to insert an hyperlink to another report using these data like parameters for the new report query.
I'm using Oracle Developer Suite 10G, Reports Builder 10.1.2.0.2, Windows XP SP2.
I've seen that post:
Re: Adding Hyperlink to a Field
where seems there's a solution, but i'm quite noob in Oracle using and if someone could explain me help'll be appeciated.
Thanks a lot in advanceHello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
Example 4: Data-driven hyperlink
The following example shows a value for the Hyperlink property that specifies a link that needs to have data values provided:
HTTP://SERVER/PATH/RWSERVLET?REPORT=DEPARTMENT.JSP&P_DEPTNO=&DEPTNO
Regards -
Checking if Crystal Report has a Sub-report
Hello,
Is there a tool out there that can scan through a directory of reports and determine which one of those reports contains sub-reports?
TIA,
Zack H.the open doc functionality is merely a link, so CMS doesn't store that info.
one has to open the report and read through the report to find it. I believe in forumtopics.com/busobj/
they have a few tools out there you may find some code which you may need to modify. -
How can I have Main report with a sub-report with in a sub-report??
I have a main report that has about 5 subreports, almost like a dashboard. I need to make one of those subreports contain another subreport.
I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
From what I've read on the internet is you can't have a sub-report contain another sub-report. What some say is you can hyperlink that second sub report.
When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
I'm using CR IX R2
ThanksNate,
You are dealing with a product limitation. Crystal cannot have nested subreports within a sub report.
You can generally use shared variables between sub reports to achieve your desired result -
How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9
I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the MyReport.rpt there is two subreport name :
1. MySubReport1
2. MySubReport2
My Question is :
How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
I try to using command :
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub=oRptOpen.OpenSubreport("MySubReport1")
oRptSub=oRptOpen.OpenSubreport("MySubReport2")
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
but only show Main Report (view tab name : Preview)?
Did I miss any command before I call oRptView.ViewReport?Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a> -
I am loading multiple sub-reports (up to 40) into a master report document using the Crystal SDK. This is accomplished by obtaining a reference to the detail area, adding a section to it, and then importing the subreport into the detail area. The master report does not contain a whereclause and contains no data other than the other sections so it is display only once.
When I add the section to the master report I give an index of -1 so that it would always appear on the bottom in the report. This works until I print a report containing exactly 40 reports at which time the last section is shown at the top of the report. All other sections (and hence subreports) appear in the correct order. If I print less than 40 reports all sections are in the correct order. If I print more, the export process crashes as documented in Invalid Section Height when I load the nth subreport
I am using Crystal Reports SDK 13.0.8. Visual Studio 2012. .NET 4.5.2.
The pertinent bit of code is shown below. What might I be doing incorrectly? Is this a Crystal SDK bug?
Thanks,
Ryan
private ReportDocument AddSubReportToParent(string subReportName, string fileName)
try
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea headerArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.ReportHeaderArea;
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea detailArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea;
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea footerArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.ReportFooterArea;
CrystalDecisions.ReportAppServer.ReportDefModel.Section section = new CrystalDecisions.ReportAppServer.ReportDefModel.Section();
// strip dots from name (any character that is not a number or letter causes a name/ID runtime error from the Crystal Reports SDK)
string sectionName = "Section" + subReportName.Replace(".", "");
section.Name = sectionName;
section.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;
section.Width = headerArea.Sections[0].Width;
_crystalDocument.ReportClientDocument.ReportDefController.ReportSectionController.Add(section, detailArea, -1);
_crystalDocument.ReportClientDocument.SubreportController.ImportSubreport(subReportName, _configSettings.InputPath + "\\" + fileName, section);
ReportDocument subreport = _crystalDocument.OpenSubreport(subReportName);
return subreport;
catch (Exception ex)
Logger.ErrorException(ex);
throw;Hi Ryan
The search string 'crystal net 40' (search box in top right corner, returns this KBA:
2105208 - ER - CR .NET SDK has a Section limit set to 104 and subreport limit of 40
SP 13 for "SAP Crystal Reports, Developer Version for Visual Studio .NET" can be downloaded here:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter -
Displaying report that contain sub report
iam using main report that has sub report but when displaying the main report in crystal report viewer the section of the sub report is shiffted to the right.
what can i do?
Best Regards,
RababDavid,
The easiest way to do this would be to build a query in Access that provides this for you. You can do it easily using a two query approach.
QueryNo1:
SELECT
TransactionTable.TransactionID
FROM TransactionTable
WHERE TransactionTable.Price < 0 OR TransactionTable.Quantity < 0
QueryNo2:
SELECT *
FROM TransactionTable
WHERE TransactionTable.TransactionID IN [QueryNo1.TransactionID]
This will give you all of the TransactionID's that have a negative transaction associated with it.
Once you have the query completed to your satisfaction and saved, you can use it as your data source in CR. CR will see it as a View. If you make it a parameter query, CR will see it as a Stored Procedure.
Hope this helps,
Jason -
How to add a sub report at the end of the main report whilst grouped
Hi!
I have a main report that is grouped by the Customers name and then details of transactions they did with the company.
I need to add a letter at the end of each group for each customer (With their name displayed in the letter). I tried adding a sub report in the report footer, but it only appears once at the end of the report, rather than at the end of each group for each customer.
How can I achieve the desired result?
Regards
VikVik,
You are on the right track with the sub-report.
1. Create your letter in a separate report.
2. Add the Letter Report to your original report as a sub report in the group footer.
3. Set the report links on the "Group By" field.
This will give you a letter record for each report record with the same grouping as the main report.
Hope this helps,
Jason -
hi,
I have a report on ALV with sub totals for some fields, it is working fine but my requirement is whether i can get only the sub totals of that report.
regards,
PrabhuHI
refer this code.
REPORT ZALV.
TYPE-POOLS: SLIS.
DATA: G_REPID LIKE SY-REPID,
GS_PRINT TYPE SLIS_PRINT_ALV,
GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
GT_EVENTS TYPE SLIS_T_EVENT,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
COL_POS TYPE I.
DATA: BEGIN OF ITAB,
FIELD1(5) TYPE C,
FIELD2(5) TYPE C,
FIELD3(5) TYPE P DECIMALS 2,
END OF ITAB.
DATA: BEGIN OF ITAB1 OCCURS 0.
INCLUDE STRUCTURE ITAB.
DATA: END OF ITAB1.
DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
INCLUDE STRUCTURE ITAB.
DATA: END OF ITAB_FIELDCAT.
Print Parameters
PARAMETERS:
P_PRINT AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
P_NONEWP AS CHECKBOX DEFAULT ' ', "NO NEW PAGE
P_NOLINF AS CHECKBOX DEFAULT 'X', "NO PRINT LIST INFO
P_RESERV TYPE I. "NO OF FOOTER LINE
INITIALIZATION.
G_REPID = SY-REPID.
PERFORM PRINT_BUILD USING GS_PRINT. "Print PARAMETERS
START-OF-SELECTION.
TEST DATA
MOVE 'TEST1' TO ITAB1-FIELD1.
MOVE 'TEST1' TO ITAB1-FIELD2.
MOVE '10.00' TO ITAB1-FIELD3.
APPEND ITAB1.
MOVE 'TEST2' TO ITAB1-FIELD1.
MOVE 'TEST2' TO ITAB1-FIELD2.
MOVE '20.00' TO ITAB1-FIELD3.
APPEND ITAB1.
DO 50 TIMES.
APPEND ITAB1.
ENDDO.
END-OF-SELECTION.
PERFORM BUILD.
PERFORM EVENTTAB_BUILD CHANGING GT_EVENTS.
PERFORM COMMENT_BUILD CHANGING GT_LIST_TOP_OF_PAGE.
PERFORM CALL_ALV.
FORM BUILD.
DATA FIELD CATALOG
Explain Field Description to ALV
DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
CLEAR FIELDCAT_IN.
FIELDCAT_LN-FIELDNAME = 'FIELD1'.
FIELDCAT_LN-TABNAME = 'ITAB1'.
*FIELDCAT_LN-NO_OUT = 'X'. "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
FIELDCAT_LN-KEY = ' '. "SUBTOTAL KEY
FIELDCAT_LN-NO_OUT = ' '.
FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
APPEND FIELDCAT_LN TO GT_FIELDCAT.
CLEAR FIELDCAT_IN.
FIELDCAT_LN-FIELDNAME = 'FIELD2'.
FIELDCAT_LN-TABNAME = 'ITAB1'.
FIELDCAT_LN-NO_OUT = 'X'.
FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
APPEND FIELDCAT_LN TO GT_FIELDCAT.
CLEAR FIELDCAT_IN.
FIELDCAT_LN-FIELDNAME = 'FIELD3'.
FIELDCAT_LN-TABNAME = 'ITAB1'.
FIELDCAT_LN-REF_FIELDNAME = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
FIELDCAT_LN-REF_TABNAME = 'MSEG'. "<- REF TABLE IN THE DICTIONNARY
FIELDCAT_LN-NO_OUT = ' '.
FIELDCAT_LN-DO_SUM = 'X'. "SUM UPON DISPLAY
APPEND FIELDCAT_LN TO GT_FIELDCAT.
DATA SORTING AND SUBTOTAL
DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD1'.
GS_SORT-SPOS = 1.
GS_SORT-UP = 'X'.
GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD2'.
GS_SORT-SPOS = 2.
GS_SORT-UP = 'X'.
*GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
ENDFORM.
FORM CALL_ALV.
ABAP List Viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME = 'ITAB1'
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = GT_SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = GT_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT = GS_PRINT
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM.
HEADER FORM
FORM EVENTTAB_BUILD CHANGING LT_EVENTS TYPE SLIS_T_EVENT.
CONSTANTS:
GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
*GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = LT_EVENTS.
READ TABLE LT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO LT_EVENTS.
ENDIF.
define END_OF_PAGE event
READ TABLE LT_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO LT_EVENTS.
ENDIF.
ENDFORM.
FORM COMMENT_BUILD CHANGING GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: GS_LINE TYPE SLIS_LISTHEADER.
CLEAR GS_LINE.
GS_LINE-TYP = 'H'.
GS_LINE-INFO = 'HEADER 1'.
APPEND GS_LINE TO GT_TOP_OF_PAGE.
CLEAR GS_LINE.
GS_LINE-TYP = 'S'.
GS_LINE-KEY = 'STATUS 1'.
GS_LINE-INFO = 'INFO 1'.
APPEND GS_LINE TO GT_TOP_OF_PAGE.
GS_LINE-KEY = 'STATUS 2'.
GS_LINE-INFO = 'INFO 2'.
APPEND GS_LINE TO GT_TOP_OF_PAGE.
CLEAR GS_LINE.
GS_LINE-TYP = 'A'.
GS_LINE-INFO = 'ACTION'.
APPEND GS_LINE TO GT_TOP_OF_PAGE.
ENDFORM.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED.
ENDFORM.
FORM END_OF_PAGE.
WRITE at (sy-linsz) sy-pagno CENTERED.
ENDFORM.
PRINT SETTINGS
FORM PRINT_BUILD USING LS_PRINT TYPE SLIS_PRINT_ALV.
LS_PRINT-PRINT = P_PRINT. "PRINT IMMEDIATE
LS_PRINT-NO_PRINT_SELINFOS = P_NOSINF. "NO SELECTION INFO
LS_PRINT-NO_COVERPAGE = P_NOCOVE. "NO COVER PAGE
LS_PRINT-NO_NEW_PAGE = P_NONEWP.
LS_PRINT-NO_PRINT_LISTINFOS = P_NOLINF. "NO PRINT LIST INFO
LS_PRINT-RESERVE_LINES = P_RESERV.
ENDFORM.
*END OF ZALV PROGRAM
Reward all helpfull answers.
Regards.
Jay
Maybe you are looking for
-
I recently bought a new iMac and am giving my old iMac to my brother. I read up on how to erase my information before handing it over to my brother but they process included having my installation disk. I do not have that disk. I need to erase my
-
Hi, We are upgrading our test instance from 12.0.6 to 12.1.3 ,with IAS_ORACLE_HOME now upgraded from 10.1.3 to 10.1.3.4.0 But when we apply additional patch Opatch 6702510 on IAS_ORACLE_HOME we get following error: MISSING_COMPONENT : oracle.j2ee, 10
-
Hi, I can't update my apps. In the Updates tab, it always shows that all my apps are up to date... http://i.imgur.com/4xz07.jpg But in the Purchased tab, that is not the case... http://i.imgur.com/g90ln.jpg Plus, I know there are updates available be
-
NO CORRECT ADJUSTMENT REASONS.
Hello All, When we access the Benifits enrollment under ESS we are getting a message that "No Correct Adjustment Reason Specified". The ITS version of this IView is working fine, but for the WebDynpro I am getting the above message. Can somebody guid
-
Chat / Yahoo Messenger apps not working
Hi guys! I just got my E5-00 network unlocked form Orange Romania. Before that, everything worked great. Now, native Chat and Yahoo Messenger 2.20 are not working anymore (same for eBuddy or other apps like those) - it says Internet connection not av