Copies window printing in VF02/VF03 through output type

Dear Experts,
I have copied the standard smartform of the Invoice into YLB_BIL_INVOICE and i did the modification according to the client's requirement.
In YLB_BIL_INVOICE, i have taken one window type as Copies Window and i have chosen the radio button Original and Copies. In the window I wrote the code for Copies like Original, Factory Copy, Buyer Copy, Triplicate and Marketing Copy based on SFSY-COPYCOUNT checking. I haven't changed the standard program(RLB_INVOICE).
And I have assigned the smartform YLB_BIL_INVOICE and RLB_INVOICE in NACE settings. When I am viewing the print using VF02/VF03 with output type which configured by SD Consultant it is not showing the Copies means if I mention Number of Copies as 4 in print preview it is showing only single Page and when I gave the print with number of copies as 4 Pages are printing 4 copies but the name of the copies is same for all 4 pages like 1st page as Original and 2nd page as Original etc..
I debugged the code and i am getting NAST-ANZAL = 1. in program, I think it should be 4. Please give me some input to resolve this issue?
Thanks n Regards,
Muralikrishna
Edited by: muraliabap on Feb 14, 2011 6:35 AM

Hi,
I am not clear about the following context.
muraliabap wrote:
if I mention Number of Copies as 4 in print preview it is showing only single Page and when I gave the print with number of copies as 4 Pages are printing 4 copies
Where did you give the no of copies as 4? In the message or Print Dialog?
NAST-ANZAL is from message and OUTPUT_OPTIONS-TDCOPIES is from the Print Dialog. For copies window, no of copies is fetched through OUTPUT_OPTIONS-TDCOPIES (or the Print Dialog), thus SFSY-COPYCOUNT is changed accordingly .
Check the this [link|http://wiki.sdn.sap.com/wiki/display/ABAP/Copies(duplicate,etc.)]

Similar Messages

  • Invoice printout is coming blank through VF02 for New Output Type

    Hi ,
    I have copied a existing output type and create a new one and also copied a smartforms attached to the existing output type and created a new one. Because we want to create a new Invoice with different Layout so we have done this excercise. Now we have done all the required changes and create a new invoice with a new output type with the new layout. I can see the print perview properly, but when i take a print a blank paper comes out and printer goes in idle position and the printer spool also shows the status printing it does not gets complete while the LPDA show printing finished . What would be the reason. How can we resolve this problem. Has anybody gone through such situation?
    Regards
    Edited by: nau on Apr 16, 2010 2:19 PM

    Hi Hari,
    I have mantain VV32, but still the printout is coming blank and also the spool is showing blank doc. While in the Print Preview it is coming Proper. 
    Regards
    Edited by: nau on Mar 24, 2011 9:45 AM

  • Error while triggering program through output type while saving invoice

    Hi,
    I have a scenario where in my Z program needs to be triggered when saving a invoice.
    For that we have attached out Z program to output type which gets picked while saving invoice.
    In the Z program we have written the entire code in Form Entry subroutine.
    In the Z program we have called a FM "SD_SALESDOCUMENT_CREATE", to create a sales order.
    After sales order is created we have used a Commit statement.
    If I run the Z program individually, Salesorder gets created perfectly.
    How ever as per scenario when trying to save the invoice, output type gets picked. But program doesn't get called.
    and when I go to the saved the invoice I get the following error immediately:
    "Error document - Update was terminated"
    I have found that the problem is with COMMIT statement through transaction SM13.
    Can anybody help me with this. I cannot save the sales order without COMMIT, so I have to use it.
    Thanks in Advance,
    Rohan.

    Hi Rohan,
    I have worked on almost similar kind of requirement as you. 
    "Error document - Update was terminated" is because saving of invoice is done in u201CUpdate Tasku201D. Again in that work process, FM also calls for update task, which is not allowed and give short dump.
    Here are two different approaches to cope up in this scenario.
    1.Call FM in NEW TASK.
    Calling Function module in new task will assign new work process and will use different update task.
    Use:
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE' STARTING NEW TASK 'task'
    This will not give update termination error.
    Call of FM in this way will work, but as this will be asynchronies call you will be not able to get status/message out of the FM call result.
    If capturing return message is mandatory, use below approach
    2, Process output type via Job
    Set output type, dispatch time u201CSend with periodically scheduled jobu201D in u201CDefault valueu201D tab.
    Run batch job for program u201CRSNAST00u201D with appropriate variant.
    Please let me know if you need any further details.
    Best Regards,
    Nisarg

  • Form is printing two times from MRRL, output type ERS

    Hi,
    I have copied the standard script MR_PRINT to custom script and done changes in the script to print the invoice form using MRRL transaction (for output type = ERS). Now I am facing two issues. Please help.
    1) The form is printing two times on ise my custom form and one is the standard form.Checked the configuration output type ERS is assigned to my custom form only.
    2)The form is printing a new invoice document for every line item of a Purchase order. Suppose if a PO has two lines item. MRRL is printing the form 4 times. That is custom form for each line item and standard form for each line item. How to fix the issue.
    Are these the technical issues or configuration isssues. I have done changes to only my custom script layout.
    Regards,
    Sudha

    Please reply. If any one has any idea???

  • Two print programs using the same output type in t-code v/40

    Hi,
    I am trying to use the same Output type RD00 to print diferent forms.
    In t-code v/40 we can fill a second Processing but how this work?
    Can someone tell me more about this?
    The final goal is to print diferent forms according to different companies.
               Thank you and best regards
                         João Fernandes

    Hi,
    It is not possible to have 2 different routines to be assigned to one output type in the procedure. I think when you say 2 routines, you are saying 2 logics or you are saying the subroutines KOBED and KOBEV of the routine.
    In all reqmt routines, which is in discussion now, only one of the subroutines will be always called, though I dont know unfortunately which one is this. As you said, that only one of your processing logic works, that is the right subroutine area where the second logic should also be coded. So please move your code from the inactive subroutine area to the active subroutine area. Now you should be able to see both the validations being active.
    Hope this helps. If the case is different, please let us know.

  • Triggering Outbound proxy through Output type

    I am sending sales order Acknowledgement to a file sytem from SAP. For this I am using a outbound proxy. I have a output type say ZCCS created in SAP . My question is how will the outbound proxy will get triggerred.
    what should be the medium type(Print,Mail,External send ...etc) in the output type. & where do I write my outbound proxy code ( I mean should it be a executable program).
    Message was edited by: SACHIN KAGLIWAL

    Lets say you want to send the data whenever you kick off your Print program. just call the proxy method in your ABAP program and it will be kicked off. Or write an ABAP program, use SUBMIT command.
    regards
    Shravan

  • Printing issue in smartform with output type

    Hi ,
    I am facing issue while I am taking print from zebra printer.
    I am trying to take a print from MB90 but its not coming but its giving status 'processed' and same from the spool, in spool its showing status complete but not giving any printout.
    if I m attaching  my smartform with another output type which already working for another label(smartform), then its giving print.
    So, what I want to know..
    Its can be a problem with output type config or from basis side.
    Please help.
    Thanks,
    Sandeep

    well i have seen setting are correct but having one issue it doesnt trigger automatically I do it manually from MB90 and rest of the things are correct becaoz i have seen while debug its going correct form from driver program, when i am runniing from MB90 manually .
    Thanks,
    Sandeep

  • Mailing Invoice through output type - Getting Error "No address exists"

    Hi Experts,
    I am trying to mail the invoice using out put type. I am using the standard out put type MAIL, Print program RSNASTSO and routine SAPOFFICE_AUFRUF_VX for external send 5 and using SP partner type.   I maintained email address in Customer master. When I am assigning output type to send mail its failing and am getting an error as following.
    Object 1001101366
    Output type: Mail
    Processing log for program RSNASTSO routine SAPOFFICE_AUFRUF_VX
    Function module SO_NAME_CONVERT with return code
    Text 110V31001101366                    MAILE0000200290 ID STAM lang
    No address exists
    Error while copying recipient object
    Specify at least one recipient
    Message object FOL35000000000004SCR36000000000089 created or sent
    And the mail is not triggering. Please help me out to resolve this issue. I am an Abaper, SD consultant is not available for me now.
    Thanks and Regards,
    hemanth

    Check whether Note 960088 - FAQ: Sending SD messages externally,  helps you
    thanks
    G. Lakshmipathi

  • Printing multiple forms for one output types.

    Hi,
    I need to print the form 4 times for one specific output type.  My internal table contains only one record, but for that one record also i need to print 4 forms. How can i do this, i tried using control parameters but in vain.
    Any suggestions of how to achieve this,
    Thanks & Regards,
    Ramana.

    Hi,
    I am working with only one smart form. But there are different output types(ZVSL, ZVFX, ZVFE & ZVFI) configured for that form. But for one specific output type (ZVSL), i need to repeat the print for 4 times.
    Thanks & Regards,
    Ramana

  • Invoice Print and Email from same output type

    Hi All,
    We want to print invoice and send an email to customer. Can this be acheived using same output type??
    If yes, plz guide how can we do this..
    I check some queries in forums but they had coding etc.  Can we do it with config??
    Regards,
    Satish.

    I'm not sure why you wouldn't configure two output types. However, you can do this with one output type in a number of ways:
    1. Use a speciial function output (transmission medium 8).
    This allows you to write ABAP code to anything you want. However, you have to manage print contols on yur own as the special function transmssion medium doesn't allow you to specify these on he condition record.
    2. Change the driver program for the print output for the output to send emails.
    You would need to handle the email routing on your own because the output records for print are just for printing.

  • Print purchase order caption by output type

    Hi,
    I have created the new output type"ZNEU" for the taking the Purhcase order printout.
    When  I did  i the changes in the PO simulatenously I have maintained  the versions in the PO.
    Then  I take the Printout by using NEU o/p type.Then in the printout the header comes as "Changed Purchase orders".
    But when i take the printout by using the "ZNEU" output type , then  in the printout "Changed Purchse orders "is not appears.
    It is appearing as "Purchase order'.
    Now my requirement is that ,if the printout is taken for the amended PO (with version maintained ), by using "ZNEU" output type ,the heading should be appear as "Changed Purcahsed order".
    Pl. let me know how can i do this ? Whether this is related to config setting or need to change in the Program?
    Thanks in advance,
    Regards,
    CVB.
    Note : Subject line changed.
    Edited by: Jeyakanthan A on Jun 9, 2011 1:01 PM

    Hi,
    Check in configuration check step Set Up Change Displays
    Whether you need to add that field in that place or not?
    Also check the remaining steps also again if any missing there.
    Regards,
    Rahul .

  • Form triggering through Output type

    Hi All,
    There is a issue which i am facing , I have create a output type ZFIN and attached a custome program xyz with this outputtype. when the output is triggered throught transaction VL32n the custom program should be trigger but ther is an error raising which is going to my SAP inbox that is " PERFORM_TOO_MANY_PARAMETERS".
    Regards
    Dhiraj Shetty

    Hi,
    1. Run transaction SU01
    2. Enter <user name> => EDIT
    3. Go to tab 'Parameters'
    4. Select parameter ID = 'NDR' and enter value 'X'
    5. Save
    Done

  • Print quantity output type in NACE

    Hi all,
    we have created a new output type in NACE for the shipping notification (application V2).
    Where can I configure the standard print quantity when using the output type?
    We want to print out the document twice every time it is triggered.
    Thanks
    Anne

    Hi Anne,
    Whenever we trigger a smartform, we normally get a pop-up window where we mention various printing options (no. of copies, device name etc...) But these options can be programmed in our driver program as well and also we can suppress this pop-up window. These printing options are part of a structure which you can find using F1 help on the pop-up window.
    Now coming to your query, you can provide the number of copies you want in your program by populating the appropriate field of the structure and also by suppressing the pop-up window. So, after that each time when we print your smartform you will get the desired number of copies.
    I hope it will help you to solve your issue.
    Regards,
    Sambaran Ray.

  • PO email output type program  causes unable to  print preview

    Hi Guys,
    i am customising a program for print preview email for PO output type, but the preview does not come out , here is the code:
    form entry_neu using ent_retco ent_screen.
      data: dtext like tline.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
    concatenate l_nast-kschl 'for ' l_doc-xekko-ebeln  into
    l_nast-TDCOVTITLE separated by space.
      ekko = l_doc-xekko.
      perform set_textsymbol using '&EKKO-WAERS&' EKKO-WAERS.
      select adrc~name1 into rm06b-ltex1
        from t001
        join adrc
        on   adrcaddrnumber eq t001adrnr and
             adrc~date_from  le sy-datum   and
             adrc~nation     eq space
       where t001~bukrs = ekko-bukrs.
      endselect.
      select single regno into t9s01-regno
        from t9s01
        where bukrs = ekko-bukrs.
      if sy-subrc eq 0.
         T9S01-BUKRS = EKKO-BUKRS.
      endif.
      perform set_textsymbol using '&RM06B-LTEX1&' RM06B-LTEX1.
      perform set_textsymbol using '&T9S01-REGNO&' t9s01-regno.
      perform set_textsymbol using '&T9S01-BUKRS&' T9S01-BUKRS.
      lfa1-lifnr = ekko-lifnr.
      select single adrc~str_suppl3 into lfa1-name4
        from lfa1
        join adrc
        on   adrcaddrnumber = lfa1adrnr
        where lfa1~lifnr = ekko-lifnr.
      perform set_textsymbol using '&LFA1-LIFNR&' LFA1-LIFNR.
      perform set_textsymbol using '&LFA1-NAME4&' LFA1-NAME4.
      perform set_textsymbol using '&EKKO-WAERS&' EKKO-WAERS.
      perform read_text using 'F15' DTEXT-TDLINE.
      if dtext-tdline is initial.
            if ekko-ekgrp eq 'CP1' or ekko-ekgrp eq 'C03' or
               ekko-ekgrp eq 'P01' or ekko-ekgrp eq 'P02' or
               ekko-ekgrp eq 'P03' or ekko-ekgrp eq 'P04' or
               ekko-ekgrp eq 'P08'.
              move 'Requisitioner.' to DTEXT-TDLINE.
            elseif ekko-ekgrp eq 'CP2' or ekko-ekgrp eq 'C01' or"B0691
               ekko-ekgrp eq 'C04' or ekko-ekgrp eq 'P05' or
               ekko-ekgrp eq 'P06' or ekko-ekgrp eq 'P07' or
               ekko-ekgrp eq 'P09' or
               ekko-ekgrp eq 'C05'.                             "B0691
              move 'Accounts Payable.' to DTEXT-TDLINE.
            else.                                               "B0691
              move 'Accounts Payable.' to DTEXT-TDLINE.             "B0691
            endif.
       endif.
       t9s02-text4 =  DTEXT-TDLINE(17).
       perform set_textsymbol using '&T9S02-TEXT4&' T9S02-TEXT4.
        CLEAR GV_NO_CONTRACT.
       perform read_text using 'F13' T9S02-TEXT7.
       IF T9S02-TEXT7 IS INITIAL. "Buyer did not type anything
           MOVE 'stipulated at the end of this PO.' TO T9S02-TEXT7.
           MOVE 'X' TO GV_NO_CONTRACT.
        ENDIF.
       perform set_textsymbol using '&T9S02-TEXT7&' T9S02-TEXT7 .
       SELECT SINGLE VERKF into LFM1-VERKF
           FROM LFM1
           WHERE LIFNR = EKKO-LIFNR
             AND EKORG = EKKO-EKORG.
       perform set_textsymbol using '&LFM1-VERKF&' LFM1-VERKF .
         loop at l_doc-XEKPO into ekpo where zwert = 0.
           if ekpo-peinh ne 0.
             ekpo-zwert =  ( EKPO-MENGE * EKPO-NETPR ) /
                           ( EKPO-PEINH * 1000 ).
           else.
             ekpo-zwert =  ( EKPO-MENGE * EKPO-NETPR ) / 1000 .
           endif.
           modify l_doc-XEKPO from ekpo.
         endloop.
    clear: gv_print, gv_terms, gv_tcode.
          gv_print = tnapr-FUNCNAME.
          gv_terms = tnapr-sform.
          gv_tcode = tnapr-FONAM5.
          call function 'Z_ME_PRINT_PO'
               exporting
                    ix_nast        = l_nast
                    ix_druvo       = l_druvo
                    doc            = l_doc
                    ix_screen      = ent_screen
                    ix_from_memory = l_from_memory
                    ix_toa_dara    = toa_dara
                    ix_arc_params  = arc_params
                    ix_fonam       = tnapr-fonam                "HW 214570
                    gv_no_contract = gv_no_contract
                    gv_print       = gv_print
                    gv_terms       = gv_terms
                    gv_tcode       = gv_tcode
    end of additions
               importing
                    ex_retco       = ent_retco.
        endform.
    did i miss anything in the coding? pls advice

    hi,
    There are two options.
    1. Change the output medium of the output type to Print putput 1(No 1).
    2. For the sender customer go to transaction XD02 and give your mail ID instead of the customers and check. You will get the output in PDF format.
    Thanks,
    Kasiraman R

  • Print Form using Output Type

    Hey Guys,
           Can any one tell me how can i Print a SMARTFORM using its Output Type. Should i hav eto do anything with Print Program stuff.
           Helpful answers will be rewarded.
    Thanks,
    Prashanth

    You will have to call the SMART Form from your print program. The print program will be called by the standard SAP code, using the configuration that you will have to do in the NACE transaction.
    Choose the specific application in NACE transaction, click on the output types. now, choose the output type, and clock the Mail and processing routintes and you can configure your print program and form here.
    In side the program you will call the form.
    Regards,
    Ravi

Maybe you are looking for

  • Bugzilla, FAQ-O-Matic open to the public

    Hello all, I am pleased to announce that our bugzilla database and a fledgling FAQ-O-Matic are now available for use by you, the general public. Think you found a bug? Have a good idea for a new feature? Go to http://bugzilla.solarmetric.com:8080 to

  • Report output for the screen

    Hello The application POC that I'm contributing to is a task tracking system. The task is the central table and in support of that are notes. A Task can have many notes - or it can have zero notes. I have an SQL statement that I have written, which c

  • How to update xml from portal

    Can i update weblogic.xml from portal(programmatically). i am using WL platform 8.1 sp2. Now i am manually adding each principal name. For ex: <principal-name>mark</principal-name> Can i achieve this programmatically from portal. Any solution TIA Mah

  • SQL FUNCTION to compute MEDIAN

    Hi Just as we use MAX and MIN to compute the maximum and minimum values using SELECT query in SQL, does anyone know of a direct/indirect function/method to calculate the MEDIAN of a given set of values. Powerbuilder provides median function. I am loo

  • One suggestion to keep track of answered posts

    Hi Below the control panel we have...reward points and your question. I request you to have a small link which shows the answers posted.. Assume if i answer some question and the questioner replied back with some detailed scenario......i have to go t