Dynamically place a Logo in Report 6i
Hi,
I need to dynamically place the logo in the report output depending on the particular person name.
For eg:if person1 is selected then logo "A" should appear.
if person2 is selected then logo "B" should appear. and so on
if possible then
How can i achieve this in report 6i?
Thanks,
Mithun
Are you trying to return a different logo for each user that logs on?
If so, I would create a table with two columns: username and logoname.
You could then create a function on the database which returns the logoname, with the username as a parameter passed in.
This could be called within the report, and used to return the full url of the logo.
Alternatively, if each logo is specific to one user only, you could name the logos the same as the users and concatenate the username onto a generic logo url:
~/logos/||<username>.jpg
Similar Messages
-
How to place a logo in the BEX
Hello All,
I am new to the BW.Could u pl.explain how to place a logo
in the BEX.
Thanks & regards
NSBHi Suresh,
Are you asking about BEx Excel based reports, or the web reports..there are different ways to go about it.
For the excel reports youc an create a workbook template and place the logo along with other custom settings for color, font etc.
For the web based reports you would have to place the logo in your web template.
Hope this helps...post back if you need more information. -
How to print Signature in smartform in a dynamic place ?
Hi experts,
i have a requirement to print signature in a smartform (purchase order print) ,the signature has to printed in dynamic place.
i have to Print signature in in authorized signatory place, we cannot place static window with scanned signature in page ,
as we cannot predict where the page will end.
how can this be attained, i have attached a print preview , where signature has to be attached ?
please Help.Hi Prakash,
'create a secondary window and in it create a text then print these text of signature in secondary window and call the secondary window when the data of main window ends.
Means you should create a secondary window just after your main window as shown below
and in this secondary window create a text for sign, and in the Condition Tab, please select "Only After End of Main Window." -
How to use Dynamic cascading parameter in crystal Report XI ?
Hi,
I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
Please suggest..
Thanks in advance..
RajneeshIn the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
Regards,
Raghavendra -
How to display dynamic header title in the report?
I have a req to display dynamic header title in the report.
When a id is entered in the prompt text, it will display the user data based on that user_id.
so similarly....the header title should vary each time when you select different user_id.
How can we implement this?>
Zack H wrote:
> Lazaro,
>
> It depends on what you want displayed in the heading for each id.
> Please elaborate.
>
> Thanks,
> Zack H.
Zack..I have several projects listed under several project id's...
so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
Did you get it?? -
Dynamic selections for the FBL5N report
Hi Experts,
Can any body help how to add the account assignment group field in dynamic selections for the FBL5N report.
rgds / SriniHi Alex,
Thanks for your quick response, here for the report FBL5N the logical database is DDF and the field which should be add in dynamic selection is (KTGRD) account assignment group is available in KNVV table but this table is not available in DDF logival database.
Please suggest us how we can pickup this field into the report FBL5N for dynamic selections.
regards / Srini -
How to Place a LOGO on Selection screen & Output list -OO ALV
Hi,
I was just wondering can we place a logo on standard Selection screen 1000?
And also on the Output list . I am using OO ABAP for my ALV.
regards
PraveenHi,
You cannot place a logo in your selection-screen.
But yes, you can place logos in your OO ALV.
data: ws_c_logo TYPE REF TO cl_dd_area.
"Instance for the logo
Split your document container for logo
CALL METHOD wcl_docum->vertical_split
EXPORTING split_area = wcl_docum
split_width = '70%'
IMPORTING right_area = ws_c_logo.
then,
CALL METHOD ws_c_logo->add_picture
EXPORTING picture_id = c_logo.
where: c_logo TYPE sdydo_key VALUE 'CC0040' . "logo for co.code 0040
The image should be stored in your business document. You may use BDS_OBJECT_SAVE or BDS_BUSINESSDOCUMENT_CREATEF to store the image in the business document server and then retrieve in your ALV.
Regards
Subramanian -
HI Guru's.
I want to add Logo in report developed in report painter. we have developed Balance sheet report with help of report painter.
now i client want their logo on top of this report. So please advice on this issue.
thanks in advance.Hello,
I could not any such possibility to attach a logo in report painter report.
However, you can achieve, in case if it a script or smart form.
Regards,
Ravi -
Hello All,,
Can anyone help in knowing how can i add a logo on report. That is in our Z report.
Thanks in advance
AnuSee this example:
* Program: ZZ_ALV_REPORT_STUB
* Author : Clayton Mergen
* Date :
* Purpose: Report using ALV function
* Notes:
* 1) Logos & wallpapers can be found in table BDS_CONN05
* with class = PICTURES
* 2) Transaction OAER can be used to create PICTURES.
* Run transaction OAER with class name = PICTURES, Class type = OT,
* and Object key with whatever name you want to create. In the
* next screen, right clicking on screen and import
* Revisions
* Name :
* Date :
* Comments:
report zz_alv_report_stub
no standard page heading
line-size 200
line-count 65
message-id zz.
* Tables
tables:
ekpo,
trdir.
* Global Types
type-pools: slis.
* Global Internal Tables
data:
i_fieldcat_alv type slis_t_fieldcat_alv,
i_events type slis_t_event,
i_event_exit type slis_t_event_exit,
i_list_comments type slis_t_listheader,
i_excluding type slis_t_extab.
* Display data
data: begin of i_data occurs 0,
name like trdir-name,
clas like trdir-clas,
subc like trdir-subc,
cnam like trdir-cnam,
cdat like trdir-cdat,
myfield(1) type c,
end of i_data.
* Global Variables
data:
w_variant like disvariant,
wx_variant like disvariant,
w_variant_save(1) type c,
w_exit(1) type c,
w_repid like sy-repid,
w_user_specific(1) type c,
w_callback_ucomm type slis_formname,
w_print type slis_print_alv,
w_layout type slis_layout_alv,
w_html_top_of_page type slis_formname,
w_fieldcat_alv like line of i_fieldcat_alv,
w_excluding like line of i_excluding,
w_events like line of i_events,
w_event_exit like line of i_event_exit,
w_list_comments like line of i_list_comments.
* Global Constants
*constants:
* Selection Screen
selection-screen begin of block blk_criteria with frame title text-f01.
select-options:
s_name for trdir-name.
selection-screen end of block blk_criteria.
selection-screen begin of block blk_params with frame title text-f02.
parameters:
p_vari like disvariant-variant.
selection-screen skip 1.
parameters:
p_grid radiobutton group rb01 default 'X',
p_html as checkbox.
selection-screen skip 1.
parameters:
p_list radiobutton group rb01.
selection-screen end of block blk_params.
* Initialization
initialization.
perform init_variant.
perform variant_default using p_vari.
clear: s_name[].
s_name-sign = 'I'.
s_name-option = 'CP'.
s_name-low = 'Z*'.
append s_name.
* At Selection Screen PBO
at selection-screen output.
* At Selection Screen Value Request
at selection-screen on value-request for p_vari.
perform variant_f4 using p_vari.
* At Selection Screen
at selection-screen.
perform variant_fill.
* Start of Selection
start-of-selection.
perform get_data.
end-of-selection.
perform fieldcat_build.
perform event_build.
perform event_exit_build.
perform exclude_build.
perform print_build.
perform layout_build.
perform display_data.
* Top of Page
top-of-page.
* Top of Page During Line Sel
top-of-page during line-selection.
* At User Command
at user-command.
* At Line Selection
at line-selection.
* Macros
define skip_1.
write: /001 sy-vline,
at sy-linsz sy-vline.
end-of-definition.
* Forms
*& Form variant_f4
form variant_f4 using p_variant.
call function 'LVC_VARIANT_F4'
exporting
is_variant = w_variant
i_save = w_variant_save
importing
e_exit = w_exit
es_variant = wx_variant
exceptions
not_found = 1
program_error = 2
others = 3.
if sy-subrc <> 0.
message i000(zz) with text-g01.
endif.
if w_exit is initial.
w_variant-variant = wx_variant-variant.
p_variant = wx_variant-variant.
endif.
endform.
*& Form init_variant
form init_variant.
clear: w_variant.
w_repid = sy-repid.
w_variant-report = w_repid.
w_variant-username = sy-uname.
w_variant_save = 'A'. "All types
endform.
*& Form variant_default
form variant_default using p_variant.
wx_variant = w_variant.
if not p_variant is initial.
wx_variant-variant = p_variant.
endif.
call function 'LVC_VARIANT_DEFAULT_GET'
exporting
i_save = w_variant_save
changing
cs_variant = wx_variant
exceptions
wrong_input = 1
not_found = 2
program_error = 3
others = 4.
case sy-subrc.
when 0.
p_variant = wx_variant-variant.
when 2.
clear: p_variant.
endcase.
endform.
*& Form variant_fill
form variant_fill.
clear: w_variant.
if p_vari is initial.
w_variant-variant = 'STANDARD'.
w_variant-report = w_repid.
else.
w_variant-variant = p_vari.
w_variant-report = w_repid.
call function 'LVC_VARIANT_EXISTENCE_CHECK'
exporting
i_save = w_variant_save
changing
cs_variant = w_variant
exceptions
others = 01.
if sy-subrc ne 0.
message i000(zz) with text-g02.
endif.
endif.
endform.
*& Form fieldcat_build
form fieldcat_build.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = w_repid
* i_structure_name = 'TRDIR'
i_internal_tabname = 'I_DATA'
i_inclname = w_repid
changing
ct_fieldcat = i_fieldcat_alv.
* Modify displayed fields
loop at i_fieldcat_alv into w_fieldcat_alv.
case w_fieldcat_alv-fieldname.
when 'NAME'.
w_fieldcat_alv-hotspot = 'X'.
when 'MYFIELD'.
w_fieldcat_alv-checkbox = 'X'.
w_fieldcat_alv-seltext_s = 'MyChkBox'.
when others.
endcase.
modify i_fieldcat_alv from w_fieldcat_alv.
endloop.
endform.
*& Form display_data
form display_data.
w_callback_ucomm = 'CALLBACK_UCOMM'.
case 'X'.
when p_grid.
if p_html = 'X'.
w_html_top_of_page = 'HTML_TOP_OF_PAGE'.
endif.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
* i_background_id = 'SIWB_WALLPAPER'
i_background_id = 'SIWB_WALLPAPER'
i_callback_program = w_repid
i_callback_html_top_of_page = w_html_top_of_page
* i_structure_name = 'TRDIR'
i_default = 'X'
i_save = 'A'
is_variant = w_variant
is_layout = w_layout
i_callback_user_command = w_callback_ucomm
it_fieldcat = i_fieldcat_alv
it_events = i_events
it_event_exit = i_event_exit
it_excluding = i_excluding
is_print = w_print
* i_screen_start_column = 1
* i_screen_start_line = 1
* i_screen_end_column = 70
* i_screen_end_line = 30
tables
t_outtab = i_data.
when p_list.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_background_id = 'ALV_BACKGROUND'
i_callback_program = w_repid
i_default = 'X'
i_save = 'A'
is_variant = w_variant
is_layout = w_layout
i_callback_user_command = w_callback_ucomm
it_fieldcat = i_fieldcat_alv
it_events = i_events
it_event_exit = i_event_exit
is_print = w_print
tables
t_outtab = i_data.
endcase.
endform.
* FORM user_command *
form callback_ucomm using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
message i000(zz) with r_ucomm.
case r_ucomm.
when '&IC1'.
set parameter id 'RID' field rs_selfield-value.
call transaction 'SE38'.
when others.
endcase.
endform.
*& Form get_data
form get_data.
select * up to 15 rows from trdir
into corresponding fields of table i_data
where name in s_name.
endform.
* FORM ALV_TOP_OF_PAGE *
form alv_top_of_page.
clear: i_list_comments[].
w_list_comments-typ = 'H'. "H=Header, S=Selection, A=Action
w_list_comments-key = ''.
w_list_comments-info = 'Info 1'.
append w_list_comments to i_list_comments.
w_list_comments-typ = 'A'. " H = Header, S = Selection, A = Action
w_list_comments-key = ''.
w_list_comments-info = 'Begin of list'.
append w_list_comments to i_list_comments.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = i_list_comments.
endform.
*& Form event_build
form event_build.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = i_events.
read table i_events
with key name = slis_ev_top_of_page
into w_events.
if sy-subrc = 0.
move 'ALV_TOP_OF_PAGE' to w_events-form.
modify i_events from w_events index sy-tabix.
endif.
read table i_events
with key name = slis_ev_end_of_list
into w_events.
if sy-subrc = 0.
move 'ALV_END_OF_LIST' to w_events-form.
modify i_events from w_events index sy-tabix.
endif.
read table i_events
with key name = slis_ev_end_of_page
into w_events.
if sy-subrc = 0.
move 'ALV_END_OF_PAGE' to w_events-form.
modify i_events from w_events index sy-tabix.
endif.
endform.
* FORM alv_end_of_list *
form alv_end_of_list.
clear: i_list_comments[].
w_list_comments-typ = 'A'. "H = Header, S = Selection, A = Action
w_list_comments-key = ''.
w_list_comments-info = 'End of list'.
append w_list_comments to i_list_comments.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = i_list_comments
i_logo = 'ZMYOBJECTKEY'
i_end_of_list_grid = 'X'.
endform.
* FORM alv_end_of_page *
form alv_end_of_page.
endform.
*& Form print_build
form print_build.
w_print-no_print_listinfos = 'X'.
endform.
*& Form layout_build
form layout_build.
w_layout-zebra = 'X'.
w_layout-no_vline = 'X'.
w_layout-colwidth_optimize = 'X'.
w_layout-detail_popup = 'X'.
w_layout-detail_initial_lines = 'X'.
w_layout-detail_titlebar = 'Detail Title Bar'.
endform.
*& Form event_exit_build
form event_exit_build.
clear: i_event_exit[].
* Pick
w_event_exit-ucomm = '&ETA'.
w_event_exit-before = ' '.
w_event_exit-after = 'X'.
append w_event_exit to i_event_exit.
endform.
* FORM HTML_TOP_OF_PAGE *
form html_top_of_page using r_top type ref to cl_dd_document.
data:
text type sdydo_text_element,
s_table type ref to cl_dd_table_element,
col_key type ref to cl_dd_area,
col_info type ref to cl_dd_area,
a_logo type ref to cl_dd_area.
* Split TOP-Document
call method r_top->vertical_split
exporting split_area = r_top
split_width = '30%'
importing right_area = a_logo.
* Fill TOP-Document
call method r_top->add_text
exporting text = 'Example of a Heading'
sap_style = 'HEADING'.
call method r_top->new_line.
call method r_top->new_line.
call method r_top->add_table
exporting no_of_columns = 2
with_heading = ' '
border = '1'
importing table = s_table.
call method s_table->add_column importing column = col_key.
call method s_table->add_column importing column = col_info.
text = 'A key value marked'.
call method col_key->add_text
exporting text = text
sap_emphasis = 'Strong'.
call method col_info->add_gap exporting width = 6.
text = '600' .
call method col_info->add_text
exporting text = text
sap_style = 'Key'.
call method col_info->add_gap exporting width = 3.
text = 'Block brick units'.
call method col_info->add_text exporting text = text.
call method s_table->new_row.
text = 'Storage Bin'.
call method col_key->add_text
exporting text = text
sap_emphasis = 'Strong'.
call method col_info->add_gap exporting width = 7.
text = 'C-A-004'.
call method col_info->add_text exporting text = text.
call method s_table->new_row.
text = 'Warehouse number' .
call method col_key->add_text
exporting text = text
sap_emphasis = 'Strong'.
call method col_info->add_gap exporting width = 6.
text = '200' .
call method col_info->add_text
exporting text = text
sap_style = 'Success'.
call method col_info->add_gap exporting width = 3.
text = 'marked success'.
call method col_info->add_text exporting text = text.
call method s_table->new_row.
call method r_top->new_line.
text = 'This last line is a comment in italics.'.
call method r_top->add_text
exporting text = text
sap_emphasis = 'EMPHASIS'.
call method r_top->new_line.
call method a_logo->add_picture
* exporting picture_id = 'ZZTESTBMP'.
exporting picture_id = 'ENJOYSAP_LOGO'.
endform.
*& Form exclude_build
form exclude_build.
w_excluding = '&GRAPH'. "Graphic
append w_excluding to i_excluding.
endform. " exclude_build -
Dynamic where clause for generated reports (designer 6.0)
Hi,
I'd like to include dynamic where clause into my reports. It's easy with report builder by using bind parameter in a query where clause (¶m where param is a parameter in which you fill a VARACHAR2 to complete default where clause).
Problem with designer 6.0 report generator is that he failed while trying to parse the query statement he contructs if there is a bind parameter within.
How can I manage this problem ?
Thanks for answers
RomainHi Divya,
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no P_WHERE_CLAUSE= '||Where_Clause);Instead of using SET_REPORT_OBJECT_PROPERTY built in try using ADD_PARAMETER built in which
adds parameters to a parameter list. Each parameter consists of a key, its type, and an associated value.
v_rep := RUN_REPORT_OBJECT(repid); and instead of using RUN_REPORT_OBJECT try using RUN_PRODUCT.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
Where_Clause Varchar2(4000) := null ;
*Pl_Id ParamList;*
*Pl_Name VARCHAR2(10) := 'param_list';*
BEGIN
Where_Clause := 'Where '||Create_Where_Clause();
message(Where_Clause);
message(' ');
pl_id := Get_Parameter_List(pl_name);
IF not Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
Add_Parameter(pl_id,'P_WHERE_CLAUSE', TEXT_PARAMETER, WHERE_CLAUSE);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
-- Add_Parameter(pl_id,'ANY_OTHER_PARAMETER', TEXT_PARAMETER, 'VALUE FOR OTHER PARAMETER');
RUN_PRODUCT(REPORTS,'REPORT_NAME', ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;Also you can add as many User created or System parameters as you want using add_parameter. Updated the code to add PARAMFORM parameter.
Best Regards
Arif Khadas
Edited by: Arif Khadas on Mar 15, 2011 9:31 AM -
Report Profile Use & fields in dynamic selection in RE-FX reports..
I have two requirements:
1. Some of the SAP delivered fields in RE master data of BE,PR,BU and RO are not required by our client. Thus we have hidden them using field status transaction. However they are still available in RE info system in Dynamic selection as well as in output screen. How can we remove these fields from information system as well.
2. Some fields were added to the master data using BDT, they are visisble in the report however, they are not available in Dynamic Selections. How can we add them in dynamic selection as well during report execution.
The transaction codes for reports are e.g. REISBE, REISBU, REISPR, REISRO, RECN, etc.
Can ReportProfile be of some use?? If yes, how can we configure the same.
Regards
RohitI am aware of this, however, creating a variant still keeps the fields in hidden list in change variant section and any user maygo and bring the same to viewable list.
I am willing if we can simply remove those fields from the display screen to avoid any confusion in future.
Regards
Rohit -
Print /add logo in reports 10g which is running in linux
hi
i want to print /add logo in reports 10g which is running in linux environment and want to change logo programmatically.
how can i achieve this
reports version is Report Builder 10.1.2.0.2Hi Thanesh,
There are two possibilities either create a 'Z' one or go through standard one. I prefer you to try the standard one.
Have a look on this link.
[Add logo in PE51;
Hope this will solve your problem.
Regards,
Gaurav -
Dynamic change of logo in SAPSCRIPT
hi,
can u tell me how to dynamically change the logo based on company code when creating an invoice.to be more clear when i creatE aN invoice with company code 1000, i should get one logo and for invoice with companycode 2000 the logo should change.how to do this in SAPSCRIPT.
REGARDS,
SANJAYHello,
Plz refer to this link.
How to change SAP SCRIPT logos at runtime
Best Regards, Murugesh AS -
How to get Logo in report dynamically Based on user login?
requirement is like this:
same report format will be used by 3 different users, but the different logo should appear based on their login..place all 3 images in the template, then wrap an if statement around each. something like:
<?if:userLogin='User 1'?>image goes here<?end if?>
if that doesn't work try sticking each in a table with no border and doing the same with the if statements -
Dynamic image(logo) in reports 6i
Hi,
I want to insert an image (logo of my company) in all my reports, from a location for example d:\abc.gif, so that if i replace the image from a new one the report show the new image (logo),
I tried file --> import --> image already but it is static and if there is any change in logo i need to change in all my reports,
should i save the image in a table and show it , but how , please tell,
Note ( Report Builder 6i
Database 9i)
RegardsI got the solution and writing it below for other guys,
• Create a table with a column type BLOB or long raw in database
• Save the picture in it by making a form based on the table in previous step.
• Write the following code in when image pressed trigger
DECLARE
V_FILE_NAME VARCHAR2(40);
BEGIN
V_FILE_NAME := GET_FILE_NAME(File_Filter=> 'JPG Files (*.JPG)|*.JPG|');
READ_IMAGE_FILE(V_FILE_NAME,'JPG', 'block_name.image_item');
END;
• In reports, create SQL Query to read that table, and assign the BLOB, Long Raw field in to the report.
Maybe you are looking for
-
Cycle Couting for Consignment Stock?
How to perform Cycle Couting for Consignment Stock at the Customer??
-
Set Commodity Code in Purchase order
hello, I have implemented a BADi for purchase order for updating the commodity code/weight and Volume from material configuration. It works fine with updating for weight and volume. But when trying to update the Commodity code I got a "time out" beca
-
My iPhone 4s will not connect with my mac pro
hey, so i have an iphone 4s with the latest update iOS7.1 and a macbok pro which is also up to date with itunes 11.1.5. The entire time ive had this computer and this phone all i had to do was connect the two via USB and my computer recognized my pho
-
Can't decode query in URL!!!
On HTML page I have java script like this: function subApp() window.open("test.jsp?param="+escape("������������")); When in test.jsp page I try to get query using java.util.Decoder.decode(request.getQueryString(), 'utf-8') I've got following exceptio
-
HI, I'm facing a problem with my Availability Status functionality in the member List Iview...it doesnt work properly...meaning, when I choose Auto Detect Status it shows that Im offline while Im online...how to make this functionality work..ple