Smartform duplex printing in SPOOL

We set the print mode to "D" in the form, and it prints correctly back-to-back online.
But if we send the output to spool, the printing is NOT back to back.
Any other special setting we need to make for spools?
Thanks in adv.

Hi Aishi Sharma ,
Can u  explain me , how to get the Double-sided print ?
I create two pages : Page 1 and Page 2.
Page 1 contains Main Window and some text data in it.....
Page 2 contains  a secondary window with some TERMS & CONDITIONs data.
Print Mode Settings:
Page 1     Print Mode : D
Page 2     Print Mode : Space
I maintained all the above in my Smartform ,
but i couldn't get my second page at all  and Double-sided print also....
Is there any settings missing or any to be maintained ?
GIve me a Solution....

Similar Messages

  • Smartform duplex printing with tray resource

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

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

  • Problem in smartforms - Duplex printing

    Hi,
    I am trying to use a smartform for duplex printing of pages.I have the following pages.
    FIRST and OTHER are pages with the same main window
    I have also created pages BACK and LAST which is used to print on the reverse page.
    Page  ->         Next page   ->   Mode           ->     Printmode
    FIRST  ->      BACK     ->        Initialise counter      ->     D  ( Duplex )
    BACK   ->     OTHER      ->       Increase counter     ->      Blank
    OTHER  ->    BACK     ->      Counter unchanged ->      D
    I have created a command in MAIN window to call the LAST page
    LAST  ->     blank     ->   Counter unchanged         -> blank
    I tried to print a document with 8 pages ( ie., 4 front page and 4 back page ) in a duplex printer.
    Pages 3- 8 are printing fine with print on both sides. But page 1 and page 2 are getting printed in different pages.  Any idea what is the issue with the first 2 pages?
    Thanks and Regards
    Suba

    Hi Suba,
       when ever we want to print back side of a page, we need to assign "D" for the
       page we wanted to print on back side.
       for ex: there r 2 pages, first page and second page .
          1) if we define "D" for first page then it will print second page on back of first
              page.
          2) if we define "D" for both, then second page will start from new page(won't
              print on back side of first), but it can print second page both sides.
       in ur case,u defined FIRST and BACK pages as "D", but OTHER as default.
      so remove Page mode "D" for BACK page.
      hope this solves the problem.
    Thanks
    Dinakar.

  • Duplex printing of invoice list in smartform

    Hi,
    I am new to smartforms and I have to handle duplex printing.  I need information like how to give the page sequence for duplex printing.
    I have 2 pages, page 1 prints the header list of the invoice. Page 2 prints the invoice list and has the main window, hence if the data in the 2nd page overflows then the invoice list will be printed on the 3rd page. In this scenario I have to get terms & conditions printed behind all the 3 pages.
    I created page3 with terms & conditions. This is the way I gave:
    PAGE1 - Print mode: D; Next page: Page3
    PAGE3 - Print mode: ' '; Next page: Page1
    PAGE2 - Print mode: D; Next page: Page3
    I have a doubt like if the 3rd page is printed with invoice list then will the 3rd page contain the terms & conditions? Please correct me if I am doing wrong.
    Thanks & Regards,
    Kate.

    Hi
    It depends on where you've placed those data, if they are in the bottom of the main, yes you're right: they'll be printed only in the last page.
    If they're are in another window, they are printed in every page (where the window is defined).
    Max

  • Problem with duplex printing in smartforms

    I have 2 pages in my smartform. both the page are with print mode 'D'(Duplex).
    While printing the first page goes back for duplex printing but the output is printed on next page.
    I want the second page to be printed at backside.
    I have also tried other combination 1st page = D and 2nd page = ''. Nothing is working.
    printer settings are all right also i have a different smartform it is printing in duplex mode and working fine.
    what is the issue with this smartform?
    Please help me.

    hi,
    in your main window of first page at the end adda an alternative -true or false
    in the alternative add a condition saying if it is end of items.(end of items is nothing but a flag).
    if this condition satisfies then call page 2 else call page1.
    if it stil does not work then reply back then will give you another answer.
    but before this is your output going to have multiple pages?

  • Issue with character formats using duplex printing in smartform

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

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

  • Duplex printing for smartform

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

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

  • HP Laserjet p3005x - jamming during all duplex print jobs

    We have recently aquired a used HP Laserjet p3005x printer that jams under the print cartridge during every duplex print job.  The message in the printer log is Event 13.05.00 "Fuser output - Paper late jam"

    A batch file was created to restart the spooling service when this happens, but as stated earlier this is not a permanent fix.

  • Smartform-PDF-Printer fonts

    Hi Folks,
    Here we have designed a Invoice-smartform and converted it into PDF which is by default storing in c-drive as mentioned in the code.When we open the Pdf it is displaying it fine but when given a printout except the logo nothing is getting printed,I mean it is showing all junk characters.May I know what is the problem and how to rectify the same.
    Points will be given.
    K.Kiran.

    Hi Kiran, see the OSS notes: 960341 and 776507.
    I downloaded and copying here, Hope this will be helpful
    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
    regards,
    Anji

  • Smartforms to pdf without spool

    Hello,
    Is it possible to convert a smartform to pdf without a spool id ? I need to generate a pdf file from a smartform without print it.
    Thanks.

    Hi  Julián Moreno Luna,
    Please check this link
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/smartform%2bto%2bmail%2bas%2bpdf%2battachment
    *& Report ZTEST_NREDDY_PDF_MAIL
    REPORT ZTEST_NREDDY_PDF_MAIL.
    * Internal Table declarations
    DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    * Objects to send mail.
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    * Work Area declarations
    WA_OBJHEAD TYPE SOLI_TAB,
    W_CTRLOP TYPE SSFCTRLOP,
    W_COMPOP TYPE SSFCOMPOP,
    W_RETURN TYPE SSFCRESCL,
    WA_DOC_CHNG TYPE SODOCCHGI1,
    W_DATA TYPE SODOCCHGI1,
    WA_BUFFER TYPE STRING, "To convert from 132 to 255
    * Variables declarations
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZTEST'
    IMPORTING
    FM_NAME = V_FORM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = V_LEN_IN
    TABLES
    OTF = I_OTF
    LINES = I_TLINE
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    ENDIF.
    LOOP AT I_TLINE.
    TRANSLATE I_TLINE USING '~'.
    CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    I_RECORD = WA_BUFFER.
    APPEND I_RECORD.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    * Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    * Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    * Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    * Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = 'Write Mail ID Here'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    OTHERS = 8.
    IF SY-SUBRC <> 0.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    OTHERS = 8.
    Best regards,
    raam

  • Two SAP systems, same smartform, different print outputs

    We have two SAP systems, because of the different business areas that our company has.
    We develop a smartform with a custom style which has Gill Sans MT as default font. The smartform is printed directly into PDF format.
    On system A on all environments it works fine and we transported it to system B.
    On system B the output on PDF format comes in bold, all the characters are bold. This happens on all environments. On preview we don't see bold font but the spacing between characters is larger than expected (for example, a date is printed in two lines of a cell).
    I've checked the settings on SE73 and they are the same on both systems.
    I've also created a second style were I've taken out all bold settings. On system A, the smartform' style was changed to this new one. The changes were transported to system B, and still it prints all bold.

    Thanks for the replys. I think this is an answer to both.
    Checked SPAD and differences  are:
    1. output device LOCL:
    System A:     
    - Device Type: ZSAPWIN
    - Host Spool Access Method: F
    System B:
    - Device Type: SAPWIN
    - Host Spool Access Method: G
    2. Device Type:
    System A:
    - has two custom formats (none used on this specific smartform)

  • Smartform - HCM - Print two paychecks/remuneration by page

    Hi.
    SAP ECC 6.0.
    I need to develop a Zsmartform to print two documents (front/back) per page (landscape). The client needs it in SAP because they already have the same functionality in legacy system and want it same way in SAP.
    I thought to solve it by creating a smartform with two pages (one to print front and other to print back) in landscape.
    To the first (front/landscape) page, creating two equal windows (side by side) with same size and structures type. To do this, I use a rotine/form (inside smartform windows) to read exact employee data to each window, but program calls smartform sending two employee data using the same mixed in the strutcture.
    E.g.:
    PAGE1: Employee1 and Employee2 front.
    PAGE2: Employee1 and Employee2 back (each back match with its correct employee).
    I guess it's quite complex, but is it possible ?
    thanks.
    Glauco
    Edited by: Glauco Kubrusly on May 6, 2011 4:47 PM

    Hi Glauco,
    Kindly set the print mode = d(duplex printing). the overflow data from 1st page will flow to next page, i.e. back page.
    Hope this info is sufficient to solve ur issue.
    BR,
    Vinit

  • Smartforms Multiple Prints Problem

    Hello,
    We have developed a smartform, and this smartform gets called in a loop from the driver program.
    We have user control parameters-no_open and no_close so that print dialog should appear only once and there should be only 1 spool generated.
    The problem is when we click on Print Preview we are able to see multiple pages as per the documents selected.
    But when we click on Print the spool which gets generated has only 1 page.
    Please suggest if there is any setting or something related to this.

    I am confused. You have one spool request. How many pages does it have, according to SP01?
    And you can do a print preview there and see 10 pages in SP01, as I understand ?
    So your problem is that when you print this request, only one page is printed out?
    Pls explain in more clarity. Possibly a raw display of the job data in SP01 might help...
      Alex

  • E-Mail print error; check SmartForm or printer definition

    Hi Team,
    We are facing  an issue when we try to print the email in SAP CRM 7.0. Getting an error saying -Mail print error; check SmartForm or printer definition.
    Any pointers on this how this can b resolved will be of great help.
    Have gone through the similar sdn thread, not able to really understand how the issue was resolved.
    Error when printing an email >  CRM_IC_APPL_UI_CHMSG
    Regards,
    Udaya

    Hi Udaya,
    Try to maintain a default printer for a particular user in t-code SU01 (on Defaults tab -> Output Device).
    Then, when you print again it will generate a spool order for chosen printer (can check on t-code SP01).
    Kind regards,
    Garcia

  • Manual duplex printing doesn't work for LaserJet 100 color MFP M175a

    Hi !
    OS Windows 8.1. Printer LaserJet 100 color MFP M175a. Driver version 61.108.8.10073 date 2011 Apr 13th
    1. After switching on checkbox "Print on Both Sides (Manually)" on "Finishing" tab of Print Properties Dialog and
    start printing, dialog with instruction how to turn paper appears. Then printer must print odd pages, stop for
    turning paper and then continue printing of even pages on the back side of paper sheets. But my device prints
    all pages sequentually in order 1,2,3,... without any breaks. What is it- my mistake or possible bug in driver ?
    2. Windows API function DeviceCapabilities with fwCapability=DC_DUPLEX for this printer returns 0 (duplex printing
    impossible). This value for any other HP printer, even without automatic duplexer, always equel to 1.
    This question was solved.
    View Solution.

    Hi @Up205, 
    I see by your post that you are having issues manually printing two-sided. I can help you with this.
    The software for this model on Windows 8.1 is the Basic Solution Software and Driver. This basic software solution provides print and scan functionality only. Did you download and install the newest drivers?
    HP LaserJet Pro 100 color MFP M175nw Drivers.
    Check to make sure Bidirectional Support is Enabled.
    Go to the start up screen, (tiles menu) type in "Devices and Printers", select settings, click on Devices and Printers, right click on the printer, left click Printer Properties, on the Ports tab, put a check beside Enable Bidirectional Support.
    You might have to restart the computer.
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • Hide mouse cursor when typing is not working in IE11 Windows7

    Hide mouse cursor when typing is not working in IE11 Windows7 - I saw a post that devs were looking at this in 2011? Slow progress huh? This is really annoying when you have to move the cursor to see what you are typing...

  • URGENT: Rest web service with get method works fine in browser but not with java client(Android)

    Hi , I have created one REST web service which accepts two parameters send back JSON results. I tested the it in browser with URL as http://+Inteernal server+/ords/utimes/login_info?p1=+first_param+&p2=+second_para+ Web service URL :  http://+Inteern

  • PO release based on CUMULATIVE VALUE

    Hi Experts, I have a scenario to map. Client requirement is to have a release strategy based on the CUMULATIVE VALUE of the Purchase Orders. CUMULATIVE VALUE would mean accumulation of PO value till current PO & not the individual PO value. Based on

  • Help in Java XML Binding (JAXB)

    Looking for a JAVA written program that will provide interface to complex XML files using JAXB. Requirement : JAVA progam will report on existing XML using a simple GUI that will run on Windows. Program should be able to be emailed and installed with

  • Map styles to tags v. Map tags to styles

    Hi everyone, Indesign CS4 has an option in the tags panel to: 1) Map styles to tags and 2) Map tags to styles Does anyone know what the difference between these two options are? Appreciate any help.