How to findout whether user clicked print or preview

Hi ALL,
i NEED TO UPDATE A ZTABLE ONLY WHEN THE SCRIPT OUTPUT IS PRINTED. IF THE USER CLICKS PRINT PREVIEW OR CANCEL THEN I SHOULDN'T UPDATE THE TABLE.
cAN ANYONE TELL WHAT PARAMETER I NEED TO CHECK. I'm looking at itcpo structure in debug mode i didnot found any difference when i clicked print or print preview
THANKS

check the sy-ucomm
Print = PRNT is Ok code
Print preview is PREV is Ok code
keep the break point at OPEN_FORM and use sy-ucomm in debugging.
Thanks
Seshu

Similar Messages

  • How to findout whether IDOC is about to enter XI- Pipeline

    Hi Experts,
       Can anyone of you brief me on how to findout whether IDOC is about to enter XI- Pipeline.
      In other words, after IDOC enters into XI server. How we will come to know IDOC is entering the XI pipe-line.
      Please help in this issue asap.
      Thanks in advance

    Dear All,
    For file to idoc scenario is there any possibility to get line items details or xml details i.e the segments and its related field details using reference id, transaction id or interface name or message id in SAP PI 7.0. I know we need to click each and every message in sxi_monitor and look for details.
    For SAP(R3 System) I can create a report and set the job for specific time period so automatically it throws the details(like reference no, document date, invoice no from) in ftp path as .csv file. The same ftp path is maintained in program.
    I wanted to check FTP--->PI postings and I have set the job at r3 system it is working fine and Im monitoring it too.
    Now the end to end scenario is FTP--->PI--->ECC(R3 system). Please help.Many Thanks.

  • How to differentiate whether user entered '0' or no value in the parameter?

    I need some clarification.On my selection screen I have 4 parameters( P_QTYLL,P_QTYUL,P_AMTLL,P_AMTUL). I have to check the values entered by the user in those fields and I have to display the user entered values in the next screen.My problem is if the user enters '0'(in any of the above fields) means '0' has to displayed in the next screen.But if he enters nothing means then nothing has to be displayed in the next screen.My problem is I am checking for '0', against the values(initial,'',space,0) for user entered value.But I am unable to differentiate the '0' and nothing(no value) even though I checked against the values(initial,'',space,'0').All the 4 conditions are treating both the '0' and 'novalue' the same.How to differentiate whether user entered '0' or entered nothing(no value).
    for example below is my code
    IF P_QTYLL EQ 0.
    P_QTY_LL = P_QTYLL.
    ENDIF.
    IF P_QTYUL EQ 0.
    P_QTY_UL = P_QTYUL.
    ENDIF.
    IF P_AMTLL EQ 0.
    P_AMTLL_S = 0.
    ENDIF.
    IF P_AMTUL EQ 0.
    P_AMTUL_S = 0.
    ENDIF.
    IF P_QTYLL EQ ''.
    P_QTY_LL = ' '.
    ENDIF.
    IF P_QTYUL EQ ' '.
    P_QTY_UL = ' '.
    ENDIF.
    IF P_AMTLL EQ ' '.
    P_AMTLL_S = ' '.
    ENDIF.
    IF P_AMTUL EQ ' '.
    P_AMTUL_S = ' '.
    ENDIF.
    LIKE THE ABOVE I checked against the values space,initial.But using those I am not getting any difference for no value and '0' .All the four values(space,initial,'0','') are treating both the '0' and no value in the same way.
    Thanks,
    Balaji

    hi,
    you said your teamlead doesn't want the type to be changed to 'C'.so try adding one dummy variable  of type c and pass your parameters value to this dummy variable and check  dummy variable for value '0'.
    eg:
    Data DUMMY(11) type c.
    DUMMY = P_QTYLL.
    IF DUMMY EQ 0.
    P_QTY_LL = P_QTYLL.
    ENDIF.
    DUMMY = P_QTYUL
    IF DUMMY EQ 0.
    P_QTY_UL = P_QTYUL.
    ENDIF.
    i think this will help you 2 some extend.

  • How to check whether user login in SNC mode or Non - SNC Mode

    Hi
    When SNC is enabled system will accept secure network connections. But,It is up to the user to login in SNC mode or NOT.
    Can any one let me know How to check whether user login in a SNC mode / Non-SNC mode?. Is it only through SU01?.
    Is there any other possibility?. where to check if user login through RFC connections?.
    Please correct me if i am wrong.
    Regards
    Srinivas P.

    Hi,
    Where to check if user login through RFC connections?
    Check T-Code SM04 on every instance. In the column Type you can see what kind of login has been used (GUI, RFC, Plugin, System).
    But,It is up to the user to login in SNC mode or NOT.
    Depends. Check these [parameters|http://help.sap.com/saphelp_nw04/helpdata/EN/19/164442c1a1c353e10000000a1550b0/content.htm]:
    snc/accept_insecure_cpic     
    snc/accept_insecure_gui      
    snc/accept_insecure_r3int_rfc
    snc/accept_insecure_rfc      
    Regards,
    Sven

  • How to findout whether the mail server supports STARTTLS or not?

    Hi,
    In my application I want to use explict SSL over SMTP, IMAP and POP3 by using the property "mail.<protocol>.starttls.enable"
    . I did see the documentation for mail.<protocol>.starttls.enable property as
    "If true, enables the use of the <code>STARTTLS</code> command (if
    supported by the server) to switch the connection to a TLS-protected
    connection before issuing any login commands".
    How do I findout whether the server supports STARTTLS or not?
    What will be the outcome if I use the property "mail.<protocol>.starttls.enable" though the server doe's not support STARTTLS? plain text connection will be there or will it throw any exception?
    Thanks in advance!
    PrasadKT

    The "mail.<protocol>.starttls.enable" property will use STARTTLS if the server
    supports it, and won't if it doesn't. Not using it might cause later commands to fail.
    Newer versions of JavaMail also have a "mail.<protocol>.starttls.required"
    property that will cause the connection to fail if the server doesn't support
    STARTTLS.

  • How to know whether User is Buyer or not?

    Hi,
    I am developing a function module to create/update/unassign Employee Org Hierarchy. In this I have to know whether User is BUYER OR NON BUYER?.
    If user is assigned to purchase org/purchase group then he will be BUYER or else he will be NON BUYER. If once I come to know whether user is BUYER OR NOT, then I have to proceed further differently in both the cases.
    Pls help me out in this regard asap.
    Thanks & Regards,
    Nagaraju Maddi
    Message was edited by: Nagaraju Maddi

    Nagaraju
    Buyer will be having purchaser roles like SAP_BBP_STAL_PURCHASER, SAP_EC_BBP_PURCHASER, SAP_EC_BBP_ST_PURCHASER. Check the roles of the users. If you find Purchaser(standard roles) or Buyer(in case of customized roles) in their roles then he/she will be buyer.
    Similarly Non buyer user will be having Employee role like SAP_EC_BBP_EMPLOYEE.
    Hope this will help you.
    Do reward points for helpful solution.
    Regards
    Jagdish

  • How do I direct user to print the form after they click submit?

    I am creating a permission for for our scout group.  I need them to print the form for their parents to sign after hitting submit.  Is there a way I can do it in Forms Central?

    Hi,
    In the "successful submission of a form, execute this PL/SQL block or PL/SQL procedure" section redirect to the url.
    Say you want to redirect to a dynamic page on success, you can do this
    begin
    <portalschema>.wwa_app_module.set_target('<portalschema>.NEW_DYN.SHOW?p_arg_names=dept&p_arg_values=20');
    end;
    Thanks,
    Sharmila

  • How to block certain users to print S1 billing document type documents

    Hello,
    I need to block some user so that they can not print the S1 reversed billing documents. How can I do this?
    Thank you.
    H

    Hi ,
    You can very well control this with the basis help.Pls inform to basis the role of a user which you want to restrict the access to transaction code.We can control this through the authorisation object concept with activities create/change/display/release etc.
    Please don't use any exits for this,this is possible in standard SAP.
    Hope it helps.
    Regards,
    Pasapula.

  • How to check whether User is alreadylogged in or not

    Hi..I want to check whether Particular User is already logged in or not ?? I had userid,password and status in my database.
    If anybody shows me how to implement it ??
    Reggards
    Chintan

    If you want to prevent multiple logins happening, use a profile on the database server that limits a login to a set number of simultaneous connections.
    If you just ant to check which users are logged in, the v$session table will have that information.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to restrict mutiple user clicks with asynchrounous behavior of FLEX

    I have developed a flex application and it has a datagrid, and on double clicking on the datagrid, I am showing a popup window ( the code in the popup window has call to httpService.send(), to get the data and display). Before the popup is opened, the user is double clicking again on the datagrid, which inturn is trying to open the popup window (with a new call to web service). These calls are piling up. How can i restrict making call to httpService.send() when user double clicked for the second time on the datagrid. Since, the web service call is asynchronous by nature, I am not able to figure out a way for this. Can anyone please help.

    Hi,
    You can use bussyCursor for this and keep it busy until you don't recieve the response of any particular click.
    Like  CursorManager.setBusyCursor(); on the click of mouse.And  CursorManager.removeBusyCursor();
    after getting the response from the server.
    Also you can use Application.application.enabled = false; until you dont get response of the earlier's click.
    And then set it to true after the response.
    with Regards,
    Shardul Singh Bartwal

  • How to find whether user exits are  used in the query or not??

    Hi ,
    I have to make the list of queris in which user exits are used.
    Please any body help me how to find the queries in which user exits are used.
    Thanks
    Maruthi

    Hi Maruthi,
    Using table RSZGLOBV you can find out the queries that have customer exit variables.
    Set filter VRPROCTP (processing type) = 3 means customer exit.
    and the field COMPID will give you the Query name.
    Best Wishes,
    Mayank

  • How to detect if user clicks on another cell in a JTable while editing?

    I use a custom TableModel which extends AbstractTableModel and I serialize the TableModel to save the data in a file. Sometimes when I try to serialize, my program crashes after putting in random data in to the table. I have reduced the problem down to if a user is editing a field and clicks on another cell instead of hitting "enter", then then program will crash if that was the last action when trying to save.
    I am thinking it might be something with the custom TableModel class, like I am missing a method or something. I have getColumnName, getColumnCount, getValueAt, setValueAt, isCellEditable
    Thanks

    Clicking on another cell should not cause a problem as this will stop editing in the previous cell. However if you click on your save button directly then the editor is still being used. Use the following after creating your table:
    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • How to restrict users from printing documents and exporting to local file

    Hi SAP gurus,
    I have two questions.
    1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
    2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
    Thank you in advance.

    Hi,
    Check this:
    Create your own gui status and attach it to the list in the event START-OF-SELECTION.
    In the menu painter extra -> adjust template.
    Make it a list status and you will see all the standard list options appear including list->download
    Deactivate the ones you don't want. 
    If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
    Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible. 
    If you just want to disable downloads only for a particular report, you can try this test program:
    Code:
    REPORT ztest. 
      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH', 
            FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
    START-OF-SELECTION. 
        CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY' 
             EXPORTING 
                  FORM    = FORMNAME 
                  PROG    = PROGNAME 
             EXCEPTIONS 
                  OTHERS  = 1.
      WRITE: / 'TEST'.
    You also need this:
    Code:
    PROGRAM z_check_auth.
    FORM f_check_auth USING pe_result TYPE i. 
      pe_result = 5. 
    ENDFORM.
    Also have a look at the exit SGRPDL00.
    Hope this helps you.
    Rgds,
    Raghu

  • Identifying a cell on webdynpro alv when user clicked it

    Hi Experts,
         Iam displaying one alv grid in that am having 10 columns....I need to have hotspot
    for 2nd column and 6th column.But when the user clicked 2nd column i need to do one functionality
    and when user clicked on 6th column i need to do another functionality.How can we identify whether
    user clicked on 2nd cell or 6th cell(already am hadling event for on_click for 2nd column)...Please let me know the solution is grately appreciated...
                                   thanks in advance...
    Regards,
    kranthi

    Thanks Ramakrishnappa n sharath,
             As per ur ur above post am getting the user clicked cell value in r_param->value(here the user performing link_to_url action on sanction order no(kblp-kblnr))...I need to concatenate this r_param->value with one string like "Sanction order no.is....".
                Here the problem is iam unable to convert the r_param->value to char.If i can able to convert it to char.then i caoncatenate this r_param->value to "Sanction oreder no.is..."
                     Please suggest me it is urgent...thanks in advance.
    Regards,
    kranthi

  • Adobe Reader Browser Plugin - How to disable right click print

    Here is some background to my question
    I'm using Adobe Reader 9.2 and have configured to use the Adobe Reader Active X browser plugin.
    which has the effect of launching pdf's within the IE browser rather than launching the full client. This is all working fine
    I have a requirement that I need to lockdown certain menu items (for the purpose of this example, lets say "SaveAs" and "Print") and toolbars which I have also done successfully using folder level javascripts. For example I have created a HideMenuItems.js file and placed this in the "C:\Program Files\Adobe\Reader 9.0\Reader\Javascripts", here is a snippet of the file which relate to hiding / removing the SaveAs and Print items
    app.hideToolbarButton("Print"); 
    app.hideToolbarButton("SaveFileAs");
    app.hideToolbarButton("Save");
    These work fine and hide the Print and Save toolbar buttons from the Adobe Reader Browser plugin menu.
    As an aside If I wanted to hide the same icons from the full adobe reader client I could use app.hideMenuItem("Print");
    So this all works fine and I'm happy so far. Now, with these settings in place I launch the pdf within the browser, although save and print buttons are now hidden and I cannot add them back, I can still RightClick anywhere in the pdf and get the context menu, from there I can select print.
    What I'm after is a way to either
    (i) Selectively remove menu items from the right click context menu, and therefore remove the print option e.g something like app.[hideRightClickMenuItem]("Print") would be great but I dont know what that method is called.
    or
    (ii) Disable the RightClick context menu altogether for Adobe Reader Browser Plugin
    Not bothered what the solution is whether its a reg hack - HKCU / HKLM  / or javascript line I can add to my HideMenuItems.js, But basically I want to lock down the ability for the users to select print button from all sources including "CTRL + P",
    Or if this is not possible let them hit CTRL P or right click print, but then not display the Adobe Print Dialog.
    Basically the printing of the documents in handled by our web app sending a silent print to the adobe application which again works fine, I just need to prevent the users from being able to initiate a print from within the pdf when displaying the pdf in a browser.
    Having searched around there is an API called AVAppRegisterForPageViewRightClicks which is supposed to prevent right clicks, But I dont know how to use this, or whether it can be used within my HideMenuItems.js file, tried many different syntaxes but to no avail.
    Does anyone have any experience in this? Adobe - do you have any suggestions ?
    Cheers
    Will

    Hi thanks for your response, yes it seems this API is availalbe but there are no examples of how to use it. You mentioned its available in Adobe reader and Adobe Acrobat plugins. Well I'm using the Adobe Reader Active X Browser Plugin so how would I use this API to restrict the Browser plugin.l
    I am not a developer writing my own custom plugins, I simply want to use the out of the box adobe reader product, specifically the Active X browser plugin, but I need to be able to customise and restrict what the user is able to do.
    The reason I need to do this is that we publish IE on a citrix server which users access to launch this highly secure web based application. The sensitive data that they view is in the forms of PDFs which are viewed by the Adobe reader browser plugin within the browser. The web application controls who can save, export, print etc, so I need to be able to lock down the Adobe Reader Active X browser plugin so that the user cannot initiate save, and print functionality from within the viewed pdf. I've done this successfully by restricting the menu and toolbar items but it is still possible to right click on the viewed pdf and click select print from the context menu. This would cause us a big security flaw, which would result in users that are only supposed to view being able to click print.
    I published a desktop (locked down) and published IE (locked down) all successfully with GPOs so the users cannot do anything they are not supposed to do, however Adobe reader it seems cannot be easily locked down and this is a problem as I might have to start looking at viable alterantives. Surely a simple requirement as this could be acheieved with relative ease.
    In an ideal world there would be an  available GPO template (.ADM file), which could be used to centrally manage these type of settings. I dont even mind writing an ADM myself, I've written many before, but for example what I need is the appropriate registry entries and how they are used to lock down / restrict certain functions so that I can write such an .ADM file.
    I dont mind how I achieve this, I just need a way to do it. So if using the API AVAppRegisterForPageViewRightClicks would achieve this, can someone please tell me how I can implement something that would use this API to restrict the right Click Print options for example.
    The sort of answer I;m looking for would be
    Create a file, paste in this code, place the file is this location xxxxx, this is a per machine fix so will affect all users
    or
    Edit the regstry and make this HKCU change xxxxx - This is obviously a per user fix so use normal methods to get this into every users profile.
    or
    Open up the file in this location xxxxxx and add AVAppRegisterForPageViewRightClicks = AlwaysDisable (or whatever the syntax is)
    Thanks for you help
    Cheers
    Will

Maybe you are looking for