How to control the print out

Hai
I create the scrip program… I want to get only one print out in each document number. After that I want to restrict that print out that each document number… how I should do it. Ex: I got the print out doc no. 00111 at once after that never gives the print out if I click print command…I want to restrict only one print out… (I create the Z-table and I want to pass flag when I press print command but I don’t knw how to do it if I get the solution for that my problem wil solve)
Regard
nawa

Hi,
try this..
data: v_docno like ztable-docno.
select docno from ztable
                    into v_docno
                    where docno eq <curr doc no> and  "u should provide current doc no here
                              printed eq 'X'.                     " suppose 'printed' is the flag field name
if sy-subrc NE 0. "i.e if form is not printed for this doc no, then print form
call function open_form
call function write_form.
call function close_form.
elseif.
message e001(zmsg).   "message: form already printed for this doc no.
endif.
regards,
Ravi

Similar Messages

  • How to take the print out of the entire data from the waveform chart

    i am using cont acq to spreadsheet file.vi to acquire data from a number of channels. this vi also plots the acquired data on the waveform chart. i want to take the print out of the entire data. how can i do it ?
    also how can i take print out of the data between given interval??
    please reply me
    thank you

    There are a number of different ways of achieving your goal. Depending on which version of LabVIEW you have and which development environment, the Report Generation Toolkit is a very powerful tool. Attached is an example that prints the acquired data without the use of additional toolkits.
    Jonathan Hildyard
    Applications Engineer
    National Instruments
    Attachments:
    DAQ_with_Print.llb ‏115 KB

  • 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 control the printer selection popup in SAP SCRIPT .

    Hi all,
    I have written a print program which is calling 5 different layouts forms and printing all the shipping related documents such as packing list, delivery note, shipping label etc . The print program is
    attached to a single output type ZEDM. 
    The issue is that for printing every document a pop-up comes for the printer selection and i want
    only one pop-up and all the document should be printed.
    Can anyone tell how to control the pop-ups.
    Thanks and Regards,
    Syed

    Hi,
    Open the form with dialog once. and then other forms pass ' ' to dialog parameter in OPEN_FORM .
    Open the form for printing
      Capture the return code
      Capture messages
    Other froms
    Open the form for printing
      Capture the return code
      Capture messages
    Whenever you have a new form use START_FORM
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device                      = 'PRINTER'
          dialog                      = 'X'
          form                        = p_fname
          language                    = sy-langu
          OPTIONS                     = p_itcpo
        EXCEPTIONS
          canceled                    = 1
          device                      = 2
          form                        = 3
          OPTIONS                     = 4
          unclosed                    = 5
          mail_options                = 6
          archive_error               = 7
          invalid_fax_number          = 8
          more_params_needed_in_batch = 9
          spool_error                 = 10
          codepage                    = 11
          OTHERS                      = 12.
      IF sy-subrc <> 0.
        w_retcode = 1.
        PERFORM protocol_update.
      ENDIF.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device                      = 'PRINTER'
          dialog                      = ' '
          form                        = p_fname
          language                    = sy-langu
          OPTIONS                     = p_itcpo
        EXCEPTIONS
          canceled                    = 1
          device                      = 2
          form                        = 3
          OPTIONS                     = 4
          unclosed                    = 5
          mail_options                = 6
          archive_error               = 7
          invalid_fax_number          = 8
          more_params_needed_in_batch = 9
          spool_error                 = 10
          codepage                    = 11
          OTHERS                      = 12.
      IF sy-subrc <> 0.
        w_retcode = 1.
        PERFORM protocol_update.
      ENDIF.
    CALL FUNCTION 'START_FORM'
        EXPORTING
          form      = w_fname
          language  = sy-langu
          startpage = 'PAGE'
          program   = sy-repid.
    Regards
    Krishna

  • How to control the printing resolution in JAVA

    Do we have any control on printing resolution in JAVA?
    If yes, how?
    Because I can print out the component but its resolution is same as screen or even less.

    Hi,
    Maybe you have to be more explicit. What do you want to print? What Component? Only a image? A Swing component (JTree, JTable, JPanel, etc)?

  • How to control the print spool.

    hi, there,
    Can i control the spool' name and generation unit.
    for example.
    set the name of spool & unit of spool , then call smartforms.
    then output

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

  • How can i take out the print out of invoices

    i want to see the print preview of billing document and i want to take the  print out also
    but i m unable to do this
    so wat is the navigation to do this please suggest.
    regards
    subrat

    Output of Invoice:
    Billing document (Change Mode) : VF02 --> Enter (takes to main screen) --> on the top line Goto --> Header --> Output  --> maintain output type --> Enter --> back --> Enter printer (in most cases LOCL) --> Enter & SAVE.
    Move out of billing document & revisit Billing Document in change mode(VF02) --> In the initial screen itself, on the top line o to Billing Document --> Output --> Screen / preview > Enter> a screen will pop-up on which printer name is mentioned --> Enter & you will get the preview of Invoice.
    To Configure printer, take assistance from basis consultant.
    Regards,
    Rajesh Banka

  • How to Get the Print of General Ledger with Opening balances

    Hi Friends.
    How can I get the print out of G.Ledger with all line item transactions and opening balances in a company code?
    Please explain.
    Regards.
    Srini

    hi
    for line item-
    goto s_alr_87012282 and select menu bar "list">print
    for g/l statement
    goto s_alr_87012332 same step above
    rgs

  • Value not populating in the print out (sales order) for the 1st time

    Hi friends,
    While saving a sales order, the order confirmation going to the user is not populating the LDC field. LDC is Last date of change. This field can be found in the Additonal data 2 tab of the material in the sales order. When I enter a date in this field and save, the print preview of the output has this value, but the print out does not carry this value.
    Another weird thing about this issue is that, the second time i trigger the output, the print out has the value.
    Please give me some clue on where to check and how to go about fixing this problem.
    Regards,
    Shanu.

    Dear Shanu,
    This issue may be related bug in the output program so take help of ABAPer to fix the issue.
    I hope this will help you,
    Regards,
    Murali.

  • How to lock the Printer of LaserJet Pro 500 Color MFP m570dw

    how to lock the Printer of LaserJet Pro 500 Color MFP m570dw

    You can set a control panel lock security level and password for your HP LaserJet series printer. To lock your printer, follow below link:
    http://h20564.www2.hp.com/hpsc/doc/public/display?​docId=emr_na-bpl03612

  • How to control the size of live data in Coherence?

    How to control the size of live data in Coherence?
    See the following statement:
    Pause times increase as the amount of live data in the heap increases. We recommend not exceeding 70% live data in your heap. This includes primary data, backup data, indexes, and application data.
    --Excerpted from http://coherence.oracle.com/display/COH35UG/Best+Practices                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • How to control the size of SVG images in epub files?

    There is unfortunately no support for SVG files in InDesign.
    Most of my images in jpg convertes nicely, but the small ones do not.
    Therefore I want to use SVG files which I have created in Illustrator.
    But how do I set the size in the epub file? Right now, whatever I do, they come out too big and I don't know how to control the size.
    Is there a program, like Sigil or other, that can place the image for me - I'm no html wizard you see....

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • How to control the line-in volume input via LabView?

    Anyone know how to control the line-in volume and balance input via LabView?

    I assume you are referring to audio line-in volume control and lerft-right balance...
    If so, then check out this thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000D83A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Look at the info near the bottom from Paul S & Spectre. They talk about "winmm.dll"
    -cheers-
    JLV

  • Any ideas on how to control the amount of sustain pedal data that Logic Pro 9 records? Every time I press the sustain pedal down, it records 4 sustains. Same thing when I release the pedal. Thanks!

    Any ideas on how to control the amount of sustain pedal data that Logic Pro 9 records? Every time I press the sustain pedal down, it records 4 sustains. Same thing when I release the pedal. Thanks!

    This gets confusing, you have two Macs with different issues and two pedals with different issues? First let's sort out what's what. So, do the issues come from the pedals or from the Mac software? To find out, simply switch the pedals and note their behaviour. No change: it's the software, change: it's the pedals (imho the most likely scenario).
    Second, what kind of pedals are they? Can you name the type of pedal too? The Yamaha what and the Mgear which?
    Third, with the 4 fold data problem, are the doubled events simultaneous, or a few ticks apart, or more?
    Also, you have no MIDI keyboard? Are the pedals both "standalone"?
    I think you have to sort this problem at its' source, which are the pedals. You could, if push really comes to shove, perhaps create some sort of ingeneous/elaborate transformer setup in the environment to filter the extra messages, although with the 4/4 sustain events that may not even be possible. With the "stepped" events you could set up a filter to just block all events with values 20-110 or so.
    But much better would be to configure the pedal(s) correctly.

  • Lab view programming to control the printer

    Hi,
    As part of my senior design, I am working on LAb view programming. Though I know some basics of lab view, I don't know how to apporach it in the right way. Our device is a dispenser (ink jet printer) which has to dispense user defined amount in user defined location. lab view program has to be interfaced with the printer to do so. I know some basics of lab view and currently I don't know where I am heading to. I have also read the one discussion forum on Lab view FPGA to control an inkjet printer which  discussed about FPGA module.  
    Thanks,
    Sundeep

    No, I'm saying that depending on the level that you are interfacing would determine whether the FPGA would be a good answer. If you are interfacing to an existing inkjet printer, where you may need to just provide it with the appropriate values through an existing interface, then FPGA would probably not be the answer. If you are connecting at a lower hardware level where you need to directly control the print head, positioning "stuff" etc., then it might. But as I said, and you have reiterated, it is expensive. FPGA allows you to through "software" define a hardware logic. It is particularly good for those things that need very critical timings between signals as it basically programs a digital logic card, therefore the timings are no longer software/operating system dependent, they are in hardware, with outputs and internal signal changes dependent on internal, hardware, clock transistions. You mention that the printer is an epson inkjet. Are you talking a standard, plug it into a computer, epson printer? Are you expecting to "hack" its hardware to get control of those functions you mentioned, like user controlled ink quantity, etc.? You will have to tell us what you have in a little more detail, and what you expect to have to do. Interface to a printer can be hooking up a parallel, or usb connection and sending the codes to print (which in LabVIEW can be its own hurdle!) to the extreme of cutting into existing hardware to introduce "internal" control signals that substitute for the original. The first step to trying to solve your technical problem is being able to describe what it is that you are trying to do, in as much detail as possible.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for

  • I want to repeat an event on a set number of days.

    I work shift work and my schedule repeats every 28 days.  For example, I work day shift today and in 28 days I will work day shift.   I want to input my work schedule into iCal, but it doesn't let me create a repeatable event for a certain number of

  • Mail Push Not Working:  Keeping Work and Personal Separate but together!

    My understanding (and a big reason I dropped by Blackberry) of Mobile Me was that if I READ an E-mail on iPhone and then deleted it, it would delete it from my iMac at home (or MacBook for work). This does not seem to work? I know there are some issu

  • Parse tab delimited file after upload

    I could use some advice. I have a requirement to parse and insert an uploaded, tab delimited file using APEX. Directly off of the file system, I would do this with an external table, but here I am uploading the file into a CLOB field. Does PL/SQL hav

  • D3js installed through npm doesn't work

    I installed nodejs from [community], then used npm -g install d3 --python=/usr/bin/python2 to install d3js.  It seems everything works fine and I see a d3 folder in "/usr/lib/node_modules/" According to the d3js site, at this point I should run a loc

  • HT1711 My songs are not showing up in my wish list. How do I fix that?

    My songs are not showing up in my wish list so I can't download them. How do I fix this?