Remove Application toolbar option in PDF
Hi all,
I'm displaying PO document like in ME29N print preview.In which i have used IFRAME UI Element to pass the PO data by converting the OTF File format to PDF using FM - 'CONVERT_OTF'. But it shows with Application Toolbar of PDF with PRINT and SAVE Option. I dont want to show that option in IFRAME. Is there any option of removing/hiding those option . Or is there anyway of showing the PO document without print and save option. Can anyone help me with this. below is my coding,
CALL FUNCTION fname
EXPORTING
output_options = outopt
control_parameters = conpar
user_settings = ' '
ls_ekko = l_doc-xekko
ls_nast = l_nast
IMPORTING
document_output_info = docout
job_output_info = jobout
job_output_options = jobopt
TABLES
i_ekpo = l_doc-xekpo
t_eket = l_doc-xeket
t_ekkn = l_doc-xekkn
t_komv = l_doc-xtkomv
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
call function 'CONVERT_OTF'
exporting
format = 'PDF'
MAX_LINEWIDTH = '100'
PDF_DELETE_OTFTAB = 'X'
importing
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
tables
otf = jobout-otfdata
lines = lt_lines.
create object cached_response
type
cl_http_response
exporting
add_c_msg = 1.
l_pdf_len = xstrlen( l_pdf_xstring ).
cached_response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
call function 'GUID_CREATE'
importing
ev_guid_32 = guid.
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'APPLICATION_NAME'
importing
out_host = host
out_port = port
out_protocol = protocol
out_local_url = local_url
out_absolute_url = abs_url.
concatenate abs_url '/' guid '.pdf' into display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
DATA lo_nd_url TYPE REF TO if_wd_context_node.
DATA lo_el_url TYPE REF TO if_wd_context_element.
DATA ls_url TYPE wd_this->element_url.
DATA lv_linkurl LIKE ls_url-linkurl.
navigate from <CONTEXT> to <URL> via lead selection
lo_nd_url = wd_context->get_child_node( name = wd_this->wdctx_url ).
get element via lead selection
lo_el_url = lo_nd_url->get_element( ).
get single attribute
lo_el_url->set_attribute(
EXPORTING
name = `LINKURL`
value = display_url ).
Regards,
Ramesh
Hi
Please go to the view where you have the PDF object.
Goto its WDDOMODIFYVIEW then type the code below.
data:
lr_method_handler type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL,
lr_interactive_form type ref to cl_wd_interactive_form.
do it only once
If first_time = abap_true.
get the method handler
lr_interactive_form ?= view->get_element( 'FINAL_PDF' ).
lr_method_handler ?= lr_interactive_form->_method_handler.
hide the toolbars
lr_method_handler->set_hide_toolbars( abap_true ).
Endif.
Please make sure you type the correct name of the 'Interactive Object' in your layout. In my case,
my interactive form object name in the layout is FINAL_PDF.
Hope this help.
Thanks
SK
Similar Messages
-
Using application toolbar push buttons in report
Hello folks,
I'm new to ABAP and so i'm facing some problems with my code.
I have copied a standard program to my Z program (ZXXXXX). I have added few push buttons to the application toolbar of the Z program (ZXXXXX) and now on click of the 1st button i need to call another standard program.
Where should I write the code for the action to be performed on click of the buttons? I am aware that it is generally written in the PAI module but I did not have this module, its a normal report program and not a module pool.
Need your help.
Thanks in advance.Welcome on SCN!
Please do not forget to read Welcome and Rules of Engagement
As for the question, you would need to clarify where this application toolbar option is placed:
- in selection screen?
- in list (output of program)?
If first applies, do as above suggested (using AT SELECTION-SCREEN event).
If second is what you need, use event AT USER-COMMAND .
In both cases variable sy-ucomm will hold function code of triggered function (i.e sy-ucomm = 'MY_BUTTON' ). If that condition is fulfilled simply use SUBMIT 'MY_PROGRAM' AND RETURN , or just SUBMIT 'MY_PROGRAM' if you don't want to get back to calling program.
Regards
Marcin -
<blockquote>Locking duplicate thread.<br>
Please continue here: [[/questions/913026]]</blockquote>
after i changed the setting in application tab in options : open pdf doc by adobe by default, the "Ask" window still pop up every time. How to fix this ?How do I fix this problem ...javascript (cid) applications.
-
How do I remove a toolbar from my homepage that I don't want?
How do I remove a toolbar from my homepage that was added when I downloaded software?
What is the name of the toolbar?
It depends on how the toolbar was installed:
*Some are controlled by settings in the application that installed it
*Some are simple extensions and can be un-installed in Tools > Add-ons > Extensions
*Some are installed as programs and are un-installed in (Windows) Control Panel > Add or Remove Programs
See: http://kb.mozillazine.org/Uninstalling_toolbars
<br />
The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
*Adobe PDF Plug-In For Firefox and Netscape
**New Adobe Reader X (version 10) with Protected Mode just released 2010-11-19
**See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
#'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
#*'''Note: plugin check page does not have information on all plugin versions'''
#'''Update Adobe Reader (PDF plugin):'''
#*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
#**Open the Adobe Reader program from your Programs list
#**Click Help > Check for Updates
#**Follow the prompts for updating
#**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
#*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
#**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
#**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
#**Click "Save to File"; save to your Desktop (so you can find it)
#**After download completes, close Firefox
#**Click the installer you just downloaded and allow the install to continue
#***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
#**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
#***Choose your OS
#***Choose the latest #.x version (example 9.x, for version 9)
#***Choose the highest number version listed
#****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
#***Choose your language
#***Download the file
#***Windows: choose the .exe file; Mac: choose the .dmg file
#*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
#**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
#**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
#*After the installation, start Firefox and check your version again. -
Add Button to GUI STATUS Application toolbar
Hi,
I have to add a button in the application toolbar of a gui status. I have done that many times before, but I never got into trouble like this time....
When I open the Gui status and the tree for the application toolbar, I can see already set buttons. When I now click on change (a modification warning comes) and press the plus-icon, it is possible to enter a new item. But everything I´m typing, I get the message Function code XXXX has not been assigned to a function key. I have never got this before....
When I now go to SE41 and enter a new function key, I can´t use it either afterwards as a button in the application toolbar.
In the tree of the function keys, I can´t change anything...
What can I do here? The program name is SAPMZLCG, so it has been modified sometimes. But how can I change the GUI STATUS now to add a new button?
Thank you!You need to goto the application toolbar and the add your text to the items and click below the text you will get one popup which will ask for static text and dynamic text. select statictext and then add all the information like text name and if you want to add an icon you can do it aswell. the there will be another popup for fuction attributes where you will be able to find some options loke fuction types and reaction need to select all that and then click on the ok button and save check and activate the same and after that activate and check whether the button is visible or not. once the button is visible then you need to check for the ok_code and sy_ucomm and then insert the fuctionality of the button.
I hope this might solve your problem. -
How can I remove a page from a PDF document and save it as a new PDF document?
How can I remove a page from a PDF document and save it as a new PDF document?
Tools - Pages - Extract and tick the option to delete the extracted page from the original file.
-
Add or remove applications from Startup in LION
We just did a migration from Tiger to Lion for our primary Mac user and now, on her new machine running Lion, Microsoft Excel and Microsoft Entourage launch every time she starts up her PC. Microsoft Excel was not even in her Startup on her old system.
I followed the instructions provided in this link: http://www.apple.com/findouthow/mac/#appstartup for adding and removing applications from a user's Startup in Lion. For this user, there are no Microsoft 2008 applications listed. She is the only user on the computer - there is a guest account that is shown but cannot be accessed or modified from the Users and Groups folder in System Preferences.
So, my question is: Is there another way to see what would be the equivalent of the "Startup" folder in Windows on an iMac running Lion? Or am I missing something? How did Excel get into Startup? How do I get it out?
MartyAs it turned out, I noticed that when you shut down or restart the computer, a question box comes up asking "Are you sure you want to restart/shutdown your computer now?" There is a check box next to the option "Reopen windows when logging back in", which is checked by default. I discovered that if you uncheck that box just one time, it will not attempt to open any applications that were open during any previous shutdown. It appears to sort of 'wipe the slate clean'. That is how I got it to stop launching Microsoft 2008 applications on every startup even when they were not in the user's Login Items. And they were not set for Open At Login.
This one led me a merry chase! Thanks to all who responded. -
How Do I Get Rid Of The Application Toolbar In CS4?
I can seemingly turn everything else off. I don't want the Application Frame. I don't want the Application Toolbar. I just don't want it. My screen real estate is valuable to me and it's in the way. I can't even dock it on a side or as a tab somewhere. I need the vertical screen real estate. Where do I turn this off? And if it isn't possible--why NOT? This is a serious gripe and I'm going to see if I can scrounge up an old copy of PS. This is a waste of $700.
I humbly submit that I was wrong. And sorry for the rant; this has been bugging me for a while. The menu item was indeed there--after I restarted PS while holding down command-option-shift. Best guess is something corrupted while/shortly after installing.
-
Buttons on ALV Application Toolbar
Hi,
I have added buttons on the Application Toolbar of the ALV (in the GUI status).
There are a lot of buttons and due to lack of space some of the buttons go out of the screen.
Need to know if there is a way to make these buttons scrolable or in a dorp down.
Thanks for the help.
KarenHi Karen,
I also faced the same issue but solved it using alternative solution.
1) Go to PF-STATUS and create a MENU BAR.
2) Give Appropriate NAME and inside it write FUNCTION CODE given for buttons under "Code"
3) Appropriate description under "Text"
4) Save and activate.
Now, execute the report and even if the buttons are going out of screen, you have option to select the button from MENU BAR.
This is the best solution for this problem as far as i know.
Also, if you re-size your window ; the you will get tabs with drop down.
I hope this will help you in solving your issue.
Regards,
Rahul Mahajan -
How to remove the toolbar from Excel / Office
I will never need to use Contribute in any Office App. I want
to remove the toolbar from Excel, at the moment. I have tried every
way conceivable to get rid of the toolbar yet it comes back when I
restart Excel. What do I need to do to make it go away for ever? It
shouldn't be this hard! I have unchecked its toolbar box 20 times,
yet it comes right back...quote:
Originally posted by:
Christyb
Instead of a custom install, etc., you can rename these files
under Program Files/Adobe..etc..
OfficePlugin.dll
OfficePluginRes.dll
to get rid Contribute toolbars and menus in Word and Excel.
I know that it's late for this thread and you may never see
this, but just in case you do... a big thank you from me as well. I
installed Contribute only because I thought that I might see what
it does some day. I still haven't figured out anything even
remotely useful, and yet I had that accursed indelible toolbar
inflicting itself on me every time I opened an Office application.
I generally like Adobe software, but they made a meal of that one. -
How to deactive a button in application toolbar
how to deactive a button in application toolbar?
Simple example
This example shows how to create a toolbar with a single Exit button, used to exit the program.
Steps:
Create a screen and add a custom container named TOOLBAR_CONTAINER
Code:
REPORT sapmz_hf_toolbar .
TYPE-POOLS: icon.
CLASS cls_event_handler DEFINITION DEFERRED.
G L O B A L D A T A
DATA:
ok_code LIKE sy-ucomm,
Reference for conatiner
go_toolbar_container TYPE REF TO cl_gui_custom_container,
Reference for SAP Toolbar
go_toolbar TYPE REF TO cl_gui_toolbar,
Event handler
go_event_handler TYPE REF TO cls_event_handler.
G L O B A L T A B L E S
DATA:
Table for registration of events. Note that a TYPE REF
to cls_event_handler must be created before you can
reference types cntl_simple_events and cntl_simple_event.
gi_events TYPE cntl_simple_events,
Workspace for table gi_events
g_event TYPE cntl_simple_event.
CLASS cls_event_handler DEFINITION
CLASS cls_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
on_function_selected
FOR EVENT function_selected OF cl_gui_toolbar
IMPORTING fcode,
on_dropdown_clicked
FOR EVENT dropdown_clicked OF cl_gui_toolbar
IMPORTING fcode posx posy.
ENDCLASS.
CLASS cls_event_handler IMPLEMENTATION
CLASS cls_event_handler IMPLEMENTATION.
METHOD on_function_selected.
CASE fcode.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD.
METHOD on_dropdown_clicked.
Not implented yet
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
SET SCREEN '100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
IF go_toolbar_container IS INITIAL.
Create container
CREATE OBJECT go_toolbar_container
EXPORTING
container_name = 'TOOLBAR_CONTAINER'.
Create toolbar
CREATE OBJECT go_toolbar
EXPORTING
parent = go_toolbar_container.
Add a button
CALL METHOD go_toolbar->add_button
EXPORTING fcode = 'EXIT' "Function Code
icon = icon_system_end "ICON name
is_disabled = ' ' "Disabled = X
butn_type = cntb_btype_button "Type of button
text = 'Exit' "Text on button
quickinfo = 'Exit program' "Quick info
is_checked = ' '. "Button selected
Create event table. The event ID must be found in the
documentation of the specific control
CLEAR g_event.
REFRESH gi_events.
g_event-eventid = go_toolbar->m_id_function_selected.
g_event-appl_event = 'X'. "This is an application event
APPEND g_event TO gi_events.
g_event-eventid = go_toolbar->m_id_dropdown_clicked.
g_event-appl_event = 'X'.
APPEND g_event TO gi_events.
Use the events table to register events for the control
CALL METHOD go_toolbar->set_registered_events
EXPORTING
events = gi_events.
Create event handlers
CREATE OBJECT go_event_handler.
SET HANDLER go_event_handler->on_function_selected
FOR go_toolbar.
SET HANDLER go_event_handler->on_dropdown_clicked
FOR go_toolbar.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
http://www.erpgenie.com/abap/controls/toolbar.htm#Simple%20example
http://help.sap.com/saphelp_nw04/helpdata/EN/42/d2ab343e416635e10000000a1553f6/content.htm
help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITOOLBAR/BCCITOOLBAR.pdf
Regards,
Jagadish -
Screen Application toolbar.
Hi Experts,
I have created two buttons on application toolbar i.e. SAVE And CHECK.
my requirement is when any one click on CHECK button then only SAVE button should active.
how to do this?
Thanks,
AbhishekHi Tarun,
I didn't understand whether it would work with the code you have given,
START-OF-SELECTION.
SET PF-STATUS '<pf_status_name>' EXCLUDING 'SAVE'. "disable save button
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'CHECK'.
SET PF-STATUS '<pf_status_name>'. "enable save button when CHECK is clicked
"other code
ENDCASE.
once you have set the pf-status, i doubt if it would work without using the immediately option...
please check it out...
Hi Abhishek,
is it working without immediately option as well.... please do let me know as I tried from my end tarun's code was not working without immediately option and it worked with the code I pasted just before tarun.
Regards,
Pinaki -
How to Grey(Deactivate) Function Code at application Toolbar of a screen
Hi all,
I want to gray(deactivate) function codes at application toolbar of a normal screen. I am using excluding addition of set pf-status but it hides the button from the application tool bar.
I don't want to hide button, but gray only.
Thanx in advance.When editing the PF-Status itself, try selecting the menu option and then F7 (the Function Code / Activate / Deactivate button, or menu Extras > Function Active <-> Inactive).
Jonathan -
GOS in Custom Application Toolbar
I am trying to use "CREATE_ATTA" service of GOS on custom application toolbar. system is giving dump on DISPATCH_SERVICE of CL_GOS_TOOLBOX_VIEW. I have maintained entry in table SGOSATTR .
The detail is as follows:
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
ERROR ANALYSIS
When specification a handler for an event in the SET HANDLER statement,
the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.what is it your are trying to do?
If you just want to use the GOS toolbar in your own development I don't think you should add anything to SGOSATTR. This must be to add additional services to the GOS toolbar, but as I understand your message, you just want to use existing function CREATE_ATTA.
I have made a simple program with a dynpro 100 showing a salesorg. with the GOS toolbar. I use this program to upload xls, doc and pdf documents and link them to the salesorg.
If it is a similar requirement you have, I could post the abap code.
best regards -
Remove the toolbar for the LSO Content Player Window.
Hi All,
We are implementing SAP LSO. In the BSP Application HCM_Learning, I am able to run the course by clicking on link 'Start Now'. The BSP page related to this is "Training Home.htm".
Now a new window popup up ( ie) the content player popup in a new window and plays the course. I want to remove the toolbar from this new popup window.
I changed the toolbar value from yes to no in the Function Popup() defined .
function popup(t, b)
thePopup = window.open (b,t,"toolbar=no,menubar=no,width=300,height=250,scrollbars,resizable");
thePopup.focus();
But still i'm getting that toolbar in the popup window.
How can i resolve this.?
Please give me your valuable inputs.
Thanks,
Eben Joyson.Hey Ravi,
Thanks for sharing your perspective.
After thinking further about the real estate question, I believe that, at least in the US, most instructional designers aim to present content at 800x600 pixel size. This accounts for differing monitor sizes, etc. If this is the case, then good instructional design (e.g. don't put too much content on a screen at once) should assure that content could be played in-line (in the BSP page). Since the navigational controls are at the bottom, that wouldn't have any effect on width of the page and could also be accommodated.
I'm still of the opinion that SAP LSO (and all leading LMS systems) should evolve to presenting content in the base window. Perhaps there are some extreme exceptions where the extra real estate would make a true difference. In that case, perhaps the learner should be offered an LSO learner setting where they can choose to display content in-line or in a separate window....let them decide Alternatively, one could offer the Training Administrator an infotype setting where they specify whether the content should be displayed in-line (default) versus in a separate popup (this could be used on an exception basis).
Gary
Edited by: Gary Pearl on Oct 29, 2008 9:25 AM
Maybe you are looking for
-
SharePoint Search Service Application Restore Is Failing
Issue: When performing a Search Service restore with the CA UI, the restore is failing. The backup was generated from a Full level backup that is run nightly from the cmdlet Backup-SPFarm. The Farm is running SharePoint 2013 SP1, Windows Server 2012
-
Hello any time an email come and open it with firefox i can not translate it in to greek i can not find where is this option too. please help me and thank you very much
-
Will Power Up! Won't Start Up! HELP!!!
Weirdest thing I've seen(well almost) in all the years I've owned macs. I have a 15" pre-2008 MacBook Pro. It has 10.6x installed. After shutting down the other day I wiped down the laptop(just a dry clean cloth), including the keyboard. Went to bed.
-
R/3 report that can show the inventory aging
Hi Gurus, Pls adv whether there is any R/3 report that can show the inventory aging. We know there is a BW report RDD861 can serve this purpose but we would like to have same report pulled from R/3. please advice asap and do the needful. Rega
-
i was able to locate the BBPCRM module but it is for crm version 4.0 and i can not find one for version 4.1. I also tried to find some documentation but i can not find any documentation about this module. anybody any suggestions ?