Stop printing on LOCL and allow only on assigned printer

HI Gurus!
I have created a program to print my forms onto a specified printer on my selection screen . The problem is that when I run the program and assign a printer in the selection screen and execute , it does print on my assigned printer but at the same time it also gives an ouput print on my LOCL printer. I would like to suppress it from printing onto my LOCL printer and only print on the printer specified. Is ther a way I can do it through my code itself , instead of configuration as this would be specific to this report only?
LOOP AT it_report INTO wa_report WHERE selkz = 'X'.
    lv_cnt = lv_cnt + 1.
    SELECT * FROM vbfa INTO TABLE ta_vbfa WHERE
          vbelv = wa_report-vbeln AND
          vbtyp_n = 'U' AND
          vbtyp_v = 'C'.
    IF sy-subrc = 0.
      SORT ta_vbfa BY erdat DESCENDING erzet DESCENDING.
      DELETE ADJACENT DUPLICATES FROM ta_vbfa COMPARING vbeln.
      READ TABLE ta_vbfa WITH KEY vbelv = wa_report-vbeln ASSIGNING <fs>.
      SUBMIT rsnast00
               WITH p_again = pa_again                          " Repeat output.
               WITH p_print = pa_print                          " Printer.
               WITH s_kappl = 'V3'                              " Billing application.
*              WITH s_kschl IN so_kschl                         " Output types.
               WITH s_kschl = pa_kschl                          " Output types.
               WITH s_nacha = '1'                               " Print.
               WITH s_objky EQ <fs>-vbeln AND RETURN.      " Invoice number.
      IMPORT count = count
             tp_rspoid = tp_rspoid
             returncode = returncode FROM MEMORY ID sy-uname.
      tp_print = 'X'.

Yes thats what has been done in the program . I believe the printing at the locla printer is already done when it comes to this part of my program in the code above. AT the
CALL TRANSACTION 'VF01'  USING bdc_tab OPTIONS FROM lwa_bdcoptions
                          MESSAGES INTO it_bdcmess.
  WAIT UP TO 5 SECONDS.
  WRITE: / 'BDC Messages:'.
  SKIP.
  LOOP AT it_bdcmess INTO lwa_mess.
    CALL FUNCTION 'RH_MESSAGE_GET'
      EXPORTING
        arbgb             = 'VF'
        msgnr             = lwa_mess-msgnr
        msgv1             = lwa_mess-msgv1
        msgv2             = lwa_mess-msgv2
        msgv3             = lwa_mess-msgv3
        msgv4             = lwa_mess-msgv4
      IMPORTING
        msgtext           = lc_msgtxt
      EXCEPTIONS
        message_not_found = 1
        OTHERS            = 2.
    WRITE: /5 lc_msgtxt.
    lv_invno = lwa_mess-msgv1.
  ENDLOOP.
it goes to the LOCL printing and ten goes to the other part of the code mentioned above where it prints the form again.So I beleive I have to put in something in the code here which will restrict it from printing to LOCL. I would really appreciate if someone can put in some input as how to stop the printing here at call transcation and then the issue will be resolved.
Thanks

Similar Messages

  • Why can't I print in black and white only?

    Why is the HP Officejet Pro 8600 Plus not able to print black and white only if the black cartridge is still not empty?
    What I mean is I went into the settings to set the printer to print black and white only as well as print text only in black.  Yet I am FORCED to replace the cyan, magenta, and yellow cartridges because they are depleted.  What does cyan, magenta, and yellow ink have anything to do with printing black considering a SEPARATE black cartridge exists and is still full?
    I am aggravated at how the driver for this printer is designed TO FORCE me to purchase nonblack cartridges when I purposefully set the printing to be BLACK ONLY.  I am unable to go forward with my printing.  This is considered a show stopper and is unacceptable considering that the setting I assigned and the cartridge(s) depleted message contradict each other.  If the setting is made to print in black and white only including text, then print black and white since I know the black ink is still available.
    Take into consideration that printing can take place at anytime.  Not being able to use black as my alternate color (WHICH IS NOT EMPTY AND IS A SEPARATE CARTRIDGE) forces me to stop.  I am unable to go forward until the store opens.  WalMart is not always an option.   That is time lost.
    The inability to switch to use the black cartridge only is a time waster.
    Let's call it for what it is, a form of ransom. HP wants me to spend money on color cartridges that have nothing to do with printing black and white.   When I am ready to print in color, that should be a time of my choosing.
    Incidentally, the form I am trying to print is black and white only.  No color is on this form.  It makes no sense to force color printing of a black and white document.
    This question was solved.
    View Solution.

    Hi,
    To protect itself specially the printheads, many printers NEED other inks even they only print black. During the warming up process, printers require all inks therefore they may stop before we can continue. Some printers allow user to print (specially the ones which have tri-color ink tank) but they may print at a baby snail speed.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can i make my officejet 6500a print in black and white only?

    I just bought an officejet 6500a and I can't figure out how to make it print in black in white only.  I print a lot of stuff that doesn't need color and want to save my ink. On some prints it gives me that option when I print. but for the most part it doesn't allow me to change to black and white on things i am printing off the web

    Pages 30-34 of the user manual for the Officejet 6500A covers how to change print preferences for the printer with both Mac and Windows. It covers documents, brochures and photos and covers finding the gray scale option. Here is a link to that manual http://goo.gl/6J61R .
    I hope that this helps.
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • How can I print in black and white only from mobile device

    I print coupons from the coupons.com app. I can change the settings on my printer through my computer to print in black and white only so as not to use up all of my color ink. How can I change this on my iphone to print in black and white?

    Hi,
    HP ePrint app on a modile device allows you to print Grayscale mode
    Regards
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to print in black and white only on hp photosmart 6520

    Cannot find a place to select print in black and white only on my HP Photosmart 6520 printer.
    It prints color just fine, but sometimes I do not want to use my color cartridges. I selected B&W instead of gray scale, but cannot stop the color printing.
    Thanks

    Hi,
    Please try (for Windows):
    Double click printer icon on desktop,
    Clich Set Preferences
    Click Advanced
    Under Grayscale, select Black ink only
    Click Ok/Apply ..
    Please note: the printer still need color inks during warming up process.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to print in black and white only?

    Hello,
    I have HP Color Laserjet cp1515n. I downloaded and installed "HP_CP1510_series_full_solution_EMEA3-v4.0" from HP's website for the driver. 
    When printing (in the properties for the printer) there is no option whether to print in black and white only or not. Please help me get that option. And please tell me how I can save toner.
    Thank You
    I have windows xp 

    Hello!
    You can get this accomplished within most word/printing applications or preferences by selecting 'Greyscale' printing or black and white only.
    You can find an article related to this function with more details here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01514143&tmp_task=useCategory&cc=us&dlc=en&lang...
    Hope this helps!
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • Printing in black and white only - looking for a definitive solution

    Hi
    I've been trying to find out once and for all how to make sure my black and white text documents are printing only from the large pigment-based cartridge (525 PGBK), rather than using the smaller black dye-based cartridge (526BK), or from a combination of the dye-based colour cartridges. I've trawled through endless forums, and finally in frustration I recently called Canon's Australian phone support team.
    I thought I'd nailed it. The phone support person told me that if the document I'm printing is definitely black only, then all I need to do is print normally, with grayscale DE-selected. He said nothing about also de-selecting duplex. But I've since read online advice that contradicts this in relation to other models (I haven't found any advice based specifically on the MG6150, apart from the phone guy from Canon). Some say you need to SELECT grayscale and DE-select duplex; others say to DE-select both grayscale and duplex; others say to select grayscale, DE-select duplex, and also select dither (on my screen that's under Main > Print Quality > Custom). I'm now wondering whether I've nailed it after all.
    If anyone from Canon is reading this, can you please give a definitive answer to these questions:
    1. How do I ensure that my black and white text documents print only from the large pigment cartridge?
    2. Can I print in automatic duplex using this method, or do I have to do manual duplex?
    2. Will this also work for purely black and white NON-text documents as well (e.g., photos that have been converted from colour to B&W)?
    3. If not, is there another way of forcing B&W NON-text documents to print from the pigment cartridge? What about a way of forcing colour documents to print from the pigment cartridge?
    4. If my smaller black dye cartridge (526BK) isn't being used up at the same rate as the other dye cartridges, is there a way of forcing the printer to use this instead of the pigment cartridge for B&W text documents, but NOT to mix in any of the colour cartridges at the same time?
    5. Does this procedure work for all other Canon printer models in addition to the MG6150, or just a limited range?
    Many thanks for your patience in reading this -- I'm really trying to get the best out of my printer rather than give up and buy a different brand, and I'm sure others would appreciate a definitive answer to these questions as well.

    I have at MG8100 and it seems that there is no solution to this. I have scoured the web for one and it seems that there is no way to print in black and white only. The grayscale option uses all the colours including black to print.
    I have gone through a ton of colour ink just printing black and white documents. Its cost me a fortune and I've worked out that I can get it done cheaper by going to the print shop.
    As far as I am concerned this unbelievable. A printer that doesn't give you the option to print using black ink only! And its not advertised or made known in any way. You have to buy the product and then find out later that it does not have a black and white print option. It seems there are a lot of people out there that are unhappy about this, and the "problem" seems to go quite far back. Why haven't Canon responded by adding this feature?! I wont say it here, but I think it must be obvious. Brings to mind the story of housecleaning product manufacturers that increase the size of the closures so that consumers will use more of the product, which is actually wasteful, so as to increase the purchase cycle.
    This leaves a really bad taste in my mouth. I'm flogging mine now, and I am done with Canon for good!

  • Hp 6100 printer. how do i print in black and white only?

    Just bought an HP6100 Printer and can't get it to print in black and white only. I clicked "Gray" in the setting but didn't seem to help. Still prints a yellow smile face.  Thanks, Larry

    Hi,
    Which application are you using ? Based on its manual (page #65):
    Most print settings are automatically handled by the software application. You need to change the settings manually only when you change print quality, print on specific types of paper or transparency film, or use special features.
    You need to set this up from the application(s) and you can set as default too.
    More info is in the following link:
      http://h10032.www1.hp.com/ctg/Manual/c00753187.pdf
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HP 8500 All-in-one printer - how can I print in black and white only (to save color ink)?

    I want to be able to select the option of printing in black and white only to save color ink.  How can I do that?

    What operating system? You can generally find an option for "Print in grayscale" and "Black ink only" in the Color or Advanced tab of the Printer Settings.
    Some color ink will still be used to keep the printheads from clogging, see here for information.  (The Officejet 8500 is an IIC printer in the vocabulary of that page.)
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Print in black and white only at hp desktjet 1515

    Hello
    I've a problem with printing in black and white only
    I don't found any tutor in manual or at internet how to print black and white only.
    I mean black and white not grayscale
    Thank you

    hi, where did you change the color profile? I have a Hp Photosmart printer too and if I remember rightly, when you click 'print' in whatever application you are printing in there should be an option in one of the dropdown menus that comes up to change everything to black and white.

  • Hp 3915. vista 32 "print queue issue" and i have to clear print queue and redo print.

    hp 3915.  vista 32 "print queue issue" and i have to clear print queue and redo print.  I think it may be a driver issue. Is there a driver for 3915 using Vista. Mine says only 2000 and XP. Thanks.

    Hi there ken4863,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?

    When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?  Thanks

    sandrafromsilver spring wrote:
    When I try to print from my iPad I see a message "searching for printer" and then "no printer found.".  I have a printer application loaded and it finds my wireless printer.   How do I get the iPad to do the same so I can print from emails, the web, etc?  Thanks
    Go to the following link:
    http://jaxov.com/2010/11/how-to-enable-airprint-service-on-mac-os-x-10-6-5/

  • If I have a document that is 10 pages and I only want to print pages 2.4.6 how can i select just those. The selection button is grayed out

    i want to print only selected pages not the whole document.. HELP

    Firefox allows printing of a'' range of pages'', for example, page 2 to 5. But not a non-contiguous set of pages.
    Firefox allows you to print a ''selection'', but by that Firefox means the part of the page you selected with the mouse or keyboard, so again, a continuous range.
    If you don't want to print 3 times, I suggest using a PDF printer driver as an intermediary. Then you can print any individual pages you like using the much more full-featured print dialog in Adobe Reader or Adobe Acrobat.
    If you do not have one, here are two free PDF printer drivers I have used:
    * PrimoPDF - http://www.primopdf.com/
    * PDF Creator - http://www.pdfforge.org/pdfcreator
    If you are just printing for quick reference and don't mind a "trial edition" banner on your PDF, I really like this one due to its handy preview-before-save feature:
    * pdfFactory - http://fineprint.com/pdf/

  • Hoiw do I force my new mf8580cdw to print in black and white only (grey scale)?

    First of all I am using windows 7 - 64bit and my printer is the MF8580CDW. I am using the UFRII print driver. I have tried changing one/all of the profiles in the print settings and printer properties to "black and white" printing but the software keeps chainging my selection back to "Auto[Color/B&W]". I have also tried enabling the toner saver option to no avail. When I changed the settings I clicked "Apply". Why is the driver not saving my settings? How do I force the printer to always print in black and white?

    Hi,
    From the application used to print open the print dialog.
    Click Properties / Preferences / Settings to access the Printing Preferences dialog.
    Click the Advanced button.
    Under Printing Features set the Print in Grayscale value as Black Ink Only.
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do i get my hp 3070 to print in black and white only?

    I am struggling with changing the print settings on my hp 3070 B611a to print only in black and white. please assist. Thanks

    Hi,
    From the application used to print open the print dialog.
    Click Properties / Preferences / Settings to access the Printing Preferences dialog.
    Click the Advanced button.
    Under Printing Features set the Print in Grayscale value as Black Ink Only.
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

Maybe you are looking for