Header details in Reports
Hi all,
we are writing report using REUSE_ALV_GRID_DISPLAY.
We have to print some header information on top of the grid.We are writing this in TOP_OF_PAGE.
In the TOP_OF_PAGE we are using CL_DD_DOCUMENT for displaying the header details.
We are passing TOP_OF_PAGE to I_CALLBACK_HTML_TOP_OF_PAGE.
When i am taking the print of the report ,i am not getting the header details displayed. I dont know what is the problem.
reply ASAP.
Hi all,
we are writing report using REUSE_ALV_GRID_DISPLAY.
We have to print some header information on top of the grid.We are writing this in TOP_OF_PAGE.
In the TOP_OF_PAGE we are using CL_DD_DOCUMENT for displaying the header details.
We are passing TOP_OF_PAGE to I_CALLBACK_HTML_TOP_OF_PAGE.
When i am taking the print of the report ,i am not getting the header details displayed. I dont know what is the problem.
reply ASAP.
Similar Messages
-
Issue in displaying header details in ALV report
Hi,
I have used slis_t_listheader and REUSE_ALV_COMMENTARY_WRITE to display the header details in ALV report.I want the details to be displayed as below.
Requester : ---------------------- Page: 1
Program: ----------------------- Date:---------
Title of Report
But when I use the structure slis_t_listheader to display the header details,all the fields are coming one below the other.
How can I get the fields as shown in the above format
Edited by: Abaper12345 on Jun 25, 2009 7:54 AMHi,
Go through following code... its showing the data exactly the way you want....
REPORT TEST3.
TYPE-POOLS:slis.
TABLES:MARA.
*Type Declaration
TYPES:BEGIN OF t_mara,
matnr TYPE mara-matnr,
ersda TYPE mara-ersda,
ernam TYPE mara-ernam,
END OF t_mara.
*Internal Table
data:it_mara type standard table of t_mara.
*Work Area
data:wa_mara type t_mara.
DATA:i_repid TYPE sy-repid .
i_repid = sy-repid.
*Declaration for field catalog
DATA : fcat TYPE slis_t_fieldcat_alv,
wa_fcat TYPE slis_fieldcat_alv.
*Declaration for Layout
data : WA_LAYOUT type SLIS_LAYOUT_ALV.
*Initializing ColumnWidth_Optimize For Layout
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
START-OF-SELECTION
START-OF-SELECTION.
*Fetching data into internal tables
PERFORM get_data.
*Buil Fieldcatalog
PERFORM build_fcat.
*Display ALV Report
PERFORM alv_display.
*Build Fieldcat
FORM build_fcat .
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'MATNR'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'Material Number'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'ERSDA'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'Date'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'ERNAM'.
wa_fcat-inttype = 'C'.
wa_fcat-seltext_m = 'User'.
wa_fcat-outputlen = 25.
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
endform.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form GET_DATA .
select matnr ersda ernam from mara into table it_mara.
endform. " GET_DATA
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
form ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = i_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = fcat
TABLES
t_outtab = it_mara
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " ALV_DISPLAY
*& Form html_top_of_page " I_CALLBACK_HTML_TOP_OF_PAGE "
FORM html_top_of_page USING document TYPE REF TO cl_dd_document.
CALL METHOD document->add_text
EXPORTING
text = 'Program'
sap_color = document->list_group
sap_fontstyle = document->standard
sap_emphasis = document->strong.
CALL METHOD document->new_line
EXPORTING
repeat = 1
CALL METHOD document->add_text
EXPORTING
text = 'Requester'
sap_color = document->list_group
sap_fontstyle = document->standard
sap_emphasis = document->strong.
CALL METHOD document->new_line
EXPORTING
repeat = 1
CALL METHOD document->add_gap
EXPORTING
width = 125
CALL METHOD document->add_text
EXPORTING
text = 'This Is Test Data'
sap_color = document->list_group
sap_fontsize = document->LARGE
sap_fontstyle = document->standard
sap_emphasis = document->strong.
ENDFORM. "HTML_TOP_OF_PAGE
Thanks & Regards
Ashu SIngh -
How to put detail level data in the header of my report
I have this XML from PIR05.rdf
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle Reports version 6.0.8.28.0 -->
<PIR05>
<LIST_G_ITEM_NO>
<G_ITEM_NO>
<PAGE_NO>0</PAGE_NO>
<ITEM_NO>4242301</ITEM_NO>
<ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
<LOT_NO>562354</LOT_NO>
<LOT_DESC>4242301</LOT_DESC>
<SUBLOT_NO></SUBLOT_NO>
<LOCATION>WOR RECV</LOCATION>
<GRADE_CODE>NONE</GRADE_CODE>
<ITEM_UM>Each</ITEM_UM>
<ITEM_UM2></ITEM_UM2>
<LINE_NO>603</LINE_NO>
<COUNT_NO>603</COUNT_NO>
<P_ITEMUM2LABEL> </P_ITEMUM2LABEL>
<P_ITEMUM2DASH> </P_ITEMUM2DASH>
<F_ITEMUM2>1</F_ITEMUM2>
<P_CSITEMUM2_LABEL> </P_CSITEMUM2_LABEL>
<P_CSITEMUM2_DASH> </P_CSITEMUM2_DASH>
</G_ITEM_NO>
</LIST_G_ITEM_NO>
<WHSE_DESC>OPM INVENTORY ORG</WHSE_DESC>
<CS_NODATA>617</CS_NODATA>
<CYCLE_NO>000000014</CYCLE_NO>
<WHSE_OUT>WOR</WHSE_OUT>
<DATE_OUT>2010-11-23T16:12:13+00:00</DATE_OUT>
</PIR05>
I have a template where I have a header section and a lines section which breaks the page on the value of the LOCATION. I would like to put the value of the LOCATION in the HEADER of the report. How do I reference the current value of LOCATION, for example on page 30?
The report looks like this:
whse_out cycle_no
location lot_no
location lot_no
New page
whse_out cycle_no
location lot_no
location lot_no
How can I get the value of LOCATION in my "HEADER" section and have it be the same value as the first location listed on the page?Hi,
you need to create an automated section break, .. in your for loop, add @section to the syntax.. that will create a section break everytime the node enters a new location info.. in the header just put in the tag for the location, it will pick up the first location and display it there..
-domnic
p.s. if youre not able to do it, send me your template with a sample XML file, ill see what i can do. -
ALV list Header details scattered
Hi All,
I have a ALV-LIST report output but the header details displayed are scattered in output. Can you suggest how to align all deatils properly aligned.Hi again,
1. first of all how are u writing / displaying
the alv header ?
2. using documentary write ?
then also, u can use one variable of
length 100 and use this concept.
3. If u are using top_of_page
event,
in this event, WE CAN use WRITE.
(i have used it, and it
works fantastic)
(not in case of alv grid)
4. My point is, what ever u are using,
use on variable of length 100.
WRITE value INTO variable.
using offset
and then proceed further.
regards,
amit m. -
Hi,
Is there any report of PO header details which gives the below details?
1. PO
2. PO creator(Planner)
3. Buyer
4. Customer Data in header details ( In our organisation we put email ID which should be available in the report).
Regards,
RajaneeshHi Rajaneesh
The table EKKO contains the following fields (SE16 -> EKKO)
EBELN Purchasing document
AEDAT Created on
ERNAM Created by
LIFNR Vendor
IHREZ Your Reference
VERKF Salesperson
LLIEF Supplying Vendor
KUNNR Customer
etc..
I hope this can help -
Portal Header details to be added
Hi,
In the SAP GUI, in a report program, I'm creating a URL by calling the function module CALL_BROWSER. I'm calling the report program in Portals. In the report program, when I call the URL, the URL should appear with Portal header details.
When the call is made from portals, is it possible to get the Portal Header details in the BSP page which I'm calling from the Report program.
Thanks & Regards
G.RajaHi!
With EP60 you should use the Portal URL instead of the backend url.
The Portal URL points to the Portal iView with a URL like this: http://<portalserver>:<port>/irj/portal/?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fyour.folder%2Fyour.sub.folder%2Fcom.your.iview
Hope this helps.
Regards,
Volker -
How to NOT display header details in every page when printed with PLD
Hi All
I am printing a report of all related activities of a business partner using PLD. in the printout the header details of business partner such as name, phone details are printing in every page along with contents. how to avoid this situation printing the header details in everypage except first page?
SV ReddyHi,
Add a formula field to the page header. The formula field will need to contain the following text on the Content tab.
CurrentPage()
Add another formula field, once again add the following to the Content tab
Field_101=='1'
in the example above, Field_101 is the field id for the first formula field you added.
Now all you need to do is link the fields that you only want printed on the 1st page to the 2nd formula field you added.
Regards,
Adrian -
Due date in Detail Aging report
Dear all,
I would like to ask if it is possible to add the Due date for each document displayed in the Detailed Customer Receivable Againg report ?
I tried, but it seems impossible to do so, even I set the field as System Variable (as the Due date in Dunning module).
Thanks a lotHi,
'Due Date' column of the documents is available in:
Aging Report - 'Customer Statement Report (One Page per Customer)'
The same is unavailable in the Details Aging Report.
Regards,
Jitin -
Search on Master Detail form/report
Hi,
I noticed that when I created a new application in Apex 4.01 basing the intial page on a Master Detail form/report, I was able to add a search item to the initial page. When I go to add another page with a different Master detail form/report, I did not have any option for adding a search item to the report page. Seems like an oversight?
I would appreciate any hints as to how to add same search item to my 2nd Master/Detail form/report.
Thanks,
PatMe too facing the some problem can some one pls help
-
There is an example in the users manual to modify the report header by using a callback, Chapter 10-12 Adding to a Report Using Callbacks. Will this work for xml reports in TS 3.1? I don't have any experience with xml, but need to add text and possibly an image to the header of a report. My attempts so far do not generate any errors, but do not output anything to the report. I can break on the statement in the callback so I know it is called as the report is generated.
XML is a language designed to contain data with no information on how to present it. You can open the XML report in notepad to see what the raw XML data looks like. You'll notice it is far different than how you view the report. To make the data more presentable, a style sheet (XSL) is used to translate the data. This converts XML data into a HTML document to present the data in a more user-friendly way. The style sheets are completely customizable. If you wish to display a picture, you would need to modify the style sheet. You also may need to modify the header of the XML document to describe what picture should be displayed. These tasks are not trivial for beginners in XML.
For more information on XML, i would recommend http://www.w3.org/XML/.
Allen P.
NI -
How can I display the range for LastFullMonth in the header of a report
How can I display the month for LastFullMonth in the header of a report run in the past so that a report that ran sept 1 2009 selecting data for LastFullMonth (august 2009) displays sept 2009 in the header even if there is no data selected by the report?
Good,
Sometimes I answer these questions and completly miss it....
( lack of understanding on my part ) -
Hi all,
Is there a way to find all SSRS scheduled reports details such as (Report Name, schedule time, mail IDs configured, etc.)?
Please help as we have many SCCM reports on SRS, and manual work will take very long time..
scorpITs | http://scorpITs.blogspot.comHey ucrajee,
Here is simple SQL query which will give you details on report subscription along with Subscription type, render format, next run date, time, email ID configured with subscription etc.
You need to run this SQL Query on your report server database.
SELECT
c.Name AS ReportName,
'Next Run Date' = CASE next_run_date
WHEN 0 THEN null
ELSE
substring(convert(varchar(15),next_run_date),1,4) + '/' +
substring(convert(varchar(15),next_run_date),5,2) + '/' +
substring(convert(varchar(15),next_run_date),7,2)
END,
'Next Run Time' = isnull(CASE len(next_run_time)
WHEN 3 THEN cast('00:0'
+ Left(right(next_run_time,3),1)
+':' + right(next_run_time,2) as char (8))
WHEN 4 THEN cast('00:'
+ Left(right(next_run_time,4),2)
+':' + right(next_run_time,2) as char (8))
WHEN 5 THEN cast('0' + Left(right(next_run_time,5),1)
+':' + Left(right(next_run_time,4),2)
+':' + right(next_run_time,2) as char (8))
WHEN 6 THEN cast(Left(right(next_run_time,6),2)
+':' + Left(right(next_run_time,4),2)
+':' + right(next_run_time,2) as char (8))
END,'NA'),
Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="TO"])[1]','nvarchar(50)') as [To]
,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="CC"])[1]','nvarchar(50)') as [CC]
,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="RenderFormat"])[1]','nvarchar(50)') as [Render Format]
,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="Subject"])[1]','nvarchar(50)') as [Subject]
---Example report parameters: StartDateMacro, EndDateMacro & Currency.
,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="StartDateMacro"])[1]','nvarchar(50)') as [Start Date]
,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="EndDateMacro"])[1]','nvarchar(50)') as [End Date]
,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="Currency"])[1]','nvarchar(50)') as [Currency]
,[LastStatus]
,[EventType]
,[LastRunTime]
,[DeliveryExtension]
,[Version]
FROM
dbo.[Catalog] c
INNER JOIN dbo.[Subscriptions] S ON c.ItemID = S.Report_OID
INNER JOIN dbo.ReportSchedule R ON S.SubscriptionID = R.SubscriptionID
INNER JOIN msdb.dbo.sysjobs J ON Convert(nvarchar(128),R.ScheduleID) = J.name
INNER JOIN msdb.dbo.sysjobschedules JS ON J.job_id = JS.job_id
Let me know if you have any queries.
Thanks,
Sandip Shinde(Blog:bi-bigdata.com|Twitter:@CloudBI_Sandip) -
Problem in mapping xml data with header details from IPM 11g to BPEL
Hi,
I want to map xml data as a supporting content from IPM application to BPEL.
My xml is
<?xml version="1.0" encoding="utf-8"?>
<DocumentFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/Document.xsd">
<Document DocumentType="Invoice">
<DocumentImage>
<Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
</DocumentImage>
</DocumentFile>
If I remove header details from root element <DocumentFile> i.e. modified xml is
<DocumentFile>
<Document DocumentType="Invoice">
<DocumentImage>
<Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
</DocumentImage>
</DocumentFile>
it works fine but i need to pass header details as well.
Please suggest.
Thanks,
PriyaHi Naveen,
In sxmb_moni the content transmitted to the adapter(RFC)is as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
- <RECORDS>
- <item>
<FLOC>f1-01-01</FLOC>
<RFID_NO>I006</RFID_NO>
</item>
- <item>
<FLOC>f1-01-02</FLOC>
<RFID_NO>I002</RFID_NO>
</item>
- <item>
<FLOC>f1-01-03</FLOC>
<RFID_NO>I003</RFID_NO>
</item>
- <item>
<FLOC>f1-01-04</FLOC>
<RFID_NO>I004</RFID_NO>
</item>
- <item>
<FLOC>f1-01-05</FLOC>
<RFID_NO>I005</RFID_NO>
</item>
- <item>
<FLOC>f1-01-06</FLOC>
<RFID_NO>I001</RFID_NO>
</item>
</RECORDS>
</ns:ZRFID_EQUIP>
At r/3 side the field floc and rfid_no gets mapped to floc which is of char30
eg floc=f1-01-01I006
rfid_no= -
Variable Text not working as dynamic header in Crystal report
Dear Experts,
I'm working Crystal report that connected to Query BEX SAP BW trough SAP integration kit,
currently i have case that need report dynamic header using variable text from BEX query, but seem the variable text not working in Crystal reports. the header in Crystal report shown as Desription\technical name, not result from the variable text in Query BEX in SAP.
In https://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal%20Reports%20and%20BW%20query%20elements stated that the "Text variable" with "replacement path" is supported, but i don't know in my query is not working.
i already set in Database -> options-> table and fields -> Show Both, but the text variable still not working.
can you help me
Crystal Reports 2008 12.2.0.290
SAP Integration KIT 12.1.0.890
Thanks
LuqmanPost your question BEX and B1 and classic SAP data source issues to the Integration Kit forum
-
Equal Employment Category details in report
Hi Experts,
I need to get EEO Category details in report for job code listing.
Where we maintain job codes?
In SPRO settings I have seen under EEO information for US based public sector employees, that EEO category is assigned to jobs.
In OM infotypes, in which infotype can we see the EEO details, so that the same field can b used in get
the output in report?
Regards
AryanHi try to maintain this table
V_T5U13.double click the job..where you can maintain EEO,AAP,OCC category
US Job attrubtes infoype(1610),WC State, Code, Attribute( 1613).for this infotype u need to set the country specific indicator as 10 thru pp01>settings>country specific infotype-->no country specific..or enter as 10.
Maybe you are looking for
-
How can I get the XML structure from a flat structure?
Hi all, in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol. The structure that I receive have this format: <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value> <NumberRecordType_
-
Dear all, does anybody know what report is to be used to produce the form 390 for Spain (Form 390 - Annual summary of VAT / tax)? Thank you very much in advance Kind regards Birgit
-
Hello I was wondering if anyone else has had such an issue. It's not a major problem but it does bug me sometimes. I have a 2nd generation Ipod Mini that's still under warranty. I usually turn off my Ipod by pressing and holding down the play/pause b
-
Isn't there DBA_ view to see the privileges granted to a role ?
DB version :11.2 I couldn't find a DBA_ view which would list all the privileges granted to a role. Finally I had to grant the role to a user and then connect as that granted user and then query ROLE_TAB_PRIVS view. As a DBA , I can't login into busi
-
How do I download a previous version of ibooks for OS 5.1.1 6
Trying to download an older version of ibooks for my original ipad. Is this possible ?