Adding Logo In selection screen
Hi,
I would like to add company logo in the selection screen of a web report. Please let me know how to do this.
Regards,
Hi Bill,
Customizing for the variable acreen in the web reports has not been provided for by SAP. It will be possible by modification. You can refer to these 2 posts by an SAP Developer (Heike Guder):
Web Template: Customizing Variable Screen
BeX Web App - Variable Screen
Hope this helps...
Similar Messages
-
Show Picture/logo on Selection Screen from OAER
HI everybody,
I uploaded a LOGO via TA OAER.
It works fine, when I Use call function 'REUSE_ALV_GRID_DISPLAY'
But now I want wot display the logo on the selection screen using the picture_control ( TYPE REF TO cl_gui_picture)
see:
ABAP - Display LOGO On Selection Screen.</title><title>Learn ABAP Programming With Examples And Sample Progr…
Does anybody know how to read the picture uploaded in OAER for using it in the picture_control ( TYPE REF TO cl_gui_picture?
Thanks
Regards
MarioThis is possible. please try following code:
PARAMETERS:c1 TYPE vbak-vbeln.
AT SELECTION-SCREEN OUTPUT.
PERFORM show_picture.
**& Form show_picture
FORM show_picture.
DATA picture_control_1 TYPE REF TO cl_gui_picture.
DATA :
docking TYPE REF TO cl_gui_custom_container,
logical_system LIKE bapibds01-log_system,
v_class LIKE bapibds01-classname,
v_type LIKE bapibds01-classtype,
v_client LIKE bapibds01-client,
v_objkey LIKE bapibds01-objkey,
url_lifetime LIKE bapibds01-uri_life,
standard_url_only LIKE sy-datar,
data_provider_url_only LIKE sy-datar,
web_applic_server_url_only LIKE sy-datar,
url_used_at TYPE sdok_fburl,
URIS TYPE TABLE OF BAPIURI WITH HEADER LINE,
url LIKE uris-uri.
v_objkey = 'FITP_SMILE'.
v_class = 'PICTURES'.
v_type = 'OT'.
v_client = sy-mandt.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_GET_URL'
EXPORTING
classname = v_class
classtype = v_type
client = v_client
object_key = v_objkey
TABLES
uris = uris.
* Find image
LOOP AT uris.
SEARCH uris-uri FOR 'smile.gif'.
IF sy-subrc = 0.
url = uris-uri.
EXIT.
ENDIF.
ENDLOOP.
BREAK-POINT.
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 = 55
left = 750
top = 08
width = 350.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
ENDFORM.
Regards -
hi experts ,
can we add logo in selection screen .
if yes the how it can be possible .
Thanks And Regards .
PriyankTo create a logo u have to remember one thing is u have to upload that logo through OAER or SE78
for uploading logo in OAER
Enter class name as PICTURES
Class type as OT
Object key the name of ur logo want to upload
then press F8 or execute
Then it will automatically creates a folder for ur LOGO and upload ur logo in that folder
After that In the left side bottom of the page u can c the following options
1)Detail
2)Document Info
3)Keywords
4)Create
goto Detail in which u can find the Object Id
which u have to paste in the function module of this program
Check this program1
REPORT YMS_LOGOSEL.
*REPORT ZREPORT_LOGO.
DATA:
docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
START-OF-SELECTION.
num1 = p_dummy.
num2 = p_dummy1.
sum = num1 + num2.
WRITE : / sum.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
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 = 500
top = 10
width = 300.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = 'c:/pic.bmp'.
IF sy-subrc NE 0.
ENDIF.
ENDFORM. "show_pic -
Adding image/logo on selection screen
How can I add image or logo on my selection - screen??
Hi,
in AT-SELECTION-OUTPUT EVENT put these codes:
data: lv_docking type ref to cl_gui_docking_container,
lv_picture_control_1 type ref to cl_gui_picture,
lv_url(256) type c ,
li_query_table type w3query occurs 1 with header line,
li_html_table type w3html occurs 1,
lv_return_code type w3param-ret_code,
lv_content_type type w3param-cont_type,
lv_content_length type w3param-cont_len,
li_pic_data type w3mime occurs 0,
lv_pic_size type i.
refresh :li_query_table ,li_html_table , li_pic_data.
clear :
lv_url,
lv_return_code,
lv_pic_size,
lv_picture_control_1,
lv_docking,
lv_content_type,
lv_content_length.
create object lv_picture_control_1
exporting
parent = lv_docking.
check sy-subrc = 0.
call method lv_picture_control_1->set_3d_border
exporting
border = 5.
call method lv_picture_control_1->set_display_mode
exporting
display_mode = cl_gui_picture=>display_mode_stretch.
call method lv_picture_control_1->set_position
exporting
height = 75
left = 1200
top = 250
width = 250.
if lv_url is initial.
refresh li_query_table.
li_query_table-name = '_OBJECT_ID'.
*IMAGE UPLOADED IN SWO0
li_query_table-value = 'ZLOGO'.
append li_query_table.
call function 'WWW_GET_MIME_OBJECT'
tables
query_string = li_query_table
html = li_html_table
mime = li_pic_data
changing
return_code = lv_return_code
content_type = lv_content_type
content_length = lv_content_length
exceptions
object_not_found = 1
parameter_not_found = 2
others = 3.
if sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
call function 'DP_CREATE_URL'
exporting
type = 'image'
subtype = cndp_sap_tab_unknown
size = lv_pic_size
lifetime = cndp_lifetime_transaction
tables
data = li_pic_data
changing
url = lv_url
exceptions
others = 1.
endif.
call method lv_picture_control_1->load_picture_from_url
exporting
url = lv_url. -
Problem in adding parameter in selection screen
Hi,
I am trying to add a parameter on the selection screen of a standard transaction(EG90 in ISU system).I added it through enhancement point but i am not getting how to maintain text for that parameter.As it is a standard transaction when i am going to goto->selection text and trying to maintain it,it is asking for the access code.Do i have any option for it or i should go for zcreation of the transaction.
Mukesh KumarHi,
unfortanly you need to enter an access code if you want to change somethink in standard without user-exit.
So....you need to create a z-transaction, if you want to add it.
Regards
Nicole -
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 -
Adding gsber in selection screen of report painter
To gurus,
I have a small requirement, I have to get business area (GSBER) in selection screen of report.
I have developed the report using report painter FGI1 --FAGLFLEXT which is having gsber field.
In selection screen it self i want this GSBER FIELD .How to achieve it.
kindly guide me.
regards,
padmaja.Hi
What I understand from your question is you want bussiness area value on selection screen you can achive this by just using the by export/import parameter or by get/set parameter id.
Please elaborate what exactly you want.
Regards
Sagar. -
Adding Field on Selection Screen in Standard program
Hiiii,
We have a requirement to add a field Business Place (BUPLA) on the Selection Screen.
TCode - S_ALR_87012082, Program Name - RFKSLD00
Please give me some idea, so that i can modify this program !!
Nitin GargHii Klaus,
Okay, If as per your aspects there is no need of modify logical database, so Plz let me know how can i enhance RFKSLD00 to add Business Place.
I try to find Badi for it, but i think there is no suitable Badi findings . Plz give solution soon .
Nitin Garg
Edited by: Suhas Saha on Oct 19, 2011 2:22 PM -
Adding Label to Selection Screen..
Hi all,
How to add a label in the selection screen.. I want to change this label value dynamically.. so here I can nt use comment text.. so please suggest me a way.
Thank you..Hi haritha,
try this code and desing ur selction screen formate depands on ur requirment
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETER : id TYPE i.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON id.
IF id = ' '.
MESSAGE 'Enter the valid number' TYPE 'W'.
ELSEIF id = 100.
CALL SCREEN 100. " desing the required screen formate
ELSE.
CALL SCREEN 200.
ENDIF.
i hope so it may give u some more idea..
if its helpull rewards me..
cheers,
chandru.s -
Adding Comments in Selection-screen of report
Hi,
I want to add comments/Instructions on a selection -screen of a report.
How do we do that?
Regards
VaraHi Vara,
REPORT demo_sel_screen_select_comment.
SELECTION-SCREEN COMMENT /2(50) text-001 MODIF ID sc1.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN COMMENT /10(30) comm1.
SELECTION-SCREEN ULINE.
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
r2 RADIOBUTTON GROUP rad1,
r3 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN ULINE /1(50).
SELECTION-SCREEN COMMENT /10(30) comm2.
SELECTION-SCREEN ULINE.
PARAMETERS: s1 RADIOBUTTON GROUP rad2,
s2 RADIOBUTTON GROUP rad2,
s3 RADIOBUTTON GROUP rad2.
SELECTION-SCREEN ULINE /1(50).
INITIALIZATION.
COMM1 ='Radio Button Group 1'.
COMM2 ='Radio Button Group 2'.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
reward if helpful
regards,
keerthi. -
Adding fields on selection screen dynamically
Hi all,
Can we add some fields to selection screen dynamically on pushbutton click?
Regards,
Dnyaneshjust have look below code
REPORT zrsdvsr1
LINE-SIZE 220
LINE-COUNT 65(5).
TYPE-POOLS : slis.
TABLES
TABLES: vbak.
DATA DECLARATIONS
Ranges
RANGES: r_posnr FOR vbap-posnr.
DATA: BEGIN OF t_veramt OCCURS 0,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
netwr TYPE vbap-netwr,
mwsbp TYPE vbap-mwsbp,
END OF t_veramt.
DATA: BEGIN OF t_disamt OCCURS 0,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
netwr TYPE vbap-netwr,
mwsbp TYPE vbap-mwsbp,
netwr_v TYPE vbap-netwr,
mwsbp_v TYPE vbap-mwsbp,
disc_val TYPE vbap-mwsbp,
END OF t_disamt.
*& ALV FIELDS
DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
alv_layout TYPE slis_layout_alv.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
p_sab RADIOBUTTON GROUP g1 .
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
PARAMETERS: p_dwfile TYPE rlgrap-filename
DEFAULT 'C:\test1.txt' MODIF ID gr2, "#EC NOTEXT
p_upfile TYPE rlgrap-filename
DEFAULT 'C:\test.txt' MODIF ID gr3. "#EC NOTEXT
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
**************F4 Help For Input File Name****************************
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'C:\'
IMPORTING
file_name = p_upfile.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
**************F4 Help For Input File Name****************************
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'C:\'
IMPORTING
file_name = p_dwfile.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_sab = 'X'.
IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
screen-active = '0'.
screen-invisible = '1'.
ELSE.
screen-active = '1'.
screen-invisible = '0'.
ENDIF.
MODIFY SCREEN.
ELSE.
IF screen-group1 = 'GR3'.
screen-active = '0'.
screen-invisible = '1'.
ELSE.
screen-active = '1'.
screen-invisible = '0'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION
START-OF-SELECTION.
Check Radio Button
IF p_ver = 'X'.
PERFORM get_details_open_so_vertex.
ELSE.
PERFORM get_details_open_so.
ENDIF.
Display the output.
PERFORM diplay_report .
regards
vinod -
Adding a message to the variable selection screen
Hi there
I have been asked to find a way to add a message to the variable selection screen.
It appears that DIVISION needs to be added to the selection screen, as this makes the query run faster. However, they don't actually want the user to enter a division, as this causes other problems.
So, ideally, I would be able to add a message to the variable selection screen that advises users against entering a value for division.
I don't know how to do this.
I create the web template, and I can therefore add messages or anything you like to the template, but I don't believe I have any control over the variable selection screen.
Does anyone know if this is possible?
We are running a 2004s system if that helps.
Cheers,
AndrewHello,
Well i think if you make the variable used for division not ready for input it would not be available for the users to input anything.
you can find the checkbox for this in the properties of the variable in query designer.
Hope this matches your requirement.
Regds,
Shashank -
COOIS - new field tobe added in selection screen
My requirement is ' batch field shud be added in COOIS Selection screen & output shud come for given batch '.
can anyone give the details .Hi,
You have to customize the Program according to business requirement.
You can copy as ZCOOIS and assign a Tcode for that and do the necessary modifications as per need.
Regards
Arbind -
How to deal with dynamic selection screen elements when macros are used?
Hello experts,
This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction, Reference key, Logical system.
DEFINE selection_screen_line.
selection-screen: begin of line.
parameters &3 like &4 default 'X' modif id mc4.
selection-screen: comment (30) &1 for field &3 modif id mc4.
selection-screen: comment pos_low(10) text-019
for field &2 modif id mc4. "neu
parameters &2 like rfums_alv-variante modif id mc4.
selection-screen:
position pos_high.
selection-screen: pushbutton (15) text-028
user-command &5 modif id mc4.
selection-screen end of line.
END-OF-DEFINITION.
Kindly, suggest me the right solution.In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
The selection screen is actually the selection screen of this logical database.
Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
You cannot just remove it from the declaration because many of its variables are used in the program.
So call it using function module as the first step in INITIALIZATION section of the program.
The syntax and function module to call it in your program can be found in the following thread :
How to hide the selection screen of a Logical datebase?
Regards,
Ashish -
Graphic on selection screen forces execution as a transaction
Is it possible for a graphic to be added to the selection screen of an ABAP report and have the report continue to be executable via SA38? My developer is telling me that it must be executed via an assigned transaction code now and this is not what the enduser wants.
Hi Linda,
Your developer is right.
you can create a screen and use custom_container to add a graphics and also include your selection screen in that screen.
You can provide the enduser with the z transaction code, so that, he can run it and get the desired output... [End users generally are given custom transactions, if the standard reports/transactions dont serve their purpose]
Regards,
Raj
For upload graphic into system use tcode : SMW0
Code for display Graphics.
DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
DATA html_table LIKE w3html OCCURS 1.
DATA return_code LIKE w3param-ret_code.
DATA content_type LIKE w3param-cont_type.
DATA content_length LIKE w3param-cont_len.
DATA pic_data LIKE w3mime OCCURS 0.
DATA pic_size TYPE i.
IF container is initial.
CREATE OBJECT container
EXPORTING container_name = 'CUSTOM_CONTAINER'.
CREATE OBJECT picture
EXPORTING parent = container
EXCEPTIONS error = 1.
IF sy-subrc ne 0.
ENDIF.
ENDIF.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZDAT_TRANSFER'.
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.
IF sy-subrc = 0.
pic_size = content_length.
ENDIF.
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.
CALL METHOD picture->load_picture_from_url
EXPORTING url = url.
IF sy-subrc ne 0.
Fehlerbehandlung
ENDIF
Maybe you are looking for
-
No access to settl rule when copying Sales order from Quotation
Hi all Can you help me on my following issue : I create quotation in which I refer to a settlement rule. WHen creating a sales order in reference to my quotation, the settlement rule in the "item account assignment" tab is not reachable ... This mea
-
File Download Without User Interaction
Hello, basically i want to transfer a file from one server to the other. I have a fixed source URL and a ready file handler .jsp at the destination server. In the past I did a lot with FileReference and their Browse() and Download() methods. Now i wa
-
New Zones features in Solaris 10 Beta 5
Solaris 10 Beta 5 (otherwise known as Software Express 7/04) should be available shortly via the download link http://wwws.sun.com/software/solaris/solaris-express/get.html For more information on what's available in the release, please see the alrea
-
I have a itunes account how do i get to the itunes store to download games and ringtones
i have a itunes account how do i get to the itunes store to download games and ringtones
-
QA11/ Production order Cost
I was wanting to know when you confirm a work order through co11n and post the qty. this automatically creates an inspection lot for us. Using QA11 or QE72 we then give the inspection lot a usage decision - if everything is OK and all material goes t