How to Get Print event in  Smartforms on preview model.

Dear All,
        I have a issue for Get the Print button value in Smartforms.
        I can get the print button value on the popup window before show smartforms result.
        But I donu2019t know how to get if the report preview .Because on preview model,user also can click toolbar print button to print.
Please give me some advice
Thanks
Sun

done have okay
      IF SY-MSGV1 <> ''   OR SY-UCOMM = 'PRNT'.
    MESSAGE 'PRINTED' TYPE 'S'.
    ELSE.
      MESSAGE 'NOT PRINTED' TYPE 'S'.
    ENDIF.

Similar Messages

  • How to get Employee Picture in Smartforms

    Hi Experts
    Please help me out in getting employee picture in Smartforms
    I have used the following FMs
    1. HR_IMAGE_EXISTS
    2. SCMS_DOC_URL_READ
    By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
    But Please tell how to get this picture in Smartform .
    As i am generating Employee Biodata and in that i need employee Picture.
    Please HELP me ....
    Thanks & Regards
    Shaveta Prabhakar

    Hi,
         U need pictures in smartforms for that just try this one I think so it will help full to u.
          First Upload that picture in the se78 that photo must be in the bitmapformat(picture.bmp).
    steps are:
             goto se78>graphics->import--->it asks the file path here,fill those details
    Then goto Smartform--->In which page u want to put the picture,
              there click that page  and goto Background picture,
             here give the name of that picture and select the resolution and positin of the picture there. 
               Then u will get the picture in the output.
    Regards,
    Surya

  • How to get 2nd line in smartforms using template

    how to get 2nd line in smartforms main window using template. i have also defined loop .

    if possible can you try with the TABLES..
    Put one TABLE in your MAIN window
    create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
    Now, you will find three section under the tables: header, main, footer...
    in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
    in main section, you can access your data form the loop.
    the footer secion will be called, just after the main will be finished.
    Regards,
    Naimesh Patel

  • How to get resume event in app?

    How to get resume event in app?

    Hi,
    Have a look at this
    Windows Phone Application Lifecycle
    I think you are looking about Application_Activated which is explained in detail in the above article.
    Pradeep AJ

  • How to get printer IPAddress using java code

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

  • How to get standard program ,script,smartforms all from sap

    hi friends
    how to get standard program ,script,smartforms all from sap.
    thanks&regards
    Babasish

    Hi,
    reports:
    goto se38
    all programs not starting with y or z will be sap std programs only
    same for se71 scripts
    samse for smartforms
    but the use of those will be known when you see the documentation
    for each programme
    for std programs there will be documentation available so that you can understand
    why they have developed that object
    thanks & regards,
    Venkatesh

  • How we can print directly a report without preview to a local printer in web

    How we can print directly a report without preview to a local printer in web-environment, whith Oracle 9ias Report server release 6i patch 11.
    The user want to print ticket, built by Oracle Report, without previuw on PDF format, in a web three-tier environment.
    Please supply my documentation in detail and sample code if you can.

    Hello,
    Take a look to the example provided in the note :
    Note.253881.1 How to Create a Report With a Frame Only on the Last Page at a Fixed Position
    Regards

  • Barcode is not getting printed in the SmartForm

    Hi All,
    I am trying to print BARCODE in a SMARTFORM but it is not getting printed.
    I have created a barcode ZTest_Barcode from the transaction SE73. Then I have created a Character Format C1 with this barcode ZTest_Barcode.
    In the SmartForm I have applied this character format like this <C1>&WA_VBAK-VBELN&</C1>.
    But in the preview of this SmartForm barcode is not getting printed while this field is printing like <C1>220<C1>.
    I have also tried with some SAP barcodes like BC_CD39, C128A_01, etc. But the result is same.
    Please help me to resolve this issue.
    Regards,
    Avaneet

    hi avaneet,
    check this site for barcode.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    it may help you.
    thanks
    Sachin

  • How can i print data in smartforms from ABAP program.

    Dear gurus:
    in my abap program i process require data, and saved in a internal table.
    how can l print the data in smartforms.?
    who can give me a code sample is better:)
    reward all helpful advise.

    Try this....
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    <b>Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module --> smart form function module and pass your internal table</b>
    Regards,
    SaiRam

  • Java Printing Service (JPS) How to get printer status and pending jobs list

    Hi,
    I am trying to determine what is the current status of a printer in my computer as well as what is the list of pending printing jobs at any moment.
    I want to monitor activity on a printer in my computer, so I can capture and log the jobs that are sent to my printer over time.
    I would like to do so by monitoring the printer pending jobs list (if that can be retrieved through any java method) and make a log of changes in that list.
    Any advice on how to get the list of pending jobs of a printer?
    I checked the API and JobState class seems to be a descriptor of one single job... I suppose the method to retrieve a list of pending jobs in a printer would return an array of JobState objects... but I have not being able to find yet such method...
    Thanks in advance,
    JN

    Moderator Action:
    This post has been moved from the Java Programming,
    to the ADF forum, for closer topic alignment.
    *... and Comment:*
    Get help from people that work with ADF.
    They may have already done something like this.

  • How to write print program for smartforms

    Hi all
    I need to develop new smartform and its print program.
    But Im not experience in writing print program for smartform.
    Ive gone through the simple print program sample that use only one table as input and one table for output.
    But my smartforms require few tables for input and output.
    How should I define the Data?
    Can anyone guide me on how to write it.
    Thanks & Regards
    az

    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Reward points...

  • Don't know how to get printer online. currently offline 3520 deskjet

    HP 3520 deskjet.  Can't print.  Printer reads offline.  Don't know how to get it online (ready).  I tried reloading it, but error message came up.
    HELP!

    Hello there! Welcome to the forums @mattiesmom !
    I read your post about how your Deskjet 3520 is showing offline and is not printing.
    I will certainly help!
    Please follow all of these steps, in order, and you should be back online and printing afterwards:
    'Printer is offline' Message Displays on the Computer and the Printer Will Not Print: Windows Vista
    Feel free to write back to let me know the results!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to get an event on Air Application uninstallation

    Hi Friends
                     is there any way to get an event on Appliation uninstallation.Actually i want to cleared my shared object when i uninstall the application.Also want to remove the application from system tray during uninstallation of application.so please tell me any way or logic for the same.
    tell me wheather it is possible in Adobe Air or not.i am using Adobe flash builder 4 and Adobe air 2.0.Waiting for reply.
    Thanks and Regards
      Vineet Osho

    When Spry is finished displaying all (repeated) rows within spry:region you can have an notification by using an Spry.Data.Region.addObserver(). Indicating the HTML generation is finished.
    You can use spry:state for this as in
    <div spry:state="error" align="center">Error Loading Results!</div>
    <div spry:state="loading" align="center">Loading Results...</div>
    <div spry:state="ready">Data results</div>
    Is it possible (and how) to get an notification when a row within Spry.Data.Region has been processed. So I can perform some JS actions, per row in Spry.Data.Region?
    Not sure what you want to do here.
    Gramps

  • Insurance claim for music - how to get print out of purchases from itunes

    Can any one help me as my Hard Drive crashed yesterday and i've lost all my Music, movies etc purchased from itunes in the last 2 years. Need to know how to get a detailed print out from itunes to prove purchase and claim on insurance. And yes i know i should have backed up my recent files...

    The only way is to log into your iTunes Store account (you'll need a working computer with iTunes installed, of course), go to your Purchase History, and do a screen capture of each successive page. There's no way to print out a full listing of all your purchased in one go.
    Regards.

  • Empname in Arabic not getting printed correctly in smartform

    Dear friends,
              I have developed smartfomr and iam able to print all the data correctly,However i hve to get the Empname in english and Arabic. When iam printing the English is correctly gets but Arabic is getting printed wrongly.
    Eg : David Harry -
    > correctly printed in English
           yrraH David(as i dont know arabic iam writing in in english only  how it is coming in arabic after checking with my user) --- some thing like this is getting pritned in Arabic which is totall wrong.
    However when i login in Arabic the name is getting priented correctly but the English is getting wrongly  i.e Vice versa case.
    Is there any chance how i can i login in English and getting the Arabic Name also printed correctly . Please could anyone help me in this  regard.
    Regards
    Divya.
    Edited by: Divya Kumari on Jul 24, 2011 6:23 PM

    Well, what was the solution?

Maybe you are looking for

  • Mac Book Pro on Mountain Lion HDD shows almost full when it is not

    Hi, I am using a MacBook Pro End 2011, with an HDD of 500 GB. There is a partition on the HDD, and one side runs Mac, and the partition is for Windows 7 via Parallels (about 125 GB). SInce about the last 10 days, my HDD shows only 10 GB of free space

  • SOAP Attachment & performances for WLI

    Dear all, I am implementing webservices, accepting a SOAP attachment as parameter. The implementation is based on Workshop / WLI jws file. The web service is RPC style since WorkShop is unable to generate a correct WSDL file with SOAP atttachment & d

  • On Tab function does not set the value in ADF

    Hi, I have a table with a columns as 'unit price',quantity and 'Extended amount'. The last field is a calculated field (unit price * quantity). I am trying to set this field when I tab from unit price field to some other field. But the value is not a

  • Windows files on a Mac Server

    I have a Mac Mini running as a server. I would like to connect to the server with a PC running XP Pro. First, can this be done? Second, if it can what do I do to accomplish this?

  • Loading, processing and transforming Large XML Files

    Hi all, I realize this may have been asked before, but searching the history of the forum isn't easy, considering it's not always a safe bet which words to use on the search. Here's the situation. We're trying to load and manipulate large XML files o