Preview on Sapscript or Smarforms in an CL_GUI* container ..?

Hello community,
I wondering whether it's possible to place the print preview (Sapscript) of an transaction in in a cl_gui* container window.
It seems that there is no suitable class Interface availyble.
Anyone knows a trick?
Best regards
Ferdi-M

Hello community,
I wondering whether it's possible to place the print preview (Sapscript) of an transaction in in a cl_gui* container window.
It seems that there is no suitable class Interface availyble.
Anyone knows a trick?
Best regards
Ferdi-M

Similar Messages

  • No data display in Print preview for sapscript

    Hi All
    I have copied a standard sapscript and the driver program (RVADAUS1) and made some minor changes to both.
    Now when i print preview it, no data is displayed. I checked in debugger, the data is present till perform WRITE_FORM but is not there in sap script.
    Please help!!

    The data is coming in driver program..I have debugged both driver prog and the sapscript..The data is present in the driver program in the Read statement just before the write_form function module is called to fill in the data in sapscript..But when i debugged sapscript, the data is not coming there.. even the window boundaries are not printed..Only a single line present in MAin window is being printed. Rest all is empty.

  • Having trouble viewing the print preview of sapscript

    Hi experts,
    I am currently developing a driver program that calls 13 different sapscript forms (which are also customized - has n existing standards). so basically, the whole program and the forms are all from scratch.
    I've already executed the call function open, write and close forms, but everytime i test the program in the QAS, (the part where you can choose the print preview and the output device)
    and press the print preview button, a dialog box appears telling me:
    WRITE_FORM is invalid, OPEN_FORM is missing.
    But i clearly stated that in my program.
    Can anyone tell me how am i suppose to write the call functions that will let me see the print preview?
    Also, at this moment, i'm not passing anything yet from the program to the form, i just want to check if the form is being called.
    Thanks,
    Frank

    Hi Franklin,
    Order of calling OPEN_FORM,WRITE_FORM,CLOSE_FORM
    is  CALL FUNCTION 'OPEN_FORM'.
                LOOP AT ITAB.
                  CALL FUNCTION 'WRITE_FORM'  .
               ENDLOOP.
        CALL FUNCTION 'CLOSE_FORM'.
    You know this order.Now as you are calling more than 1 form
    we should call every form between
    CALL FUNCTION 'OPEN_FORM'.
    CALL FUNCTION 'START_FORM'.
    LOOP AT ITAB.
                  CALL FUNCTION 'WRITE_FORM'  .
               ENDLOOP.
    CALL FUNCTION 'END_FORM'.
    CALL FUNCTION 'CLOSE_FORM'.
    Try using this.
    Regards
    Lakshman

  • Issue in viewing 'Print Preview' of SAPScript output in different languages

    Hi All,
    I have developed a SAP Script.
    It is working correctly in English in all aspects.
    I have created few standard texts for headers in SO10 and maintained in different languages.
    In Print program also while retrieving these text i have used Order's language.
    In debug mode also it is showing texts in different language (Chinese, Japanese, Thai etc...).
    But in print preview it is showing as # every where we suppose to print headers from standard texts.
    How can i view these texts in their original language (Order)!
    Can anybody provide the solution for the same!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have selected 'Supplemental language support' boxes.
    But still it is not working.
    Can anybody solve above posted issue!
    In PO it is showing in Japanese/Chinese etc.. characters.
    In SO10 it is showing texts in respective languiages.
    In debug mode of Print program & Layout set text is shown in respective language of text based on country of PO.
    But in print preview it is showing as # everywhere there must text in different language.
    Only in English i am able to view print preview correctly.
    Can anybody provide inputs for resolving this issue!
    Thanks in advance.
    Thanks,
    Deep.

  • Sapscript symbol for a certain line containing variable characters

    Hi,
    Can you tell me a symbol in sapscript that tells us the size of a certain line ?
    Meaning that if I choose font Times new roman with size 10 and I have 30 characters, then the symbol can tell me how wide my line of 30 characters is. When I increase the font size to 20pt, obviously the width of the line of 30 chars will change, and the symbol should tell me how wide it is.
    Thank you.

    Thanks for your reply.
    If it is not possible for a symbol, then any solutions are ok. If you know any method that can help me, like function module, BAPI etc...please raise it. Any ideas are welcome.
    If you want to know more details of my issue, so here's the description: I have to wrap the text for a column of a table in a form, but I only can adjust the numbers of characters when they are in upper case, so when they input text in lower case, there will be a space between the text and the rest of the column. If I adjust the character numbers of the wrap-text function due to lower case, then when people input the text in upper case, the text will be overflow the column.
    Therefore the things I need to do are:
    + 1st: capture the column's width in the form, passing it to the program
    + 2nd: capture the paragraph format and character format of the input text
    + 3rd: calculate the length of the input text with those formats
    + 4th: wrap the text due to maximum space that the column can fit.
    Here are my solution, and I'm getting stuck just from the very first step
    rgds,

  • Preview and Printing of Chinese Characters in Smartform

    Hi everyone!
    I have a development that needs to output in Smartform a combination of Chinese and English characters, on an English Logon,
    When I debug the form, the Chinese characters are shown in the debug screen, but when it is previewed or printed, it shows garbage.  Can anyone help me with this?
    Thanks a lot! Points for any helpful answer!

    Hi
    check this OSS Note
    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
    Regards
    Anji

  • Printing SAPScripts in Thai on Hp Printers

    Dear Experts,
    I am trying to set up Thai printing in my system. I created a output device with device type, THSAPWIN. In the print preview of SAPScripts, my thai characters are cramped together in a mess and when I tried to print, I just see "#" everywhere.
    Please help...
    Thanks,
    KH

    The logic to build SAP Script and Smart form of all languages will be same. But while working on Asian language please take care of the following points.
    1 Make sure you logon to SAP in thai language only.
    2 At the Operating system level install the thai language.[Control panel - >Regional and language Option - >language Tab - > Click on Install Files for East Asian languages] If these language already installed then click on Detail and add the thai languages
    3 At SAP level click on Customizing of Local layout[Alt+F12] and click on options.Go to tab I18N and click on Activate the multi-byte functionalities to support check box.
    4.Take care of the Font while assigning to Character formar or paragraph format. Dont use normal font name. Example of chinese phone "CNSONG

  • About waschein(SAPscript)

    Hello experts,
    I am currently modifying a Z version of waschein and I think I am having a conflict with my at new statement. What happens is that whenever I call the FM CONTROL_FORM to create a new page it gets the records thats supposed to be displayed on the next page! I also think that it conflicts with sapscript calling automatically new pages whenever the main window is filled up. Please help me on this guys. Again, thanks a lot and have a nice day!

    Hello,
    I am having a problem with my sapscript form. I have a requirement wherein before calling the sapscript FMs I would group together all records by dealers so all dealer A would be grouped together and so on. But on the print preview of SAPscript I am confused as to why, for example, I get the wrong values on my header window(KOPF). It gets values thats not in the group.
    For example, on page 4 of my sapscript, my header window(KOPF) show the value customer B where in fact its supposed to display customer A.
    Message was edited by: viraylab

  • SAPSCRIPT Courrier Font Spacing

    Hello, I'm facing an issue when I'm trying to print and also print preview a sapscript using the Font COURRIER, it is supposed to be monospaced but the space between words is not using just a character. Could someone help me with it?
    Ex.
    "Дата виник-" -> Just one space between words
    Print Preview
    "Дата     виник-"
    Paragraph  SK
    Family     COURIER
    Font Size  8,0   pt
    Best Regards
    Daniel

    Hi Daniel,
    for cyrillic signs use COURCYR, not COURIER.
    Regards,
    Przemysław

  • How to download a SAPScript form into Excel?

    hi friends,
    I have to download the SAPScript report program output to Excel.
    It means After executing the report it will show the SAPScript form with data what ever we desing.
    Now this output i want to download to Excel as it is.
    Plz is there any ways....
    Regards,
    Shankar.

    hi,
    Thanks for your response.
    My requirement is not saving the print preview of sapscript to excel.
    My requiremnet is, After finshing the sapscript desing , we will be calling this sapscrit form in print program using function module WRITE_FORM.
    After writing all the code and all, after executing the report program it will show the out put with data.
    Now this output as it is (i.e boxes, logo ) i wants to download to excel.
    Plz if it is there any way tel me.
    Thanks & Regards,
    Shankar.
    Edited by: Shankar  Reddy Chamala on Aug 14, 2008 12:50 PM

  • Border lines of windows shows correctly in preview but wrong in printing

    Hello experts,
    I am currently facing a problem here. When I print preview my sapscript form all
    the alignments are correct but when we try to print it the lines of the 3 windows below is
    not being displayed. I have 3 windows at the lower part of my page namely MVTXT, LLCOR AND
    LRCOR. In preview, they are being displayed as(assume this is the whole page):
               KOPF             *
               MAIN             *
         Movement type:         *
    LLCOR      |   LRCOR       *
                |               *
                |               *
    But when we print it below is the display:
               KOPF             *
               MAIN             *
         Movement type:         *
    LLCOR          LRCOR       *
    Again, thank you guys and take care!
    Message was edited by: viraylab

    HI Viray,
    Change the size of the window by selecting the Page Windows button inside SE71 transaction under you form and there in the Bottom of the window you get dimensions for each Window you double clicked.
    Here in the Bottom you change the dimensions.
    Thanks & Regards,
    YJR.

  • Can I restore the Snow Leopard version of 'Preview' for use in Mountain Lion?

    When running Snow Leopard I enjoyed using Preview with my HP C7280 All-in-One Scanner/Printer.  I could place several items on the glass plate and Preview would then carry out a "preview scan". The superior edge detection software contained in Preview would recognise that there was more than one item on the scanner glass and put a marquee rectangle around each object (even separate images in a magazine page).  I could de-select objects if I wanted to at this point to avoid scanning them, or I could opt to scan. 
    Preview would then scan all selected items in one go outputting a separate file for each one. No need to re-scan and select the next object.  Preview would do the lot in one go! This was fantastic for saving  time for me. 
    Preview really 'kicked the crap' out of my PC at work. The best the scanning software on the PC could was to auto-detect a single item.*  So if I have a lot to do, I have to preview scan and then save/scan each item individually to achieve the same result.
    All this changed when I updated from Snow Leopard to Mountain Lion.  The scanning is nothing like as effective and time saving as before.  Preview just scans the whole glass plate straight to a file irrespective of what is on it, no preview scan and no object edge detection whatsoever; not even a single object like on my old PC at work. Absolute rubbish!
    I really want to restore the functionality I had before. So I wonder, is it best to revert my iMac to Snow Leopard, or can I achieve this another way?   I don't necessarily want to abandon Mountain Lion - but I will if I have to.
    Is it possible to restore the Snow Leopard version of Preview whilst keeping Mountain Lion? Or maybe download the Lion version from somewhere instead - assuming that the Lion version still has same functionality as the Snow Leopard version?
    *Even this is better than what Preview does since I updated to Mountain Lion

    It's either that or finding other software for your scanning needs. For example, Image Capture comes with OS X, VueScan 9.2.09, ExactScan Pro 2.24.
    Alternatively, partition your hard drive and install Snow Leopard on another volume.
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive. Use the Snow Leopard installer DVD to install Snow Leopard on your new volume.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.

  • Is it possible to exclude thumbnails and previews from a vault?

    I think in Aperture 1.5, vaults did not include any preview or thumbnail files, but only the files containing metadata, adjustments etc. (and the masters, unless referenced only)
    Somewhere along the way to 3.0 this changed so now previews and thumbnails are backed up each time you update your vault.
    This has two BIG drawbacks:
    - the vault becomes much larger than necessary (I always generate large previews)
    - the update process takes much longer as more files need to be copied.
    On the other hand, I do not see any tangible benefit of including the extra files - provided I back up both masters and the adjustments, I should be able to regenerate thumbnails and previews after a restore following, say, a fatal hard drive error.
    (If I chose to delete all previews and thumbnails prior to creating a vault, I assume that the vault would be significantly smaller, without losing any information that cannot be recreated by  'generate thumbnail/preview')
    Is my understanding correct?
    If so, is there a way around it?
    If not, can we please have this option in Aperture 3.5 or 4.0?
    Thank you!

    Hi Matt.  You raise an interesting point.  What you say makes sense to me.
    My general response is:  external drives are cheap.  Buy what you need and don't spend any time trying to "save" disk space.  IME, the administrative overhead is far more costly than the upfront equipment costs.
    Here are some specific answers (as I understand how Apeture uses Vaults).
    There is no way to exclude Previews from Vaults.  Each Vault includes all extant Previews.
    Each Vault is a differential back-up.  Updating the Vault should update only those files that have been added, changed, or deleted.  Unchanged files -- including Previews -- are not backed up anew each time you update a Vault.  The amount of time it takes to update a Vault will vary based on the number of changes made, and should have nothing to do with the size of the Library or the number of files in it.
    You can test your hypothesis.  Delete all your Previews, and create a new Vault.  Let us know what you find out.
    Suggestions for enhancements should be made directly to Apple via "Aperture→Provide Aperture Feedback".  The forum is -- officially -- strictly for user-to-user interaction.

  • Preview/Publish Fail & Freeze in Captivate 5

    I'm experiencing freezing & "publish failed" messages when I attempt to preview or publish my project.  My project contains 1 slide with a text caption and 40 slides recorded as a demo with no audio.  I've attempted:
    clearing the cache
    reducing the project size
    copying recorded slides to a blank presentation
    installing the latest Captivate 5 update
    I have many other similar projects without this problem. Nothing seems to be working!

    I had a similar problem when I tried to publish a project in Captivate 5 that I had first created in Captivate 3.  This problem did not happen with every  3 --> 5 conversion, only in some projects.  Very mysterious.
    For me, I noticed that it ALWAYS froze during each Publish attempt at EXACLTY the same spot around 41%, so that caused me to become suspicious:  What was around 41% of the way through my slideshow that was unique/different/unusual?
    Finally I realized that there was a slide part way through the project in which I had used a quiz feature in Captivate 3 that was not available in Captivate 5,  So, when I deleted that slide and re-did it in Captivate 5, the publish worked fine.
    Just thought I would throw this in for consideration in case:
    your project was actually created in Captivate 3 first and now you are publishing in 5.
    if your project freezes at exactly the same spot during each publish,  you can investigate slides around that area to determine if there is anything unique/different/unusual

  • Preview .Folios and temp files

    I'm assuming that when we Preview a spread using the Preview button in the Folio Builder Panel in InDesign, a temp .folio file is created. Is this correct? If so, where is this temp file stored in Mac OS?
    Thanks.

    I'm geting an error when i go to preview my folio. It says the folio contains one or more stacks that are not yet supported in content viewer only supported on iOS viewers. Any suggestions to fix this?
    thanks

Maybe you are looking for

  • HP LaserJet p1102w with Mac OS X10.6.8 HTML config issue

    Hello,  I have been using this printer for a few years now and have moved house a few times and successfully updated the wireless settings on the printer through HTML config. Lately, in printer utilities the HTML config button does not show up where

  • Email Account Not Shown In Notification Center

    Hi, I have a few email accounts setup on my iPhone 5 iOS6, two Gmail account (business and personal) and two Exchange accounts (college and Gmail). The account that has the issue of not displaying new mail messages in the notification center is my co

  • Upgraded to Yosemite now print to HP Laserjet P3015 on the network

    Have been using the office HP Laserjet P3015 with my MacBook running Mavericks with no issues. As soon as I upgraded to Mavericks, cannot print: First, I tried the existing printer configuration and got nothing as it showed the document stuck in the

  • VGA Connector

    I would like tgo coinnect my 11" Macbook Air to a projector for a presentation, which type of connector do I need. many thanks.

  • Photostream support for multiple libraries

    I understand that Photostream can only be linked to one library at a time.  Does Aperture solve ths problem?  I have not purchased Aperture yet, but I will if it can solve my problem.  I want to spilt my libraries up, because my single library of 30