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
Praveen
Hi,
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
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 -
How to accept multiple attachments on selection screen?
Hi All,
I need to know how to accept multiple attachments on selection screen and send them as email to external system (outlook).
Basically, my req is to send a common email with attachments to certain users. These users are displayed in ALV. User will select ALL or specific user from ALV and send an email with message entered on selection screen.
I used text editor control to input message body. I need to know how to accept attachments and send them.
Appreciate any inputs.
Thanks,
SKJSAP uses a nifty little button called 'Object Services' on ME23N (top left) which you can use to attach documents to business objects.
http://help.sap.com/saphelp_nw70/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm
It's a complicated way of doing it but might give you extra functionality in the long run. -
How to clear parameters defined in selection screen on back button
Hi,
I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
So in the Initialization even I added the code to clear all these parameters;
CLEAR: p_aaa, p_bbb, p_ccc.
I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
How to clear them ?
thnks>
Rob Burbank wrote:
> Yes he did. My mistake.
>
> But isn't this what he wants? To clear the Selection screen so that something has to be entered?
>
> Rob
IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
first time.
-Rajesh. -
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
HI,
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
thanks,
samba.By selection screen, what do you mean? There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component? Are you wanting to call a standard transaction via ITS - SAPGUI for HTML? Please provide more details to your question.
-
How to handle this scenario in selection screen?
hi friends...i have 2 radio-buttons (2 parameter fields below each) in one group..the need when one radio button is checked, i need two parameter fields below it to be input enabled and the other to be disabled, if another radio button is checked, then the former two will be disabled and the other two parameter fields to be input enabled..no problems with this..i have written this functionality in at selection-screen output..i want to make each 1 parameter in the two groups to be mandatory..as using obligatory gives problems during at selection-screen output event, i want to achieve this functionality in some other event...i have tried the same in At selection screen on para_1 and at selection screen on para_2 fields, but am not able to achieve the desired functionality..by default the first radio button is checked, if the user wants to click the second radio button, At selection screen on para_1 event gets triggered and it throws the error msg. for the first one & vice versa...can't handle this in start-of-selection event also, as it gives the error msg. in a blank new screen..how to achieve it??
i have checked quite a few SDN threads, but doesn't answer my question
regards,
Sathish RHi,
I think you cannot proceed with obligatory statement as it will be triggered before theselection screen events.
You may check the code below.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 USER-COMMAND abc.
PARAMETERS p1(5). ( maintained as obligatory)
PARAMETERS p2(5).
PARAMETERS r2 RADIOBUTTON GROUP rad1.
PARAMETERS p3(5). ( maintained as obligatory)
PARAMETERS p4(5).
INITIALIZATION.
r1 = 'X'.
AT SELECTION-SCREEN OUTPUT.
IF r1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'P4'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF r2 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'P2'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN .
IF p1 IS INITIAL AND sy-ucomm NE 'ABC'.
MESSAGE 'Enter the obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
ENDIF.
IF p3 IS INITIAL AND sy-ucomm NE 'ABC'.
MESSAGE 'Enter the obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
ENDIF.
Hope this will help you.
Regards,
Smart Varghese -
How to default date values in Selection Screen
Hi everyone,
I would like to display the 1st day of the previous month into the I_GSTRP-LOW field and the last day of the current month into the I_GSTRP-HIGH field.
For example, this in the 5th month of the year (May), therefore, in the selection screen it should appear like this:
Basic Date: <u>01.04.2006</u> to <u>31.05.2006</u>
How do i do it?
*& SELECTION-SCREEN *
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
I_AUFNR FOR AFIH-AUFNR, "ORDER NUMBER
I_GSTRP FOR AFKO-GSTRP, "BASIC DATE
I_BUDAT FOR AUFM-BUDAT, "POSTING DATE
I_IWERK FOR AFIH-IWERK DEFAULT '6010' OBLIGATORY, "PLANNING PLANT
I_ARBPL FOR CRHD-ARBPL, "WORK CENTER
I_ERNAM FOR AUFK-ERNAM, "CREATED BY
I_MATNR FOR RESB-MATNR, "MATERIAL
I_KTEXT FOR AUFK-KTEXT. "EQUIPMENT
SELECTION-SCREEN END OF BLOCK 1.Here is the code to populate default values,as per your requirement.
data : V_date type sy-datum,
v_month(2) type c,
v_low_value(8) type c,
v_high_value(8) type c,
v_month1(2) type n,
V_NO_OF_DAYS type T009B-BUTAG,
v_curr_month type T009B-BUMON,
v_curr_year type T009B-BDATJ.
select-options : i_gstrp for sy-datum.
initialization.
v_date = sy-datum.
v_month1 = v_date+4(2) - 1.
write v_month1 to v_month.
concatenate v_date+0(4)
v_month
'01'
into v_low_value.
I_GSTRP-LOW = v_low_value.
v_curr_month = sy-datum+4(2).
v_curr_year = sy-datum+0(4).
CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
EXPORTING
par_month = v_curr_month
par_year = v_curr_year
IMPORTING
PAR_DAYS = V_NO_OF_DAYS
concatenate sy-datum+0(6)
V_NO_OF_DAYS
into v_high_value.
I_GSTRP-HIGH = v_high_value.
I_GSTRP-sign = 'I'.
I_GSTRP-OPTION = 'EQ'.
APPEND I_GSTRP.
regards
srikanth -
How to disable save button on selection screen (1000) run from other report
Hi Experts,
Can any one let me know how to disable save button on selection screen (1000) run from other report.
Say I am running from report R1 which submits report R2, but the save button should be disabled on
report R2(selection screen 100).
Thanks in advance.
Regards
RP.Hi RPReddy16 ,
Try this:
DATA :BEGIN OF t_extab occurs 0,
fcode like rsmpe-func,
END OF t_extab.
REFRESH T_EXTAB.
MOVE 'SAVE' TO T_EXTAB-FCODE.
APPEND T_EXTAB.
CLEAR T_EXTAB.
SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
Regards,
José -
How to make a field in selection screen as READ_ONLY !!
Hi,
How to make a field in selection screen as READ_ONLY !!.
Thanks,
SenthilThis is the code you need to have in your program.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'MYSELFLD'.
SCREEN-INPUT = 0.
MODIFY-SCREEN.
ENDIF.
ENDLOOP. -
How to hide particular block in selection screen
Hi,
I am having different blocks in a selection screen.
How to show the blocks dynamically according to a radio button selection.
means how to Hide/show entire block.
Thanks,
anandanHi Anandan,
Try this program.
REPORT zvk_collect.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME NO INTERVALS.
PARAMETER : p_plant RADIOBUTTON GROUP g1 USER-COMMAND radio DEFAULT 'X',
p_mrp RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME NO INTERVALS.
PARAMETER : p_werks TYPE marc-werks MODIF ID sp1.
SELECTION-SCREEN END OF BLOCK b2.
*SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME NO INTERVALS.
*PARAMETER : p_berid TYPE smdma-berid MODIF ID sp2.
*SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK screen-group1 = 'SP1' OR
screen-group1 = 'SP2'.
IF p_plant = 'X'.
IF screen-group1 = 'SP2'.
screen-input = 0.
screen-active = 0.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ELSE.
IF screen-group1 = 'SP1'.
screen-input = 0.
screen-active = 0.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Execute with Comments ON and Without Comments and See the difference
Reward if found helpful -
How to validate input's in selection-screen
Hi ,
can any one how to validate input's field's in selection-screen and each field has diffirent tables and what is the table name which has all the validating fields??
Thank's in advance..hi,
You can use validate selct-options using select query by obtaining the realtionship from table .Using the selection-screen events You can write code for validation as follows.
tables:
kna1. " General Customer data
*"Selection screen elements............................................
select-options:
s_kunnr for kna1-kunnr. " Customer number
*"Data declarations...................................................
Data declaration of the structure to hold kna1 details *
data:
begin of fs_customer,
kunnr type kna1-kunnr, " Customer number
adrnr type kna1-adrnr, " Address
anred type kna1-anred, " Title
erdat type kna1-erdat, " Created on
ernam type kna1-ernam, " Created by
end of fs_customer.
*"Constants declarations..............................................
constants
w_path type string value 'D:\DOWNLOAD\CUSTOMER'.
Internal table to hold customer details *
data:
t_customer like
standard table
of fs_customer.
AT SELECTION SCREEN OUTPUT *
at selection-screen.
perform retrieve.
Form RETRIEVE *
This subroutine retrieve customer data from table kna1 *
There are no interface parameters to be passed to this subroutine. *
form retrieve .
select kunnr " Customer number
adrnr " Address
anred " Title
erdat " Created on
ernam " Created by
into corresponding fields of table t_customer
from kna1
where kunnr in s_kunnr. " END SELECT
if sy-subrc ne 0.
message text-001 type 'E'.
exit.
endif. " IF SY-SUBRC NE 0
endform. " RETRIEVE
regards,
veeresh -
How to hide gui buttons in selection screen
In Selection screen how to hide buttons like back, exit,cancel buttons.
can any one help.Hi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand -
How to hide input fields on selection screen using variant attribute
Hello all,
I want to know how to hide input fields on selection screen using variant attribute conpletely.
As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
I want to hide the field completely. Di you know how to do ?
Thank you for your support.
Regards,
Hideki KozaiUse this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
Otherwise
in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
Regards
Marcin -
How to Add Push Button On Selection Screen
Hi Experts,
How to add Push button on Selection Screen.
Points will b rewarded for useful help.
Bohra.Hi,
To create a pushbutton on the selection screen, you use:
SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
USER-COMMAND <ucom> [MODIF ID <key>].
The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
<push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
Ex.
REPORT DEMO.
TABLES SSCRFIELDS.
DATA FLAG.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
END OF LINE,
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE SSCRFIELDS.
WHEN 'CLI1'.
FLAG = '1'.
WHEN 'CLI2'.
FLAG = '2'.
WHEN 'CLI3'.
FLAG = '3'.
WHEN 'CLI4'.
FLAG = '4'.
ENDCASE.
START-OF-SELECTION.
TIT = 'Four Buttons'.
BUT1 = 'Button 1'.
BUT3 = 'Button 3'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
CASE FLAG.
WHEN '1'.
WRITE / 'Button 1 was clicked'.
WHEN '2'.
WRITE / 'Button 2 was clicked'.
WHEN '3'.
WRITE / 'Button 3 was clicked'.
WHEN '4'.
WRITE / 'Button 4 was clicked'.
WHEN OTHERS.
WRITE / 'No Button was clicked'.
ENDCASE.
This example defines four pushbuttons on a selection screen that is displayed as a
dialog box. The selection screen is defined in a statement chain for keyword
SELECTION-SCREEN.
If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
Regards,
Bhaskar
Maybe you are looking for
-
Hi all... I'm hoping if anybody could help me. I'm using Microsoft Excel 2010 + Windows 7 Professional 64 bit. I've installed the informix client sdk for odbc drivers to create odbc 32 bit connection. Before this, i had successfully installed in anot
-
FaceTime says connecting but doesn't connect.
when ever i try to FaceTime (on phone and laptop) it says connecting but then doesn't actually connect. I've turned FT on and off but nothing works, how do i resolve this?
-
Creating XMP data from HTML page
I have a very large number of images that are linked from websites in the form: <a href="images/filename.jpg">Image caption.</a> I would like to be able to use a script to batch process my files that will collect the text between the <a ....> and </a
-
Error platformversion minversion 1.9.2.12
everytimer i try to log on to mozilla firefox it comes up with the following message
-
I want to cut out a section of a photo
I have a picture of my 1950 Studebaker Commander and I want to cut it out form the background and save to a file. I have tired using the crop tool, but it only lets me cut out in a square or rectangle shape. I know there has to be a way to do this!