How to assign a printer to a script form

Hi Experts,
can any one of you help me in expaling thsi with code elaboratly.
bcos i have seen some section scrren with requesting an output device.
but the end user is always using a transaction  whre he can't give any printer name.
see below.
selection-screen  begin of block aaa with frame title text-001.
select-options: so_lgnum for zle_binlblprint-lgnum, "whse
                so_lgtyp for lagp-lgtyp.
parameters:       p_ldest like itcpp-tddest.
parameters:       p_formu like t329f-formu.        "DEFAULT 'ZBINLABEL'.
parameters:       p_prtqty(9) type n default 999999999.
parameters:       p_arciv(13) type n default 7.
parameters:       p_print like rldru-druck  default 'X'.
selection-screen end of block aaa.
selection-screen  begin of block xxx with frame title text-100.
parameters:       p_tddel like itcpo-tddelete.      "DEFATUL 'D'.
parameters:       p_tdimm like itcpo-tdimmed default 'X'.
parameters:       p_datas like itcpo-tddataset default 'BinLbl'.
parameters:       p_copis like itcpo-tdcopies default '1'.
parameters:       p_autor like itcpo-tdautority default sy-uname.
selection-screen end of block xxx.

Hi sridhar
*To give the Number of copies required according to user input
  w_itcpo-tdcopies = p_prntno.
*<b> To set the name of the output device  to the default value
  w_itcpo-tddest = '  '.</b> *
To set the name of the device type to the default value
  w_itcpo-tdprinter = ' '.
*To delete the spool request immediately after printing
  w_itcpo-tddelete = 'X'.
*To print the request immediately after completing it.
  w_itcpo-tdimmed = 'X'.
*Name of spool request
  w_itcpo-tddataset = 'NEW'.
*To create a new spool request
  w_itcpo-tdnewid = 'X'.
*To enabe print preview
  w_itcpo-tdpreview = 'X'
please reward points if helpful.

Similar Messages

  • How to assign copied driver program to script form rvinvoice01

    how to assign copied driver program to script form rvinvoice01

    Hi,
    You can do this by using NACE transaction.
    In NACE t-codewe have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
    If suppose data can be read from EDI then we should go for condition records.
    So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
    Go to the Transaction NACE.
    choose the related sub module.. like billing or shipping
    doubel click on Output Types
    Choose the Output Type for which whcih you wanted your script to trigger
    Then select the Output Type and double click on Processing Routine
    Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
    Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
    however, you need admin permission. Usually BASIS people do thid configuration.
    Hope this helps.
    Regards,
    Richa

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How to assign a keystroke to a script?

    Hi,
    I put a script (which arranges open windows) on Safari's script folder. How can I assign a keystroke to run that script from Safari?
    Thanks!

    Hi,
    Assigning Form and Driver proram to an Output type is as follows.
    1) Go to NACE transaction
    2) Select an Applicatin(V1-Sales,V2-Shipping,V3-Billing)
    3) Click on Outputtypes Button
    4) Comes to Change Mode
    5) Click on New Entries button
    6) Specify Output type,Form name and Program and Save it.
    Check these links
    /people/venkata.ramisetti/blog/2006/09/21/configuring-output-types-for-pdf-based-print-forms
    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
    You should know the Application of a document first Like:
    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
    so first select the Application type (ex: EF) for PO and press OUtput types
    then a list will come in that you should know the related output type for PO.
    in this case it is NEU,
    select that and click on the processing Routines button on the left side
    it will display the Medium, Driver Program and the Script form or smartform related to that document..
    All nace entries are stored in TNAPR table
    1. In simple words, it
    is used for printing documents eg. purchase order, sales order etc.
    2. eg.
    For company1, there is purchase order A,
    for company2, there is purchase order B,
    for purchasing organisation 3, there is purchase order C.
    Now, this type of MAPPING (which is totally dynamic and changeable)
    cannot be HARDCODED in the standard sap program.
    3. Hence, NACE,
    provides this facility to MAP
    as per users requirement.
    ie. We can determine the OUTPUT using NACE.
    Output means for eg. Printing of purchase order
    Determine means = dynamically detecting which output (PO eg)
    hence, it is also called OUTPUT DETERMINATION using NACE.
    regards,
    Omkar.
    Message was edited by:
            Omkaram Yanamala

  • How to find standard print programs for ADOBE forms

    Hi All,
    My question is how to find the standard SAP print program for a SAP provided ADOBE form. For example - how to find what is the satndard SAP provided print program for the ADOBE form for payment advice 'F110_AVIS_INT'.
    As by default in the transaction F110 (where the payment advice form configuration is done), a SAP Script form is attached and the print program assigned is an SAP Script (as it contains call to function module like open_form, write_form... ) program and not an ADOBE print program.

    Hi Renu,
    I have gone through the link provided by you but it only shows a list of standard PDF forms.
    My question was how to find the standard SAP provided print program (or driver program which contains the data fetch logic and passing of the data to the interface of the ADOBE form) for these SAP provided ADOBE form.
    If SAP has provided standard ADOBE form then definitely they would also have provided the standard print program too ?
    @Srihari,
    The path system --> Status --> program SAPLFPUIFB is the standard program for the SFP transaction and not for the payment advice form F110_AVIS_INT.
    It will be same for all the ADOBE forms if we check in System --> Status --> Program.

  • How to make the print command wait until form is rendered.

    This is an ongoing issue that so far I haven't been able to figure out how to fix, so I'm hoping that someone will have a good idea or work around. I'm working in LiveCycle Designer ES v8. using JavaScript.
    I have to include a feature that allows the user the choice to print out a dynamic form to fill out by hand. So I've created a button that asks if this is what they want to do, if they answer "Yes", then several things are scripted to happen. All data is reset, some subforms and pages are made visible, while other subforms are hidden, and text fields are expanded. This causes the form to expand from one page to 15 pages. Then it prints using this command:
              xfa.host.print(1,   
    "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    The problem is that when the print dialogue box appears, the Print Range is always set to less than the total number of pages. It looks like that the print commands fires before the form has completed rendering. This isn't a big deal since the user can click to set the Print Range to "All" which will print all 15 pages. The problem is that most people don't read the dialogue box. They click "okay" and end up with their form cut off.  Then I get phone calls that my form doesn't work.
    Is there anyway to delay the print command until everything has finished rendering? Or set the Print Range to always go to "All"?
    Thanks in advance for your help with this.

    It sounds like you'd be fine if you just separated the print function from your "Yes" button. It will require a 2nd button click from the user but that would be the only inconvenience.

  • How to disable Save & Print functionality in PDF form?

    Hi,
    This is the requrement, client need to disable Save & Print functionality in PDF form. (They not allow employee save & print the hrforms payslip)
    May I know how to do it. Thank you.
    What is the parameter value in structure SFPOUTPUTPARAMS  that I need to set in order to  disable Save & Print functionality ?
    call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = SFPOUTPUTPARAMS
        exceptions
          others          = 1.

    Hi Nayan,
    I'm the person who did the WD as well, using IFrame to contain the PDF binary. WD site didn't contro the binary source.
    I pre-define the 'FP_JOB_OPEN' before calling the PDF generation.
    Optional: Set output parameters
      gs_outputparams-nodialog  = ''.
      gs_outputparams-preview   = ''.
      gs_outputparams-getpdf    = 'X'.
      gs_outputparams-nopreview = 'X'.
      gs_outputparams-noprint   = 'X'.
      gs_outputparams-noarchive = 'X'.
      gs_outputparams-nopributt = 'X'.
      gs_outputparams-arcmode = '1'.
      gs_outputparams-noarchive = 'X'.
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputparams
        EXCEPTIONS
          OTHERS          = 1.
    Regards,
    Eric

  • How to control the print pages in se71 form or smartforms

    Dear All:
             I have a issue for control the print pages in se71 form or smartforms.
    For example:my report used form or smartforms to print.it have 12  total pages.but user want to print the .3rd  page.3rd  page is customized.
             How can I do it?
    Thanks
    Sun

    Hi,
    By using command node, with some command we can handle this.

  • How to assign drop down list in XML form to properties

    Hi ALL,
    When i was creating <b>Edit form</b> in XML Forms Builder,for <b>Bulletin Board</b> Application, i had to assign two drop down list boxes to properties created under Content Management Configuration > Global Services > Property Metadata. Can any one help me how to ASSIGN it or provide any related documents.
    Suitable replies will be rewarded, for sure.
    Regards,
    Shankar

    Hi Shankar
    Please have a look at this document, especially the part about the cookbook. It explains how to add properties in a dropdown list to your XML form.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    Good Luck!
    Barry

  • How To Assign FSV to Cash Flow Report/Form

    I am working on Standard cash flow statement report - S_ALR_87012273/S_ALR_87012272 (can someone also tell me the difference between the two reports). can you please tell me what needs to be configured in order for this report to run and display data. I believe I need to change assign the FSV to Cash Flow form in Report Painter. AmI right, if this is the case where do I assign it. Because the cash flow report that I ran has FSV "INT" not the one which is configured.
    Please reply as soon as possible
    thanx

    Already replied. Try it and revert back
    Cheers
    V.Krishnan

  • How to determine realdy printed for SAP script?

    Dear all:
            When the data real printed through the printer(SAP script), then I how to knew it's printed?
            Because I need to control data printed or not. Please help.
            Thanks a lot!!

    Hi,
    You can check the NAST table entry with the document number.
    If already printed then there will be an entry.
    Regards,
    Ram

  • Re: How to Assign Alternate Print Drivers in Different Versions of Windows.

    For Windows 7, there is no "Advanced Tab" in the "Properties" box. I have searched now - for almost 2-hours - trying to find out how to install a new / different driver for the HP Officejet 4620.

    You have to select "Printer Properties" not "Properties" by itself.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How to assign a URL in the Tabular Form

    Hi,
    I am using the htmldb.item api's to create manually,the Tabular form. I have got a column in the database(View) like
    ''||substr(DESCRIPTION,1,30)||decode(substr(DESCRIPTION,30,1),null,null,'...')||'' DESCRIPTION,
    which displays as a URL and when the user clicks this URL, the page will have a popup page(in this case it is redirected to page 52).
    My probelm is , if I use wwv_flow_item.display_and_save for this column, I dont see the URL, but it displays the above entire string (along with the HTML tags).
    If I do not use wwv_flow_item.display_and_save, I can not use this item in the COllections as I am using the some validations to display an Error message (Inline with field and in Notification)
    I cannot display the Validation error in the - On Error Page as I should prevent the user to use the browser buttons
    Please let me know how to display the URL and to have this information in the Collection
    TIA
    Ravi

    Ravi,
    Can you fetch the column twice, once into a non-escaped display type that does not generate a form item and again into a hidden item for your collection?
    Scott

  • How to enable the printer option in print priview screen in script

    Hi All,
    Please tell me how to enable the printer option in script print priview screen.
    Thanks & Regards
    Murali

    hi
    the print option TDNOPRINT has to be intial  (' ').  NOT 'X'
    TDNOPRINT  CHAR  1  0  No printing from print preview
    this will do.
    Gr., Frank

  • How to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

Maybe you are looking for