Printing Logo Dynamically on to TEMPLATE
hI
I am working on a form which has
Logo(defined as graphic) Tilte comments
the issue is the logo should be dynamic to the title, i mean different titles are associated with different images ,so if the tilte changes the logo associated with it should come, the path for the logo's come from the DB.
MY Question is..
can i write a formula in iformat event in the Logo field which is defined as a graphic, if yes how would i define the Logos to be global so that i could select it in iformat event , or lese is there any way i could do this in Preamble.
Pleas ecan anybody let me know how this can be worked out.
Thanks,
DE1209
Hi, the method I use is quite basic, but easy to maintain, that is to use the if statement to generate the right transformation statements, in the following way:
@(if("@yourExtractedField."=="@yourCompareString.","^graph ImgField","")
@(if("@yourExtractedField."=="@yourCompareString.","Img.jpg","")
In this case if @yourExtractedField. match with @yourCompareString. (which could be also a static text, like "MY TEXT VALUE"), the result will be:
^graph ImgField
Img.jpg
that will trigger the Img.jpg to appear in the template graphic field ImgField.
Without a match, no contents will be generated from the statements.
In this case only a series of IF statements is necessary, but only 1 graphic fields and NO other subforms.
So it's easy to maintain.
Best regards,
Similar Messages
-
Displaying logo dynamically when printing to pdf
Hi,
I am trying to setup the pdf print feature to display a logo dynamically for clients using our site.The logos are not stored in the database as BLOBs. They are stored on our server in the images directory and the file name is stored in a database table.
If anyone has an easy way to do this or any ideas and/or insight on how to get this done...i'd greatly appreciate it!
Thanks!
HindyAcroTray is running in background.
Thanks, will try that. Just have to work out Word settings so the conversion is seamless. Word tends to drop images and such when I do that.
In the interim, I've downloaded the CutePDF driver and all seems to be working. Ultimately the issue seems to lie with the PDF driver provided by Acrobat, but no matter how many times I reinstall the driver I still get the same problem. -
Printing a Dynamic Template !!
Hello ,
I have a user requirement to print the Dynamic Template excel with the selected parent node (costcenter) and all the nodes below it one by one .
example :
Parent node = XX1
Child nodes XX2
XX3
TT3
YY2
QQ3
ZZ2
DD3
EE3
CC3
User requirement : when he/she selects the parent node XX1 and opens the Dynamic template and print it . It should also print the next level child nodes XX2 , YY2 & ZZ2 . Would like to know if this is even possible ? If yes , how can we achieve this ?
regards
RamThanks for the quick reply Roberto/Bpc user,
My User requirement is that he wants more flexible printing with dynamic report though its excel . He wants to select a top node ( member ) and be able to get the resultset not just for the top node selected but also all the nodes below in seperate excel Tabs . I am dont think its feasible. But then someone mentioned about E-publish and printing multiple reports . So my question ..is there a way we select the Parent node and it passes all the Subchild lvl1 nodes in separate pages of the same report and print them to pdf or printer ?
Any suggestions on Printing the reports will be much appreciated.
Regards
Ram -
Dynamic Tab Shell Template - Ctrl+P (Browser Print)
We have are using dynamic tab shell template and rendering all our pages. The problem now is, that when the user tries to print the page using the regular browser print button or Ctrl + P, only the background (blue color content area see: http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html ) screen gets printed in the entire page and none of the other rendered content prints. Print button does not solve our purpose either. So, it would be great if anyone could provide some pointers on what could be the reason that the rendered content is not printing (even in print preview it displays only the blue content)?
Note: We have already created our default template based on the dynamic tab shell template to get handle to the closeIcon.
Edited by: 119413 on Feb 21, 2013 5:02 PM
Edited by: 119413 on Feb 21, 2013 5:16 PMHi,
never had a problem to perform a print screen using the UI Shell (would have noticed if this didn't work). So there must be some condition under which this happens. Can you download and run the sample for this article and try it with this.? Its using JDeveloper 11g R2
http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22adf-1518265.html
Frank -
Printing a "dynamic static OLE" but can't get it to print on second page.
Hello and thanks in advance for any help on this.
Scenario: Have Crystall XI and am printing a "dynamic static OLE".
I opened up the crystal report and dropped a "non-availabe image" on the page. I then right-clicked on the image and
went to 'Format Graphic" .. then to 'Graphic Location" and created the formula with the path to my image. A .xml file was then created with the pathing information in the .xml fields. The image it is supposed to print will be dynamically created thru another process, thus the image size can and will vary. This all works great with two exceptions:
1) If the actual image is smaller than the template or 'non-available' image I placed on the page it will scale it up to
that size stretching and distorting the image.
Question:
Is there any way to tell the crystal report to not scale this smaller image up and to just leave it as it is?
2) If the actual image is larger than one page it will try to push it all on to this one page and will even discard what
it can't force onto page making the image shrunken and distorted.
Question:
Is there a way to have a oversized image actually break to the second or third page?
OR:
Question:
Is once you set that 'non-avaliable' image (or template) on page then that is where your dynamic image will have to fit?
Thank you for any input on this subject, your time is very much appreciated.File > Page Setup = Scale <br />
100% is usually best -
How to diaplay a logo dynamically in smartforms
hi experts,
i have 3 logos which needs to get printed in the smartform based on the business areas as the condition
can you please help me in providing a sample code to display the logo dynamically in smartform
Edited by: murari sampath kumar on Jan 28, 2010 7:42 AMHi
place all the three logos on the smartfrom.
Suppose u have three business areas,
1
2
3
then in the condition part of the graphics,
provide the condition.
like field name eq business area
relation Equal to
Comaprison value eq 1.
when this conditon will satisfy then only ur logo will print.
apply this condition to all three logos.
Hope this will solve ur problem. -
Hi
I want to print logo in the RTF header. The Logo file path is coming from Profile value. I am getting the path given in the profile. but i am not able to print the pic(logo). Can anyone help me on this.
Thanks in advanceAdding question for Tim to this thread for dynamically printing image.
If I hard code value then I can see my image on report.
url:{concat('${OA_MEDIA}','/','NI_GLOBAL_COMM_INV_NI_LOGO.gif')}
But If add a reference element from XML file then I don't see image on my report.
url:{concat('${OA_MEDIA}','/',LOGO_FILE_NAME)}.
My XML file look like this:
<NI_GLOBAL_COMM_INV>
<LIST_G_HEADER>
<G_HEADER>
<LOGO_FILE_NAME>NI_GLOBAL_COMM_INV_NI_LOGO.gif</LOGO_FILE_NAME>
Any suggestion?
Thanks,
RK -
Print Logo in Classic Report (Write Method,Not ALV)
Hi All,
I'm currently doing conversion of the All the Classic Report with addition of Header with 'LOGO'.
I'm willing to find out that Function (CALL FUNCTION 'WWW_GET_MIME_OBJECT') is only able for display but not show out during printing.
Is that any method, I can do it(Print with Logo) without conversion to SAP Script or Smartform that was exhausted.
*Please take note is Classic Report with Write Method (Line by Line), Not ALV.
Thank you all in advance
Regards,
Trevor Wong.Hi,
It is possible to include logo in classical report but its not possible to print logo in classical report. It can be done in ALV's.
Write the code in Top-of-page event in ALV.
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Regards
Purnand -
How can i print data in bi publisher template across wise
Hi,
Please let me know how can i print data in bi publisher template across wise.
eg.
In my C1 field there is a data coming like
S
JR
MR
i want to print this filed
S JR MR
Thanx
ArjunHi ,
Now i am able to print S JR MR horizontally.Thanx a lot for that.Now my problem is
There is one column field which displaying value like S JR MR
Now i am calculating a value using a function and want to display that value for each vale of above column
For eg
The report should display like this
C1 C2 C3
45 1-2-3 S JR MR
45*1 2*45 3*45
I have created package to make the string 1-2-3 separeate and the fuction is working fine .But unable to print value in bi
Its displaying like this for each S JR MR
45*1 2*45 3*45 45*1 2*45 3*45 45*1 2*45 3*45
45*1 is in different group that should display also horizontally thats why i tried this <?for-each@cell:G_STR_ID?>
Please help me
Thanks in advance -
Use two different printer services in one web template?
Hi!
Is it possible to use two different help services for printing in the same web template (for the same table item)?
Print1:
<param name="HELP_SERVICE" value="HELP_SERVICE_PRINT"/>
<param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
Print 2:
<param name="HELP_SERVICE" value="ZPRINTING"/>
<param name="HELP_SERVICE_CLASS" value="ZBW_PRINT_HELP_SERVICE"/>
I was thinking that you maybe could change the param name values for the "Help_service" and the "help_service_class" at runtime using the properties for the table item, so that you could choose which one to use, but I havne't been able to do that so far.
Does anyone have an idea?This is not a problem. Just put the print service for the print to excel on an object other than the table web item. As long as these print services exist on any web item, you should be able to invoke them. I've tested this with putting the "Print with Excel" service on the Navigation Block Web Item and the other print service on the table web item. Hope that helps!
Prakash -
How can i print logo in all the page
i've created a form(SAP script) which have five page.pls can anybody tell me how can i print logo in all the five page?
hi,
u can try this in
windows
change window type as CONST or MAIN.
cheers,
sam -
How to print logo in standard report
Hi,
How to print a logo in sap ordinary report
Thanks,
SreedharHi Sreedhar,
It is not possible to print logo in the ordinary report, but it can done through ALV.
Write the code in Top-of-page event in ALV.
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Rewards if it is helpful...
Regards,
Omkar. -
How to print logo in printout using classical report.
Hello Friends,
By using below code i am displaying logo in output using Classical report.
What my problem is it is not displaying in print out.
Please help. or else tell me how to print logo in classical report as well as output print out.
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c ,
query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i,
repid LIKE sy-repid.
repid = sy-repid.
START-OF-SELECTION.
CREATE OBJECT picture_control_1
EXPORTING
parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 100
left = 700
top = 1
width = 200.
"Position
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
" Logo Name
query_table-value = 'ENJOYSAP_LOGO'.
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
WRITE : /'Classical Report Logo'.
Regards,
Phaneendra
Edited by: phaneendra punukollu on Dec 31, 2009 11:38 AM
Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 4:52 PMHello Nidhi,
Thanks for your sugessition.
Actual we have data from IDOCS and it is maintained in Ztables
and need to dispaly in report ( Service centre - Warranty data ).
The report is completed. So again going to Script means waste of time for us.
So Plz help me if possible in Classical report.
Regards,
Phaneendra -
I need to print logo in alv grid
I need to print logo in alv grid .As of now its getting displayed but it cannot be printed .Kindly tell me wether there is any option to print it .Eitjer using ALV or Object oriented ALV.Please reply soon
Hi Deepti,
Refer the code below.
report sy-repid.
type-pools : slis.
*ALV Formatting tables /structures
data: gt_fieldcat type slis_t_fieldcat_alv.
data: gt_events type slis_t_event.
data: gs_layout type slis_layout_alv.
data: gt_page type slis_t_listheader.
data: gs_page type slis_listheader.
data: v_repid like sy-repid.
*ALV Formatting work area
data: w_fieldcat type slis_fieldcat_alv.
data: w_events type slis_alv_event.
data: gt_bsid type table of bsid with header line.
initialization.
perform build_events.
perform build_page_header.
start-of-selection.
*perform build_comment. "top_of_page - in initialization at present
select * from bsid into table gt_bsid up to 10 rows.
*perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
*USING = Row, Column, Field name, display length, table name, heading
*OR
perform build_fieldcat.
gs_layout-zebra = 'X'.
*top of page event does not work without I_callback_program
v_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_repid
i_structure_name = 'BSID'
i_background_id = 'ALV_BACKGROUND'
i_grid_title = 'This is the grid title'
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
tables
t_outtab = gt_bsid.
Form..............: populate_for_fm
Description.......: Populates fields for function module used in ALV
form populate_for_fm using p_row
p_col
p_fieldname
p_len
p_table
p_desc.
w_fieldcat-row_pos = p_row. "Row Position
w_fieldcat-col_pos = p_col. "Column Position
w_fieldcat-fieldname = p_fieldname. "Field name
w_fieldcat-outputlen = p_len. "Column Lenth
w_fieldcat-tabname = p_table. "Table name
w_fieldcat-reptext_ddic = p_desc. "Field Description
w_fieldcat-input = '1'.
append w_fieldcat to gt_fieldcat.
clear w_fieldcat.
endform. " populate_for_fm
*& Form build_events
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events.
read table gt_events with key name = slis_ev_user_command
into ls_event.
if sy-subrc = 0.
move slis_ev_user_command to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move slis_ev_top_of_page to ls_event-form.
append ls_event to gt_events.
endif.
endform. " build_events
*& Form USER_COMMAND
When user command is called it uses 2 parameters. The itab
passed to the ALV is in whatever order it currently is on screen.
Therefore, you can read table itab index rs_selfield-tabindex to get
all data from the table. You can also check r_ucomm and code
accordingly.
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
read table gt_bsid index rs_selfield-tabindex.
error checking etc.
set parameter id 'KUN' field gt_bsid-kunnr.
call transaction 'XD03' and skip first screen.
endform.
*& Form top_of_page
Your own company logo can go here if it has been saved (OAOR)
If the logo is larger than the size of the headings in gt_page,
the window will not show full logo and will have a scroll bar. Thus,
it is a good idea to have a standard ALV header if you are going to
use logos in your top of page.
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = gt_page
i_logo = 'ENJOYSAP_LOGO'.
endform.
*& Form build_fieldcat
*Many and varied fields are available here. Have a look at documentation
*for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
form build_fieldcat.
w_fieldcat-fieldname = 'BUDAT'.
w_fieldcat-seltext_m = 'Dte pst'.
w_fieldcat-ddictxt(1) = 'M'.
Can change the position of fields if you do not want them in order
of the DDIC or itab
w_fieldcat-row_pos = '1'.
w_fieldcat-col_pos = '10'.
append w_fieldcat to gt_fieldcat.
clear w_fieldcat.
endform. " build_fieldcat
*& Form build_page_header
gt_page is used in top of page (ALV subroutine - NOT event)
*H = Header, S = Selection, A = Action
form build_page_header.
For Headers, Key is not printed and is irrelevant. Will not cause
a syntax error, but is not used.
gs_page-typ = 'H'.
gs_page-info = 'Header 1'.
append gs_page to gt_page.
gs_page-typ = 'H'.
gs_page-info = 'Header 2'.
append gs_page to gt_page.
For Selections, the Key is printed (bold). It can be anything up to 20
bytes. It gets printed in order of code here, not by key value.
gs_page-typ = 'S'.
gs_page-key = 'And the winner is:'.
gs_page-info = 'Selection 1'.
append gs_page to gt_page.
gs_page-typ = 'S'.
gs_page-key = 'Runner up:'.
gs_page-info = 'Selection 2'.
append gs_page to gt_page.
For Action, Key is also irrelevant.
gs_page-typ = 'A'.
gs_page-info = 'Action goes here'.
append gs_page to gt_page.
endform. " build_page_header
Settings for the Logo :
01) GOTO - OAOR (Business Document Navigator)
02) Give Class Name - PICTURES
Class Type - OT
Object type - whatever you want to call your area EG: OURCOMP.... then Execute
03) Top left will say PICTURES. Bottom left will have multi tab. Select Create and double-click on Screen.
04) Select your image from the appropriate directory.
05) Give the image an appropriate name (not Screen)
06) It will tell you document stored successfully.
07) You can now find your logo under the heading OURCOMP in top left window.
08) You can reference the logo in things like FM REUSE_ALV_COMMENTARY_WRITE or any other area which may reference these things. EG: I_LOGO = 'OURCOMP'. You can preview image by double-clicking it.
<b>Please reward points if it helps.</b>
Regards,
Amit Mishra
Message was edited by: Amit Mishra -
Difference between dynamic report and template
I think the subject line covers it, I am trying to find out, that when I save the report, I can save it as static or dynamic report or as a template. but what is the diff between dynamic report and template?
Thanks.Hi Zack,
SAP provides some standard templates as report templates. The users are provided with the option to save their own versions of reports as 'Report Templates' for future use. As a super user one could create a custom template and save to the template library which the other users could access from the template library.
For example if you have 'ACCOUNT' drilldown as a standard report template, you could define a new template as for example, 'Entity' drilldown template.
Hope it is clear now.
Thanks,
Sreeni
Maybe you are looking for
-
How do I get an old library to a new computer? Old one crashed
How do I get my library of music to a new computer? I authorized the new computer but nothing is going to the new computer Please help
-
How to lock images on Adobe Reader 9
We currently have Adobe Reader 9. We want to know how we can lock our company logo so no one can copy the logo. How can we do this using Adobe Reader 9 or do we need to get another Adobe program?
-
Array Of Primitive Type (kodo3.4)
Hello, I want to map an array of primitive type (double[] or double[][] or...) to a blob, so I specified the mapping this way: <extension vendor-name="kodo" key="jdbc-field-map-name" value="blob"> <extension vendor-name="kodo" key="column" value="DAT
-
Itunes problem not able to restore or update my i device
i have mac book pro 15 mountain lion.... i m not able to update or restored any of my iphone ipod and ipad it shows me eroor as in image ....same with oll device ppl pls help me out ....PLS DIS IS VRY URGENT
-
Hfs: Runtime corruption detected on my external Back up disk
Using Drive Genius 3 on my iMac. I received an email from this application with Re: Drive Genius: DrivePulse™ Drive Integrity Warning. The message states: A potentially critical system error has occurred: hfs: Runtime corruption detected on FreeAgent