Dunning print with a SMARTFORM

Hi all,
       I'm working (on ECC6 release) with dunning process (transaction F150) in which I have to print dunnings with a SMARTFORM.
In Customizing (SPRO->Financial Accounting(New)->Account Receivable and Accounr Payable->Business Transaction->Dunning->printout->assign dunning forms) I linked my SMARTFROM Z to 1 dunning level.
With the BTE I linked the event 1720 to the function SI_PRINT_DUNNING_NOTICE_SMARTF in which the funcion  PRINT_DUNNING_NOTICE_SF is called.
Inside the function PRINT_DUNNING_NOTICE_SF the system fills some structures (gs_fs_mhnk, gs_sf_fsabe, gs_sf_t047, ....) and then call in a right wy SMARTFORM but when the dynamic function "fm_name" is called the only parameter passed (behind the other classic parameters xxxx) is SFPPARAM. This parameter (SFPPARAM-CONTENT) is filled with this strange string  in which there are some (useful for my SMARTFORM) values:
"6002007103010SOL1DZ0010000176001                                      0  2007103020071030          00000000Z0011ZCEUR  ##ခ獬##ခ獬##### "
before the dynamic function "fm_name" but when I enter in my SMARTFORM I don't see its value. Why?
How can I pass this values or the standard structures (gs_fs_mhnk, gs_sf_fsabe, gs_sf_t047, ....) to my SAMRTFORM? 
Any help?
                 thank you
                         Gino Bonfiglioli

I used the best-practice tools for the dunning notice, if you used this you will find a complete smartforms ready to be used.
else, you could used the same method of this smartforms :
here it's the initialisation code:
CALL FUNCTION 'GET_SF_DUNN_DATA'
  EXPORTING
    is_sfparam          = is_sfparam
  IMPORTING
    es_mhnk             = mhnk
    es_t001             = t001
    es_knb5             = knb5
    es_lfb5             = lfb5
    es_t047             = t047
    es_t047c            = t047c
    es_t047i            = t047i
    es_t056z            = t056z
    es_f150d            = f150d
    es_fsabe            = fsabe
    es_adrnr            = adrnr
    es_uadrnr           = uadrnr
    es_adrs             = adrs
    es_uadrs            = uadrs
    es_t047b            = t047b
    eb_testprint        = testprint
    e_langu             = langu
    e_lang2             = lang2
    es_f150d_esr        = f150d_esr
    es_paymi            = paymi
    es_paymo            = paymo
  TABLES
    t_mhnd              = th_mhnd
  EXCEPTIONS
    no_parameters_found = 1
    OTHERS              = 2.
IF sy-subrc <> 0.
  sy-msgid = 'FM'.
  sy-msgty = 'E'.
  sy-msgno = 461.
  RAISE others.
ENDIF.
h_t040a-text1 = space.
show_interest = space.
LOOP AT th_mhnd INTO mhnd WHERE xzins = ' '.
  show_interest = 'X'.
  EXIT.
ENDLOOP.

Similar Messages

  • Dunning letter with smartform

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

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

  • Dunning letters with smartforms

    Hi everyone,
    I want to use the standard smartform F150_DUNN_SF to create dunning letters but I can't select it in SPRO > FI accounting >... > Dunning > Print
    I can only select SAPscripts.
    I've already done the note which consists in changing the FM FI_PRINT_DUNNING_NOTICE to FI_PRINT_DUNNING_NOTICE_SMARTF with FIBF transaction. Nothing happened. There's still no way to select smartforms...
    Does anyone know how to manage it ?
    Thanks,
    Regards.

    Thanks for your answer
    I have begin to assign print program for dunning notice in the transaction FIBF.
    On the SAP Business Framework: Business Transaction Events screen, from the menu bar choose Settings -> P/S function modules -> u2026 of an SAP appl.
    In the Function module box next to FIFI, I have enter the print program FI_PRINT_DUNNING_NOTICE_SMARTF.
    and I have save the changes.
    In the transaction FBMP. Dunning Procedure : Dunning texts
    when i do display for for ZF150_DUNN_SF.
    I have the message : Form ZF150_DUNN_SF language EN is not available in client 120
    Message no. TD131.
    I have see OB96 but I have a problem with the creation for my driver program.
    I use the smartform F150_DUNN_SF.
    I create a copy : ZF150_DUNN_SF.
    I create a driver program :
    REPORT  ZCALL_ZF150_DUNN_SF.
    * To call a smart form, we would need to call the function module that
    * is generated.
    * Calling the generated function module directly is not an efficient
    * method. For efficient method, click here.
    CALL FUNCTION '/1BCDWB/SF00000018'
      EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
        is_sfparam                 =
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    *   ET_FIMSG                   =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
    *   OTHERS                     = 6
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    But I have a problem with the parameter : S_SFPARAM ( TYPE SFPARAM).
    I don't know what is this parameter.
    Thanks.
    Edited by: Spawn rad on Jun 23, 2008 4:18 PM

  • Dunning letters printing with zero balance and no invoice listing

    How to trouble shoot 'Dunning letters printing with zero balance and no invoice listing' problem

    As per my understanding it could be due to OB22 settings.
    refer following SAP notes
    335608,191927,
    373296

  • Color printing with high resolution in smartforms

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

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

  • 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

  • SAPF150D-Dunning Notice Print - With Update of Line Items and Master Record

    When I am running this program SAPF150D(Dunning Notice Print - With Update of Line Items and Master Records) with a variant containing run date, runc id, update mode, pimmed & pcount; the job is failing to execute. It is giving message like,
    "The field symbol is no longer assigned because there was an attempt makde previously in a Unicode program to set the field symbol using ASSIGN with offset and/or length specification. Here, the memory addressed by the offset/length specification was not within the allowed area."
    "GETWA_NOT_ASSIGNED_RANGE" "SAPF150D" or "F150DFS0" "SORTFELDER_ERMITTELN"

    Hi,
    Search for routine FORM SORTFELDER_ERMITTELN
    in SAPF150D.
    Put a breakpoint in statement
    ASSIGN (T047F-FELDN) TO <H1>.
    in above routine and debug to the point where error is occuring.
    Most likely there is a mismatch in the length assigned to some field FELDN in table T047F.
    In that case, simply change the T047F-LENGT field accordingly in change mode.
    Cheers,
    Vikram
    Edited by: Vikram Jalali on May 27, 2008 5:56 PM

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

  • Dunning note with four dunning levels

    Hai Experts,
    i am new to smartforms, my requirement is develop dunning note with four dunning levels, what is the standard program, and standard print program for this, is there any logic develop? how can i develop the smartform in fourlevels, i develop 4 forms or use one form 4 times. what is the logic?

    Hi,
    Dunning letter means intimation letter to customer for payment due.
    Yes, actually it has 5 levels. As per your requirement you need to develop 4 dunning letters. You need to develop 4 different forms. Main difference of these letters are body of the letter. For this Print program is "SAPF150V" and t-code is F150. Run F150 and enter date and ID. As per my knowledge testingof this dunning letter is the functional person responsibility. Don't worry about that. Becuase i have developed 4 types of dunning letters.
    Hope this helps you. Reply for queries, shall post the updates.
    Regards. 
    Kumar.

  • Dunning Print Error: F150_DUNN_01 does not exist

    Hi,
    I have assigned F150_DUNN_01 via FBMP T-code for Dunning texts. While performing the Dunning print I am getting an error "Text object does not exist" or F150_DUNN_01" does not exist.
    The Event settings via T-code BF31 for event 1720 is "FI_PRINT_DUNNING_NOTICE_PDF"
    Any suggestion will be highly appreciated
    Thank you
    Vignesh

    Hi Eli,
    Form F150_DUNN_01 is a SAP script form and not Smartform.
    I am able to print preview the form text via se71 by print testing. So I do not think we need to reimport it. Can you identify any other reason for the error
    Thanks
    Vignesh

  • Interest Calculation in Dunning & Print Correspondence...

    Dear Experts...
    The below settings are in place.
    1) Interest is calculated along with dunning level 2. Config is done for the same.
    2) Ther are 2 customized Zforms available for DL2 notice letter and interest invoice.
    3) Correspondence Type 0003 & 0007 are available for dunning & interest notification respectively.
    Requirement:
    Once DL2 is carried out, the interest is also posted  in contract account , but correspondence DOES NOT print the Interest invoice through T Code: fpcopara, but the dunning letter for DL2 is printed in fpcopara.
    May I know any function module to be attached in either Dunning activity or Correspondence so that the interest notification is also printed simaltaneously after dunning notice is printed.
    Also mention any other config setting to be maintained in both Dunning & Correspondence.
    Note: No separate Interest Run(T Code: FPINTM1) is carried out. Interest Key is assigned in dunning itself.
    Thanks in advance.
    Best Regards,
    B.Kartthik.

    Hi,
    Maybe the easiest way would be to adapt your dunning form to print as a second page the interest notice? I've already done this for the interest over installment plans as we need them to be printed as an invoice (With official document number). In FKKMAKO you have the interest document number (Field MIBEL) that you can use during the printing to trigger the second page.
    I don't know any specific activity to generate the interest notice during dunning, but you can create it by creating a new function module using sample FKK_FILL_SAMPLE_0350 that will call the interest notice trigger event (FKK_SAMPLE_0713) to create a second correspondence container during dunning. If you create the correspondence container like this it will be then normally printed with FPCOPARA.
    Regards,
    Adriano da Silva.

  • Updation of table after Print and Print-Preview in smartform

    Hi,
    I am having a requirement where i need to print multiple deliveries with the sales order data each delivery on a new page using smartform.
    Now , i am using SSF_OPEN, SSF_CLOSE Fm's for the same. I need to update a Z table after the user clicks on PRINT from the pop-up or print from the print preview screen.
    I tried using the output_info parameter in the smartform where i read from a post that the OUTPUTDONE parameter becomes "X" in the job_output_info when the user clicks print wither in the two ways said before.
    This does not work out in case if the FM'S SSF_OPEN and SSF_CLOSE are used.
    Kindly help me on the same.
    Thanks in advance

    yes i tried that..using the AT new event for a Delivery and then a command to go to the NEW PAGE, but somehow when i execuet the form, i could not see the layout..so in the debug i saw the subrc after the FM is run..it says SUBRC = 2 i.e. internal error. I am not able to figure that out.
    So i had to use these open and close, nowi just want to update a z table if the user clicks on the print button (print preview screen) after using the print preview .
    Kindly suggest.
    Thanks.

  • Printing Issue in smartform!!

    Hi All,
    I am running Driver prog as Background job,  which is creating a Spool as Smartform Output. I can see in spool output that pages are position in Landscape.
    Even when i download the spool id to pdf file using 'RSTXPDFT4', pages are in Landscape.
    But when i try to print spool, then pages are printing in Portrait position. Even at the time of printing spool, i am giving page format as 'X_65_255'. I have set smartform pages to be print in Duplex printing with landscape by setting page Property to 'D'.
    Now if remove this 'D' option from Page property, Spool output is printing in landscape positions correctly but not getting printing back to back. I need to print spool output back to back.
    How to overcome this problem?
    Thanks in advance.

    Thanks Nick for your reply.
    If i print normal word doc in duplex mode, Printer is printing. So i can printer can support duplex printing. Even i try to find OSS Note, 96102.(this note is applicable for Sapscript, but i am assuming it will is also applicable to Smartforms).
    As per this note, if Standard Text SAPSCRIPT-PRINTMODETEST can give u result in duplex mode, then Printer is configure for duplex mode.
    So i Tested this standard text, printing yet did not come in Duplex mode.
    So i am still confuse, where is problem?
    Thanks

  • Urgent!! Printing Barcode using smartforms

    req: need to print barcode using smartforms.
    &#12304;Settings&#12305;
    The following settings are made already
    1.  Style ( paragraph, character type(Syatem Barcode ) )is created and activated (T-code:Smartforms)
    2.  In the smartform I used the above style to print barcode  .
    &#8251;TEXTTYPE = TEXT ELEMENT.
    &#12304;Execution&#12305;
    1.  I run the smartform in test mode with setting any print parameters
    2.  Trigger print preview
    &#12304;Problem&#12305;
    1. I am getting only BAR's no barcodes.
    The bracodes are not displayed properly.
    If I test the same system barcode in SE73 it displayed properly.
    Is there anyother settings are necessory?
    Plz help me in solving the peoblem

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

Maybe you are looking for