How can i set print mode at run time in smartforms???

Hi expert,
In smartforms how can I  set print mode at run time.
I have one screen.In this screen one check box is there.If user select that check box then print should be come double side otherwise it is coming single side.
If it is possible then plz give me answer asap.

Hi,
Set These settings
While calling smartform, paas control_parameters and output_options as mentioned below and set
user_settings = ' '.
It will send the smartform output to spool.
DATA: wa_output_options TYPE ssfcompop,
wa_ctrl TYPE ssfctrlop.
wa_output_options-tdimmed = 'X'.
wa_output_options-tddelete = 'X'.
wa_output_options-tdimmed = ' '.
wa_output_options-tddest = 'LOCL'.
wa_ctrl-no_dialog = 'X'.
CALL FUNCTION lv_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = wa_ctrl
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = wa_output_options
user_settings = ' '
x_adrp = x_adrp
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
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.
ENDIF.
Regards,
Kumar(Reward if helpful).

Similar Messages

  • Using an own function in a select how can i set that the function run once?

    Hi
    Using an own function in a select how can i set that the function run once, not in every row?
    Please help me
    Thanks
    Viktor

    Something like this ?
    SQL> select * from dept;
        DEPTNO DNAME                          LOC
            10 ACCOUNTING                     NEW YORK
            20 RESEARCH                       DALLAS
            30 SALES                          CHICAGO
            40 OPERATIONS                     BOSTON
    SQL> create or replace function ret_name (deptnum in number) return varchar2
      2  is
      3     name    varchar2(50);
      4  begin
      5     select dname into name
      6     from dept
      7     where deptno=deptnum;
      8     return name;
      9  exception
    10     when no_data_found then
    11             return('Not existent deptno');
    12* end;
    SQL> /
    Function created.
    SQL> select deptno, decode(rownum,1,ret_name(deptno),null) dname from dept;
        DEPTNO DNAME
            10 ACCOUNTING
            20
            30
            40
    SQL>

  • How can I set a specific start play time after disc insertion?

    How can I set an automatic play start time of (say, a minute after the DVD was inserted) if the watcher has not selected anything from the main menu?
    TIA.
    MacBook Pro 2.16 ghz 17   Mac OS X (10.4.9)   FCP 5.1.2 DVDSP 4.1.1

    Set the timeout action for the menu in inspector
    (General Tab for the menu, set the seconds and what
    it should do there)
    I set the At End menu to Timeout, set the seconds to the same as the time for the song playing in the background to finish, and set the Action to go to the Track where the video is. The song ends but it just remains on the Main menu. The video doesn't start.
    What have I missed?
    Again, TIA.
    MacBook Pro 2.16 ghz 17   Mac OS X (10.4.9)   FCP 5.1.2 DVDSP 4.1.1

  • SET PRINTER TRAY AT RUN TIME

    HELO EVERY BODY
    I HAVE TWO REPORTS I WANT TO PRINT FIRST REPORT FROM UPPER TRAY AND SECOND REPORT FROM LOWER TRAY HO CAN I DO THIS?
    SECOND PROBLUM IS I CREATE A REPORT ON LEGAL PAPER WHEN I RUN THIS REPORT IT WILL TAKE DEFAUT PAPER SIZE OF PRINTER WHICH IS LETTER HOW CAN I SET PAPER LEGAL BY WHICH I NOT CHAND PAPER EVERY TIME
    THANKS IN ADVANCE
    KHUDA HAFIZ

    Faiz,
    Pl see my response, and reply in your other thread:
    set printer tray and page size
    Navneet.

  • Can you set an image at run time?  Does it really work?

    I have read that others have been able to set an image at run time, but I cannot seem to get it to work (the image I set does not load).
    What I do is have a page, call it page2, that has two image components on it. In the constructor for page2 I do this:
    // Additional user provided initialization code
    image1.setValue("bike1.JPG");
    image2.setValue("bike2.JPG");
    The jpg files are in the build directory:
    C:\Documents and Settings\Darrin\My Documents\Creator\Projects\ImageTest\build\images
    The odd thing is that for the first image component(image1), I set a default jpg file (nogo.JPG that is in the same directory as the other two), and that does load.
    In fact, when I I check the value of image1 in afterRenderResponse by calling image1.getValue() it still has the default image (nogo.JPG) instead of the one I set it to (bike1.JPG) in the constructor by calling image1.setValue("bike1.JPG");
    So, either the image1.setValue() has no effect, or something is overwriting it.
    What is the trick to getting an image to load at run time like this?
    THANKS!

    Well after several more hours of banging myh ead against the wall, I still cannot get this to work.<br><br>
    I read in the constructor comments that whatever is in the jsp file will override the backing bean's constructor, so that might be part of the problem, but others I thought got this to work using a similar method.<br><br>
    Here is what I tried last which still does not work, but mimics what others have said did work for them:<br><br>
    //See if the default jpg file can even be copied over
    <br> image3.setHeight(image1.getHeight());
    <br> image3.setUrl(image1.getUrl());
    <br> image3.setValue(image1.getValue());
    <br>
    <br> Integer aiw = new Integer("1");
    <br> float aar = 0;
    <br> float ar = 0;
    <br>
    <br> ImageIcon ii = new ImageIcon("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images/bike1.JPG");
    <br> ar = (float)ii.getIconHeight()/(float)ii.getIconWidth();
    <br> aiw = new Integer(ii.getIconHeight());
    <br> aar = ar*aiw.intValue();
    <br> image1.setHeight(""+(int)aar);
    <br> image1.setUrl("images/bike1.JPG");
    <br> image2.setValue("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br> image2.setUrl("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br><br>Note that when I run this and look at the log that I write out to in afterRenderRepsponse, it shows that image1 (which shows up as the default image I set at design time) and image3 (which does not show up which I set at run time using image1's value) both show the nogo.JPG image from the <b>resource</b> directory while image2 (that I set at run time to be bike2.JPG) is showing up as <b>empty</b>
    <br><br>
    This is really getting frustrating, and I would greatly appreciate a small tutorial from the JSC staff on just how you need to go about doing this. given that this is so common a need, a tutorial is warranted. Heck, just clue me in on how it is done and I will write one!
    <br><br>
    THANKS!

  • How can I set printing margins of report?

    Hello,
    I am trying to print programmatically a portrait of a JPEG image that has been created by a Front Panel.
    I print it by creating a Standard Report.
    While the JPEG image is fine, the printed image is compressed at the long edges. So, the printed image is a little bit distorted.
    I change the Printing:Margins Property of the vi at the First Call of the vi, but the result is the same.
    On the other hand, if I open the JPEG image with a program like Picasa and print it, the printing image is not compressed/distorted.
    I attach an image of the code that is used to print the JPEG and an image that shows the Printing:Margins Property.
    How can I print it correctly via LabVIEW?
    Solved!
    Go to Solution.
    Attachments:
    Print_code.JPG ‏31 KB
    PrintingMargins_code.JPG ‏22 KB

    Hello,
    I tried the solutions that you proposed and I have the following results:
    1. The solution to print the Front Panel through the invoke node of the vi's reference is not ideal, because the desirable printer cannot be chosen.
    2. I cannot use the Word Report because I have not the Report Generation Toolkit for Microsoft Office.
    3. I used the HTML Report and I change the print settigns by modifying the registry keys in the following folder:
    "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup"
    I can change the margin_bottom, margin_left, margin_right, margin_top, Shrink_To_Fit and assign the values 0,0,0,0,no to them.
    The result in the printing image is obvious. It is no longer compressed and it is positioned almost according to the margins. Although all margins are set to 0, it has to be positioned 2cm more at left and about 2cm higher to be proper.
    But the footer and header registry keys even if they are deleted (I cannot assign empty string from command line), they are appeared in the printed page.
    I attach the new vi files that modify the registry keys of the above folder before printing and restore them after printing.
    Also, the Front Panel size of the Report.vi has been changed and set equal to the A4 paper size 21x29cm and a little bit bigger in order not to print the decoration border.
    So, the problem of proper printing of HTML report remains having only to remove the footer & header and understand why the printing image is not positioned at full left and full top even if the registry keys margin_left and margin_top are 0 and 0.
    On the other hand, if the vi's Front Panel JPEG image is printed from a Photo-program, it is printed correctly given that the margins are set to 0 and the "Scale" option has been disabled.
    Thank you very much for your help.
    I am looking forward to hearing from you if it is possible.
    Attachments:
    PrintReport.vi ‏336 KB
    Report.vi ‏6 KB

  • How can we stop communication channel at run time?

    Hi,
      I have a requirement where in we have to stop the JMS Sender communication channel in case the Receiver System is down. Could you please let me know how to stop the sender communication channel at run time.
    Thanks
    Rajeev Gupta

    Rajeev,
    Like Praveen Kumar said, I dont think there is an out of the box solution for this. But if you want to stop the communication channel, you could do it using a BPM.This solution is just something that came to my mind. It would be resource intensive to implement this. But here goes...
    Try to make the call to the Receiver System a synchronous call and have an exception branch in the block which has the synchronous step type. So if the Receiver System is down you would get an error in the Sync Step Type and it would go to the exception branch.Try to make a HTTP call from BPM to stop the communication channel. The URL for the HTTP call could be what Matias Denker suggested. This would stop the communication channel. This solution might however have two disadvantage that i foresee.
    1) It might stop the communication channel not only for system down but for any kind of synchronous error.
    2) Starting the communication channel has to again be a whole different process.
    Thanks
    Praveen M

  • How can I set print paper quality in Aperture

    I have recently converted from IPhoto to Aperture. Great but for one thing. In IPhoto when I send to print to my Canon ip5200r it prompts me for type of paper. In Aperture I can't find how to change papaer setting. All prints are coming out low quality. Any ideas??

    Can I direct you to a great online resource that covers all aspects of Aperture and printing:
    http://digitalmedia.oreilly.com/2007/02/13/insideaperturepodcast-9.html

  • How can you FORCE Classic mode to run on an Intel Mac? OS 9 emulation Rosetta Software Design

    Hello everyone, I had a few thoughts on running Classic mode on intel macs which I wanted to share.
    Now I know little about software design, but maybe someone who does could tell me if these ideas I had are at all feasible:
    Now in the first place I now that, technically, "Classic" mode went out back with Tiger because of the switch to Intel chips. Switching to Intel, Rosetta was required to "translate" pre and non-intel OSX applications, with the exception of Classic since Rosetta does not translate deep enough into the system to do that. As a substitute to Classic, SheepShaver, Basilisk II, etc. can be used to emulate OS 9, but these are very lousy applications compared to Classic mode.
    Is there ANY way whatsoever Rosetta could be edited, or Classic itself so that it will work on intel macs?
    (that is, with the exception of 10.7+ systems since these don't even use Rosetta)
    I know if Classic was placed on an intel mac, it would tell you to download Rosetta, but from there will crashes because frameworks in the system's library does not support (or was not designed for) Classic...
    So what I wanted to know:
    What if an old, Classic supporting PowerPC system's library folder was added to an Intel computer in a location other then that computers real system folder (as not to confuse the real, current system) and Classic manually edited so that it would search for the needed frameworks/etc files in the new location? Would it work?
    Since, after all, it now has the correct "system" to run on (which before Rosetta could not convert), do you think there's any chance it would work and function properly?
    Now beyond that, I wouldn't know the actual results (or consequences). I suppose the main problem to consider would be that the the PPC's system frameworks/etc wouldn't work at all on an Intel (which leads us back to Rosetta lacking in this area), and since those frameworks will be searching for other files in the system library (which would bring them to the current, Intel system) the same results would happen: crash! Or maybe sensing the system was mixed up, one or more files would try to "fix" themselves, and in turn destroy the computer's real system.
    So, would it be worth a try?
    I'd love to hear any other thoughts on running Classic on Intel...

    There is an "easier" way to acquire SheepShaver called Chubby Bunny and I have put together a post with some safe links that are relevant to this topic.  I see that emaculation is one of them.
    Why do you need OS 9 greater than 9.04?
    Feel free to let me know if you need any more help.
    With the newer Intel Macs, you have to run a Classic emulator such as SheepShaver, which requires you to extract the Mac ROMs from your older Classic Mac and then install Mac OS 9.
    A related program is Chubby Bunny, which comes bundled with all of that included.
    More information on SheepShaver:
    http://www.emaculation.com/doku.php/sheepshaver_mac_os_x_setup
    and
    http://www.everymac.com/mac-answers/mac-os-9-classic-support-faq/run-macos-9-on- intel-macs.html
    and more information about Chubby Bunny:
    http://www.macwindows.com/OS9_on_Intel_Mac.html#092408b
    and
    http://hackthemac.blogspot.co.uk/2008/08/chubby-bunny-old-virtual-machine.html
                                  [click on image to enlarge]

  • How can I set FF to refresh each time I visit a website rather than using the cached version?

    I changed a photo in an online database, but can't get it to display the new photo. Tried logging out of the database entirely. IE has an easy setting for always refreshing. Where is that in FF?

    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]
    See also http://kb.mozillazine.org/browser.cache.check_doc_frequency

  • How can I set a minimum slide view time?

    I am using Captivate 6, and would like users that take my course to be required to view each slide for a minimum of 5 seconds before they can click the Next button. I don't want them to just click Next, Next, Next to burn through the course without any "real" learning moments along the way. My best guess is that it requires Advanced Actions, but I'm not really sure which ones to go with. Does anyone else have a different approach that might work better? I'm all ears, fill me with ideas!

    That'd work. But there's another issue [[Warning! TLDR!]]- in my experience you can't force engagement (I've had far more experience USING elearns than I have building them). Either the user is motivated to learn or they're not. Forcing them to spend a minimum of time skimming the content out of sheer boredom through artificially impeding progress will make an already disaffected user either exasperated or furious, while an engaged user won't even notice, because they'll be reading the content.  Unfortunately addressing this is outside of the scope of the designer, as you're dealing with a much bigger issue relating to workplace culture.  It's only my opinion (and maybe I'm just a hippie-throwback), but if you're going into a project with the mindset of designing a learn in such a way as to trap an audience who will, given the option, actively avoid learning, you'll probably produce a much more adversary user experience.  I think sometimes you just need to trust that people will use the tool in the spirit it was intended, because there's a limit to what you can do through design that will actually embed knowledge in an unwilling participant. 
    And anyway, to a certain extent it's a self-leveling system.  Those who haven't learned anything fail, either in the broader allegorical sense or in the case of quizzes, literally.
    Sorry if this wasn't the place to go into the discussion of the philosophies behind e-learning design, I've done a couple of jobs recently where I've tried (and failed) to convince clients of this same fact, so it's floating right at the top of my mind.

  • Every day, I have to re-set all of my app tabs. How can I set them to open each time I turn my computer back on?

    I never see the app tabs on my tool bar after I close the thing down for the night. Is that possible to keep them there??

    App (pinned) tabs and Tab Groups (Panorama) are stored as part of the session data [1] in the file sessionstore.js [2] in the Firefox profile folder [3].
    Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    * https://support.mozilla.com/kb/Clear+Recent+History
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox
    It is also possible to use the "Show my windows and tabs from last time" setting, that is usually a more reliable way to restore session data.
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    If you use cleanup software like CCleaner then make sure that Session is unchecked in the settings for the Firefox application.
    *App Tab Initializer: https://addons.mozilla.org/firefox/addon/app-tab-initializer/

  • How can I set a Session bean timeout

    Hello !
    How can I set a Session bean to time out eg. 48 hours ?
    Thanks
    Uiloq Slettemark

    For stateful session beans you can use the timeout attribute in the orion-ejb-jar e.g.
    <session-deployment timeout=1800 ..>
    this is specified in seconds and Default Value: 30 (minutes)
    regards
    Debu

  • How can I set default printer options on an iMac for an HP pro 8500 printer to print in draft mode?

    How can I set default printer options on an iMac for an HP pro 8500 printer to print in draft mode?

    When you use the Canon driver, the 2 sided printing is set in a different location. There is an entire menu dedicated to it (at least on my mx892). The printer dialog box has a menu selector in the middle of the screen (I think it says "layout" by default). If you click on it, you will see the duplexing options at the bottom. Much more flexibility than the single checkbox available with "airprint". The interface is unusual (at least for me) but you can pre-set up many different configurations (Fast Duplex, Fine Single-sided, B&W, Photo, etc etc.)

  • How can I set Firefox to print to PDF, the only otions I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    A couple of weeks ago, from the file menu, in my print options was to print a web page to PDF, that facility is no longer there. does anyone know how can I set Firefox to print to PDF.
    The only options I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    Firefox generally displays the printers in Windows' Printers folder (Start orb > Devices and Printers). If it is missing one of the printers listed there, could you indicate which one it is, for example, Adobe Distiller, PrimoPDF, CutePDF Writer, etc.?
    If you previously had an add-on which added print-to-PDF functionality just to Firefox, perhaps it got disabled. You could check here:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Extensions
    Also, are you really running Firefox 8.0.1? That version from last November is no longer secure and has been superseded by Firefox 11. If you browse the web widely, you should update for your security.

Maybe you are looking for