PO printing with SMARTFORM

Hi,
PO printing is done with Standard Tcode at present.
Pls forward me Z_smartforms  for PO printing with future modifications or additions to that Zform available.
I would like to print Many PO at one time

Create Purchase Order Smartform
Create a Smartform, copy the existing SAP provided purchase order Smartform to ZSFM_PURCHASEORDER for
customizing as per business requirement.
1. Form Settings under Global Settings node, set the parameters in Output Option:
Page Format: Letter
Character per Inch: 20
Line per Inch: 6
Style: ZSTM_SMB40_SF
Output Format: Standard Output
2.        Form Interface
We can add parameters in the Import Parameters and tables in Tables tab of the form interface for the application
data to be available for the Smartform to print.
3. In Global definition we can define the all the global variables which can be used in Smartforms. Initialization
can be used for initializing the variables and even for retrieving the data.
Creating pages:
Each form consists of one or more pages. The first page in the tree structure is the start page and the
processing of the form starts with this page itself.
1.        Open the context menu for existing page node and choose create page
2.        Enter a unique name (FIRST) for the node and a description (Page)
3.        Determine the format (1, 2, 3...)and the mode of the page counter (Increase counter) on the general
attributes tab
4.        Determine the print attributes (Portrait Format) of the page on the output options
5.        Determine a background graphic for the entire page on the background tab (Not used in PO).
Creating windows:
The size and position of the window can be graphically set in the form painter. There are main windows and
secondary windows. The difference between these two is that the output in a main window can cover several
pages.
1.        Open the context menu for an existing page node and choose window
2.        Enter a name for the node (NAMEFORM) and a description (Title Window).
3.        On the general attributes indicate type of window. NAMEFORM is secondary window.
In similar fashion all the other windows are created and positioned as per the form design. Only one MAIN
window is created, it is used for line items which can cover several pages.
Positioning texts on the form
The texts are displayed in the form using text nodes. The only exceptions are addresses.
The predecessor node of the text node determines its use:
Predecessor node        Used to
Secondary window        Position text on one or more pages
Main window        Display text in relation to other nodes in the main window, it may cover several pages
Template         Displays texts for table cells of a static table
Table        Display table contents
There are three text types:
1.        Text element : to enter new text in the PC editor
2.        Text module : to include a text module
3.        Include text : to include an existing SAPscript text
Entering texts in PC editor: (TITLE)·     
  To create a text node call the context menu for that node in the tree structure that should receive the
text, then choose->text
·        Enter a unique name (TITLE) for the node and the node description (TITLE)
·        On the general attributes tab choose text element as text type
·        In the text node box choose whether the text should be started with a new paragraph or only in a new
line
·        Enter the text in the PC editor. Text could be a program element like &Title& or u2018Purchase Orderu2019. &Title&
is a variable for which the value is assigned in Program line before the text.
Including text modules: (TERMSCONDITION)
Text module of the text node is used to refer to an existing text module in the system. The text modules can be
used in two ways:
·        To create a text node, call the context menu for that node in the tree structure that shall contain the text
and choose create->text under the window TERMSCONDITION.
·        Enter a unique name for the node (TERMSCONDITION) and a description (Terms and Condition)
·        On the general attributes tab select the text type text module
·        Enter the name of the text module in the text name field (&G_TERMS_TEXT&). &G_TERMS_TEXT& is
used to determine the Text name dynamically in the program lines preceding the text module node.
·        Program Lines: GETTERMSCONDITION
Concatenate 'ZTMM_PO_TERMS_' ZXEKKO-BUKRS
                                INTO G_TERMS_TEXT.
Including SAPscript texts:
(HD_TXT_F01 u2013 Order Header Text)
The text type include text node to refer to a SAPscript text, which already exists in the system. To identify the
text the text name, object, id and the language is needed.
·        To create the text node, call the context menu for that node in the tree structure that shall receive the
text and choose create -> text under the main window.
·        Enter a unique name (HD_TXT_F01) for the node and the node description (Order Header Text).
·        On the general attributes tab choose include text as text type
·        Text Name - &ZEKKO-EBELN&, Text Object u2013 EKKO, Text ID u2013 F01, Language - &SY-LANGU&. Also check
mark u2013 No error if no text exists.
Tip: Since the size of text is not known, its better to have the text in MAIN window, so that it can run to more
than one page if required.
Inserting addresses: (SENDER):
Address node is used to insert an address into the form. This guarantees that the address is formatted
according to the postal rules of the sender country.
·        To create an address node , call the context menu for that node in the tree structure that one wants to
contain the text and choose create->Address
·        Enter a name for the node (COMPANY_CODE_ADDRESS)  and a description (Company Code Address)
·        Determine the address type (Organization Address) on the general attributes tab
·        For organizational addresses - specify the address number, for any other - specify the person number
and the address number. In this case we get the company code address into variable &ADDNR&, so we need
program lines (SENDER) preceding the address text.
·        In the box additional addresses, attributes to specify how to display the address are maintained.
Printing graphics: (LOGO):
Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
in the BDS (business transaction server) and then it can be displayed in the form.
·        To create the graphic node , call the context menu for that node in the tree structure and choose create-
>graphic
·        Enter a name (LOGO) for the node and the description (Logo Graphic)
·        On the general attributes determine whether a colored or a black and white
·        On General Attributes use the fields object - GRPAHIC, id u2013 BMAP and name - &G_LOGO& to identify the
graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
the graphic is required.
·        Program line COMP_LOGO is used to assign the value to G_LOGO. Concatenate 'ZCOMPANY_LOGO_'
ZXEKKO-BUKRS INTO G_LOGO. So, the name of graphic for example will be ZCOMPANY_LOGO_0202 for
company code 0202.
Displaying a static table (Window u2013 INFO, Template - TEM_INFO) 
Use node type template to display a table whose layout and size is determined before the runtime of the print
program.
To create a template, define a table layout to determine the cell structure for each line. The cells are used to
display the cell structure for each line. The cells are used to display the contents of the successor nodes of the
template node. 
·        Create Template under the INFO window node. Create > Template.
The template layout is used to determine the following,
1.        The number of lines and cells
2.        The height of each cell
3.        The width of each cell
4.        The alignment of the table in the window
5.        Whether and where to display separator lines or frames
Use the table control on the template tab to define the layout of the lines. Each line of the template must have
a definition.
Use the pattern box to select the desired table pattern.
Displaying contents in cells: (TLE_CONTACT)
The template node defines the table layout. The successor nodes of the template         determine the data to be
displayed in the table cells.
In General Attributes choose Text type u2013 Text Element. In editor, type u2018DTE         Contactu2019.
In Output Options, define the output structure LINE u2013 5 and Column u2013 1.
Similarly all other information for each cell can be filed using the text module and         address module.
Displaying Dynamic Table (ITEM_TABLE)
·        Create TABLE under the MAIN window node. In DATA Tab, loop through the data internal table.
L_XEKPO is the item table which has all the line item details.
Define the line types based on the positioning of the text in main window. For         example: TABLE_HEADER1
is used for positioning Header texts in the table.
·        Table is divided into three parts: Header, Main Area and Footer.
·        Header is used for printing the Header Title of the table and it at the start of the table on every page.
·         Main Area is used to print the line item details of the PO. Create a line (ITEM_DETAIL) of the line type
TABLE_HEADER1. It will dynamically generate number cells based on the line type defined in the table layout.
Name all the cells as per the usage. For each cell create the text node to display the information. For example:
Cell VAL_MATERIAL, Text node MATNR is created which has text element - -matnr.
·        Footer is used for printing the information after Main Area data is printed. This can be used for Total
printing or any other information which needs to be printed after all line items are printed. Create line
TLE_CONTR_STP for Contractual Stipulation of the line type u2013 LINE which has only one column. Create the
text element to print the information.
Special Requirement: Printing the Acknowledgement text if the order value is greater then USD 50,000.00 on
the second copy only.
·        This requirement needs the modification in the print program and the Smartform.
·        Modification in Print Program to trigger the second copy if the order value is greater then 50K. Its
advisable to copy the standard print program to custom Z program (Z_SMB40_FM06P), and changes should
be made to Z program. Number of copies is passed from NAST to ls_composer_param-tdcopies in Smartforms.
The value ls_composer_param-tdcopies is modified in the print program to 2 if the order value is greater then
50K.
·        The printing of Acknowledgement Text only on second copy is achieved using the COPIES WINDOW in
Smartforms. Define Window ACKN_COPY of the type COPIES WINDOW and Output to u2013 Only Copies u2013 Copies
Differ. Also set the condition in the Condition Tab of the window u2013 SFSY-JOBPAGES = 1, so that it only print
on the first page of the copy.
·        If user selects to print 2 copies and the order value is more then 50k, program needs to print 2 sets
meaning 4 copies. So number of copies is taken care of in Print program but again the printing of
Acknowledgement Text should be only the Even number copy meaning Copy# 2 and 4. This achieved by using
the program lines to determine the even copy.  SFSY-COPYCOUNT will tell us the current copy number being
printed.

Similar Messages

  • Print with SmartForms

    Hello
    I'm trying to print a SmartForm.
    I've got a function module from which i want to call the form.
    The functions I use are these here:
      control_parameters-no_dialog = 'X'.
      control_parameters-device = 'PRINTER'.
      control_parameters-langu = 'E'.
      output_options-tdnoprev = 'X'.
      output_options-tddest = p_printer.
      output_options-tdprinter = ''.
      output_options-TDIMMED = 'X'.
      output_options-TDDELETE = 'X'.
      output_options-TDLIFETIME = 0.
      output_options-TDCOPIES = '001'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZPITU_LABEL'
        IMPORTING
          fm_name            = lf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      CALL FUNCTION lf_fm_name
        EXPORTING
          control_parameters = control_parameters
          output_options     = output_options
          p_vbeln            = p_vbeln
          p_posnr            = p_posnr.
    but it prints every time on the standard printer.
    which option do I have to set that it prints on another printer?
    thank you and regards
    Dominik Forster

    Check the code.After executing the code it will ask you for the printer enter your printer name.
    data :   g_dest TYPE rspopname,
             g_printer TYPE rspoptype.
    *FM to accept the device type and returns the short name of the output device
      CALL FUNCTION 'EFG_GET_PRINTER'
        EXPORTING
          x_no_dialog  = ' '
          x_obligatory = 'X'
        IMPORTING
          y_tddest     = g_dest
        EXCEPTIONS
          cancelled    = 1
          failed       = 2
          OTHERS       = 3.
    *device type name for the output device
      SELECT SINGLE  patype                "#EC CI_NOFIELD
             FROM tsp03d
             INTO g_printer
             WHERE padest = g_dest.
      output_options-tddest = g_dest.
      output_options-tdprinter = g_printer.
    Add this FM and this code smartly in your program .If you face any problem revert back

  • Crm_ml_preview - Unable to print with smartforms with bitmap images.

    I'm using CRM 4.0 and I've an issue on Enterprise Portal when I try to print an Activity.
    In fact, If I press the botton "PRINT" a new window opens with following URL:
    http://myhost:8080/sap/bc/bsp/sa/crm_ml_preview/ml_preview.do? ...
    If the smartform linked, has a bitmap inside (for example the company logo) I receive from this linhk a blank page. If the smartform contain only text, everithing is printed correctly.
    With SAP gui, inside CRM system both smartfoms (with or without bitmaps) are printed correctly. This problems arise only when I try to print the activity from Enterprise Portal.
    Any suggestion to solve the problem?
    Regards
    Luca Sozio.

    It's an HP P3005dn (duplex+network) printer. OS X simply recognized the printer on the network and set itself up accordingly (without the option of selecting PCL or Postscript). The Windows computers in the office, though, - ugh - it was ugly getting them set up. None of them would recognize the printer on the network, and couldn't even browse for it and find it. I wound up having to download Bonjour for windows, and set it up that way. I downloaded the drivers from HP.com, and believe I set them all up to print using PCL.
    It sounds like PCL v. PostScript may be the issue; is it possible to print using PCL on Macs?

  • Check printing with SmartForms

    Hi,
    I need to print a check with tr F110. I know that RFFOUS_C is meant for SapScript printing. Can anyone tell me how to do for SmartForms?
    Tarick.

    You cannot use a SmartForm to print cheques in SAP because the FI configuration will not allow it till release ECC6.0. It has to be printed via SAPScript - there is no other way.
    Cheers,
    Sougata.

  • Massive print with smartforms

    Hello everyone,
    I apologize in advance if the question has already been
    treated and if so I would ask you to send me
    link.
    So my problem is this: I have a list with a alv
    series of RDA, will select a number and each RDA
    I selected to start three different smarforms.
    Now how do I do now every time a part
    SmartForms me this dialog box where you
    puts the parameters of the printer and not only after but
    having printed the first round begins for rda
    other.
    You can do so to start the dialog box
    once and then save the parameters that the user has
    entered and to print no longer appears that the window
    box?
    thank you very much

    scan the interface of the smartfoim call. either in options or control_parameters there is some field called NO_DIALOG.
    If you set this to 'X', the print dialog wont appear anymore, if according Info is provided.
    If printer is missing, dialog comes anyway, since you need to set a printer if you want to print.
    That functionality is perfect for you. Just set NO_DIALOG to 'X',
    and make sure printer is not provided when processing first time, so dialog will come.
    After making use of the dialog, save what user had input and provide it when calling next smartform. along with the X at NO_DIALOG this should suppress the dialog then.

  • Zebra label printing with Smartforms

    Hi
      I am currently using smartforms to print to Zebra printers. the fields are printing on Portrait format, i am not able to get them to print Landscape. I used the documented Command Node in Smartforms -
    Attribute Name: S_LZPL_SETUP
    Attribute Value: '^FWR'
    this is still not working for me...am i doing something wrong in this Command line?
    Documentation says i can only use Portrait in smartforms because Zebras doesn't understand Landscape...documentation offers the above workaround, but it doesnt seem to work for me...has it work for any of you?

    Hello again,
    currently i have some smartforms printing to zebra printers, and i did it, using BARONE for ZPL generation.
    it's exactly the same thing, you create a main window, and in the text editor toy click "TxtEditor" just above the "Check" buttonm and you pass to the sapscript tradicional editor. In there copy adn paste the ZPL code.
    Define the parameters in the "Form interface" and i'ts done.
    this way you will be able to resolve your problem, it's up to you to use (or not) the barone for Smartforms.
    Regards,

  • Label printing on ZEBRA printer TLP2844 with smartform

    Hi Gurus,
    Requirement:
    Print label on Zebra printer with smartform
    1. i have created a smartform with desired layout
    2. and trying to print on Zebra printer
    Questions:
    1. smartform is not printing on zebra printer
    2. suggest me if there are any ways to print smartform on zebra printer
    3. does it requires any native programming language for printing labels on zebra printer
    Best Regards,
    Krishna

    hi Krishna,
    This printer does not support ZPL2 so I thnk you cnnot use the device types like LZEB2. It should work to print via windows and a device type like SAPWIN or SWINCF.
    Regards,
    Aidan

  • Color printing with high resolution in smartforms

    Hello colleagues...
    I need to print color images with True-color resolution, but in Form Graphics Administrator ( transaction SE78 ) I can only upload pictures with extension TIFF and BMP, and with resolution 24-bit maximum.
    With this resolution, the quality of colors will not be optimal because is distorted from original.
    This printing we need for labels that have pantone code of colors, that should not be changed to any similar tones.
    Does anybody knows how can I print true color pics with smartforms without reducing image quality?
    Or exist any other tool in SAP for printing with high quality?
    thanks in advance,
    Ibrahim Andres.

    You can upload TrueColor 24 bit Bitmaps into SE78, but SE78 converts them to 256 color images, that's why you see reduces quality when the image is printed. I think it's not possible to print images higher than 256 colors using existing smartform technology.
    Regards
    Sridhar

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • Cannot Print Order Confirmation with Smartforms

    Dear Sir/ Madam,
    I tried to print Order confirmation with Smartform but failed with the return message as "Output could not be issued".
    The followings were my settings:.
    At NACE, the Processing rouines confiugration for Application: V1,  Output Type:BA00 was
    Medium: 1 Print output
    Program:  R2RRVADOR01
    Form routine: ENTRY
    PDF/SmartForm Form: R2RBL_SDORC_L
    Type: Smartform
    At VA02, the output was added as:
    Output: BA00
    Description: Order Confirmation
    Medium: 1 Printout
    Func: SP
    Lng: EN
    Could anyone consult out?
    Cheers,
    Simon
    Cheers,
    Simon

    HI,
      In Txn. NACE... Select your "Application V1".. then choose the button "condition Record" then choose your output type then maintain the condtion..
    Doc Type: <Value>
    Function: SP
    Medium 1
    Date/Time: 4
    Language:EN...
    then choose the line and click on "Communication" button here maintain the "output Device, flag print immedieately/release After output.
    and then try again.
    If your using Smartform/Scriptform then you need to define like this:
    Medium: 1 Print output
    Program: R2RRVADOR01
    Form routine: ENTRY
    Form: R2RBL_SDORC_L
    *PDF/SmartForm Form: *******Blank
    *Type: ******Blank
    Regards
    GK.
    Edited by: Gnana Kumar on Nov 17, 2010 5:24 AM

  • Integration of Print Workbench with Smartforms

    I am currently working on Print Workbench.I need a detailed documentation of print workbench with Smartforms.I already have with me the information from link http://www.sap.com/industries/media/pdf/FICAPWB_EN.pdf
    and also sap help.
    But these don't provide a detailed step by step procedure on the same.If any body has such documentation Please provide the same.
    Thanks in advance.
    Edited by: Pratyasha Shishodia on Jan 3, 2008 10:25 AM

    Bogdan,
    I don't think that statement is true as we have developed SMART Forms for PM in 4.6C itself.
    In the transaction OID1, all you have to do is to specify the SMART Form name and the print program name. I guess if you are developing a SMART Form, you will have a custom print program.
    So, you need to specify the FORM sub routine in the OID1 which will be dynamically called by the standard code and from there your custom program calls the smart form and prints the relevant info.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Smartform printed with black boxes.

    Hi,
    I created a smartform for delivery note, When i preview it looks fine.
    But when i take printout this is printed with all black boxes. I am using a Black and White Printer NRG Model DSm622 PS.
    I couldnt able to find the solution, please help me on this.
    Thanks and Regards,
    Mohanraj.N

    Hi,
      Have you tried other standard forms on the same printer?
      I don't have this printer but I found following notes, about NRG printers:
         Note 1021922 - NRG: List of supported printers/device types
         Note 1266115 - Printer Vendor Wizard Note: NRG
    Perhaps you can check with transaction SPAD if the Formats of the Device Type of your printer has any Sapcript format. If not, try to configure it with any basis admin...
    Regards,

  • Smartform duplex printing with tray resource

    Hi All,
             I am trying to set duplex printing from smartform. It works well only when I do not pass tray information in the Page output options. If I pass the resource name then I can't get the duplex printing to work. Is it possible to do both of them together? Please advice.
    Thanks.
    Edited by: Sat R on Jan 20, 2011 8:54 PM

    I was able to get the duplex working by having tray resource only on the first page and keeping it clear on the next page.

  • Underline printed with space via smartforms

    Hello,
    i have problem n printing a underlined words in smartform. there is no line in between words when i print a smartform.
    i already highlight the words/paragraph and set the character and paragraph format of that words/paragraph into underlined text.
    it is OK in screen output but when i print it there is no line in between spaces of the words.
    I am using Font Family ZHELV_I8 (Helvetica Hebrew).
    In print preview         : _____________
    when print on paper : ______ _______

    1.I am using in Device Type - I8SWIN
    And Host Spool Access Method type G.
    2. I try to change the registry like in note 1149136 u2013 it's ok only if
    I am a print to the printer device,
    but if other user tries to print he gets break under line again.
    3.There is around a 300 users' in my organization,
    in 15 different places in a country.
    do you recognize any other NOTE .
    thanks for the help.

  • Dunning letter with smartform

    Hi experts,
    I have to create a form for dunning letter with (smartforms) for the transaction F150
    and really I don't know how I will do it.
    I don't know how to pass the fields run on, identification customer to the formulaire for getting data for display?
    notice in this moment I have letter displayed with the form sapscript Y_F150_DUNN_01, that I have to change the letter to a form with smartforms?

    Hi Mohamed,
    because I did not believe SAP doesn't provide smartforms dunning I checked it.
    In Customizing Financial Accounting->Accounts Receivable and Accounts Payable->Business Transactions->Dunning->Printout the documentation says "Note that you can define dunning forms using either SAPScript or SAP     
    Smart Forms."
    The Docu for "Define Dunning Forms (with SAP Smart Forms)" explains how-to:
    Requirements                                                                               
    The standard settings allow for creating dunning notices using              
    SAPScript. If you wish to print your dunning notices using SAP Smart         
    Forms, you must first define the corresponding function module.              
         1. In Customizing for Financial Accounting, choose Financial             
         Accounting Global Settings ->  Business Transaction Events.              
         The SAP Business Framework screen appears.                               
         2. Choose Settings -> P/S function modules -> ... of an SAP appl. .      
         3. Under the Business Transaction Event (BTE) "1720" with                
         application indicator FI-FI, change the function module in               
         FI_PRINT_DUNNING_NOTICE_SMARTF and save your entries.                                                                               
    SAP provides a predefined example form for dunning notices:                                                                               
    o   F150_DUNN_SF                                                                               
    Activities                                                                               
    1.  Make sure the function module FI_PRINT_DUNNING_NOTICE_SMARTF has       
        been defined (see above).                                                                               
    2.  Create a dunning form or change the example form to meet your          
        requirements for the various dunning notices.                                                                               
    I checked it and it looks really easy!
    Any quetsions? Feel free to ask.
    Regards,
    Clemens
    P.S.: If you don't expect more answers, please close the thread.

Maybe you are looking for