Differentiate between print and print preview event trigger for sapscript

Hi guys,
For sapscript, is there a way to know if the user presses the print or the print preview button? I need a way to determine if it is a print or print preview event triggering.
I've checked the OPEN_FORM fm but found nothing useful.
Please help. Thanks in advance.

This is not supported by SAP, but well this is a possibility:
FIELD-SYMBOLS <ls_itcpp> TYPE itcpp.
ASSIGN ('(SAPLSTXC)ITCPP') TO <ls_itcpp>.
IF sy-subrc = 0.
* here you may use <ls_itcpp>-tdpreview
ENDIF.
Another way maybe is to declare the interface work area ITCPP (shared data in the same internal session):
TABLES ITCPP.
* here you may use itcpp-tdpreview

Similar Messages

  • When I try to print a photo from iphoto, I select the photo, click print and the preview shows there is a lot of the photo cut off.  It also prints this way.  How can I print the whole picture?

    When I try to print a photo from iphoto, I click print and the preview shows a lot of the photo cut off.  It also prints this way.  How can I print the whole photo?

    After selecting File > Print, a pop-up window should appear. Select "Customize" and this should take you back into a panel within iPhoto. Towards the bottom, you should see an option for "Layout". Select this option and choose the correct photo orientation.
    Hope this helps!

  • How to fetch print and print preview variables

    hi everyone,
                          my requirement is as soon as sales order created. printout of that sales order will be taken at the same time email should be send to that particular customer.
    the problem is the email is sent as soon as we check the print preview itself.
    but the mail should be sent afte the pressing print button only.
    how to fetch print or print preview by program
    regards
    karthe

    Hi everyone,
    I have tried open form and close form
    The itcpp-tdspoolid eq '0' for both print and print preview.
    I have set the open form
    dialog = 'X'.
    have i got to set anything in open form.
    this is my open form and close form.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DIALOG = 'X'
    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 'CLOSE_FORM'
    IMPORTING
    RESULT = itcpp
    IF SY-SUBRC ne 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    if itcpp-tdimmed eq 'X' and itcpp-TDSPOOLID ne ''.
    endif.
    regards
    karthe

  • Encrypting network between computer and printer

    I would like to encrypt a network between computer and printer but I see references to ASCII and hexadecimal which I don't understand. Please can anyone explain in simple terms how to go about this?

    The picture you showed is the settings for a WiFi network. There are four main types of encryption 40bit WEP, 128bit WEP, and WPA or WPA2. (I am ignoring WPA2 Enterprise as it is unlikely the printer is capable of this.)
    WEP and WPA and WPA2 have all been cracked although it is still the case that WPA2 is better than WPA which in turn is better than WEP. On that basis while using eny of these encryption schemes is better than nothing if you are really concerned with security you would be better using an Ethernet cable.
    WPA2 Enterprise is still somewhat secure but as its name suggests is not general suitable for home or small office setups.
    With regards to ASCII and Hex, WEP passwords can be entered in either style, they would in fact be the same just entered differently. It is possible to convert an ASCII value to Hex and vice-versa.

  • Is there a difference between AirPrint and printing via usb printer plugged into an airport extreme?

    My printer does not show up in the add a printer option on my iMac when plugged into the extreme. I have a HP officejet 5610 All-in-One. I want to be able to print wirelessly using my Airport Extreme.  Thank you

    Is there a difference between AirPrint and printing via usb printer plugged into an AirPort Exreme?
    Big difference. 
    AirPrint for one will not work via USB, so you will not be able to print from an iOS device like an iPhone or iPad using this type of connection unless you look at additional software....that may or may not allow this option.
    Assuming that you get the All-in-One setup using the USB port on the AirPort.......only printing is supported.
    You will not be able to use any other advanced features like maintenance, scan, copy, fax, etc when the device is connected to the USB port on an AirPort.
    If you plan to use the HP for other things, I would strongly recommend that you connect it to your computer.
    My printer does not show up in the add a printer option on my iMac when plugged into the extreme.
    This usually indicates that your printer model is not supported. Check with HP Support to see if they have any updated Macintosh drivers for the 5610 that you could download and install that might allow this.
    HP Officejet 5610 All-in-One Printer Drivers - Hewlett Packard

  • Htmlb:tree differentiate between nodeclick and tree node expander click

    Hi,
    how can i differentiate between nodeclick and tree node expander (to get to its children) click in my event processing in htmlb:tree element.
    <u><b>What i am trying to achieve?</b></u>
    Onload just load root node and its immediate children.
    On node expand get the children of the current node and modify htmlb:tree table2 with additional node inofs.
    on node click  call some client function.
    But my issue is that i am not able to differentiate between node expander click and node click in my event handling. Any help on this is appreciated.
    (I am not using MVC)
    Thanks in advance.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

    After reading your weblog I think I understand better. I did some testing with my example.  I am using the toggle = "true", so that the page returns to the server each time an expander is selected.
    <htmlb:tree id          = "myTree1"
                  height      = "75%"
                  toggle      = "true"
                  title       = "<b><otr>EQI Reporting Tree</otr></b>"
                  width       = "90%"
                  onTreeClick = "myTreeClick"
                  table       = "<%= application->selection_model->itview                             %>" >
      </htmlb:tree>
    However I have not added any coding in my event handler to respond to the expander event.  I only respond to myTreeClick (which loads some data for the given selection).  The BSP tree element itself must be doing the hard work for me. 
      if event_id cs 'tr_myTree1'.
        data: tree_event type ref to cl_htmlb_event_tree.
        tree_event ?= htmlb_event.
        if tree_event->server_event = 'myTreeClick'.
          clear appl->message1.
          appl->selection_model->get_chart_data( appl = appl
                                                 node = tree_event->node ).
        endif.
      endif.
    I pass my entire tree defintion to the element.  It appears that it only sends visible nodes to be rendered. When the expander is selected, I don't have to do anything, the tree re-renders with only the newly visible rows. 
    I tested and turned off the toggle (toggle = "false") and my page took forever to load because it was sending all the nodes to the frontend on the first load.

  • How do i set up the eprint from my blackberry so i can send emails to my printer and print them off

    how do i set up eprint on my blackberry so i can send emails from my phone to the printer and print off

     Hi Tanya_Carroll,
    You can follow this link to set up ePrint. 
    http://h71028.www7.hp.com/hho/us/en/ep/articles/setting-up-mobile-printing.html
    Once ePrint is setup, you can send an email to the printer's email address.
    Be sure to use one of these email clients when sending to the printer.  If the Blackberry will not send using your original email address, setup a new email account on the Blackberry and try again.
    Hotmail, Yahoo! Mail, Gmail
    BlackBerry mail clien
    Although I am an HP employee, I am speaking for myself and not for HP.
    If I have resolved your issue, feel free to provide Kudos and make sure you mark this thread as solution provided.

  • Differentiate between mapping and optimization.

    Hi
    tell me some thing about this.
    Differentiate between mapping and optimization.
    please
    urgent. imran

    user571615 wrote:
    Hi
    tell me some thing about this.
    Differentiate between mapping and optimization.
    please
    urgent. imranThis is a forum of volunteers. There is no urgent here. For urgent, buy yourself a support contract and open an SR on MetaLink.

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • Servlet filter that can differentiate between Filter and Servlet Writers

    Hey,
    I'm trying to build a Filter and HttpServletResponseWrapper that, when applied to a generic servlet, can differentiate between the output stream from the Servlet and the one from the Filters.
    So, say I have a servlet:
    PrintWriter pw = response.Writer();
    pw.write( "Output from servlet" );
    pw.close();And a filter that is applied to the servlet:
    PrintWriter pw = response.Writer();
    pw.write( "Output from filter" );
    pw.close();I want to be able to do this in my filter that is able to differentiate between the servlet and filter response:
    System.out.println( "Response from servlet: " + responseWrapper.servlet.toString() );
    System.out.println( "Response from filter: " + responseWrapper.filter.toString() );The responseWrapper.servlet and responseWrapper.filter can contain all filter responses from all the servlet(s) and filter(s), respectively.
    Can anyone give me guidance as to how to start with this - really I just need to know if I can differentiate between servlet and filter responses in a generic way (without having to modify the response specially in the filter or servlet files that write output)
    Thanks for your time.

    first thing's first..if the OutputStream if not closed Either a Filter or a ServletChain can write on to the stream.
    There could be cases where the servletoutputstream would be closed at servlet end itself.Therefore,its a valiant effort by acomplishing a responseheader in the response to indicate that.
    Now once the response/outputstream is not closed or flushed out there is not direct way by which you do this unless we indicate using response Headers as flags when we are implementing FilterChaning.
    Hope that might help :)
    REGARDS,
    RaHuL

  • AirPlay won't recognize printer and print although HPprint app does

    My iPad will not print from AirPlay and shows no printer on my wifi network from AirPlay. However,  I can print from my HPprint app and the app recognizes my printer on my wifi network. Any suggestions to get AirPlay to recognize the printer and print?

    HP Photosmart C4795.
    Maybe not on the approved list even though the app recognizes it?

  • Differentiate between Items and Customer Items

    Differentiate between Items and Customer Items
    pls try to give information about this
    thanx

    Hi Joel,
    Funny you mentioned it, because just today I was thinking about that, and I thought that if it will happen, I will rant you on your forum dereliction of duties. So it seems you’re off the hook now :)
    Anyway, judging from the last 3.0/3.0.1 versions it seems like you are doing your other duties very well so I really don’t mind you keeping the lead.
    Best regards,
    Arie.

  • Slow Print and Print Setup command in Reader Ver. 8.1.2

    Print and print setup command take over 30 seconds to load on Reader ver. 8.1.2. I tried ver 6 and same thing happens. Using the print shortcut and same thing happens.
    System: New Dell computer (Windows XP Pro, SP2). Any advice would greatly be appreciated.

    You are not alone. Same problem here on a brand new computer with 2GB of RAM. Three minutes total to print a small, black and white 1 bit, 15 page pdf file. Previous to 8.1.2 (8.1.1) the same version printer drivers (Xerox Phaser 8860 Series) worked fine (both PS and PCL versions). I've been trolling for a fix this morning - so far nothing.

  • HT4356 I GOT AN EPSON WP-4533 WHICH HAS AIR PRINT AND PRINTS FROM MY MAC AND MAC BOOK W/O PROBLEMS, BUT WON'T PRINT FROM MY IPHONE.  IT IS NOT ON THE ABOVE LIST OF PRINTERS, BUT BOTH EPSON AND APPLE SAID IT WILL WORK.

    I GOT AN EPSON WP-4533 WHICH HAS AIR PRINT AND PRINTS FROM MY MAC AND MAC BOOK W/O PROBLEMS, BUT WON'T PRINT FROM MY IPHONE.  PROBABLY BECAUSE IT'S NEW IT'S NOT ON THE APPLE LIST OF PRINTERS, BUT BOTH EPSON AND APPLE SAID IT WILL WORK. ANY THOUGHTS

    Some things you can try.
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • Can I hook up my ipad to a printer and print with it?

    I work in a rural area where we can only get satelite internet. We want to start printing orders here and I know there is an app for printing, however we do not have a wireless printer, Do we need to buy one or can I use the charging cord my Ipad came with and hook it up with the USB to my existing printer and print that way? Any help would be greatly appreciated!
    Tiffany

    You'll need a printer that is compatible to AirPrint, see this article:
    http://support.apple.com/kb/HT4356
    You can't use the cord to connect.
    There are apps inn the app store that let you print over the Internet, without having an AirPrint compatible printer.

Maybe you are looking for

  • Error in joining Total A/R Down Payment Invoice with A/R Invoice.

    Hi Everybody, After creating a sales order for a customer, with the help of that sales order I had created the A/R Down Payment Invoice. But while making A/R Invoice, when I browse for A/R Invoice down Payment It shows  me the error, No down payments

  • IWeb 08 crashes on publishing

    I just upgraded from iWeb 1.1.2 to 2.0 and when I try to publish my site - with no changes to the site from how it was before the upgrade - iWeb crashes. I've tried it multiple times, all with the same result. It seems I am not alone in experiencing

  • After update IOS8 i can't do anything  even an hard reset doesn't work. The logo stay's what can i do about it?

    My Ipad 2, 16GB, model A1395 I was updating from IOS 7.1.2. to IOS 8 the update ask for it. After update IOS8, I can't do anything. I try to restart the hard way by puching both button's Ather doing this it goes down. Ather pushing the starting butto

  • Converting WBS element from internal format

    HI, I have data from R/3 rolling into ODS from datasource and it comes in as the SAP WBS internal format 12345 instead of AZ/12678/10000/2000 etc. The WBS field on the datasource already contains a conversion routine but is there any way that I can g

  • How to get Repeater's runtime height

    Hi, I have a Repeater that may contain several 'Text' UI components at runtime. Now I need the total height occupied by these collective text UI elements. Please let me know how to do it. Thanks, Amey