SAPScript / Smartform printing with all #

Hi,
I am facing a strange problem while printing Script and Smart forms.
We are using QM02 transaction to print the deviation form and MRDR form.
Deviation form is a script and MRDR is a smartform.
The problem is, when i executed the QM02 and print any one of the form It was printing fine.
After that if i select the second one to print it was printing all # s.
I tried debugging the script i am getting the message 'Character  is not defined in the current font Helve 100'.
Can any one explain, why this is happening?
Thanks,
Omkaram.

some of charcter formats are missing , can you check what are missing, and  if some cases the values are not coming to display its dispaly the # insted of the data. if you have any space in the database table level that time also display the #.
when you print the scond time there is no values , close the session and start agagin it will display the data.

Similar Messages

  • 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,

  • Cannot print with all-in-one

    I cannot print with my all-in-one because I have a print-job in th queue, and when I attempt to cancel it , it simply will not cancel, but remains in the queue.  I think this happened when I was printing from the internet and a nearby lightning stike disrupted the printing.

    Have you tried to shut down the computer and printer and then turning them on again??

  • Printer aligns BUT only with Black and Blue all other diagnostics print with all colours

    Initially when installed the printer REFUSED to align, took 7 attempts (OK I have heard of Einsteins quote !). Each time I used the printer screen to ALIGN PRINTER - the process failed. So I looked on the web, and:
    Cleaned the cartridges,
    Cleared the vents
    Removed and cleaned the printhead
    Prayed
    Tried again
    All to no avail, so then I tried doing the diagnostics via the PC software, and here the mystery deepened.
    When running the HP Photosmart B210 Series tool box I got three differing results from the three printing options
    A Print Quality Diagnostics Page gave me Ba full five colour printout
    Align Printheads gave me black and blue lies/boxes/grids and the Alignement Successful message
    Print Diagnostic info gave me all four colours with lots of meaningful info including the 73 Print head Calibration COnfidence Level:0
    Any Ideas ANYONE, before I bin this and buy a Kodak or Epson in disgust
    This question was solved.
    View Solution.

    What exactly is the issue?  The alignment aligns the color printhead to black printhead, and only one color (cyan for your printer) and black are needed for that.  (There is likely an additional set of blocks that prints gray blocks fading to white.  This section is used to calibrate the energy for the colors.)  The other test pages you printed will print various diagnostic or test pages which will use all the colors. 
    A successful alignment page requires the page be printed on unused white paper and requires that the black and cyan sections are printing properly.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Will print with all programs except Mozilla Thunderbird?

    Hi,Try following these steps to troubleshoot printing problems from Mozilla Firefox:https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox Regards,Shlomi

    Thank you for your response, which I have not tried because after I had posted my question it occured to me that I had not at that stage run the"HP Print and Scan Doctor" program which is downloadable from HP. Having run this program the problem dissapeared. Thank you for your interest.

  • Printing with differnet printers

    Hi,
    I am developing forms using SAp Scripts. The client sometimes uses inkjet printer else dotmatrix printer. Since we have designed form for inkjet printer in print lay out the alignment for dotmatrix printer considerably varies. Is there a way by which we can design form for the two printers with perfect alignment?
    Rakesh

    Hi
    No, Nothing can be controlled from Form side
    Certain printers doesn't support certain fonts of data and prints not correctly
    see the OSS notes
    OSSNote:960341
    Symptom
    In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
    Other terms
    CONVERT_OTF, SAPscript, Smart Forms
    Reason and Prerequisites
    The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
    The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
    Example:
    %Charwidth values from HP4300 HELVE 060 normal
    /Widths
    [ 278 333 500 633 633 1000 758 333 333 333 633...
    Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
    This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
    The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
    Solution
    Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
    Header Data
    Release Status: Released for Customer
    Released on: 30.06.2006  12:44:06
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s):            Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV       COURIER, HELVE, TIMES
                            (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ                  COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV              COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK          COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL                      COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE                      COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR                      COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH                      CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA                      JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP                      KPBATANG, KPDODUM, KPGULIM
                            KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF                      TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH                      THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR                      ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000    0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4  P 144  240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE  120  00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000    0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4  P 144  240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE   120  00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005  09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Can't print with airport usb connection only

    i have spent the last 3 days searching for help to fix my problem - PLEASE HELP!!!
    using:
    imac osx 10.6.8
    canon image class mf8350cdn
    airport extreme base station
    I cannot seem to print wirelessly with my imac using just the USB connection on the airport router.  I can print with the printer locally when it's "hardwired" directly to a usb on the back of the imac.  I can print if i connect a cat5 network cable from the printer to the airport. i can print wirelessly with a PC when the printer is connected with a usb to the airport.  i just can't do this with my imac via the usb connection on the router.  my error message is a Canon CMFP Printer Driver telling me printer is not responding - check the power.....try sending again.
    I believe i have tried everything!!!  While i am newer to mac and not the greatest at networking, i have manipulated every setting to match up with all of the online help i can get (trying to not have to send this question!!) and no luck.
    i have deleted printers and jobs, reinstalled everything, i changed the cable, downloaded the latest drivers from canon and apple, i updated the firmware on the printer. i even reinstalled my osx and confirmed all is updated on my imac.
    i don't want to scan or fax this way - so that is not my issue -- it's just plain old printing using that usb port.
    i need all of my other ports on the airport for other things, so i cannot sacrific this one for printing - i just want to use the usb as my printer connection to print with all of the machines i have.
    hope my question makes sense and that someone will take the time to give a reply.
    thanks!!
    p.s. the closest discussion that matches my issue seems to be this one:
    https://discussions.apple.com/message/12367897#12367897
    but, i still can't seem to get there..........

    The most comprehensive set of troubleshooting instructions for printing problems involving Airport printers is found at:
    http://docs.info.apple.com/article.html?artnum=107418
    It is possible your printer simply cannot be made to work in this manner, and is more often than not a problem with multifunction printers.

  • Printing with no colour

    Why when i print a photo on my new HP Photosmart does it only print in greyscale

    Under File>print>preferences in the print dialog, there may be an option to print with all cartridges, or just b/w. Check it out.

  • Lightroom 3 prints with magenta cast

    Hi,
    My lightroom 3 prints with all red objects in the picture having a dreadful magenta colour cast, both on my Epson r2400 and on my HP colour Laserjet 2605dn. Printing from window explorer is OK - colours look fine but there aren't so many options for printing available.

    Yes, as suggested, go into your printer settings (which you access in LR at Print Module > Page Setup (lower left) > Properties (for your printer).  Now this will vary, depending on the make and model of your printer, but for my Canon printer, you access this at Main > Color Intensity: Manual > Set.  In WinXP, I needed to UNCHECK Enable ICM (Windows Image Control Management). In Win 7, I get more accurate color with this same setting CHECKED on. You will want to save the correct settings at LR > Print module > User templates (on the left).
    If that doesn't solve it, this common issue can have different causes depending on your gear and on your settings, so some experimentation is in order.
    What has caused this issue for me:
    In LR
    > Print module > Print Job (on the right, at the bottom) > Profile > Managed By Printer. Beat suggested this setting. For me, this setting causes color shift and exposure shift issues in prints. If you've already had this setting enabled (I believe it's enabled by default), it may need to be changed. For me, the fix was downloading printer paper profiles from my printer company's website and installing them into Windows as instructed and then selecting the correct one of them, matching my photo paper and using corresponding settings in the printer settings, instead of Managed By Printer.
    Another cause for this issue can be failure to use a hardware color calibrator.  Even if you have run a software-based color calibration routine and get reasonably accurate color in other programs, using a hardware color calibrator, even a $100 or under one, and carefully following all the calibrator instructions (these devices can make things worse when used plug-n-play) will remove color casts and make prints that are too dark in LR much more accurate, matching print to monitor.
    There are likely other causes and fixes as well.
    When you get it figured out, type yourself a note listing everything you did and where you found each setting, and save the file.  Someday after reinstalling LR, you will need it again.

  • How do I Poster print with photosmart 7520

    I am a poster designer and I have used poster printing with all of my Hp printers, but my Hp Photosmart 7520. How do I Poster print with photosmart 7520 using eprint and if not can I use use the USB cord instead for poster printing?
    This question was solved.
    View Solution.

    The steps are quite the same, beside one different step during the dialog:
    From Devices and Printers click the Add  a Printer button, then select a Local Printer.
    Keep the preseleted LPT port amd click on Next.
    Select HP from the Manufacturer pane and then select the HP Deskjet 6940 Series from the Printers list.
    Note: if the model is not listed, click the Windows Update button, allow it several minutes to complete and then it should be listed.
    Finish the Wizard and confirm the changes.
    Right click teh newly added 6940 and select Printer Porperties, open the ports tab and select the port with the otiginal printer model listed within the Printer column (e.g. HP Photosmart 7520), then click on OK.
    Poster Printing should now be available within the Finishing tab (Under Pages per sheet and Posters) by using the HP Deskjet 6940 printer.
    Please let me know of any issue,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Sapscript/Smartform via mail with PDF attachment: logo is missing

    Hi all
    I'm implementing my function to send Sapscript/smartform via mail.
    I need to do it because when a message needs to be sent, I have to insert the message as attachment but also to add a text in the body mail.
    So I've just created a simple sapscript having a logo (as graphic) and a little text.
    I use the fm CONVERT_OTF to convert the OTF to PDF format and the following code to increase the pdf string from 132 to 255 char:
    LOOP AT t_pdf.
          TRANSLATE t_pdf USING ' ~'.
          CONCATENATE l_buffer t_pdf INTO l_buffer.
        ENDLOOP.
        TRANSLATE l_buffer USING '~ '.
        DO.
          MOVE l_buffer TO l_attachment.
          APPEND l_attachment TO x_attachment.
          SHIFT l_buffer LEFT BY 255 PLACES.
          IF l_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
    All seem to work fine, but as soon as I open the pdf file attached to the mail I can't see the logo
    So after calling fm CONVERT_OTF, I've created a pdf file by method GUI_DOWNLOAD, and then upload this file (by GUI_UPLOAD) into internal table for attachment and send the mail.
    Now really all work very fine, becaus I can see the logo
    Of course I don't want to dowload the file before sending a mail, but I need to send my print directly as pdf attachment
    The two ways seem to be equal, they use the same print and the same functions, only the way to upload the internal table for attachment is different:
    1) tha abap code above to expand the line from 132 to 255
    2) the method GUI_UPLOAD
    So something seems to be wrong in the first way because ithe logo is missing in the pdf attachment generated for the mail
    Max

    Hi
    I'm not working on unicode system, anyway I didn't see that parameter BIN_FILE, so I didn't use it
    I've read the note 1324547 and I've done just as it explaines: now works fine
    I don't know why it doesn't work with old manner (i.e data is treated as character-type), but it worls with the new one (If the data is treated as xstring-type)
    I can only suppose the data are corrupted while being elaborated for expand to 255 char....but I don't why
    Anyway your suggestion works for me
    Thank
    Max

  • 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.

  • SMARTFORM: PROBLEM WITH PRINTING SAME HEADER IN PAGES FOR A NON-FINISH LIST

    Hi, guys!
    I hope you can help me as well as many other times.
    I have a Smartform which contains a header,body and a footer in a page.
    This is a form for a report, which we have a column header and the positions. the problem is that if a current account haven't finish in that list (see the example)
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    ACCOUNT      | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |                <-- COLUMN HEADER
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |12.12            |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123123.23    |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 1
    in the next page, we don't want to repeat the columns header. just only continue printing the lines...
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 2
    Has anyone encourage this issue? What can I do? remember is a smartform.
    please help us!!
    thanx

    Guys.
    Remember that the columns header won't be printed only if the lines per account continues. I mean, the column header printing depends on the number of lines that are being printed.
    If at the end of a previous page the list (for example the positions that belong to this account) still continues for an account, then in the next page the column header musn't be printed, just only continue printing the rest of the positions. As you notice this case would be found in any number of pages during the rest of the report.
    I'm agree with all your solutions but this only functionin some cases for the first page.
    I look forward to hearing from you.
    If I'm clear now, please help me!
    Thanks guys!

  • Problem with Smartform printing

    Hi all,
    I developed Dunning form . its working fine in development system.
    We have problem in production .
    For example , we need to print dunning form for 10 customers means 10 forms need to be print at a time usinf F150.
    Some forms printing fine with all text modules and some forms are not printing text modules.
    i did debug for Fm of smartform .
    In side this Fm , it is calling SSFRT_SYMBOL_VALUE  function module , for printing all text modules.
    Inside FM SSFRT_SYMBOL_VALUE   ,
    we have issue with     assign (l_programsymbol) to <l_symbol>    statement  (Line number 86) .
    Here if <l_symbol> will populate with text module, it is printing text.
    If not , it is not printing .
    Is there any point to know solution
    Thanks & regards,
    JBR

    Thanks

  • Using Smartform after preview print with a selection screen

    Hi experts,
         I am facing with some smartform printing problem.
        Here is the problem:
        We develop an add_on program for printing some FI report and we use F:Front end Printing in SPAD Access Method.
        The problem that we faced is: After enter the TCODE, we select preview into the smartform window.( Display is all right) At this window, when we click Print Icon, the output request directly sent to the printer and the page printed out without giving a selection window for selecting Printers and printing page range (Like standard print configuration).
        What we want is that after displaying the FI report in smartform, we could select the print page range and printers in user's PC.
        Appreciate for your valuable advice.
    BR,
    Derek Yang

    Hi,
    You have to set PREVIEW = 'X', before you see print preview.
    Try this way
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZTEST_SMARTFORM'
        IMPORTING
          fm_name  = fm_name.
      DATA:ssfctrlop TYPE ssfctrlop.
      ssfctrlop-preview = 'X'. "Needs to be set this. It shows dialog window to set print parameters
      CALL FUNCTION fm_name
        EXPORTING
          control_parameters = ssfctrlop
        TABLES
          it_nfal            = it_nfal.
    Thanks
    Venkat.O

Maybe you are looking for

  • CD/DVD Drive Failure?

    Hello. I have a Pavilion dv9700 notebook running Windows 7. My problem is that I think my CD/DVD drive has failed. The computer won't read any disks, it doesn't even spin the disk as though it's trying to read it. We've tried to update the driver whi

  • Off, Off Topic Help Needed!

    I am trying to find out if anyone has had this problem and how they delt with it. A non profit asked me to redo their website and I transfered it from GoLive to Dreamweaver. I have been redesigning the website to look more professional. The main prob

  • My screen wont respond. Any ideas?

    Areas of my screen aren't responding and when I try to scroll in just clicks on the area? Any suggestions on how I can fix this? My screen is cracked but is has been for months, can this effect the sensitivity?

  • Create Form in Customer Package ?

    Hi there, i would like to create some forms in our customer package (for example /OUR/TEST1/). When i define the name of the form for example /OUR/TEST1/MY_FORM - an error comes up "No special character allowed" Well there are some SAP standard Inter

  • Util_file package error

    Hi , I am using util_file package to spool to a csv file in a stored procedure . when I call this procedure on my loacl machine is woking fine . But when I call this procedure in the apps oracle database ,I get the following error: ORA-20003: File co