Smartfrom printing

Hi,
I have designed one smart form. I am giving printer name on the selection screen based on printer name I need to print that layout directly with out any pop up I mean If I press execute button after giving the printer name on the selection screen I want print directly at the specified printer. For this which parameters I need to pass to smart form function module already I am using control_options and output_parameters but print is not coming if possible please send me the sample code for this. Please help me . I will give points.
Thanks.

hi,
to suppress the pop up window u can do it many ways as
data: st_output_options       TYPE ssfcompop,
st_control_parameters   TYPE ssfctrlop,
v_language              TYPE sflangu VALUE 'E',
v_e_devtype             TYPE rspoptype.
DATA: funname TYPE rs38l_fnam.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
      i_language    = v_language
      i_application = 'SAPDEFAULT'
    IMPORTING
      e_devtype     = v_e_devtype.
  st_control_parameters-no_dialog = 'X'.
  st_control_parameters-getotf = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' " for GETTING NAME OF SMART FROM YJJ_SMARTFORM
        EXPORTING
          formname = 'YJJ_SMARTFORM'
        IMPORTING
          fm_name  = funname. // VARIABLE WHICH CONTAINS THE NAME OF FM OF SMARTFORM
CALL FUNCTION funname " CALLING THE SMART FORM
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = st_control_parameters
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = st_output_options
USER_SETTINGS = 'X'
   controlno                  = it_itab-controlno
      pernr                      = it_itab-pernr
      sname                      = it_itab-sname
      stat                       = it_itab-stat
     KOSTL                      =
      werks                      = it_itab-werks
      date                       = p_date
IMPORTING
document_output_info = st_document_output_info
job_output_info = tab_otf_data
job_output_options = st_job_output_options
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.
IF HELPFUL REWARD SOME POINTS.
WITH REGARDS,
SURESH ALURI.

Similar Messages

  • Smartfrom print error

    THIS IS URGENT
    when iam giving print preview iam able to get it but when iam giving the print iam getting error called 'ERROR IN GENERATING SMARTFORM'  this program is already exsisting . i made some changes in the smartfrom in positioning for some of  the windows. and after that iam not able get the print out
    please help me, hope i will be getting the solution.
    PRINT PROG.
    DATA g_fmname TYPE rs38l_fnam.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_vbeln TYPE vbrk-vbeln.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZSD_SMRTSALEINVOICE1'
        IMPORTING
          fm_name            = g_fmname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        MESSAGE 'Error in opening the smartform'
                TYPE 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CALL FUNCTION g_fmname
        EXPORTING
             s_vbeln  =  p_vbeln
        EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error in generating the smartform'
                TYPE 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    *these are the warnings iam getting inthe when i activate the smartform.*
    @8R@     TOTAMT                 Field g_totinv has no defined value
    @8R@     ROUNDEDVAL          Field G_DIFFV has no defined value
    @8R@     TCSAMT                  Field G_SCRAP has no defined value
    @8R@     INSURANCEAMT          Field G_INS has no defined value
    @8R@     FREIGHTAMT          Field G_FREIGHT has no defined value
    @8R@     OCTAMT               Field G_OCTRAI has no defined value
    @8R@     VATAMT               Field G_VAT has no defined value
    @8R@     SALESTAXAMOUNT          Field G_SALESTAX has no defined value
    @8R@     SUBTOTAL_V          Field G_SUBTOT has no defined value
    @8R@     DEVOLOPMENTCHARGES_V     Field G_DEVCHG has no defined value
    @8R@     PACANDFARWORDINGAMT     Field G_PAC has no defined value
    @8R@     DISCOUNTSVAL          Field g_disc has no defined value
    @8R@     HRECSAMT          Field G_HRECESS has no defined value
    @8R@     CESAMT               Field G_CES has no defined value
    @8R@     CEDAMT               Field G_CED has no defined value
    @8R@     AMOUNT               Field G_TOT has no defined value

    Thanks for solution.
    I actually commented the sy-subrc <> 0. line and again uncommented the line  and tried it and I got it. Well that answer is solved and iam getting the print out . but now the another big problem has arisen. The form has many fields some fields are coming into as per the bill document number but some fields are remaining same, for any bill document number these fields details coming same.
    Please help me.

  • Error in 'CX_SY_DYN_CALL_ILLEGAL_TYPE' problem in smartfrom printing

    Dear Friends,
    I developed a code for SD module for RAS GAS invoice. It it I m accessing it through VF02. on output there will be a smartform appered for invoice.
    I tested the driver code and smartform individually and had no errors.
    I attached the driver code and form through NACE for run time.
    Now when I m executing it through VF02 , when I clicked on print preview it throws a error as show.
    Plz help me to remove it. Error analysis and piece of code is attached.
    Thanx and regards,
    Error analysis                                                                               
    An exception occurred. This exception is dealt with in more detail below                                                        
    . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE',                                                  
    was neither                                                                               
    caught nor passed along using a RAISING clause, in the procedure "PROCESSING"                                                   
    "(FORM)"                                                                               
    Since the caller of the procedure could not have expected this exception                                                        
    to occur, the running program was terminated.                                                                               
    The reason for the exception is:                                                                               
    The call to the function module "/1BCDWB/SF00000193" is incorrect:                                                                               
    In the function module interface, you can specify only                                                                          
    fields of a specific type and length under "ITVBRK".                                                                            
    Although the currently specified field                                                                               
    "ITVBRK" is the correct type, its length is incorrect.        
    Information on where terminated                                                                               
    The termination occurred in the ABAP program "ZV_RASGAS " in "PROCESSING".                                                
    The main program was "SAPMV60A ".                                                                               
    The termination occurred in line 633 of the source code of the (Include)                                                  
    program "ZV_RASGAS "                                                                               
    of the source code of program "ZV_RASGAS " (when calling the editor 6330).                                                
    Processing was terminated because the exception "CX_SY_DYN_CALL_ILLEGAL_TYPE"                                             
    occurred in the                                                                               
    procedure "PROCESSING" "(FORM)" but was not handled locally, not declared in                                              
    the                                                                               
    RAISING clause of the procedure.                                                                               
    The procedure is in the program "ZV_RASGAS ". Its source code starts in line 58                                           
    of the (Include) program "ZV_RASGAS ".                                                                               
    Source code extract                                                                               
    006030                       no_function_module = 2                                                                               
    006040                       OTHERS             = 3.                                                                               
    006050       IF sy-subrc <> 0.                                                                               
    006060   *   error handling                                                                               
    006070         cf_retcode = sy-subrc.                                                                               
    006080         PERFORM protocol_update.                                                                               
    006090       ENDIF.                                                                               
    006100     ENDIF.                                                                               
    006110                                                                               
    006120     IF cf_retcode = 0.                                                                               
    006130       PERFORM check_repeat.                                                                               
    006140       IF ls_composer_param-tdcopies EQ 0.                                                                               
    006150         nast_anzal = 1.                                                                               
    006160       ELSE.                                                                               
    006170         nast_anzal = ls_composer_param-tdcopies.                                                                               
    006180       ENDIF.                                                                               
    006190       ls_composer_param-tdcopies = 1.                                                                               
    006200       DO nast_anzal TIMES.                                                                               
    006210   * In case of repetition only one time archiving                                                                               
    006220         IF sy-index > 1 AND nast-tdarmod = 3.                                                                               
    006230           nast_tdarmod = nast-tdarmod.                                                                               
    006240           nast-tdarmod = 1.                                                                               
    006250           ls_composer_param-tdarmod = 1.                                                                               
    006260         ENDIF.                                                                               
    006270         IF sy-index NE 1 AND repeat IS INITIAL.                                                                               
    006280           repeat = 'X'.                                                                               
    006290         ENDIF.                                                                               
    006300   * call smartform invoice                                                                               
    006310   append itvbrp.                                                                               
    006320                                                                               
    >   CALL FUNCTION lf_fm_name2                                                                               
    006340     EXPORTING                                                                               
    006350       RDT                        =  rdt                                                                               
    006360       BILSDT                     =  min                                                                               
    006370       BILEDT                     =  max                                                                               
    006380       CUMMMSCM                   =  cummmscm                                                                         
    006390       TPCUMMMBTU                 =  tpcummmbtu                                                                       
    006400       TPCUMSCM                   =  tpcumscm                                                                         
    006410       WS_IVBEL                   =  WS_IVBEL                                                                         
    006420       WS_GVBEL                   =  WS_GVBEL                                                                         
    006430       WS_BVBEL                   =  WS_BVBEL                                                                         
    006440       WS_BILDT                   =  WS_BILDT                                                                         
    006450       TPCUMMMBTUX                =  TPCUMMMBTUX                                                                      
    006460       GINVNO                     =  inv                                                                               
    006470       BILDOC                     =  BILDOC                                                                           
    006480       ZKBETR                     =  ZKBETR                                                                           
    006490       zlng                       =  zlng                                                                             
    006500       zrc                        =  zrc                                                                               
    006510       zkb                        =  zkb                                                                               
    006520   *    VOLUM                      =  VOLUM                           
    thanx and regards,
    sitendra

    Hi Sitendra,
    This exception normally occurs when there is a type mismatch.
    Kindly check the length of all fields in the structure/table ITVBRK both in your print program and smartforms. There is a mismatch in the field length of 1 or more of the fields.
    Reward points if helpful.
    Regards,
    Senthil G.

  • Using Simple Mail option In VL03n

    In VL03N, in the output, there is a option of Simple Mail ( nast-nacha = 7), wherein we can directly specify the email Id of the receiver of the delivery note.
    Can anybody guide me so as what coding needs to be done,if any,  in the smartfrom print program so as the mail can be sent to the specified email Id.
    Any other pointers to solve this issue are also welcome.
    Useful Replies will be highly appreciated and rewarded
    Thanks in advance
    Krishna

    Hi Krishna,
    I am not aware of smartfomrs. it can be done through scripts by using two function module, one is for converting the output into pdf and another is for send mail.
    Regards,
    Kumar.

  • Printing Problem with SmartFrom

    Hello,
    I'm using smartform to print a certificate .. I have correctly populatedthe data and transferred it to smartform ..
    For a single print, the alignment of the data comes proper ..
    But when I give 10 to 20 prints, for first 3-4 pages alignment of text remains proper but then the alignment starts going downwards and hence data loss occurs as there is no place to print some texts ..
    So just wanted to know what can be the problem or what can be the solution ?? .. I have fixed rthe places of tex still they are going downwards after 3-4 continuous prints !!
    Thanks

    Hi Sohamshah,
    be careful with your title. "smart form", "sapscript", etc. are not good titles. Abuse reported.
    You should have titled "printing of smart form top margin is changing" or "starting at 4th page, printing of smart form is lower and lower on page" or something like that.
    Did you test by printing 10 copies of the same form. Does it occur too?

  • Arabic text printing using smartfroms

    Hi,
    I' m printing Purchase oder in Arabic language , we installed Arabic supoort drivers
    in SAP system, when I see arabic values in debugging I am able to see arabic text perfectly , but when I give print or Print Preview arabic text printing as with some JUNK arabic characters , it's not printing as word.
    Please help me on this
    Thanks
    Naveen

    I am facing exactly the same problem with printing arabic text in samrtforms. I guess you the Device type in the printer settings would be set to either ARSWIN. Try changing it to I6SWIN and it should work to some extent. The arabic words should come up correctly in the print ( not in print preview). However it would print # in the start and end of the form. This is not acceptable in my case and I am still looking for a better solution. See if it helps you in some way.

  • How to do this in smartfrom

    hi all
    i have requirement that i should print label like
    ordno ..............................                              ordno...............
    name ..............................                              name................
    carton..............................                              carton..............
    description.......................                       description...............
    ordno ..............................                              ordno...............
    name ..............................                              name................
    carton..............................                              carton..............
    description.......................                       description...............
    how can i do this in smartfroms
    regards
    loeksh

    Hi Lokesh,
    you can maintain 4 different sets of variables for ordno, name, carton and desc and in 1 Loop you should read the next 3 records also pass the values for the 4 sets of variables and print them in 1 loop pass. after that you will have to skip 3 loop passes as you have already printed them in previous pass and continue occordingly. this will be something like this
    w_ordno1 .............................. w_ordno2...............
    w_name1 .............................. w_name2................
    w_carton.............................. w_carton2..............
    w_description....................... w_description2...............
    w_ordno3 .............................. w_ordno4...............
    w_name3.............................. w_name4................
    w_carton3.............................. w_carton4..............
    w_description3....................... w_description4...............

  • 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  ##&#4097;&#29548;##&#4097;&#29548;##### "
    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.

  • How to print Arabic text along with the English in smartform ( ECC6 version

    Hi All,
    our is ECC6 version, Non unicode, ABAP stack ( not dual stack )
    is it possible to print in Arabic language in the above version ?
    if yes, then please let me know how to print Arabic text and English text in the same smartfrom.
    i tried in the following procedures :
    1) i created standard text (SO10) in arabic language.
    i called in the smartform ( include text - i )
    langage AR
    but system throws error message saying, required language is not installed.
    2) if i use READ_TEXT function module.
    text getting printed in diff format but not in arabic.
    waiting for your replies..

    ECC6 and Non-Unicode? I think you'll need multiple code pages, I doubt there's a mixed Arabic/Latin1 available. And I don't think SAP supports new MDMP systems any more. If you need to support multiple languages you really need to go Unicode. It's probably easier to do the Unicode conversion than to try to support multiple code pages and you have to make the switch eventually.

  • How to print true type font in smartform with ECC6

    hi,expert:
    I want to use true type font "Comic Sans MS.ttf".
    I upload this font file by SE73 named ZTT2I.
    In SE73.. select the Radio button "Font Families" And click on the "True type Font Installation" button. click the font attribute ITALIC。
    Our print device is LP01 and driver is CNSAPWIN
    when I create a new style in smartform using the font ZTT, in preview window the font still like other font.
    Our system is IDES ECC6, SAP_BASIS SAPKB70014
    Now when I create smartfrom in language EN adn logon with language EN,it can print correct style of that font.
    But if the smartform is base on language ZH or logon with language ZH, the output is not correct.
    why? How to solve it?
    how can I solve this problem?
    thaks a lot

    Hi,
    Is the problem that uploaded true type font ZTT is not used when language is ZH? Did you update the chinese version of the style associated with the smartform? There is a separate style for each language version. So you need to log on in Chinese language and update the style with new paragraph, character formats. Then you need to activate the style and smartform for ZH langauge also.
    Regards,
    Aidan

  • Printing the form using output type and Standard program

    Hi all,
       I am a beginner on SAP.Now i get a doc for smartforms.
       It need to print a form.And need to create a output.I don't know how to create it and how to use it.
       And how to use the standard program to print the smartfroms.
       Can you give me a thought about that??

    Hi steven,
    first u copy the standard form and modify as u required.
    copy the print program.
    after that assign modify form to modified print program using NACE transaction code.
    NACE->slect application->go with output types->select suitable one->go with processing routines->select medium->provide modified program  name and form name->save the details.
    go for view->go for transport.
    go with the appropriate transaction suitable to your application.
    and provide one existing record->issue out put->go with print
    i think it will useful for you.
    Reward points if useful.
    Thanks,
    Usha

  • Print issue for smartform by zebra QL420plus in SAP

    Hi All,
    I created a smartform in SAP to print out label on zebra QL420Plus.
    Current the key issue is that I can not print out smart form from SAP to QL420plus directly. I need to print some text from windows by notepad or word after I power on QL420plus. Then QL420plus seem to be active. So at this point I can print out smartfrom from SAP to QL420plus. I am not sure what’s wrong with QL420plus equipment?
    Thanks.
    Crystal

    did you try like this :
    Spool
    data: in_list     like  pri_params-plist,
          in_dataset  like  pri_params-prdsn,
          in_spool(1) type  c,
         d_dest          like pri_params-pdest.
    NEW-PAGE PRINT ON
                NO-HEADING
                NO-TITLE
                LIST NAME in_list
                LIST DATASET in_dataset
                LINE-SIZE 132
                LINE-COUNT 65
                COPIES 1
                NO DIALOG
                KEEP IN SPOOL ''
                DESTINATION d_dest
                NEW LIST IDENTIFICATION in_spool
                ARCHIVE MODE '1'
                IMMEDIATELY ''.

  • I had a problem with print preview of billing document.

    HI all,
    I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
    For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
    If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
    I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve  it.

    hi,
    for both the output types , r u using same sapscript or smartform?
    if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
    and if differect sapscript or smartform then you should not get such problem.
    you can check the sapscript or smartfrom in TNAPR table.

  • Duplex printing in Smartforms

    Hi,
    How do we use duplex mode printing in Smartfroms? I have tried "D" as print mode.
    Regards,
    Naba

    Hi,
    Set the Parameter SPMBU in the output options not the SPMDU...For more information refer to this link.
    http://help.sap.com/saphelp_nw04/helpdata/EN/90/78f07e030211d399b90000e83dd9fc/content.htm
    Regards,
    Madhu

  • How to print the data on the form (smartform)...

    Hi,
    i got a requirement that i have to create a selection screen and from that i process the data according to the inputs in the selection screen, and after i collect the entire data in an internal table, now i want that data to be displayed in the form ,
    what is the process for this, can anybody explain me in detail.
    Regards,
    Ram

    Hi!
    To create new smartform
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    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.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Or an another one:
    just check it step by step with lots of screen shots.
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Reward all helpfull answers
    Regards
    Tamá

Maybe you are looking for

  • Notification status at date in history

    Hi goeroes, do you know which function module to use to get the status of a certain notification at a certain date? For instance, I would like to know which notifications where all open on the 25th of October? Thanks! Best regards, Peter

  • Why Apple does not offer support for linux?

    We all know the history of Apple. It clearly shows a trend to be open source, excepting for the licenses they share with Microsoft. In my personal case, I love open source because it has solved several of my problems. Just to share this with everyone

  • Direct to disk recording

    I have a Macbook Pro with expresscard/esata drives. can I record direct to disk video from my DV camera? Can I do it with log and capture and click now. I have a Firestore but would like to use my drives if possible.

  • Standard smartform for CONTRACT CONFIRMATION in SD

    Hi Experts, i need help, i want to know the standard smartform for Contract Confirmation in SD. plz help me out its very urgent jst give the name of smartform n print program with regards, rajesh

  • Problems locking a track...

    Hi. I'm trying to lock a track in GB 3 and I get an error - Result Code -40. I have no idea what this is and a search of the discussions and the web haven't helped. Any ideas out there? Thanks Bob