Display Logo in Subscreen Area Using OO-ABAP
Hello,
I have a requirement to display a logo in SCREEN, Which contains TABSTRIP , In that A SUBSCREEN AREA. What could be the procedure to display the LOGO . let me know if any suggenstions.
I have already uploded the IMAGE in to SAP Form GRAPHIS Via SE78.
Thanks in Advance
Regards
Nags
Hi Naganjaneyulu,
Check the below sample program.
put a custom control on the subscreen and write the logic in the subscreen's PBO....
Screen Flow logic
PROCESS BEFORE OUTPUT.
MODULE pbo.
PROCESS AFTER INPUT.
MODULE pai AT EXIT-COMMAND.
Program
DATA : go_container TYPE REF TO cl_gui_custom_container,
go_pic TYPE REF TO cl_gui_picture,
gt_picbin TYPE solix_tab,
gt_filetable TYPE filetable,
gv_bindata TYPE xstring,
gv_filename TYPE string,
gv_url TYPE char255.
PARAMETERS : p_object TYPE tdobjectgr DEFAULT 'GRAPHICS',
p_name TYPE tdobname DEFAULT 'SAP LOGO + TRADEMARK',
p_id TYPE tdidgr DEFAULT 'BMAP',
p_btype TYPE tdbtype DEFAULT 'BMON'.
CALL SCREEN 100.
MODULE pbo OUTPUT.
SET PF-STATUS 'BASIC'. " just a BACK button with application type 'E'.
PERFORM fetch_binary_data.
PERFORM create_url.
CREATE OBJECT go_container
EXPORTING
container_name = 'CUSTOM'. " name of custom control
CREATE OBJECT go_pic
EXPORTING
parent = go_container.
go_pic->load_picture_from_url( EXPORTING url = gv_url ).
ENDMODULE. " pbo OUTPUT
MODULE pai INPUT.
SET SCREEN 0. LEAVE SCREEN.
ENDMODULE. " pai INPUT
FORM fetch_binary_data.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = p_object
p_name = p_name
p_id = p_id
p_btype = p_btype
RECEIVING
p_bmp = gv_bindata
EXCEPTIONS
not_found = 1
OTHERS = 2.
gt_picbin = cl_document_bcs=>xstring_to_solix( gv_bindata ).
ENDFORM. "fetch_binary_data
FORM create_url.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = 'X-UNKNOWN'
TABLES
data = gt_picbin
CHANGING
url = gv_url
EXCEPTIONS
OTHERS = 4.
CHECK sy-subrc = 4.
MESSAGE 'Exception occured' TYPE 'I'.
ENDFORM. "create_url
~Jose.
Similar Messages
-
Displaying header in ALV By using OO ABAP
Hi,
I have displayed ALV Grid by using OO ABAP.
Would you please tell me how to disply header for this ALV by Using OO ABAP.
Moderator Message: Please search for available information.
Edited by: kishan P on Nov 22, 2010 8:22 PMHi,
Try this way
form built_sort_table.
data ls_sort_wa type lvc_s_sort.
ls_sort_wa-spos = 1.
ls_sort_wa-fieldname = 'MATNR'.
ls_sort_wa-up = selected.
ls_sort_wa-subtot = ''.
append ls_sort_wa to gt_sort.
ls_sort_wa-spos = 2.
ls_sort_wa-fieldname = 'STATUS'.
ls_sort_wa-up = selected.
ls_sort_wa-subtot = ''.
append ls_sort_wa to gt_sort.
endform.
then
call method grid1->set_table_for_first_display
exporting
it_list_commentary = gt_header[]
is_layout = gs_layout_tree
changing
it_sort = gt_sort[]
it_outtab = gt_yitm[]
it_fieldcatalog = gt_fieldcat_lvc[].
aRs -
How to find which data elements are used in ABAP program ?
I wish to find out which data elements are used in some programs .
Is there any DD table which stores this information ?
I know we can go to program and look in fields, but do SAP stores this information somewhere ?Dear Kaushal,
Please check the table <b>TRDIR</b>.
Regards,
Abir
Don't forget to award points * -
Comas(,) are not getting displayed in the output while using OO ABAP
Hi All,
I am using ABAP objects to display the ALV report in which there is a requirement to output Quantity fields. The Quantity fields are getting displayed without comas ','. Please help me in getting back the comas in the output.
Eg:
Below logic is used in my program.
Class name: cl_salv_form_layout_grid
Code:
obj_footer->create_text(
row = v_row_cnt
column = v_col_cnt
text = Quantity).
Expected output:
39,545.000
Current Output:
39545.000
Thanks in advance for your help.
Thanks & Regards,
Siva.Hi,
Please check if the images are in the server and in the /images alias path.
thanks,
Sharmila -
The idea:
When communicating amongst our own staff via email we'd like to see our display names in this format:
Firstname Lastname (Division/Department/Branch/Unit)
Whereas, when we send emails to people outside the company, we'd like to be seen as:
Firstname Lastname (Company Name)
Is this technically possible?
Regards,
AnthonyPlease read about Exchange Simple Display Name if you are using Exchange in your environment. It should be suitable for your needs, but as far I know not every Exchange version support it.
In Exchange 2003 this Simple Display Name was at Advanced tab of user, but now..
With Exchange 2013, SimpleDisplayName is configured using Exchange Management Shell (EMS)
Example:
Set-Mailbox ALIAS -SimpleDisplayName $True
..and as with Exchange 2007/2010, you will need to enable UseSimpleDisplayName on RemoteDomain.
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
Is Logical Database used in ABAP?????
Hi All,
I m very confused whether LDB's are used in ABAP or not.
i have undergone a small training in ABAP-HR (HCM).
In that training i was told that there is an advantage in HCM that LDB's are used here
which were not used in ABAP.
And i have read somewhere that LDB's are used in ABAP.
can plz sumone give a light on this.
Thanks,
Sonalihi,
The use of a logical database provides you with an alternative to having to program database accesses individually. Logical databases retrieve data records and make them available to ABAP programs.
The same logical database can be the data source for several Quick Views, queries, and programs. In the Quick View, the LDB can be specified directly as a data source. A query works with the logical database when the functional area that generated the query is defined with a logical database. In the case of type 1 programs, the LDB is entered in the attributes or called using function module LDB_PROCESS. See appendix for information on how to use the function module.
Logical databases offer several advantages:
The system generates a selection screen. The use of selection screen versions or variants provides the required flexibility.
The user does not have to know the exact structure of the tables involved (especially the foreign key dependencies); the data is made available in the correct order at GET events.
Performance improvements within logical databases directly affect all programs linked to the logical database, without having to change the programs themselves.
Maintenance can be performed at a central location.
Authorization checks can also be performed centrally.
A logical database is an ABAP program that reads predefined data from the database and makes it available to other programs.
A hierarchical structure determines the order in which the data is supplied to the programs. A logical database also provides a selection screen that checks user entries and conducts error dialogs. These can be extended in programs.
SAP provides some 200 logical databases in Release 4.6. The names of logical databases have been extended to 20 places in Release 4.0 (namespace prefix max. 10 characters).
In the case of executable programs, you can enter a logical database in the attributes.
Use the NODES statement to specify the nodes of the logical database that You want to use in the program. NODES allocates the appropriate storage space for the node - that is, a work area or a table area depending on the node type.
The logical database makes the data records available for the corresponding GET events.
The sequence in which these events are processed is determined by the structure of the logical database.
Logical databases are made up of several sub-objects. The structure determines the hierarchy, and thus the read sequence of the data records.
Hope this helps, Do reward -
Display pdf file using webdynpro abap
Hi Friends,
My requirement is to display pdf file in the second page with the input text entered in the fisrt page when clicked on action
button( in the first page) using webdynpro abap.
Can anybody explain the step by step procedure as I am new to this area.
Thanks in advance.
Reagrds,
NagarajuHi,
Check this.,
Creating a PDF file in webdynpro abap.
Web Dynpro ABAP display pdf
hope this helps u.,
Thanks & Regards
Kiran -
What are the TCodes generally we can use in ABAP?
Hi Abapers?
What are the TCodes generally we can use in ABAP?
Early reply is highely appriciable.
Regards,
Chow.HI Chow,
go thru this t-codes..
S001 Abap Workbench
SE09 Workbenche organizer (Transports)
SE11 ABAP/4 Dictionary
SE16 Data browser
SE24 Class builder
SE30 ABAP Runtime analyzes
SE36 Logical Databases
SE37 Function builder
SE38 ABAP/4 Editor
SE55 Table maintenance dialog
SE80 ABAP/4 Object browser
SE91 Message Classes
SE93 Maintain transaction
SapScript
SE71 Form painter
SE72 Style maintenance
SE78 SapScript Graphics Management
SO10 Create standard text module
Workflow
SWDM Workflow explorer
SWDD Workflow builder
SWUS Start workflow - Test enviromnent
SWU0 Simulate event
SBWP Business workplace
PFTC_INS Create Task/Task group
PFTC_CHG Change Task/Task group
SWUD Dagnosis
SWI1 Work item selection
Batch input
SHDB Batch input recorder
SM35 Monitor batch input
System
SM04 User overview ( Possible to end sessions)
SM12 Lock Entries
SM21 System log
SM30 Maintain table views
SM37 See job status
SM50 See processes
ST22 Short dump analysis
Other
ABAPDOCU ABAP coding examples supplied by SAP
AL11 Look at t directories on the host system ( With drill down )
CMOD Enhancementprojects
LSMW LSM Workbench
OSS1 OSS
SA38 Submit batch job
SE01/STMS Transport system
SLG1 View application log
SLG2 Delete application log
SPAD Output devices
SP01 See spool
SPRO Customizing
SPAM Support packet manage
SU03 Maintain Authorizations: Object Classes
SU51 Display Authorization Data (Can be called after failed authorization)
SWEC Events for change documents
SW01 Business Object Builder
SWO4 Display Businesss Object Types
VOK2 Maintain OutputDetermination
regards
sham. -
Hi,
i do not know how to use ABAP to display logos in screen painter.I want to display logos in screen painter.kindly tell me the ABAP program to use to display logos in screen painter.check the following:
REPORT y_pic_show .
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 = 150
left = 700
top = 10
width = 138.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = 'd:/subhadip.bmp'.
IF sy-subrc NE 0.
* Fehlerbehandlung
ENDIF.
ENDFORM. "show_pic -
I can no longer read my bank statements. I believe they are using a PDF to display this information. If I go to chrome it will open the bank statements but Firefox no longer open these flies. Why??????
It's very unusual to get no results for PDF in the Application preferences list. It's possible that the file which stores those preferences might have become corrupted. Perhaps it would be best to rename or delete the file and let Firefox re-create it.
Here's how:
Open your current Firefox settings (AKA Firefox profile) folder using
Help > Troubleshooting Information > "Show Folder" button
Switch back to Firefox and Exit
Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
Restart Firefox. After things setting down, check the Application preferences again to see whether PDF is listed and then set the drop-down on the right side to the desired action.
orange Firefox button or classic Tools menu > Options > Applications
Does that work any better? -
I have a Macbook pro 13.3 w/ i5 that has no hdmi port. I want to be able to connect the Mac to my TV set to watch Video, Photos and files from Mac to TV.
Is the Thunderbolt port similar to a display port or mini display port? Can I use thunderbolt port to connect thru a mini displayport to HDMI cable or converter?
Been trying to locate a USB to HDMI cable or converter (at a reasonable price) but all I found is a displayport or mini displayport to HDMI cable/converter.
What other options are available ?
Thanks a lot for your assistance.Thunderbolt uses a Mini DisplayPort adapter to send video and audio to HDMI. Here's some on Amazon http://www.amazon.com/s/ref=nb_sb_ss_c_2_8?url=search-alias%3Dcomputers&field-ke ywords=mini+displayport+to+hdmi&sprefix=mini+dis%2Caps%2C249#/ref=nb_sb_noss?ur l =search-alias%3Dcomputers&field-keywords=mini+displayport+to+hdmi+with+audio&rh = n%3A172282%2Cn%3A!493964%2Cn%3A541966%2Ck%3Amini+displayport+to+hdmi+with+audio
-
How to create a view to display Multiple lines of Text using ABAP WebDynpro
Hi,
I need to create a static view page in ABAP WebDynpro that displays Static text data in multiple paragraphs. I tried to use textview, formatted text, text edit controls by binding the textcontrol to a text object that is created in so10, but the output I am getting is only one line and the character count is limited to 60 to 65 characters.
I would like to know which control needs to be used in ABAP Webdynpro to get multiple lines displayed with text formatting like Paragraph, Indenting and Size.....
Thanks for your time!
Madhavi.Find the sample codes:
data sapscript_lines type tlinetab.
data sapscript_lines1 type tlinetab.
data sapscript_tline type tline.
data sapscript_head type thead.
data text type string.
data formatted_text type ref to cl_wd_formatted_text.
call function 'DOCU_GET'
EXPORTING
id = 'TX'
langu = 'D' "Germany language
object = 'WDR_TEST_HELP_EXP1'
IMPORTING
head = sapscript_head
TABLES
line = sapscript_lines
EXCEPTIONS
no_docu_on_screen = 1
no_docu_self_def = 2
no_docu_temp = 3
ret_code = 4
others = 5.
if sy-subrc <> 0.
text = space.
endif.
formatted_text = cl_wd_formatted_text=>create_from_sapscript(
sapscript_head = sapscript_head
sapscript_lines = sapscript_lines
" set it into the context
if Not ( formatted_text is initial ).
wd_context->set_attribute(
name = 'FORMATTED'
value = formatted_text->m_xml_text ).
endif.
clear sapscript_head.
clear sapscript_lines.
*Get the text created by SO10
CALL FUNCTION 'READ_TEXT_INLINE'
EXPORTING
ID = 'ST'
INLINE_COUNT = 1
LANGUAGE = 'E' "English language
NAME = '85XX_FOOTER'
OBJECT = 'TEXT'
LOCAL_CAT = ' '
IMPORTING
HEADER = sapscript_head
TABLES
INLINES = sapscript_lines1
LINES = sapscript_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
OTHERS = 7
formatted_text = cl_wd_formatted_text=>create_from_sapscript(
sapscript_head = sapscript_head
sapscript_lines = sapscript_lines
" set it into the context
if Not ( formatted_text is initial ).
wd_context->set_attribute(
name = 'FORMATTED1'
value = formatted_text->m_xml_text ).
endif. -
hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators, we are unable to view the icons we need to move the simulator (into different places) to view the icons.
Also we are having Mac book pro's (Late 2009 & 2010) after upgrading them to 10.8.5. Unable to launch the mac, getting only white screen with apple icon.
Let me know is there any specific Hardware (Graphic Cards) we need to use for the same.
Please provide me the early solutions.
Regards,
Suresh.Hi, try this first...
Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions. -
Did IOS8 upgrade w/iPhone5 / lost names associated when using e-mail - only displaying telephone numbers / what are the steps to correct to show names?
maybe OP want to extract all numbers from his inbox using regular expressions?
-
To Display Logo on all the pages of Excel Sheet using OLE
Dear friends,
I have developed one report using OLE which display output in Excel. I have display logo using OLE.
I am able to display logo on first page of excel sheet. but I am not able to display it on all the pages.
Need your help. Please, suggest any good solution.
Thanks & Regards,
Sandip SonarExcel repeats only HEADER and FOOTER information on every page. The data on cell is relevant only for that page.
If you want to print something on every page in Excel, you will have to include it on HEADER/FOOTER section of the excel file.
To check this, go to excel, on meny go to File->PageSetup. Then select Header/Footer Tab... select Custom Header or custom footer.
Whatever you inset here (including image) will be printed on every page of Excel. Don't know OLE property to set this but I feel something should be available to set custom header footer for your file.
Maybe you are looking for
-
Is there a way to find out if sync is doing anything?
The sync between my iPad2 (ios5) and iMac (10.7.2) doesn't seem to want to stop (iTunes 10.5 64bit). The status bar in iTunes says that it is doing step 8 of 8 and that it is waiting for things to be copied. The iPad is connected via USB to iMac and
-
Power Nap is not working? and I cannot turn it on or off?
I Have no option in power saver about power nap and it has not been updating when put to sleep. I am on a MacBook Pro
-
When I copy text from a .pdf to a Word document, all words containing the combination 'tt' or 'ti' come up as blank boxes,or question marks. How can I correct this?
-
I am getting a message the something called Completer wants to finish installing. I get this whenever I log in. What the **** is it?
-
Yikes! I have tried to install Oracle 8i Personal on Windows ME and get the following error: "Jrew has caused and error in JAVAI.DLL Jrew will now close.". I modified my win.ini [compatiblity95] jrew=0x00080000 and it STILL doesn't install. Any sugge