Alignment in Smart Forms- Label

Hi Folks,
I have data in an internal table. I have to print a label. In the print preview I am able to see the data like this.
PLANT               : 0120          BATCH             9
MATERIAL       : 100628
MATERIAL DESC: Part 1 LIQUIDE
RELEASE/LOT : 04000000000971     DATE      12/20/2002.
QUANTITY          :                   1
But I need the alignment like this for any data
<b>
PLANT                 : 0120                     BATCH             9
MATERIAL           : 100628
MATERIAL DESC : Part 1 LIQUIDE
RELEASE/LOT     : 04000000000971    DATE      12/20/2002.
QUANTITY           : 1</b>
For the quantity field I need to condense that and can anyone explain me in detail
hw to do this.
I need to print for many records. Some fields may have data. some time space. .
In my smartform I have aligned it properly.
Thanks for your time. waiting for your replies.
with regards,
chaithanya.

Hi..
Amit thanks for u r reply. In Template can we design like this
Material..........xxxxxxxxxxx.................Batch.............XXXXXXXXX
If u have any tutorial Please let me knw...
I have solved this problem...using the tabs....
with regards,
chaithanya.

Similar Messages

  • Smart form to print label

    hi guys,
    i have a quetion for you. What ever i say you here is all about EWM 5.1(seperate instance)
    i have a standard smartform /scwm/hu_shplabel.
    this i should be using to create a shipping label printing (UCC).
    i will tell you wht i did and wht i need.
    i copied this standard to a z form and created the frame (windows i needed).
    i dont know if this needs a driver program at all to call this.
    to my knowledge i know that a method is assigned to this standard form and it calls it.
    but most of the coding is done in the form itself using the input parameters.
    i need to know
    1. do we actually need a driver prog for such forms.
    2. if i have to make changes do i do it in driver prog or form itself.( i can see lot of coding in the present form) , the coding is mostly object oriented.
    3. i even have a bar code to print in it too.
    4. few of the the date to be printed on the label has to come from R/3.
    usually i knew the smart form where u write a se38 program to call the form and input the data mostly needed to print. i am new to this kind .
    do let me know anything u think.
    every information is helpfull
    thank you
    sid

    hi seshu
    first let me thank you for the information.
    standard form has a master window.
    and i have to add 8 more windows.
    i have come across a similar standard smart form but i came to know that it is associated with a
    object and a corresponding class.
    so i came to the conclusion that the present smartform might have a associated object and it is responsible of calling the form.
    i may not be completely true. do tell me if i am or not.
    the present smartform has some code internally and some global parameters added.
    it has some input parameters added.
    but the current functionality is not similar to what the standard is.
    so i didnt understand if i have to code in object or in the form itself.
    do let me know wht ever information you have.

  • In Smart Form alignment disturbed from 2nd page

    Hello experts,
    Help me to resolve the issue.
    Smart form output disturbed from second page. Here giving snap shots of first two pages only.
    The value of column Item no is not from database. It come from loop, variable 'Counter' is incremented, in main window
    First Page
    Here line no 10 and data is disturbed.
    Total number of record lines printed are 10.
    Second page
    Here alignment of line no and data is disturbed
    Number of record lines are printed 6,not 10 as printed in first page
    Item number and data record lines are not in aligned.
    Sixteen(16) item no associated data is printed but item number is not printed ( printed on page  3)
    Last line ‘Expected Date…’ coming on each page. How to print only after completion of all rows.?
    Your help is highly appreciated in anticipation.
    Regards
    B R Phatak

    Hi,
    Last line ‘Expected Date…’ coming on each page. How to print only after completion of all rows.?
    for this you can use the Table footer  so that it can be dispalyed after the end of all records,
    and can you tell me what is the type of your counter variable?
    Try using CZ options for item to compress
    Regards
    Pavan

  • Smart form -Right Alignment is not coming properly

    Hi Folks,
    While Printing Smart form for Invoice ,using right aligned Paragraphs  texts are not coming properly.....but  using left aligned paragraphs text  are coming proporly....we want both left aligned and right aligned in same table ...for print preview it showing fine but while taking the print out it comes like this
    for eg:  ---
    Net amount
    1,000.00
          750.00
    2,000.00
            40.00
          100.00
          300.00
    30,000.00
    O/P showing like this ....i have checked all the options in right aligned paragraph but no use
    Kindly help ....
    Edited by: bismilpk on Dec 26, 2010 2:31 PM

    yes .....I solved....got the answer

  • PHP Form Labels Don't align with checkbox

    Help!
    I can't seem to get my labels in my sign-up form to align with the checkboxes towards the bottom.  This form is live at www.thectkgroup.com/signup
    Thank you!

    I like to use ordered lists for my form labels.  It's good for web accessibility and it adds some extra hooks for your CSS to grab onto.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 form</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    .formpart {
        width: 800px; /**adjust as required**/
        overflow: hidden;/*for float containment*/
    /**wrap form lables and fields inside ordered lists for better web accessibility**/
    .formpart ol {
        list-style: none;
        margin: 0;
        padding: 0
    .formpart li {
        clear: left;
        padding: 16px 0;
    .formpart label {
        float: left;
        line-height: 28px; /**lines up labels with fields**/
        font-size: 18px;
    .formpart input[type=checkbox] {
        width: 2.5em;
        height: 1.5em;
        /**put boxes first**/
        float: left;
    .formpart span {
        color: #999;
        font-style: oblique
    </style>
    </head>
    <body>
    <div class="formpart">
    <p>Please select the class(es) you would like to attend</p>
    <ol>
    <li>
    <label for="contact_classes1">October 28 - 30, 2013: <span>Lee County Sheriff's Office -Fort Madison</span>
    <input id="contact_classes1" name="contact_classes1" type="checkbox">
    </label>
    </li>
    <li>
    <label for="contact_classes2">November 4 - 6, 2013: <span>Waterloo PD &amp; Hawkeye CC</span>
    <input id="contact_classes2" name="contact_classes2" type="checkbox">
    </label>
    </li>
    <li>
    <label for="contact_classes3">March 4 - 6, 2014:<span>Cedar Rapids PD</span>
    <input id="contact_classes3" name="contact_classes3" type="checkbox">
    </label>
    </li>
    <li>
    <label for="contact_classes4">April 2014: <span>Des Moines PD</span>
    <input id="contact_classes4" name="contact_classes4" type="checkbox">
    </label>
    </li>
    </ol>
    </div>
    </body>
    </html>
    Nancy O.

  • Module Pool and Smart Form

    Can anybody Provide me good step by step procedure for module pool and smart for programming with screenshot.
    my email Id is [email protected]

    Hi,
    A module pool is a collection of screens, flow logic, menu bars and ABAP code that you use to build an application. Typically the transaction code that calls the application will refer to the module pool and the initial screen number.
    -->What are the requirements a dialog program must fulfill ?
    • A dialog program must fulfill the following requirements
    . a user friendly user interface
    . format and consistency checks for the data entered by the user
    . easy correction of input errors
    . access to data by storing it in the database.
    What are the basic components of dialog program ?
    • Screens (Dynpros)
    Each dialog in an SAP system is controlled by dynpros. A Dynpro consists of a screen and its flow logic and controls exactly one dialog step.
    • ABAP/4 module pool
    Each dynpro refers to exactly one ABAP/4 dialog program. Such a dialog program is also called a module pool, since it consists of interactive modules.
    What is a dynpro ? What are its components ?
    • A dynpro (DYnamic PROgram) consists of a screen and its flow logic and controls exactly
    one dialog step.
    - The different components of the dynpro are:
    Flow logic: Calls of the ABAP/4 modules for a screen
    Screen layout: Positions of the texts, fields, pushbuttons, and so on for a screen
    Screen attributes: Number of the screen, number of the subsequent screen, and others
    Field attributes: Definition of the attributes of the individual fields on a screen
    What is screen flow logic? What are the selections in it? Explain PAI and PBO?
    Ans - Screen flow logic contains the procedural part of a screen. The screen flow logic is like an ABAP program in that it serves as a container for processing blocks. There are four event blocks, each of which is introduced with the screen keyword PROCESS:
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    PROCESS ON HELP-REQUEST.
    PROCESS ON VALUE-REQUEST.
    Selections are performed in PAI.
    PROCESS BEFORE OUTPUT (PBO) is automatically triggered after the PAI processing of the previous screen and before the current screen is displayed. You can program the PBO processing of the screen in this block. At the end of the PBO processing, the screen is displayed.
    PROCESS AFTER INPUT (PAI) is triggered when the user chooses a function on the screen. You can program the PAI processing of the screen in this block. At the end of the PAI.
    processing, the system either calls the next screen or carries on processing at the point from which the screen was called.
    PROCESS ON HELP-REQUEST (POH) and PROCESS ON VALUE-REQUEST (POV) are triggered when the user requests field help (F1) or possible values help (F4) respectively. You can program the appropriate coding in the corresponding event blocks. At the end of processing, the system carries on processing the current screen.
    step by step process of dialog programing:
    Firstly, you can go to Tcode SE80 and here create a package.
    On that package name right click and select program.
    Then choose program type modulepool program.
    Similarly, you can create screen and then select layout and drag and drop labels and pushbuttons as per your requirements.. Then double click on th push buttons.You will see property window and there we will find FCTCODE and there type the names e.g suppose you want to
    display then typy on the fctcode Display or any name as you wish.
    After that save and activate it. and then close the window.
    And then go back to the intial screen .
    And then click Flow logic button and then uncomment the statement
    module status_1000 PBO block and then doible click on status_1000
    save and activate and then go back and then PAI block uncomment the statement module status_1000 and the dobule click on status_1000.
    step by step process of creating smartforms:
    1.        What is Smartforms?
    Smartforms is a tool to create and maintain forms for mass printing in SAP Systems. Just like sapscripts, for Smart
    forms print program is used to create the output internal table which in turn is thrown to the smart form where the
    field values are displayed. The output medium for Smartforms support printer, fax, e-mail, or the Internet.
    Transaction Code: SMARTFORMS
    To print a form the program for the data retrieval and a Smartform that contains the entire form logic is required. As
    these two are separate one should adapt the Smartform if changes to the form logic are necessary. The application
    program passes the data via a function module interface to the Smartform. When activating the Smartform the system
    automatically generates the function module.
    The architecture of the smart form is given below:
    Creating Forms Using SAP Smart Forms
    When creating a form one must:
    1.      Retrieve the application data
    2.      Describe the form
    3.      Pass the application data to the form
    Example: Create Smartform for printing Purchase order.
    Retrieving the application data (Purchase Order information):
    Write an ABAP program (Print Program) to retrieve data or include a retrieval routine into the application. This
    code consists of statements that select data from databases according to certain selection criteria. Store the
    retrieved data in internal tables, structures or variables and transfer it to the form in one step.
    SAP has already provided with the Print Program (/SMB40/FM06P) for Purchase Order. Based on the business
    requirement, this Print Program can be copied and modified to get the required data and transfer to Smartform.
    Describing the Form:
    The user defines the form using a Smartform. Use the tools of the form builder as listed below:
    1.        Use the form painter to position the windows, graphics and addresses on a page.
    2.        Use the PC editor to write the texts.
    3.        Use the table painter to format the tables.
    The flow control is used to print the pages and elements.
    Form Logic (Introduction)
    In the form builder one can describe a Smartform by a set of nodes. To do this, one can build up a tree structure on
    the left side of the user interface.
    The node global settings and its three successors form attributes, form interface and global definitions always exists
    for any newly created forms.
    To describe the form logic, create the hierarchy under the node pages and windows.
    The following rules apply to control the flow of the form output.
    1.        The nodes in the tree structure are processed from top to bottom.
    2.        For each node there is a tab, this can be used to link the node to a condition. If the condition is true, the
    system processes the node. If not, it skips the node and all its successors.
    3.        One should define a next page for each page.
    The SAP form builder of the smart form consists of:
    1.        Form painter for creating the layout of the form
    2.        PC Editor for entering texts and fields into output areas
    3.        Navigation tree for maintaining the form logic
    4.        Table painter for creating templates and tables
    To define the text formats, one can use the Smart Styles.
    Style builder:
    On the left of the style builder screen consists of the predetermined nodes (header data, folder for paragraph
    formats, and folder for character formats).
    On the right one can see the maintenance screen with its tab pages. At the bottom the preview of the selected font
    can be viewed.
    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 ‘Purchase Order’. &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 – 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 – EKKO, Text ID – F01, Language - &SY-LANGU&. Also check
    mark – 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 – 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 – 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 – Text Element. In editor, type ‘DTE         Contact’.
    In Output Options, define the output structure LINE – 5 and Column – 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 – 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 – Only Copies – Copies
    Differ. Also set the condition in the Condition Tab of the window – 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.
    regards,
    vineela.
    Edited by: Radha Vineela Aepuru on Mar 13, 2008 11:12 AM

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • Service cannot be reached while sending a smart form in html format

    Hello,
    I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
    Service cannot be reached
    What has happened?
    URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    .SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
    and here comes the email's body: bla,bla,bla... bla.
    Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
    Regards,
    Jaime

    I just solved the problem by activating the service  /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
    Jaime

  • How to print BAR code in SMART Form

    Hi All,
    I have the requirement to print BAR CODE in Smartforms.
    For this, I create a character format with Bar code in style forms and create a text element in Smart form and associate bar code character format with this text element.
    Now when I look the print preview for the data, then it shows me data in bar code format but not in right format i.e. its shows me all the similar block in bar code.
    If you look the bar code in SAP script, its always show you bar code with similar block, but in SMART FORM it will show you exact bar code; as in SAP Script, bar code is generated at printer end and in SMARTFORM bar code is generated as graphic in SAP and then sent to printer for print.
    PLease let me know, why in SMARTFORM its not showing BAR CODE in correct format in print preview.
    Thanks
    Piyush Mathur

    Hi,
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    reward if useful
    regards,
    ANJI

  • Need inputs : PO Smart form Bulgaria language in SRM

    Hi Experts,
    I need a couple of suggestions and guide lines for PO print out Smart form.
    We have requirement for PO, print out should print in Bulgaria language if the PO Vendors is from Bulgaria country.
    And if the vendor is other than Bulgaria country then it should print in the English.
    We have already a custom smart form (English)which we have assigned it in BADI for the PO Print output BBP_OUTPUT_CHANGE_SF.
    Do we have to create 2 different smart forms? One is for Bulgaria vendors and other for non Bulgaria vendors.
    And Do need to assign the 2 different smart forms in BADI based up on the vendor country?
    If I enter the fixed text (like labels) in Bulgarian language then it will automatically will print in Bulgarian language?
    And what I have to do dynamic text (which I will read from the print program input data or data base tables) ? Is there any way for the translation for these dynamic texts?
    And I tried to put some labels in Bulgarian language in the smart form, but I am not able to see in those characters in the print preview in the portal. Its showing as some junk characters asu201D#u201D. But I am able to see in Spool (GUI, SP01). Is it because of the Bulgaria Language pack is not there in my system
    looking for your valuable inputs.
    Thank you ,
    Bharathi.

    Ok here´s how it works:
    In standard logic the output type gets drawn in communication language of supplier.
    so for a bulgarian supplier, with communication language Bulgarian the output type will get drawn in bulgarian.
    This means the bulgarian form will get processed and in the form text will be drawn in bulgarian language as well if you stayed with standard logic and draw texts with NAST-SPRAS.
    in your print program in the entry routine, not any entry routine but the one which is customized in TNAPR for this output type, place following coding:
    if nast-spras NE 'BG'.
      nast-spras = 'EN'.
    endif.
    that should do the whole job.
    and NO you have absoluteley NO chance to handle this in the form.
    If you arrived in the form you are already in a certain language and it too late to do what you want to.
    Edited by: Florian Kemmer on Jul 16, 2009 3:21 PM
    Edited by: Florian Kemmer on Jul 16, 2009 3:23 PM

  • Smart form ; Misalignment.

    Hi
    I have a problem with smart form alignment. A Variable is assigned to a line in the page on the left side and a static text on the right side of the same line. Whenever the value of the variable changes(bigger value) the static text in the right side comes down to the next line .How should I overcome the Problem?

    I think you should know the variable size exactly.
    Create a new window and place that window exactly where you want to print that page number.
    For Example suppose variable size is 10char,
    page width is 25 & height is 30,
    then in Page window output conitions provide upper margin as 25
                                                                     left margin     as 15
                                                                     height           as  02
                                                                     widht             as 10

  • Smart form for a invoice

    Dear All,
    We have designed a smart form for printing of excise invoice. The invoice is in two pages. The second page printing is not aligned and starts immediately after the finish of the 1st page.
    There is no buffer place between two pages.
    How can we provide a buffer between two pages so as to print the 2nd page in alignment with the pre printed stationary and the first page?
    Regards.
    Milind Dugade

    It very dificult to give you guidance w/o seeing your smartform config. page format. If you are using custom page format or standard page format. Have define next page properly or not. What are line count in first page etc etc.

  • How to Call smart form in Action

    Hi All,
    Could some one tell me how to call the smart form in action.
    Eg. PB40 - Offer Contract Action.
    Appreciate your respnse.
    Regards
    Raj

    Hi ,
    attached you find  some  abap code to call a smartform with some comments in it. Hope that helps:
    DATA: l_fn_name               TYPE rs38l_fnam
          , l_devtype               TYPE rspoptype
          , ls_output_options       TYPE ssfcompop
          , ls_control_parameters   TYPE ssfctrlop
          , ls_job_output_info      TYPE ssfcrescl
          , l_pdf_fsize             TYPE i                      "#EC NEEDED
          , lt_otf_tab              TYPE tsfotf
          , lt_pdf_lines            TYPE TABLE OF tline
    To do
       The mapping from the UI structure to the Smortform structure has to be
       implemented here or in a pirvate method.....
    Call function module u201CSSF_FUNCTION_MODULE_NAMEu201D to get the name of the smartform.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = zh38tm_cl_zz_2gen_bl_constants=>c_smartforms_hipo
        IMPORTING
          fm_name            = l_fn_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       Call function module u201CSSF_GET_DEVICE_TYPEu201D to get the print parameter
        CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
          EXPORTING
            i_language             = sy-langu
          IMPORTING
            e_devtype              = l_devtype
          EXCEPTIONS
            no_language            = 1
            language_not_installed = 2
            no_devtype_found       = 3
            system_error           = 4
            OTHERS                 = 5.
        IF sy-subrc = 0.
        Fill label structure to smartform
         ls_labels = zh38pm_cl_zz_bl_perf_plan=>set_sf_label( ).
         Set output parameters u201CLANGUAGEu201D, u201CNO_DIALOGu201D and u201CGETOTFu201D
          ls_output_options-tdprinter     = l_devtype.
          ls_control_parameters-no_dialog = abap_true.
          ls_control_parameters-getotf    = abap_true.
          ls_control_parameters-langu     = sy-langu.
         Call smartform with the structures u201CIMP_S_PERF_PLANu201D, u201CCHG_S_PRINT_PLAN
          CALL FUNCTION l_fn_name
            EXPORTING
              control_parameters      = ls_control_parameters
              output_options          = ls_output_options
              s_doc_processing        = gs_doc-s_doc_processing
              s_header_display        = gs_doc-s_header_display
              s_header_texts          = gs_doc-s_header_texts
              s_header_status         = gs_doc-s_header_status
              t_header_appraiser      = gs_doc-t_header_appraiser
              t_header_appraisee      = gs_doc-t_header_appraisee
              t_header_part_appraiser = gs_doc-t_header_part_appraisers
              t_header_other          = gs_doc-t_header_others
              s_header_dates          = gs_doc-s_header_dates
              t_header_add_data       = gs_doc-t_header_add_data
              t_body_columns          = gs_doc-t_body_columns
              t_body_element_descr    = gs_doc-t_body_element_descr
              t_body_elements         = gs_doc-t_body_elements
              t_body_cells            = gs_doc-t_body_cells
              t_body_cell_notes       = gs_doc-t_body_cell_notes
              t_body_cell_val_values  = gs_doc-t_body_cell_val_values
              t_body_cell_val_ranges  = gs_doc-t_body_cell_val_ranges
              t_body_cell_val_c_like  = gs_doc-t_body_cell_val_c_like
              t_body_cell_val_descr   = gs_doc-t_body_cell_val_descr
            IMPORTING
              job_output_info         = ls_job_output_info
            EXCEPTIONS
              formattinl_error        = 1
              internal_error          = 2
              send_error              = 3
              user_canceled           = 4.
          IF sy-subrc = 0.
            APPEND LINES OF ls_job_output_info-otfdata TO lt_otf_tab.
            exp_t_otf = lt_otf_tab.
           Call function module u201CCONVERT_OTFu201D to convert the smartform data
          to exporting parameter u201CEXP_PDF_XSTRING
            CALL FUNCTION 'CONVERT_OTF'
              EXPORTING
                format                = 'PDF'
              IMPORTING
                bin_filesize          = l_pdf_fsize
                bin_file              = exp_pdf_xstring
              TABLES
                otf                   = lt_otf_tab
                lines                 = lt_pdf_lines
              EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                OTHERS                = 4.
            IF sy-subrc ne 0.
              CLEAR exp_pdf_xstring.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    First you have to determine the smartforms function modules name the wxecute it.

  • Print portrait orientation smart forms zebra printer

    Hello,
    I have designed a label with smart forms. The dimensions are the following: width = 11 cm. Height: 15 cm. The label has been designed in portrait form but the zebra 105 SL printer print it in landscape format. Does Anybody knows how to fix this problem ?
    Thank you.

    Hi,
    You didn't check your printer settings in Printers and Faxes in control panel. It cannot happen the way you say.
    Feel free to revert back.
    --Ragu

  • Smart form rotate 90 degrees with Zebra printer

    Hi Experts,
    We are using smart form to design label which need be printed by Zebra printer, and the label need be printed in landscape. Currently we are using the Zebra command '^FWR' in smartform to rotate the field in each window, but the rotated format is very strange. Can anyone let me know how the rotate command work?
    It would be highly appreicated if an rotate example can be provided.
    Many thanks.
    Benny.

    The Zebra command ^FWR rotates each individual field by 90 degrees (clockwise). But then you'll have to adjust position of each field again for landscape output.
    In ZPL II printer language is no command for rotating label by 90 degrees. The printer driver doesn't understand "orientation=LANDSCAPE".
    A slightly better solution could be to define a smartform with portrait orientation. Add a "command node" in first window and enter attribute name "S_LZPL_SETUP" with value '^FWR'.
    Please note that this command doesn't has an effect on barcodes. They have their own parameters for rotation. Please define these parameters in SE73 for each barcode type your're using.
    Steffen

Maybe you are looking for

  • Same container, different ear files, remote lookup failing!

    I'm having severe problems with my ears! I used to have all my EJBs in one ear file and everything worked hunky dory. Now I have separated out various components into their own ear files as they may be deployed into a separate box and also this eases

  • Stuck when loading computer via ATV

    Ive been setting up my Homesharing today, and i can access it without any problems on both my phone and my Ipad, but when trying to access it on my ATV, it gets stuck on loading without any opions, iff i press the "home" botton, and try to reconnect,

  • How ca i search a particular word in mail

    can anybody please tell me how to search a particular word in mail Please mention the coding

  • Want o set "Mailto" to Hotmail account. is that too much to ask!?

    is your free product really the best browser on the market? why do it have so many issues with it? for example, just to send you this question; you required i register. and when creating a username you test and query my pswd before even verifying tha

  • SE51 Screen Painter - can't not start graphical painter

    hello All, when we try to use SE51 - screen painter through a connection via saprouter the followin message appear: Password in router string. Cannot start graphical screen painter we have installed SAP GUI 7.10 patch 02 Thanks. Hernando