Multiple printing for smartforms

Hello again masters,
i am trying to print  smartform page for 2 times. i am using tdcopies parameter for that but it is still printing for once. what am i not doing ?
here is my code :
data : gv_smart TYPE rs38l_fnam,
       con_pa  type ssfctrlop,
          out_op  type ssfcompop.
INITIALIZATION.
out_op-tdcopies = 002.
START-OF-SELECTION.
perform smartform.
form smartform.
   "IF NOT itab_tb[] IS INITIAL.
     CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING
         formname = 'Z_HEDIYECEKI_DENEME'
       IMPORTING
         fm_name  = gv_smart.
     call function gv_smart
     exporting
       control_parameters = con_pa
       output_options     = out_op
       user_settings      = space
       it_data            = itab_tb
     exceptions
       formatting_error   = 1
       internal_error     = 2
       send_error         = 3
       user_canceled      = 4
       others             = 5.
endform.

Hi,
Some printer servers (host spool systems) do not handle the copy counter sent by R/3 spool system. What's the setting in SPAD for copy counter on the output device you ar using:
and can you try "Pass Copies as Separate Output Request" if it is not yet set?
Edit in: and is there no exception processing just because you shortended code for posting here, or is there really no exception processing after FM calls..? Please... if someone (possibly "fresher") having to look for hours to get to the source of wierd problems after inheriting your work (and then cursing when he/she finally sees missing exception processing) does not worry you, every time somebody neglects to process exceptions when programming with smartforms, enraged programming gods kill a kitten, and a timid "fresher" somewhere is made to do SAP assignment before being given training, guidance and friendly encouragement, and Larry Ellison's "henchmen" get to badmouth HANA... Please, think of the "freshers" and kittens At least take the exceptions out of the call so the thing dumps, should anything untoward happen...
cheers
Janis
Message was edited by: Jānis B

Similar Messages

  • Duplex printing for smartform

    Hi,
    Has anyone worked on Duplex printing for smartform? If yes, please tell me the procedure/steps that need to be taken for the same.
    Thanks
    Regards

    Hi,
    You can select Duplex printing in th epage properties of a page (D = Duplex)
    The printer STARTS duplex printing from that page. This means that the printer triggers a pagefeed on that exact moment and starts printing on a new page. So when you have 1 page that stretches over more that one sheet of paper this means trouble. after every page the flow of the program starts a new Duplex print (thus feeding the current sheet and starts at a new page) this results in a new sheet of paper every page. this is not what you want.
    You can solve this by creating 2 pages and set their respective NEXT PAGE to each other. Page 1 you set to DUplex, pagae 2 you leave blank..
    But notice that when you select duplex printing most (if not all) printers start printing on the backside of the paper. When you use pre-printed (logo) paper, you will find that it prints the front on the back etc.
    This can sometimes be corrected (if needed) by sending prescribe commands to the printer directly.
    Good luck!
    Joris

  • Multiple print for pdf form retains the value from previous!

    Hello All,
    We have developed Adobe Print Forms for our business requirements.
    When we try to print these forms from the direct transaction, it prints fine. But when we try to select multiple forms to be printed with one transaction, the pdf form generated has data from all the selection!
    Eg: Form printed properly for Delivery Note through transaction VL02N.
    The same form when we try to print for multiple deliveries from transaction VL71, i retains the data and prints one huge form having all delivery data!!
    Please help us out in this issue and let us know what is tha we are missing in this process!
    Thanks a lot for your time and help.
    Gaurav

    Hi ,
    i think that the problems comes form the data you give to the form, do you make a refresh of internal table before populated them ...
    regards

  • Zebra printing for smartforms

    Hi
    SAP version ecc6.0
    I want to roate a single text on the lable by 270 degrees. I have searched this forum and came to know about including a print control. therfore for the device type lzeb2( 200 dpi print head) created a print control z270 with the following A0BFD.
    description of the command
    Description The ^A command specifies the font to use in a text field. ^A designates the
    font for the current ^FD statement or field. The font specified by ^A is used only once for that
    ^FD entry. If a value for ^A is not specified again, the default ^CF font is used for the next
    ^FD entry.
    Format ^Afo,h,w
    This table identifies the parameters for this format:
    Important u2022 Parameter f is required. If f is omitted it defaults to the last value of the ^CF
    command.
    Command Details
    f = font name Accepted Values: A through Z, and 0 to 9
    Any font in the printer (downloaded, EPROM, stored fonts, fonts A
    through Z and 0 to 9).
    o = field orientation Accepted Values:
    N = normal
    R = rotated 90 degrees (clockwise)
    I = inverted 180 degrees
    B = read from bottom up, 270 degrees
    Default Value: the last accepted ^FW value or the ^FW default
    ^FD means field data
    my questions
    Do i have have to create a print control for 300 dpi printer  or is there a differenet universal  solution?
    secondly with ^A i specify the type of font i use....i simply don't wont to be concerned with the type of font? I want to use what is used in the smartform?
    thirdly the text to be printed it as the right hand side of the label so in order to see that the text gets printed i have to create
    which simply exceeds the length of the label length, but it achieves the rotation and the printing is within the label itself...strange
    do you guys have any alternative solution / recommendations
    thanks
    Sachin

    correction  for the below text in the thread
    "thirdly the text to be printed it as the right hand side of the label so in order to see that the text gets printed i have to create
    which simply exceeds the length of the label length, but it achieves the rotation and the printing is within the label itself...strange"
    thirdly  the text to be printed it as the right hand side of the label so in order to see that the text gets printed , i create a window
    that is horizontal but exceeds the length of the lable, but usiing the aforementioned command prints the text roated by 270 degress and within the label, so the text printed is within the label.
    I find it strange

  • Multiple printing

    Hi,
    This is an email we received from a customer, is there a way to fix this situation?
    When I print and I ask for multiple copies, for some reason it sends one copy at a time to the printer instead of sending multiple copies and then the printer does the multiple printing.
    for instance when I ask to print a sales order, I ask for 10 copies it sends 10 documents to the printer instead of sending 1 document and the printer would print 10
    so it slows down my network too.
    Is there any way to fix this?

    1)      No, Iu2019m not. I use the printing document feature. Choose Sales Order, then enter 10 copies. Then another window pops up, and then I choose which order I want. Then I say OK. The Choose Printer window pops ups, and then I press OK. What SAP does, it sends 1 copy to the printer, then another, and another, until itu2019s 10 copies. Now, Iu2019ve tried choosing 1 copy from the Printing documents window. And then choose 10 from the Choose Printer window. But then it only prints 1.
    2)      And no I cannot use the print document default quantity, as itu2019s never the same amount of copies. As mentioned above, it should be chosen as 1 copy, and then the printer should be the one deciding on how many copies you want. That way it would send only 1 copy to the printer, and then the printer would make 10 copies. Now as it stands, the way SAP works, it bogs down the network, and also the program (client). As sometimes we print 10 sales orders with 3 copies each. So that means SAP sends 30 copies to the printer.
    Oh also, itu2019s for everything (not just sales orders). The ones that we ask multiple copies is Sales Orders though, we also do it for A/R Invoices,

  • How to print multiple form for tag printing in smartforms

    Dear Experts,
    I am working on tag printing in smartforms .in tag printing i am showing
    1.material no.
    2.material descrption.
    3.material doc no.
    4.Quantity
    5.supplier.
    my requirement is that for example , if the mat. document no.  has a material of 10,000.00 quantity , in tag printing it should come 1,000.00 of each tag  and total no of tag should be 10. and it should come one after another .
    and the page format size 8 x 6 cm. is it possible .if possible how ! how the system will know how many tag is to be printed . please reply its urgent.

    Hi Kumar,
    Let me know. is the quantity 1000.00 is fixed? if so thn you can achieve the requirement.
    For example:
    There are  A-material with 20000.00 quantity thn  u can first divide the quantity with 1000.00
                 v_ex = 20000.00/1000.00=20.
    thn  you can repeat the  print of the smartform for 20 times by passing  the parameter to  form fm.
    Please reward if  useful.

  • Excise invoice Print for multiple invoices

    Hi All ,
    i have developed a z smartform and attached to standard tcode J1IP o/p type J1I0 . The o/p is comming fine when i select one excise no after excecuting tcode J1IP But if selected multiple invoices by checking the checkbox and press print preview or print
    button each time it is giving print preview/print diaog. i.e i need to execute print for first invoice and again i have to come back and again it will ask print prview/print dialog for second like wise n times for n no of selected documents .
    my requirement is like when i execute tcode J1Ip and when i select multiple invoice i should get only one print preview or print dialog for all documents . how to achieve this

    HI friend,
    Its simple.
    Put all the invoices in a single loop. I think you will be calling the smartform function module for each and every invoice. Don't do like that. Just collect all the invoices in the final table first and after that display the invoices.
    I think you can understand what i am saying.
    Please try and let me know if you have any queries i will help you.
    Thanks,
    Sri Hari

  • Print for range of customers at a time in smartforms

    hai all..
      how can we get  thr prints for range of customers in a smartforms.
      here iam giving range of customers kunnr-low and kunnr-high.
      i want the output  should be prints form kunnr-low to kunnr-high.
    here iam wriing the bdc fro this smartofrms to print customers.
    is there any option option to print the range of customers form smartofroms at a time ...
    tanx in advance.

    Just write the below code to print multiple customers
    Loop at itab.(internal table containing the range of custiomers)
    call function (function to call the smartform)
    endloop.
    Regards
    Lalit

  • How to print multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

  • How do I get multiple lines to print for a blank text field so that it can be filled in by hand?

    I have to design forms that are fillable electronically and by hand.  The problem that I am running in to is supplying multiple lines that will print for people that are hand filling the form.  I have tried to add an image of lines behind the text field, but these would get in the way when the form was filled in electronically.
    I am using LiveCycle Designer ES2 v. 9.0 on a Windows machine.
    Thanks.

    Ok.
    Take a textfield
    Go to Object | Allow multiple lines
    Go to Layout | Height | activate "Expand to fit"
    Go to the initialize-Event or readyform (You have to change the _ for your textfield)     this.rawValue = "___________\n___________\n___________";
    Go to the enter-Event   this.rawValue = null;
    Go to the exit-Event  
              if(this.rawValue == null)
                    this.rawValue = "___________\n___________\n___________";
              }else{}
    With this solution you can simulate the same as pattern see above.
    I hope this is helpfull for you,
    Mandy

  • Condition records- setting printer for multiple vendors at the same time

    Hi all,
    I have maintained condition record for POs for Key combination of Doc type,Purch Org and vendors.Now for a particular doc type and P.Org , I have around 50 vendors. I need to change the printer for all these 50 vendors to 'printerx'.Is it possible? I tried selecting multiple vendors at a time and changed the printer but its not working.

    Hi Saurav ,
    You can achieve this through SCAT transaction.
    For running SCAT take the help of ABAP team.
    I hope u might be having the list in the form of text file.
    If not , download the same from NACH table.
    Regards
    Ramesh Ch

  • Standard Smartform for label printing for packages - pls advice

    Hi All,
    I need help in changing a print program ie Standard Smartform for label printing for packages ?
    Standard Driver program: SDPACKDR
    Please provide me with the detailed steps for editing the Std Smartform according to any requirement.
    Points will be rewarded promptly.
    Thanks.

    hi,
    1. The smartform name is SD_PACK_ETIK.
    2.Just copy the standard program into Zprogram and make chanes and assign in NACE with the form.
    3.But,in smartform lable printing is not possible.
    4.you can print barcodes.
    Regards,
    Kumar(Reward if helpful).

  • GR Printing For Single Line Item With Multiple Account Assignment.

    Hi All,
    There is PO for projects (Account Assignment -P - Network) in which in a single item consist of multiple account assignment.
    Noe while entering the GR I select "Collective Slip" option but when the GR is posted system automatically select option "Individual slip" and seprate line item are printed for each account assignment.
    The printing program is standard SAPM07DR. The SAP version is 4.7. Can anyone tell what is ther any setting in configuration or is it problem in program or smart form
    Thanks & Regards,
    Omkar

    hi
    please check your form and routine used to print.

  • Do I need to export multiple sizes for all standard print sizes? i.e.Say I crop the image in LR to 6'5" x 9' to fit within an 11" x 14" (overall) mat of a framed print.. Now let's say I want to reprint that same image in a 12" x 16" size ... to fit within

    Do I need to export multiple sizes for all standard print sizes? i.e.Say I crop the image in LR to 6'5" x 9' to fit within an 11" x 14" (overall) mat of a framed print.. Now let's say I want to reprint that same image in a 12" x 16" size ... to fit within a mat of with overall size of 20" x 24"? Or will the 1st export be "locked" at 6.5" X 9" (proportionately)?

    So, for the first one Export it cropped to 6.5 x 9 - and in the Export Dialog box there is a capability to rename the file for exported output - which would allow you to add something like the crop or intention to the base name of the file.  e.g. for _IMG0846.nef - setup the output filename to _IMG0846-65x9 for 11x14.jpg and output it at, say 300 or 360 dpi.  So, it has a unique name and purpose in your output folder.
    For best results, now, re-crop the picture in LR - just open the crop [R] dialog again, reframe the image to the new ratio, 12x16 and Export again - with an adjustment to the filename. e.g. _IMG0846-12x16 for 20x24.jpg
    So, now you have two clearly identified image files in your output area and you can provide those to whomever is printing for you, etc.  Discard them when you're done since you always have the original to return to to re-frame again as necessary.
    This way you get output sharpening and resolution (in pixels) optimized for your output print size.  Maybe not super important for smallish prints-but more important for larger ones.   Output at 100 quality.

  • Material document printing: is program SAPM07DR prepared for smartforms?

    Hi everyone.
    We need to do a smartform to print material documents through a new output type. Do you know if program SAPM07DR is prepared to work with smartforms? I don't think so, I see that it is prepared for sapscripts and PDF-forms, but it seems not to be prepared for smartforms.
    In case that it is not prepared to work with smartforms, do you know any standard program that print smartforms for material documents?
    Thanks in advance.
    Regards.

    These programs doesn't fit with the requirements. I have found program SAPFM07P_SMART, but the problem is that this program is prepared to print an smartform per material document item, and I need to print a smartform for the whole material document information.
    So if you don't know any other program, I suppose we will have to addapt a copy of SAPFM07P_SMART to work with the whole material document, and not with every item.
    Thanks.

Maybe you are looking for

  • How do i get back my bold text

    How do I get a bolder text on the home screen time and in the setting menu?  As far as I can tell this damned iOS7 is washed out and very hard to read.  I HATE IT!

  • I unchecked "sync bookmarks and notes" on iBooks in settings but I still keep getting books my wife has highlighted, how do I stop this?

    There is bound to be someone smarter than me! How do I do thiS? we download and study the same ibooks for a class discussion, but when I download I get all her nights and notes in the margins, how do I just download the book from our account without

  • Limiting Export Types in Export Dialog Box

    We'd like to only allow XLS Format for a specific report when displaying a Crystal Report on a WebPage via Visual Studio; We run Crystal Reports 2008 and also post on Business Objects so the users can access via Infoview. the only thing I've found is

  • F-29 - reg

    hi The  Business scenario is like this After creating a Sales order Down payment will be taken from customer by using f-29, in this sales order no will be entered.( sales order feild enabled from feild status group) now problem is system allowing to

  • Free 3 of 9 (Font 39) family for Barcode in SSRS

    Hi All, I have created a Barcode report in SSRS 2008 R2 and it is working fine in Report Builder but failing to render exactly in web page and PDF export. I have tried with all the available bar code fonts but no luck.. Looking forward for your help.