Capturing the Print Event

Hi Guys,
A newbie here!
I have been reading a lot but I can't seem to find the answer I'm looking for.
See, I have created a report in SAPScript. Basically, I need to create a table (have done that) to record when the document was initially printed, as well as the latest date when it was reprinted.
For succeeding prints, I have to mark the document with the label "reprint".
The question is, how do I capture the "print event" so I can record said data.
I need to capture the event
       1. when the user clicks on the print button of the initial dialog box; 
       2. when the user clicks the print button on the standard menu when he goes on print preview; and
       3. when the user clicks print from the system menu.
Thanks much!

Hi,
Thanks! I know NAST is a message status table, but how would I connect it from there? How would it determine that the output was printed. Is there a way to know the object key that my program would create?

Similar Messages

  • UCM workflow: Unable to capture the reject event.

    Hi guys,
    We are using UCM 11.1.1.5
    We want to customize our workflow with 3 stages. If a particular user rejects the workflow, we want to display a error message and abort the reject action.
    hence we wrote under the Entry event of the previous stage as follows
    <$if wfAction like "REJECT"$>
    <$abortToErrorPage("Sorry you cannot reject this stage.")$>
    <$endif$>
    But we found that the script was not triggered when a user clicks on Reject button. Is there anyway we can capture the Reject Action?
    Is it a bug in UCM 11.1.1.5? Anybody faced similar problem.
    Please help us
    THanks & Regards
    Jacob

    hi,
    Unfortunately I don't have the solution as I also am facing the same issue. You can also follow my thread here at the forum. Search for "workflow issue using wfAction" here at the forum.
    Have you tried to run the test under the Test tab and what results do you get?
    cheers,
    Ibrahim

  • Override the print event...

    Hi Experts,
    i'm searching a way to override the print button event from a ReportViewerBean object... does somebody has a suggestion??!?

    Okay,
    maybe, my question is not enought clear. In fact, i would like to add an instruction when the printViewer() event is fired... or at least to know if a print request have been sent to the printer. In fact, i would like to manage myself the report printing...
    thks!

  • Problems in capturing the button event

    Hi
    I have created a BSP page with some buttons on it.
    I am trying to execute some code on click of the button, I am capturing the button in OnInput processing event using the following code
    event_data = cl_htmlb_manager=>get_event( runtime->server->request ).
    however the event_data is not getting populated with the button event and i am getting a null reference dump...
    can you tell me if i need to anything else apart from adding the above code.
    Thanks
    Bharath Mohan B

    Hi Bharrie,
    the online documentation describes this very clearly. You access it by double-clicking on the BSP Extension element in the Tag Browser.
    A brief snippet from the doco....
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
          DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
          button_event ?= event.
      ENDIF.
    Cheers
    Graham Robbo

  • Event Structure Freezes Vi After Capturing The First Event

    My Event structure catches the first instance of my button press but then it freezes my Vi.  The reason is because of the while loop but I need the while loop to constantly read from a serial port and send data to a serial port. The vi included is stripped down to be just a while loop that does nothing.  I have also tryed putting the event structure in the while loop, but the same thing is happening.
    Any ideas?
    Thanks,
    Cason Clagg
    SwRI
    LabView 7.1, Windows XP

    Also, put the button inside the event structure where it is acted upon, from LV help (suggest you read the entire events section of help):
    When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Events dialog box when you configure a Value Change event on a latched Boolean control.
    Refer to the Handling a Latched Stop Boolean Control in an Event Structure caveat for information about how to handle a latched Boolean control.
    When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Events dialog box when you configure a Value Change event on a latched Boolean control.
    Refer to the Handling a Latched Stop Boolean Control in an Event Structure caveat for information about how to handle a latched Boolean control.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Capture system print event and system idle time

    Hello,
    We are creating a desktop widget using AIR. The widget will be docked to the system tray. What we want to achieve is:
    1. When the user invokes Print function at the OS level, from any location/appolication, the AIR widget shall listen to it and show an alert.
    2. The widget should be able to detect a predefined system idle time (wherein the user is not interacting with the system as a whole - neither mouse nor keyboard inputs - for a predefined interval), and perform an action based on that.
    How shall it be possible to detect the above 2 scenarios in AIR?
    Any help in this regards, will be highly appreciated.
    Thanks in advance.
    Warm Regards,
    Parag

    Srini Chavali wrote:
    Pl check the ROW WHO information in FND_PROFILE_OPTIONS table for this profile - most likely this is a custom profile created at your site.
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_PROFILE_OPTIONS&c_owner=APPLSYS&c_type=TABLE
    HTH
    SriniThis profile option exists in 11i and R12, it is a seeded one and not a custom one as you mentioned above.
    It is even mentioned in (R12.0.6+ : Oracle Application Object Library Profile Options Data Collection Test [ID 471675.1]).
    Thanks,
    Hussen

  • Capturing print event from PDF viewer

    Hi all,
    I am using class CL_GUI_PDFVIEWER to display and print a document using a SAP dynpro screen & a custom container.  I am successfully able to do this, but would like to capture the print event from the viewer in some way.  I did not see any print events for this class; is there any way to capture the printing of a PDF document from this viewer?  Thanks much,
    Rebecca Levings

    Hi Rebecca,
    I am using class CL_GUI_PDFVIEWER to display PDF, but also want to print the document.
    If I use PRINT Method of this class I am getting a runtime error. Can you please share your print code .. My requirement is to print a PDF File stored in file Client System without manual intervention.
    Thanks in advance!

  • Capture print event in adobe reader and show a message

    Hi,
    We have only adobe reader installed on our machines, is it possible to use the sdk to capture the print event in adobe reader? Our goal is to show a message to the users before the print dialog appears and
    as soon as the user prints a document?
    Is it possible?
    Thank you,
    Peter

    You can certainly develop a plugin for Adobe Reader that would do this.
    Plugins are written in C/C++ and, for Reader, you will need to obtain a license & associated key from Adobe to enable that plugin.   Details are all in the SDK.

  • Can we capture the show/hide layer event in PS?

    Hi All..!!!
    I have a query to all Photoshop coders! Can we capture the click event of show/hide layers in Photoshop..? I needed to know in my code when the user has clicked the show/hide layer eye..!!
    Pls answer soon..!!
    Thanks!

    http://forums.adobe.com/thread/858391?tstart=0

  • Capturing the event of ALV

    Does anyone know how to create an ALV that captures the <b>event of checking/unchecking a checkbox</b>.
    After which the selected rows will be used for custom processing.
    Thank you.!

    Hi,
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Reward if useful!

  • Print event not firing

    Hi all, first time poster here so be kind
    I have 2 events to be captured under ItemEvent for the Sales Order form.
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
    oFilter.AddEx("139")
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
    oFilter.AddEx("139") ' Sales Order
    SBO_Application.SetFilter(oFilters)
    For the form_data_add event, I question whether they really want to post, and this works fine, but for some reason the et_PRINT isn't firing at all...
    Under ItemEvent...
                ' Capture SOR printing so can check for back orders
                ' REMOVED BECAUSE CANNOT GET TO WORK
                If pVal.FormTypeEx = "139" And _
                   pVal.EventType = SAPbouiCOM.BoEventTypes.et_PRINT And _
                   pVal.BeforeAction = True Then
                    oForm = SBO_Application.Forms.Item(pVal.FormUID)
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    I have put a breakpoint at the first 'if' statement, and it isn't stopping, suggesting the event registering isn't working.
    Extra info: I am constantly starting and stopping the addon through Visual Studio, incase this might be part of the problem.
    If anyone could help, I would be grateful,
    Regards
    Paul

    I have already tried capturing the button event, but that isn't working either.
    The code used is below:
    changed from ItemEvent MenuEvent... type
    MenuEvent..
    If pVal.MenuUID = "520" And pVal.BeforeAction = True Then
                Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
                If oForm.TypeEx = "139" Then
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    End If
    And all of my registered events are below...
        Private Sub RegisterSAPEvents()
            ' Register Event Handling
            Dim oFilters As SAPbouiCOM.EventFilters = New SAPbouiCOM.EventFilters
            Dim oFilter As SAPbouiCOM.EventFilter
            ' Menus
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
            oFilter.AddEx(v_stockHist_MenuID)
            oFilter.AddEx("520")
            ' Forms
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History double click for grid
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History Item choose from list
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
            oFilter.AddEx(v_stockHist_FormType)
            ' Question new SOR?
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
            oFilter.AddEx("139") 'SOR
            ' Key Press for Stock History Form
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_KEY_DOWN)
            oFilter.AddEx(v_stockHist_FormType)
            ' SOR Print
            ' COULD NOT GET TO WORK, SO WILL USE MENU EVENT 520 INSTEAD
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
            oFilter.AddEx("139") ' SOR
            ' Check for new SOR opening
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
            oFilter.AddEx("139") ' SOR
            ' Set Event Handlers
            SBO_Application.SetFilter(oFilters)
        End Sub
    I have another form which I have created, and all events work for that.
    Edited by: Paul Fearn on Jun 20, 2008 4:07 PM

  • Flex automation - need to capture the mousemove

    hi All,
         I am creating Whiteboard application. I want to test my application through automation, but i can't capture the mousemove event.
    Inside the Whiteboard i have drawing fucntionality, this functionality require the mousedown, mousemove and mouseup events. I need to capture these events.
    Please help me.
    - Rajan

    I tryed that method.
    This is my sample file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"applicationComplete="init();"
    >
    <mx:Script>
    <![CDATA[
    import mx.automation.Automation; 
    import mx.automation.IAutomationManager; 
    private function init():void
    bindDraw.addEventListener(MouseEvent.MOUSE_DOWN, _MouseDownHandler,
    false, 0, true);}
    private function _MouseDownHandler(evt:MouseEvent):void{
    this.systemManager.addEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false, 0, true); 
    bindDraw.addEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false, 0, true); 
    bindDraw.graphics.lineStyle(3, 0, 1);
    bindDraw.graphics.moveTo(evt.localX, evt.localY);
    private function _MouseMoveHanlder(evt:MouseEvent):void{
    bindDraw.graphics.lineTo(evt.localX, evt.localY);
    private function _MouseUpHandler(evt:MouseEvent):void{
    bindDraw.graphics.clear();
    this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false); 
    bindDraw.removeEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false);}
    private var _count:Number = 0; 
    private function clickHandler(evt:MouseEvent):void{
    evt.currentTarget.label=
    "clicked "+(++_count);}
    ]]>
    </mx:Script>
     <mx:Button id="b1" label="click me" click="clickHandler(event)"/>
     <mx:Canvas showInAutomationHierarchy="true" id="bindDraw" width="100%" height="100%" />
     <mx:Canvas id="fff" width="100" height="100" backgroundColor="34233"/></mx:Application>

  • Determine Printer From Print Event

    Hi,
    I am trying to use the PrintEvent and ReportDataEvent to handle printing of some forms bypassing SAP.
    From the SDK help.
    "You can use this event as an "exit" point for integrating third-party reporting tools instead of the SAP Business One Document Editor."
    Unfortunately I am unable to obtain the printer that the user selects in the print common dialog. It doesn't seem to be exposed by the UIAPI anywhere.
    There is a field in the PrintEventInfo called WithPrinterPreferences but it is useless without more information as to what the print preferences are.
    The print dialog appears before either the print event or the report data event so I can't stop it appearing using Bubble Event.
    My only workaround is to catch the print and print preview menu events and for specific forms stop them from propagating back to SAP. Then show my own printer selection dialog. The problem with that is I have no way of setting the document as "Printed". The printed field on the form is ReadOnly from the DIAPI. The only way of setting the form printed looks to be calling MarkAsPrinted during the print event.
    Regards Jared

    Hi Jared,
    i know this issue:
    it is possible to catch the print common dialog with .NET functionality.
    but very restriced - you can send "OK" to window - thats it.
    but at least the document has than the status "printed".
    the trick is catching the dialog window with searching the "Form Title".
    lg David

  • Capture the lov source id in adavanced table bean

    Dear Frends,
      I am developing one custom OAF page. I have one adavanced table in that. 2 lov are there in advanced table.
      I have used a code to capture the lov event as shown below
    if(pageContext.isLovEvent())  
    String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
    pageContext.writeDiagnostics("In Process Form Request","Actual Lov Input source id:"+lovInputSourceId,1);
              if("OrganizationName".equals(lovInputSourceId))
                     // to do
            if ("CustomerName".equals(lovInputSourceId))
             // to do
      But i am getting the lov source id with index as
        TableRN:OrganizationName:0
        TableRN:OrganizationName:2
       etc..
    How could i capture the lov source id with respective index in advanced table??
    Regards,
    Tarun

    Dear Sandeep,
      I was trying to create dependent lov similar one, So I got the answer for that..
      https://blogs.oracle.com/prajkumar/entry/implement_dependent_lov_in_oa
    Regards,
    Tarun

  • How to capture Wnidows(OS) event from Java program

    Hi,
    I am developing one application , in that if the user didn't do any thing in 15 mins,i need to log out from my application(not windows).Here i need to check Java event as weel as windows(OS) events also.Any one knows how to capture the OS events??

    I want to know the status of mouse and keyboard(Windows 2000).If the status of the mosue or keyboard doesn't change from 15min i need to log of the java application.

Maybe you are looking for

  • Router crashes - Homehub 2

    Hey , recently I have been having some problems with my router. It would just freeze and the wireless would cease from broadcasting so I cant connect and the Ethernet connection will not work. However if I restart the router It will work fine . I hav

  • IChat Internal Error! after using ONyX

    How can I fix this error... iChat Internal Error! NSInternallnconsistency Exception: Error (1000) creating CGSWindow Ok, I ran the Onyx maintenance program and now my iChat will not work. Actually numerous programs keep unexpectedly quitting, even sa

  • Flex to VB

    I am trying to use ExternalInterface to pass data between a swf file and VB in Visual Studio 2008. I have the swf file in the vb form. This is my actionscript code, initiated by a button click: import flash.external.*; public function send2VB(txt:Str

  • Garageband: How to fix a not enough space to download in app purchase error?

    I have 7GB free and when I try to download the in app purchases in Garageband 10 it tells me to free up space and try again, without even saying how much space I need. Anyone else having this problem and or knows what to do? How can I resolve this? T

  • Can one restore XI 30 on a server with a different servername?

    Hi, We are testing our DRP on a specific server, but the DRP servername differs from the original XI server. Restoring the DB and ABAP instance is easy, but what does one need to change on the J2EE instance to make it work?