Applescript. Making dependant buttons in dialog windows

Hello, I am learning on making dialogs with Adobe InDesign CS3.
Is it possible to "grey out" some parts of the dialog window, depending on a certain selection of a radio button? I mean: I have a radio button group and depending on which radio button is selected, I want to grey out some other options in the very same dialog window that are not relevant anymore (for example some check boxes).
And if possible can anyone provide me with an example code?
And if impossible can it probably be done with Applescript Studio? I don't know.
Kind regards,
Bertus Bolknak

Hi Bertus,
In JavaScript – in ScriptUI, not in InDesign’s dialogs – you can set enable property of control objects to false.
As to Applescript Studio, I think, It’s possible too, but I’m not sure – attributes pane in the Info window has ‘Enabled’ checkbox. I did an interface with radio buttons group (BTW in Applescript Studio it’s called matrix) long ago, but it was quite a hassle. I was doing it by trial-and-error method as couldn’t find an intelligible reference. But the interface came out more attractive, and what was more important to me, Cyrillic characters were fully supported, as opposed to InDesign’s dialogs.
Kasyan

Similar Messages

  • AppleScript on Click Button in Dialog

    How do I script ‘when this button is clicked, do this without closing the dialog’ ?

    The solution is to loop the whole script, as in:
    set loop to true
    repeat while loop is true
    set question to display dialog "dialog text" buttons {"Continue", "View Webpage", "Cancel"} default button "Continue" cancel button "Cancel"
    set answer to button returned of question
    if answer is equal to "Continue" then
    set loop to false
    --continue
    end if
    if answer is equal to "Do B" then
    --code to open webpage
    end if
    end repeat

  • Safari Upload file dialog box lets me click links and buttons on parent window.

    Safari Upload file dialog box lets me click links and buttons on parent window. I can even click Choose file button and open multiple Upload File dialog boxes. How can I show Upload file dialog box as modal?
    Operating system: Windows 7 and Windows XP.

    Safari Upload file dialog box lets me click links and buttons on parent window. I can even click Choose file button and open multiple Upload File dialog boxes. How can I show Upload file dialog box as modal?
    Operating system: Windows 7 and Windows XP.

  • Switching into a dialog window's buttons (ok/cancel) w/ a keybord shortcut

    how can i do this?
    on pc i'm used to press "tab" button to switch from the default option to the other.
    for example when selecting "shut down the computer" in the apple menu, it appears a dialog window saying "the computer will shut down in 1 m and ..." selected default button (blue) is CONTINUE, how do I switch to CANCEL button without using the mouse?
    Thank you

    Normally you use "tab" to move around within a dialog box on a Mac too, spiderresistance.
    To automatically hit the "cancel" button, though, use "esc"
    You can find very extensive lists of Mac keyboard shortcuts by going to the "Help" menu when in the Finder , choosing "Mac Help" and then typing "keyboard shortcuts" in the search box.
    Cheers
    Rod

  • When Mozilla upgraded, it complained that my Adobe Flash Player also should be upgraded. The upgrade downloaded but no icon appeared, and when I found the EXE and ran it, only the Quit button in the dialog window was an active link, so I got nothing.

    The Installation instructions allow for Firefox or IE. I have both, but the IE path was dead. The Firefox path said to use the icon on the desktop - but there is no such icon. The downloaded executable is there, but when I invoke it and read the license agreement, I still only have the dialog window with Quit and Install - however, only the Quit button is live.

    1. There are two different versions of Flash. The ActiveX version for IE, and the Plugin version for Firefox and other browsers. You need to install both versions if you continue to use IE along with Firefox.
    2. Did you close Firefox before attempting to install Flash? Did you download it to the Desktop, because it wouldn't end up there automatically with the default download settings in Firefox?
    Tools > Downloads = does that download show in the Downloads window? <br />
    If so, right-click on it and use '''Open Containing Folder'''. <br />
    Does that downloaded file have '''-ax.exe''' at the end of the name of that file? <br />
    If so, you got the ActiveX version and need to download it again. <br />
    If not, close Firefox while keeping that "containing folder" open. <br />
    Wait about 20 seconds and then try installing Flash.

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • "ESC" button to close Dialog window? how it can be done

    Dear Friends,
    my application has got lot of Dialog windows, How can i map ESC button so that when the users press ESC button the window will get close automatically, all these windows designed so show data only.
    Please advise me.

    For Esc button it is not possible anway u can use F1 key,use Key-Help tigger on block level and write
    Exit_form (no_validate);
    but it will disable help menu on this block but i dont think so it is relate to user the sample code would be for F1 key is
    Tigger : Key-Help
    Level : Block
    exit_form(no_validate);
    By pressing F1 on this block your form can exit .You can exit this trigger on Form level and it will work for all blcoks in ur Forms if any problem contact my personel email address
    [email protected]
    thank you
    Khurram Siddiqui

  • Stuck Thread when closing dialog window with 'X' browser button

    Hello,
    I moved my application to JDev 11.1.1.3 and it seems I've got a problem appearing since. Here it is:
    I've a bouded task-flow having 5-6 JSP pages.
    3 of them can open a dialog window to show a PDF report using dialog:report such as:
    <control-flow-rule id="__1">
    <from-activity-id id="__2">etats</from-activity-id>
    <control-flow-case id="__3">
    <from-outcome id="__7">dialog:goReportEtat</from-outcome>
    <to-activity-id id="__8">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__9">
    <from-activity-id id="__10">real</from-activity-id>
    <control-flow-case id="__11">
    <from-outcome id="__13">dialog:goReportReal</from-outcome>
    <to-activity-id id="__12">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__14">
    <from-activity-id id="__15">previ</from-activity-id>
    <control-flow-case id="__16">
    <from-outcome id="__18">dialog:goReportPrevi</from-outcome>
    <to-activity-id id="__17">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    When a go to "Etat" page, launch my report window, close it with the 'X' button of the browser and going back to let's say "Real" page, the page just won't load completely and I got this error after 10 mins:
    *<Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "616" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@1c68ec0[*
    *GET /myapp/faces/javascript/favicon.js?_adf.ctrl-state=1303iqjhth_40 HTTP/1.1*
    *User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)*
    *Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8*
    *Accept-Language: fr*
    *Accept-Encoding: gzip,deflate*
    *Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7*
    *Keep-Alive: 115*
    *Connection: keep-alive*
    *Referer: http://127.0.0.1:7101/myapp/faces/my-flow/real?_adf.ctrl-state=1303iqjhth_7&_afrLoop=255213241325922*
    *Cookie: JSESSIONID=t942Mx3KqWtx05CvKcYMfGyCKNBV9nf27jsvLcpRMKJJnyng7Gjj!1056711659*
    *]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:*
    *     sun.misc.Unsafe.park(Native Method)*
    *     java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)*
    *     java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)*
    *     java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)*
    *     oracle.adf.model.dcframe.DataControlFrameImpl.lock(DataControlFrameImpl.java:294)*
    *     oracle.adf.model.dcframe.DataControlFrameImpl.beginRequest(DataControlFrameImpl.java:336)*
    *     oracle.adf.model.BindingContext.setCurrentFrame(BindingContext.java:2107)*
    *     oracle.adf.model.BindingContext.setCurrentDataControlFrame(BindingContext.java:2009)*
    *     oracle.adfinternal.controller.util.model.DCFrameImpl.makeCurrent(DCFrameImpl.java:126)*
    *     oracle.adfinternal.controller.state.ViewPortContextImpl.makeCurrent(ViewPortContextImpl.java:1006)*
    *     oracle.adfinternal.controller.state.RequestState.setCurrentViewPortContext(RequestState.java:159)*
    *     oracle.adfinternal.controller.state.ControllerState.setCurrentViewPort(ControllerState.java:1247)*
    *     oracle.adfinternal.controller.state.ControllerState.releaseViewPort(ControllerState.java:1413)*
    *     oracle.adfinternal.controller.state.ControllerState.processViewPortReleaseQueue(ControllerState.java:2114)*
    *     oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:62)*
    *     oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:531)*
    *     oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)*
    *     oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:124)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:70)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)*
    *     oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)*
    *     oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)*
    *     javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)*
    *     weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)*
    *     weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     com.figaret.payroll.view.util.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:124)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)*
    *     oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)*
    *     org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)*
    *     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)*
    *     weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
    *     weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)*
    *     weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)*
    *     weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)*
    *     weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)*
    *     weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)*
    *     weblogic.work.ExecuteThread.run(ExecuteThread.java:173)*
    After a while, my Weblogic Server throws an outOfMemoryException and I have to restart it which is dreadful in production mode.
    My report page contains just an inline tag receiving a bytes Arrays from a Servlet to show the PDF doc:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="#{res['report.title']}" id="d1">
    <af:form id="f1">
    <af:panelStretchLayout startWidth="0px" endWidth="0px" topHeight="30px"
    bottomHeight="30px" styleClass="AFVisualRoot"
    id="pt_psl1">
    <f:facet name="top">
    <!--<af:commandButton text="#{res['template.null']}" id="close"
    partialSubmit="true" visible="true"
    immediate="true">
    <af:returnActionListener/>
    </af:commandButton>-->
    </f:facet>
    <f:facet name="center">
    <af:inlineFrame shortDesc="#{res['report.title']}" id="if1"
    source="/pdf/report.pdf"/>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    I tested by putting a button into my report page to close the page and containing a returnActionListener tag and when I close the page with this button, everything is fine.
    <af:commandButton text="" id="close"
    partialSubmit="true" visible="true"
    immediate="true">
    <af:returnActionListener/>
    </af:commandButton>
    Is this normal?
    My problem is that our users are used to close the dialog using 'X' button so it is a 'must' for me to make it work.
    Is this normal? OR Am i doing something wrong there?
    I spent a full week looking for mistakes and searching into the net but I'm lost there
    Any help welcome! :)
    Jack

    Hi Puthanampatti,
    That's what I thought and I did try to do what you said:
    I added this into my report page:
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    window.onbeforeunload = simulateClick;
    function simulateClick() {
    if (document.getElementById('close') != null) {
    // simulate a click
    //alert('simulate a click');
    document.getElementById('close').click();
    //alert('CLICKED');
    </af:resource>
    </f:facet>
    And here my close button into report page:
    <af:commandButton text="#{res['template.null']}" id="close"
    partialSubmit="true" visible="true"
    clientComponent="true" immediate="true">
    <af:returnActionListener/>
    </af:commandButton>
    But, this doesn't resolve the problem.
    When doing so, I have this javascript error:
    Erreur : AdfXMLRequest is not defined
    Fichier Source : http://127.0.0.1:7101/payroll/afr/partition/gecko/default/opt/core-11.1.1.3.0-0084.js
    Ligne : 457
    SO now I'm quite lost and dunno what to do next.
    I am 99% sure it was working well when I was developing with JDev11.1.1.2.
    Is it not a regression?
    Jack

  • Refresh Table Data after dialog window is closed.

    My JDeveloper version is 11.1.1.6.0
    I have a master-detail scenario where in Master records(Table Component) are displayed in top half of the splitter panel.
    Detail records are displayed in second half of the splitter control using table components placed on tab panel.
    After clicking on the LinkButton in Master record a bounded-task-flow is invoked in a separate inline dialog window (applicaitonModal).
    In the dialog window changes to the child records is done using SelecteManyShuttle Component.
    After invoking the commit action to close the modal window the child records do not refresh or the child records do not display changes immediately. Only after the page is refreshed the changes are visible.
    Kindly suggest a solution.
    Thanks
    Deven

    are you using af;dialog then you cn use dialog listener see this
    http://www.techartifact.com/blogs/2013/03/handling-ok-and-cancel-button-in-afdialog-using-popup-in-oracle-adf-by-dialogl…

  • Can no longer do Cmd N within the Save As dialog window

    Hey guys
    For some reason I haven't been able to make new folders within the Save As dialog window by pressing Command N after installing Leopard, I have to manually click the New Folder button. Were commands changed? Is it a bug? I would appreciate if someone can tell me how to get this command back.
    Thank you

    Glad to hear you aren't crazy, but apparently some programmer somewhere was. I always use the button when I'm in Save as to create a new folder, something I do rarely, so I assumed it worked the way it did everywhere else, and, of course when I tried it here in Leopard it did work the way I assumed it ought to. Evidently there was an, umm, how to put this nicely....interface inconsistency (that sounds polite, I think) that was corrected in Leopard. There, I'm sure the original programmer won't be offended. Not to mention his boss, or whoever is supposed to be in charge of Human Interface Guidelines Compliance issues. Whoever it is seems to take frequent vacations....
    Francine
    Francine
    Schwieder

  • Edit open/save as dialog window

    is there a way to edit the Open/Save As dialog window shortcuts in DW/FW?
    Thanks
    GN

    Take a look at this:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_17216&sliceId=1
    Bryan Ashcraft (remove BRAIN to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "eliblow" <[email protected]> wrote in
    message
    news:fjkqvv$gig$[email protected]..
    >I would like to create open Save As dialog using
    ColdFusion. The user will
    >be
    > clicking a button and the dialog will pop up asking the
    user if he want to
    > save
    > the file. I know that it can be done using JavaScript,
    but I am not sure
    > how it
    > could be done with CF. any suggestions?
    >
    > Thank you in advance.
    >

  • Save As Dialog Window Size Problem

    I'm having an issue with the Save As and Save Linked File As dialog windows. When using the expanded dialog window, the sides and bottom of the window extend beyond the edges of my screen.
    Thus the New Folder, Cancel, and Save buttons are cut off and all I can see is the very top of each button and none of the button text.
    I can't resize the window manually because the bottom right corner isn't visible. I also tried clicking the green Zoom button to no avail.
    How can I get this window to size properly?

    Hi CW3X,
    I think those settings are saved in Safari's property list file. Opening that file in either Property List Editor or TextEdit and scrolling through the entries highlights a cluster of "NSPanelExpandedSizeForSaveMode" strings, which look like they may be relevant.
    ~/Library/Preferences/com.apple.Safari.plist
    If you're not comfortable editing the file manually, you can try moving the .plist file to your Desktop and restarting Safari. Hopefully everything will return to normal.
    Yang

  • Save / Export Dialog Window Size

    In InDesign CS4, Mac Leopard, when I go to save or export my dialog window comes up about as small as it can. I'm using column view. In CS3 I would resize to my liking and every time I would save or export from whatever file it would be sized the same as I left it. Now it always comes up tiny making me resize every time. This happened as soon as we switched to CS4. Seems to only be in InDesign, not PSD or AI.
    Any thoughts?
    Thanks!

    Here's a screen shot of what I am talking about. I'm sure my description is confusing.
    Basically it always comes up this size and I have to enlarge by draging or maximizing.
    I would prefer to resize once, say open up to 3 columns, and have it come up like that all the time.
    Thanks!

  • When printing Firefox does not open the Print Dialog window

    When printing at our office we often need to print to multiple printers and not just the default printer. When printing in Firefox, however, the print automatically gets sent to the default printer and I do not get a print dialog window. I have reset Firefox's printer options, changed the prefs.js file, and launched Firefox from safe mode to check if an add-on is affecting printing - all to no avail. When I print from Chrome, or (shudder) Internet Explorer I get a dialog box giving me printer options. Your help and responses will be appreciated.

    There is a hidden preference to bypass the dialog, but it definitely is not set by default. To check for that:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''print.''' and pause while the list is filtered
    (3) If you discover a preference named '''print.always_print_silent''' there's your trouble.
    Next question would be, where did it come from?! Some possibilities:
    (A) A user.js file that overrides prefs.js at startup. See: [[How to fix preferences that won't save]].
    (B) A lock file in the program folder. See: http://kb.mozillazine.org/Locking_preferences

  • How to Skip Print dialog window in smartforms

    Hi Experts,
    while printing the smartforms i dont want Print dialog window. I want as and when i pressed the print
    button it'll directly print with the specified printer.
    I tried with lot of option but it is not working for me . May be i missed some prameter to pass.
    Have a look in to my code below and make me correct .
    DATA : WA_CPARAM TYPE SSFCTRLOP,
           WA_OUTPUT TYPE SSFCOMPOP,
           JOB_OUTPUT_INFO TYPE SSFCRESCL.
          WA_CPARAM-PREVIEW = 'X'.
           WA_CPARAM-NO_DIALOG = 'X'.
          WA_CPARAM-DEVICE = 'PRINTER'.
          WA_OUTPUT-TDNOPRINT = 'X'.
           WA_OUTPUT-TDDEST = 'LP06'.
           WA_OUTPUT-TDIMMED = ' '.
           WA_OUTPUT-TDNEWID = 'X'.
          WA_OUTPUT-TDDELETE = 'X'.
           WA_OUTPUT-BCS_LANGU = SY-LANGU .
          WA_OUTPUT-TDPRINTER = 'X'.
    CALL FUNCTION FNAM
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS = WA_CPARAM
       OUTPUT_OPTIONS     = WA_OUTPUT
       USER_SETTINGS      = ' '
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS = T_SSFCOMPOP
      USER_SETTINGS = ' '
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       = SSFCRESPD
       JOB_OUTPUT_INFO            =  job_output_info
      JOB_OUTPUT_OPTIONS         = WA_OUTPUT
        TABLES
        ITAB1                      = IT_ZADVMUTH1
    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.
    Thanks In Advance.
    Satya

    Try with below parameters, it may help you to close the thread.
    WA_CPARAM-device = 'LP06'.
    WA_CPARAM-no_dialog = 'X'.
    WA_OUTPUT-tdnoprev = 'X'.
    WA_OUTPUT-tddest = 'LOCL'.
    WA_OUTPUT-tdnewid = 'X'.
    SELECT SINGLE * FROM usr01
    INTO ls_usr01
    WHERE bname = sy-uname
         AND spdb  = 'G'.
    If sy-subrc EQ 0.
    WA_OUTPUT-tdimmed = ' '.
    ELSE.
    WA_OUTPUT-tdimmed = 'X'.
    ENDIF.
    Regards,
    SaiRam

Maybe you are looking for