Problem in smartform driver program

hi all,
i was stuck with an error while executing a smartform, th e report output is comming for some documents but it is not comming for some documents and it is showning the exceptions as 2
in function module SSFCOMP_PROCESS_DOCUMENT while calling the form my code is like this..
  LOOP AT ITAB.
   AT FIRST.
     CONTROL_PARAMETERS-NO_CLOSE = 'X'.
   ENDAT.
   AT LAST.
     CONTROL_PARAMETERS-NO_CLOSE = SPACE.
   ENDAT.
    IF RAD1 EQ ' '. " rad1 is for print , rad 2 is for pdf download.
   CONTROL_PARAMETERS-NO_DIALOG = 'X'.
   CONTROL_PARAMETERS-PREVIEW = ' '.
   CONTROL_PARAMETERS-GETOTF = 'X'.
   OUTOP-TDDEST = 'LP01'.
      CALL FUNCTION FNAME
        EXPORTING
      CONTROL_PARAMETERS         = CONTROL_PARAMETERS
        OUTPUT_OPTIONS             = OUTOP
        USER_SETTINGS              = ''
          V_VBELN               = ITAB-VBELN
                V_PRIOR_INVAMT  = V_PRIOR_INVAMT
                V_CUR_PO_TOT    = V_CUR_PO_TOT
                I_GST           = I_GST
                I_QST           = I_QST
                I_HST           = I_HST
       IMPORTING
  DOCUMENT_OUTPUT_INFO       =
         JOB_OUTPUT_INFO            = TAB_OTF_DATA
  JOB_OUTPUT_OPTIONS         =
      TABLES
        T_FINAL                   = T_FINAL
  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.
      TAB_OTF_FINAL[] = TAB_OTF_DATA-OTFDATA[].
    ELSE.
*********errror triggering from the below function module after else.........
   CONTROL_PARAMETERS-NO_DIALOG = 'X'.
   CONTROL_PARAMETERS-PREVIEW = 'X'.
     CONTROL_PARAMETERS-GETOTF = 'X'.
   OUTOP-TDDEST = 'LP01'.
      CALL FUNCTION FNAME
              EXPORTING
         CONTROL_PARAMETERS         = CONTROL_PARAMETERS
         OUTPUT_OPTIONS             = OUTOP
     USER_SETTINGS              = 'X'
                V_VBELN         = ITAB-VBELN
                V_PRIOR_INVAMT  = V_PRIOR_INVAMT
                V_CUR_PO_TOT    = V_CUR_PO_TOT
                I_GST           = I_GST
                I_QST           = I_QST
                I_HST           = I_HST
IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            = TAB_OTF_DATA
  JOB_OUTPUT_OPTIONS         =
      TABLES
        T_FINAL                   = T_FINAL
  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.
    ENDIF.
please help me it is telling that as internal error for the exception 2.
regards,
venkat

Hi,
I m Deepak, i  getting the same error while running print prog.
When i debuged the smartform i get the return code sy-subrc = 1
in internal function module SSFCOMP_PROCESS_DOCUMENT in smartform function module.
And the error i m getting is - Field #13; does not exist in form.
How can i solve this problem.
Please guide me regarding this as u already solved it.
Regards,
Deepak.

Similar Messages

  • Problem with SmartForms driver program

    Hello,
    I have the following problem:
    I have created a Smarform that uses a standard text element. In my program, the text in this element is changed depending on the language the user has selected.
    The form is then created and converted to PDF and displayed to the user. The problem I have is that the first time, the PDF is displayed in the correct language. However, when another language is selected the second time, the displayed PDF will still show the first language. After some testing, I found out that the problem most likely lies with the Smartforms function module. It seems that a certain variable is not being reset when it is called the second time, resulting in the same language being shown. Perhaps there's some variable in the control_parameters that I didn't set?
    In any case, this is the code of the driver program:
    DATA: fm_name TYPE rs38l_fnam.
      DATA: output_options TYPE ssfcompop,
            control_parameters TYPE ssfctrlop,
            job_output_info TYPE ssfcrescl.
    * Get function module name for SmartForm
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZHR_ADVERTISEMENT'
        IMPORTING
          fm_name  = fm_name.
    * SmartForm settings
      control_parameters-getotf = 'X'.
      control_parameters-no_dialog = 'X'.
      output_options-tdnoprev = 'X'.
    * Execute SmartForm
      CALL FUNCTION fm_name
        EXPORTING
          control_parameters = control_parameters
          output_options     = output_options
        IMPORTING
          job_output_info    = job_output_info
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    * Display PDF
      CALL FUNCTION 'HR_EFI_SHOW_PDF_FORM'
        TABLES
          otf_table = job_output_info-otfdata.
    Thanks in advance!
    Dave

    Hi,
    Check the below code and see if ur missing something
    DATA: form_name TYPE rs38l_fnam,      " Used to get the function module of Smartform
          wa_ctrlop TYPE ssfctrlop,       " Smart Forms: Control structure
          wa_outopt TYPE ssfcompop,       " SAP Smart Forms: Smart Composer (transfer) options
          t_otfdata TYPE ssfcrescl.       " Smart Forms: Return value at end of form printing
    Data: t_pdf_tab type table of tline,  " SAPscript: Text Lines
          t_otf TYPE table of itcoo.      " OTF Structure
    Variables used to pass to GUI_DOWNLOAD
    DATA: w_filesize TYPE i,
          w_bin_filesize TYPE i.
    Variables used for Save Dialog Box
    DATA : file_name TYPE string,
           file_path TYPE string,
           full_path TYPE string.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZPDF_G'      "p_name
        IMPORTING
          fm_name            = 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.
      wa_ctrlop-getotf = 'X'.
      wa_ctrlop-no_dialog = 'X'.
      wa_outopt-tdnoprev = 'X'.
      CALL FUNCTION form_name
        EXPORTING
          control_parameters = wa_ctrlop
          output_options     = wa_outopt
          user_settings      = 'X'
        IMPORTING
          job_output_info    = t_otfdata
        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.
    END-OF-SELECTION.
      t_otf[] = t_otfdata-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = w_bin_filesize
        TABLES
          otf                   = t_otf
          lines                 = t_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ----TAKING THE DOWNLOAD FILE PATH AS USER INPUT*
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        CHANGING
          filename             = file_name
          path                 = file_path
          fullpath             = full_path
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Download the file to the selected path
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize            = w_bin_filesize
          filename                = full_path                   "fname1
          filetype                = 'BIN'
        IMPORTING
          filelength              = w_filesize
        TABLES
          data_tab                = t_pdf_tab
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE i000(zpdf).      "File not downloaded
      ELSE.
        MESSAGE i001(zpdf).      "File downloaded
      ENDIF.

  • RFKORD10 - FB12 - Customer Account Statement - SmartFORM Driver Program ?

    Hi,
    Does anybody has smartform driver program for this RFKORD10's SAPScript Driver program?
    Or anybody done customized code? Please provide the code.
    Thanks in Advance
    Vinaa

    Hi Vinay,
    Driver program is also a normal program,which is to b created in SE38 or SE80.
    But,in the driver program,u need to use some functions such as OPEN_FORM,WRITE_FORM,CLOSE_FORM etc.....
    We've one option called Pattern in the tool bar,click that & type OPEN_FORM in that,then automatically the function comes into ur code.That function will have one importing parameter related to the Layoutset or Form.U just mention the form name over there,then automatically that form will b opened.Then use WRITE_FORM if u want to do some manipulations on that.
    Finally dont forget to close the form using CLOSE_FORM.
    Here is a sample code for u.
    This is the sample code.Here zpavscript1 is the form name.
    Just neglect the other parameters which r commented out.
    In Write _form,Address,Logo,Main etc are the Text element names which u've created in the form & where u want to place the particular code,just go through this.I hope will b useful for u..
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX =
    ARCHIVE_PARAMS =
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = 'ZPAVSCRIPT1 '
    LANGUAGE = SY-LANGU
    OPTIONS =
    MAIL_SENDER =
    MAIL_RECIPIENT =
    MAIL_APPL_OBJECT =
    RAW_DATA_INTERFACE = '*'
    SPONUMIV =
    IMPORTING
    LANGUAGE =
    NEW_ARCHIVE_PARAMS =
    RESULT =
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    CODEPAGE = 11
    OTHERS = 12
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ADDRESS'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'ADDRESS'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ADDRESS1'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'ADDRESS1'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'LOGO'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'LOGO'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'LOGO1'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'LOGO1'.
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    *IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    *CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'HEADER'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'MAIN'.
    LOOP AT I_VBAP INTO WA_VBAP.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'MAIN'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT =
    RDI_RESULT =
    TABLES
    OTFDATA =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SEND_ERROR = 3
    SPOOL_ERROR = 4
    CODEPAGE = 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.
    kindly reward if found helpful.,
    cheers,
    Hema.

  • Smartform driver program

    Hi,
    can u plz send me one realtime sample smartform driver program  if possible invoice from and credit form
    regards
    Siri

    hi
    good
    THIS IS A SAMPLE DRIVER 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.
    AND YOU CAN IMPLEMENT YOUR OWN SMARTFORM DRIVER PROGRAM USING THIS LOGIC
    THANKS
    MRUTYUN

  • Dump in smartform driver program for purchase order

    i created one smartform with driver program for purchase order.
    in smartfrom i gave
    form interface: p_ebeln as import,   
                        tables as it_ekpo like ekpo.
    global definitions are
    wa_ekko type ekko for printing the  ekko data in one window,
                                           wa_ekpo type ekpo .
    in main window i took  the  one table and loop the ekpo table for  printing the item details.
    no errors is there.but ; when i call this generated function module to my driver program it goes to dump.
    in driver program i declare structures,internal tables,work areas, and parameter as p_ebeln .
    and also select statements for my table all are good.but its not work.
    in function module i pass the details as export p_ebeln = p_ebeln and table it_ekpo  = it_ekpo.
    and also i done debugging in this data come to the internal table and work areas.
    but it goes to dump.
    if u dont mind plz solve my problem.
    Thanks
    Navya.
    Moderator message: empty lines removed, subject corrected, please use meaningful subject lines when posting!
    Edited by: Thomas Zloch on Mar 24, 2011 10:10 AM

    Hi Navya,
    Your smartform is correct. But, as per my understanding, the dump comes when you call the smartform from the driver program. If that is the case, please check the input parameters and all th parameters in the program should be same as used in samrtform. Any deviation would lead to a dump.
    Analyse and resolve!!!
    Regards
    Atul Sachdeva

  • Smartforms driver program output  query

    Hello friends,
    I created sales invoice smartforms. For that i created one driver program in se38. But while i am executing driver program i am just getting program output. Both my smartforms design and driver program is activated. Someone please give me guidance to solve this problem.
    Thanx & Regards,
    Rahul Talele

    Have you written this function module to specify the smartform name and execute the Smartform Function Module..
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME = 'ZPP_PACKMATL_REQ' " smartform name
        IMPORTING
          FM_NAME  = W_FORM_FUNCTION.
    CALL FUNCTION W_FORM_FUNCTION
      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
        ITAB_DATA                  = ITAB_DATA
    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.
    ENDFORM.                    " display_form

  • Smartform Driver Program for Purchase Order & Request For Quotation

    Hi All,
    We are in ECC 6.0 EHP 4
    I am unable to find Driver Program /SMB40/FM06P for Smartform
    Purchase order  = SMB40/MMPO_L.
    Request For Quoation = /SMB40/MMRFQ_L
    So can anyone help me how to get the Driver Program into my SAP system.
    Regards
    Rakesh

    We had a similar problem... The package /SMB40/ is not installed by default with the ECC 6.0 system, so your Basis team should install it now.
    See this thread for more information, I hope it can be useful for you.
    /SMB40 and /SMB11

  • Tax invoice smartform driver program

    Hello Everyone,
          i want any sample example driver program for getting value from "vf03" in that i want fetch values for fields like BASIC BILL OF VALUE, ADD AMOUNT 5% VAT on_________ SerTax 2.06% on _________ Total Amt: D = A + B + C
    if any one have any driver program regarding this than plz forward me on following id
    "[email protected]"
    Rewards for useful answer
    Thanx in advance,
    Rahul Talele

    Hi
    See the INVOICE std Driver Program
    RLB_INVOICE
    see the Include  RLB_INVOICE_FORM01
    in the fun module LB_BIL_INV_OUTP_READ_PRTDATA
    he is getting data into the structure CS_BIL_INVOICE
    see the IT_KOND structure in it
    Or in smartform create  PROGRAM lines and write the code for the above data
    take VBRK-KNUMV and pass to KONV table and based on the condition types take the KBETR and KWERT fields and use
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Error in smartform driver program.

    Hi,
        I want to know the functionality of  form interface and Global definitions.when i am executing driver program i got following error.
    Field "INTO" is unknown. It is neither in one of the specified tables
    nor defined by a "DATA" statement.
    could anyone give the solution for this error ?

    Hi Raja,
            The form interface will contain what all things U export from Driver program. ie Tables , Workarea etc.
            The Global defenitions will contain what all global varibales that U use inside SMARTFORM.
               Suppose U are exporting a work area from Driver program which is of structure Z_TEST then declare that work area in FORM INTERFACE as
    w_test type z_test.
             U have a table that U pass from Driver program into smartform let it be t_final of structure z_final then declare that table in TABLES tab of form interface as t_final LIKE Z_final.
           Declare all the varibles that U use in Global defenitions w_str type string etc.
    U might have used "INTO" as some variables or declaration might be wrong.
    Please see the declaration in Global definitions and Interface.
    Click on that Error and see where its coming.
    Reward points if Useful
    Regards
    Avi...

  • Sale order smartform driver program

    Hi all
         can any one send me the driver program for sale order smartform??? coz i am bit confused with the routines in the driver program!
    Thanks in advance

    Hi,
    the driver program for sales order is RVADOR01.
    Reward points if useful.
    Thanks,
    Usha

  • User Exit BADIs in Smartform driver programs

    All pre configured smartfroms come with driver programs. They all contain BADIs in the get_data subroutine used to extract data. How to implement these BADIs. Also you can also do extract in the smartform itself. Then what is the point or benefit of this BADI over extracting and making changes in nodes in smartforms.

    Go through this link
    http://www.****************/Tutorials/ExitsBADIs/VL02/page1.htm
    Regards
    Bikas

  • Smartforms Driver program

    Hi All!
    I had designed a smartform with the layout and custom driver program and assigned it to a Transaction.When we run this transaction the printout is okay but in the error log of the transaction I am getting an error "processing routine does not exist for the particular driver program".
    But still I am getting the printout.What can be the error.Please advise.Its urgent
    regards
    Prasanna Kumar

    Check the forname,routine names for output type in table
    TNAPR.
    and are you using the routine name in your driver ,
    is it maintianed in TNAPR.
    regards
    vijay

  • Smartform Driver Programe

    Hi,
    I prepared a smart form by changing MEDRUCK into Smartform and doing some modifications, after that when i attach that to the output type in the NACE transaction and executing the corresponding transaction it was giving errors as Open form and Write form statements were not found .,
    in the attachment i had not changed the driver program ,
    please claify me weather i should copy that driver programe and do the modifications for that ? ?
    thans and regards.,
    P.Prasanth

    hi
      wat i am getting is like , earlier ur std. form was a sap script and that driver program is written for that ,
           Now u created a Smart form for fulfilling  ur requirment, but using same driver prg.,  sure it will not work.
    what i can suggest u that take that std. sap script in z-form,
    do ur changes in that as required and assign that to driver prg., insted of creating new driver prg for ur SF , becoz accuracy of std. driver prg. will be more then z-prg.
    if u have to hide some values from display ,then just made changes in SAP script only, but if u want some new info. to display on script then u have to make change in driver prg. also
    reward if helpful.

  • About smartforms driver program

    Hello Experts,
          Is there any function module to fetch data from sd module to get data in SMARTFORMS ?
    mail me solution on "[email protected]"
    Thanx in advance,
    Rahul Talele

    Hi Rahul,
                   Call function 'SSF_FUNCTION_MODULE_NAME' that will give u smartform function name by passing smartform name. then call that FM to transfer data from driver program to smartform.
                  Refer this code :
                  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = P_FORM
       IMPORTING
         FM_NAME                  = P_FUNCTION
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION P_FUNCTION
        TABLES
          D_VBRK                     = IT_VBRK
          D_VBRP                     = IT_VBRP
          D_LIKP                     = IT_LIKP
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Reward points if helpful.
    regards,
    Hemant

  • PO Smartforms Driver Program

    Dear all,
      Any one have the standard PO smartforms print program /SMB40/FM06P??  I can't find it on my ECC 6.0 system.  Anyone can share it to me??
    Regards,
    Kit

    Hi,
    I checked in ECC5o.
    It's for PO only.
    /SMB40/FM06P : Smart Form Print Program for Purchasing Documents.
    Narasimha

Maybe you are looking for