Multiple Page in Smartforms

Hi,
I create one Z-Smartforms in this form i passing Internal table (ITAB - Customer Details). I want to print each customer details in each new page. But the format of page is same.
I was try LOOP in the Smartforms Page window, but that not working. Its give the Last record details. i think it over write the details in same page. So it print last record of the ITAB.
My requirment : if ITAB have 4 records. that time i want 4 pages.
Help me...
If usefull surly i will point.
Thanks,
Durai.V

Hai Raam,
Sorry i dont getting.
How to use the New-page in loop at the Main Window.
Tell me its urgent.
Thanks,
Durai.V

Similar Messages

  • Printing Multiple pages in Smartform on Local printer

    Hi guys,
    I have a smartform with a command to print a page with the general conditions.
    When I print this on a defined printer in SPAD everything goes fine (got 2 pages) but when I print this same form thru the Local printer I only get 1 page. It seems the second page is printed over the first.
    Tried it with more pages, 1 with data then general conditions then data again, and it also prints it all on 1 page thru the Local printer. With the third page on top of the second on top of the first.
    Does anybody know how to solve this issue.
    Thanks.

    Hi,
    I checked the printers and they are using the normal SAPWIN type. I tried it with access method F and G but both give the same result. The page format used is the standard DINA4.
    On the print preview it looks fine, when I print it on a printer from my windows session using the local printer it all prints on the first page (so it only shows the last page).
    I tried to add the check SY-TABIX > 1 and it is the same issue.
    The problem seems not to be with the smartform because if I print a layout which do not have a command to add an extra page but it contains enough data to print on multiple pages and we get the same result. Second page is printed over first page.
    Thx.

  • Data in multiple pages in smartforms

    i have a normal window which has lots of data, problem is it shows only first page. how can i show all those data in multiple pages?
    there is also a main window. this normal window will show up only after that main window.

    use main window to do that
    OR
    in the initialization put al your outputdata in an internal table and program this so that the table has 2 fields,
    field_1 has pagenumber
    field_2 has display information.
    define your window as late.
    according to pagenumber display relevant info in that page with a loop.
    Regards,
    Guido

  • Multiple pages in smartform

    hi all
    i hav a following prob
    i m printing data of one internal table in my smartform
    and this internal table contains only one record
    now i want to know, if there are 10 different record in my smartform
    how can i print these 10 records on diferent 10 pages...
    plz hlep
    any help wil b rewarded.
    thanx

    hi,
    make changes in your driver programme.
    data : wa type i_tab.
    loop at i_tab.
        AT FIRST.
          CONTROL_PARAMETERS-NO_CLOSE = 'X'.
        ENDAT.
        AT LAST.
          CONTROL_PARAMETERS-NO_CLOSE = SPACE.
        ENDAT.
    assign record in wa
    call smartforms using this fuction   CALL FUNCTION FUNC_MODULE_NAME
    and pass wa to print data in main window
          CONTROL_PARAMETERS-NO_OPEN = 'X'.
          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.
    try this. if you have 10 records your smartform will print 10 page.
    raj

  • Multiple pages in smartforms

    hi all,
    i have two pages in smart forms containing two text elements  page1 & page2.
    in page1 i have a main window in which there is a text 'page1'.in the general attributes of page1 i give nextpage as %page2.similarly  in page2 i have a Main Window which has a text 'page2' .now when i run t his smartform i get a dump.
    can anybody plz tell me as how to solve this.
    points will be rewarded.
    rgds

    hi,
    iam getting %page1 in the drop down.
    the dump is:
    A raise statement in the program 'SAPLSTXBC' raised the exception condition error.since the exception wasnt interpreted by a superior program inthe hierarchy,processing was terminated.
    thnx

  • Multiple pages in Smart forms

    Hi all,
    Actually I want to print multiple pages in Smartforms . I have a option to take New Page and set that Page as Next page . but In my case Pages are dynamic. if any person has solution please send me.... thanks

    Hi Srinu
    just loop the internal table . please see below my code
    i_output_email --- My internal table
    LOOP AT i_output_email.
          CLEAR i_output_email1.
          i_output_email1 = i_output_email.
          APPEND i_output_email1.
          AT END OF xblnr.
      calling the selfinvoice smartform using functional module
            CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
              EXPORTING
                formname               = gv_form
          VARIANT                = ' '
          DIRECT_CALL            = ' '
             IMPORTING
               fm_name                 = fm_name
             EXCEPTIONS
              no_form                  = 1
              no_function_module       = 2
              OTHERS                   = 3
            IF sy-subrc <> 0.
          error handling
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    Call the smartform
            CALL FUNCTION fm_name
              EXPORTING
                archive_index      = toa_dara
                archive_parameters = arc_params
                control_parameters = gs_control_parameters
                output_options     = gs_output_options
           mail_recipient    = ls_recipient
           mail_sender       = ls_sender
                user_settings      = space
                is_nast            = nast
                is_repeat          = repeat
              IMPORTING
           it_output        = t_output
                job_output_info    = t_otfdata
              TABLES
                w_output           = i_output_email1
              EXCEPTIONS
                formatting_error   = 1
                internal_error     = 2
                send_error         = 3
                user_canceled      = 4
                OTHERS             = 5.
       t_otf[] = t_otfdata-otfdata[].
            CLEAR ls_otf1.
            LOOP AT t_otfdata-otfdata INTO ls_otf1.
              APPEND ls_otf1 TO t_otf.
              CLEAR ls_otf1.
            ENDLOOP.
            REFRESH i_output_email1.
          ENDAT.
        ENDLOOP.

  • Error in smartform when printing multiple pages

    Hi,
    I m using a smartform which have two pages in it,
    i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
    it runs fine and diplays two pages i m using.
    but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
    Please help me out to resolve the issue.

    Re: error in smartform when printing multiple pages
    dharani tadikonda
    Thanks for this answer. It is absolutely correct.

  • Multiple page formats in smartforms

    we say that multiple page format is possible in smartforms but not in SAP Script. What does this multiple page format exactly means and whar does label means exactly in smartforms.
    Please help.

    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    label means... for example u want to print addresses of employees in an organisation... then through scripts ypu can print the labels...

  • Create multiple pages layout in Smartforms?

    Hei guys,
    I need to create a Smartform which has two parts. The top portion will remain the same, but it could possibly be more then one page because of size of text. The second part will have different values but the size will always be the same.
    Now we need to print multiple pages where the second the part will be different.
    I know that i will need to create a first page and a next page. But do i need to create two main windows in first page, one for each part. And what do i need to have in next page?
    Any help/suggestion will be appreciated.
    Thanks
    Nahman

    Hei,
    I have now worked on the Smartform. I am still struggling little bit. This is what i have now:
    I have one main which have 3 tables. The first two tables are displayed in the top portion of the page. As they are based on internal tables the number of rows will be different, so we dont know the exact size.
    In the bottom portion i have a table which is also based on an internal table. Now in this case we only want to print one row and then jump to next page where i want to display the top portion again and the next line of bottom portion. The issue i have right now is that the bottom portion needs to be printed on a fixed place of page. But what happens is that after first row is printed, and it goes to next page and starts printed on top of the next page. I dont want that.
    What i need is that the third table prints once on each page on a fixed position. Because once these pages are printed, they are not printed on a blank pages but a on a form where bottom portion values needs to be printed on specific fields.
    Thanks

  • How to print multiple pages in single spool in smartforms

    Hi all,
      I have a issue on to print multiple pages in single spool,i can able to print multiple pages in multiple spool .I am doing Check Print smartforms in that i need to print Multiple pages in single spool.Currently i am using the below code please help to solve this issue.
    IF gv_tabix = 1.
    lwa_outp_option-tdnewid = 'X'.
    ELSE.
    lwa_outp_option-tdnewid = ' '.
    ENDIF.
    Thanks,
    Deesanth

    Hi
    TABLES: spfli.
    DATA:
      t_spfli type STANDARD TABLE OF spfli.
    DATA:
      fs_spfli TYPE spfli.
    DATA:
      w_form TYPE tdsfname,
      w_flag TYPE i,
      f_nam TYPE rs38l_fnam,
      w_input TYPE ssfcompin,
      w_control TYPE ssfctrlop.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECT-OPTIONS s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK blk .
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
      p_single RADIOBUTTON GROUP rad1,
      p_ind RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
    PERFORM display_data.
    PERFORM ssf_function_module_name.
    PERFORM spool_request.
    *& Form display_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM display_data .
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
    ENDFORM. " display_data
    *& Form ssf_function_module_name
    * text
    * --> p1 text
    * <-- p2 text
    FORM ssf_function_module_name .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING formname = ' '
    IMPORTING fm_name = f_nam
    EXCEPTIONS no_form = 1
    no_function_module = 2.
    * IF sy-subrc NE 0.
    * MESSAGE 'Form cannot be displayed' TYPE 'E' .
    * ENDIF. " IF sy-subrc eq 0
    ENDFORM. " ssf_function_module_name
    *& Form spool_request
    * text
    * --> p1 text
    * <-- p2 text
    FORM spool_request .
    w_input-dialog = 'X'.
    CALL FUNCTION 'SSFCOMP_OPEN'
    EXPORTING input = w_input
    EXCEPTIONS error = 1.
    *" LOOP AT t_spfli .....................................................
    LOOP AT t_spfli INTO fs_spfli.
    w_control-no_open = ' '.
    w_control-no_close = ' '.
    *"Single spool request..................................................
    IF p_single EQ 'X'.
    w_control-no_open = 'X'.
    w_control-no_close = 'X'.
    ELSE.
    *"Individual spool request.............................................
    IF w_flag NE '1'.
    w_control-no_open = 'X'.
    w_control-no_close = ' '.
    w_flag = 1.
    CALL FUNCTION ' '
    EXPORTING control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    endif. " IF w_flag ne '1'
    ENDIF. " IF p_single eq 'X'.
    CALL FUNCTION ' '
    EXPORTING
    control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    ENDLOOP. " LOOP at t_spfli into ...
    *&This function module close the spool request *
    CALL FUNCTION 'SSFCOMP_CLOSE'
    EXCEPTIONS error = 1.
    ENDFORM. " spool_request
    Regards,
    Sravanthi

  • Whats mean by multiple page formats in smartform?

    Hi! 
      Can u pls tell me whats mean by multiple page formats in smartform?
       Thanks
        Imran.

    Hi Imran,
    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    go with tcode:smartforms,specify some name and go with create.place the cursor on 'Pages and windows' folder.on right side we will have option page format:go with f4 .u will find many page formats.
    Reward points if helpful.
    Regards,
    Omkar.

  • Smartform page spanning to multiple pages

    Hi All,
    I am having a Smartform with 2 layouts (2 pages with different layout and different set of data to print)
    But the Page 1 can span into multiple pages during output.
    Please tell me how to achieve this.
    OR is it possible that the output of 2 separate forms can be displayed as a continuous output?
    The output will be 2 pages one page from form 1 and one page from form 2. Is it achievable?
    It would be great if you can tell me some pointers in achieving the above scenario.

    hi admonty
    You create two pages and declare the next page as page1 in page1 and page2 in page2.
    Both the pages can have main windows.
    And in the first page , create a Command and call the page2 (in general attributes tab)-
    Go to new page u201CPAGE2u201D and click u201Cfor after the end of main windowu201D ( in condition tab).
    hope this will prove useful to you.
    regards,
    prashanti

  • Problem with Multiple Page convert in PDF

    Hi all,
    I done one invoice printing and convert in pdf report.  but with smartform i get all thing and giving perfect out put.
    But when i give second option for direct create a file of PDF this time only one page can convert in PDF. Means when i give multiple input like print invoice 0000910 to 0000925 so this time only invoice no. 0000925 is convert in pdf. But actually i need all invoice like 910 to 925 convert in one PDF with 25 pages.
    And i done coding which is show below for this issue.
    so please help me out and kindly guide me what is the mistake in my below code for make multiple page in one pdf.
    FORM get_FORM1.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    * VARIANT = ' '
    * DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
                                                        " for print preview
    w_cparam-getotf = 'X'.
    * Printer name to be used is provided in the export parameter
    * OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ITABz[]                       = itab[].
      ITABz1[]                      = itab1[].
      IT_ADDRESSz[]                = it_address[].
      LOOP at itab1.
        delete ITABz where vbeln ne  itab1-vbeln.
        delete ITABz1 where vbeln ne  itab1-vbeln.
        delete it_addressz where KUNNR ne  itab1-KUNRG.
    *      delete itab1 where vbeln ne  itab1-vbeln.
        TOTAL_QNT                  = ITAB1-TOTAL_QNT.
        TOTAL_AMT                  = itab1-TOTAL_AMT.
        I_FKIMG = itab1-I_FKIMG.
        BILL_DATE                  = itab1-BILL_DATE.
        IJ_1ICSTNO                 = itab1-IJ_1ICSTNO.
        VECHICAL_NO                = itab1-VECHICAL_NO.
        TAX                        = itab1-TAX.
        INV_TXT                    = ITAB1-INV_TXT.
        inv_name                   = ITAB1-INV_NAME.
        INVOICE                    = ITAB1-INVOICE.
        TAX1                       = itab1-TAX1.
        TAX_VAL                    = itab1-TAX_VAL.
        TAX_ADD_VAL                = itab1-TAX_ADD_VAL   .
        Text_inv                   = itab1-Text_inv.
        TEXT1                      = itab1-TEXT1.
        TEXT2                      = itab1-TEXT2.
        TEXT3                      = itab1-TEXT3.
        TEXT4                      = itab1-TEXT4.
        TEXT5                      = itab1-TEXT5.
        P_DOCNO                    = itab1-vbeln.
    CALL FUNCTION w_fmodule
    EXPORTING
              WERKS                      = WERKS
              TOTAL_QNT                  = TOTAL_QNT
              TOTAL_AMT                  = TOTAL_AMT
              I_FKIMG                    = I_FKIMG
              STATE                      = STATE
              LAND1                      = LAND1
              LANDX                      = LANDX
              P_DOCNO                    = P_DOCNO
              BILL_DATE                  = BILL_DATE
              IJ_1ICSTNO                 = IJ_1ICSTNO
              T_WERKS                    = T_WERKS
              VECHICAL_NO                = VECHICAL_NO
              TAX                        = TAX
              TAX1                       = TAX1
              TAX_VAL                    = TAX_VAL
              TAX_ADD_VAL                = TAX_ADD_VAL
              inv_txt                    = inv_txt
              inv_name                   = inv_name
              INVOICE                    = INVOICE
              Text_inv                   = Text_inv
              TEXT1                      = TEXT1
              TEXT2                      = TEXT2
              TEXT3                      = TEXT3
              TEXT4                      = TEXT4
              TEXT5                      = TEXT5
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = w_cparam
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
        OUTPUT_OPTIONS             = w_outoptions
    *   USER_SETTINGS              = 'X'
    IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    * JOB_OUTPUT_OPTIONS =
    TABLES
            ITAB                       = itabz
            ITAB1                      = itabz1
            IT_ADDRESS                 = it_addressz
         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.
    ITABz[]                       = itab[].
        ITABz1[]                      = itab1[].
        IT_ADDRESSz[]                = it_address[].
      ENDLOOP.
    t_otf[] = t_otf_from_fm-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    * ARCHIVE_INDEX = ' '
    * COPYNUMBER = 0
    * ASCII_BIDI_VIS2LOG = ' '
    * PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    * BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 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.
    * To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    * USER_ACTION =
    * FILE_ENCODING =
    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.
    * Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    * presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    tables
    data_tab = T_pdf_tab
    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 .               "get_FORM1
    thanks
    Keyur
    Edited by: keyur chauhan on Aug 30, 2010 11:56 AM
    Edited by: keyur chauhan on Aug 30, 2010 11:57 AM
    Edited by: keyur chauhan on Aug 30, 2010 12:37 PM

    Thank you!
    Unfortunately I didn't find any work around.
    Thanks,
    Federico

  • How to print headings in every page of smartforms.

    Friends,
    we have a requirement to print hedaings in multiple pages.
    like if we have  100 line items those will accomidate more tahn one page , i need to print headings in each page.
    pls help me.
    Regards
    Jagadeeshwar.B

    hi ,
    can u check this...
    how to use new page in smartforms
    If you are calling window to display header, then just un check the output option->display on first page only.
    regards,
    venkat.

  • In smartfrom create multiple page format

    Hi expart..
            In selection screen using select-options . i m puting the debit no 1100019222 to 1100019224 . the output shows only 1 page . n't showing 3 page .in smartform .Pls tell me how to print multiple page . i m using
    data :   l_sform type tdsfname,
             l_fm_name type rs38l_fnam.
    data : control_param like ssfctrlop.
    clear control_param-no_dialog .
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
      SELECT-OPTIONS :      s_budat for bsid-budat ,
                                         s_belnr for bsid-belnr .
      SELECTION-SCREEN : END OF block b1 .
         move 'ZS_FI_CREDITNOTE' to l_sform.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = l_sform
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      importing
         fm_name                  = l_fm_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.
      loop at itab_debit.
        if sy-tabix = 1.
          clear control_param-no_dialog .
        else.
          control_param-no_dialog = 'X'.
        endif.
      read table itab_basic with key belnr = itab_debit-belnr .
      CALL FUNCTION l_fm_name
        EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
          CONTROL_PARAMETERS         = control_param
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
      IMPORTING
        DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            =
        JOB_OUTPUT_OPTIONS         =
        TABLES
          itab_debit                 = itab_debit
          itab_basic_value           = itab_basic
          itab_t030k                 = itab_t030k
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
       new-page.
       endloop.
      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 n't working...
    i ll give points...
    regards
    bhabani

    Hi,
    I have Corrected the code.Check and reply.
    data : l_sform type tdsfname,
    l_fm_name type rs38l_fnam.
    data : control_param like ssfctrlop.
    clear control_param-no_dialog .
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : s_budat for bsid-budat ,
    s_belnr for bsid-belnr .
    SELECTION-SCREEN : END OF block b1 .
    move 'ZS_FI_CREDITNOTE' to l_sform.
      control_param-no_open   = 'X'.
      control_param-no_close  = 'X'.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = l_sform
    VARIANT = ' '
    DIRECT_CALL = ' '
    importing
    fm_name = l_fm_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.
    CALL FUNCTION 'SSF_OPEN'
       EXPORTING
      ARCHIVE_PARAMETERS       =
       user_settings            = ' '
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
      output_options           =
       control_parameters       = control_param
    IMPORTING
      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.
    loop at itab_debit.
    if sy-tabix = 1.
    clear control_param-no_dialog .
    else.
    control_param-no_dialog = 'X'.
    endif.
    read table itab_basic with key belnr = itab_debit-belnr .
    CALL FUNCTION l_fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = control_param
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    itab_debit = itab_debit
    itab_basic_value = itab_basic
    itab_t030k = itab_t030k
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    new-page.
    endloop.
    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 'SSF_CLOSE'
      IMPORTING
        JOB_OUTPUT_INFO        =
          EXCEPTIONS
            formatting_error       = 1
            internal_error         = 2
            send_error             = 3
            OTHERS                 = 4.
      IF sy-subrc <> 0.
      error handling
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    analyse internal error table of Smart Forms
      CALL FUNCTION 'SSF_READ_ERRORS'
        IMPORTING
          errortab = errtab.
      IF NOT errtab IS INITIAL.
      add your handling
      ENDIF.
    Regards,
    Morris Bond.
    Reward Points if helpful.

Maybe you are looking for

  • Photo name not reflecting in iPhoto

    Hi everyone... Forgive me for this question while I am on a learning curve w/ my Mac. I have a question about photo names not reflecting in iPhoto. I recently loaded some pictres from a compact flash card, and iPhoto started and pulled them right in.

  • For restoring from backup itunes is asking for password

    Hi Experts for restoring from backup itunes is asking for password and i didn't give any password when backup was going on not even i checked on encrypt my backup. please help me ASAP

  • SDO_RELATE AND SDO_GEOM RELATE MASK PROBLEMS

    I am trying to use the SDO_RELATE operator on my spatial table. I have been experiencing problems. I also get the same problems if I use the SDO_GEOM.RELATE geometry function. Background Table2 contains about 20 000 rows. Table1 contains about 1 000

  • How large heap size for running a WL Server?

    Hi friends, I am running a 5.1 WL server, which usually uses more than 170Mb or even more if I deploy EjBs. Is that usully a server will use this much of memory? If I want to reduce usage of heap size, what can I do? Thanks! James

  • [svn] 4475: Add colorCorrection property to FxApplication.

    Revision: 4475 Author: [email protected] Date: 2009-01-09 10:47:20 -0800 (Fri, 09 Jan 2009) Log Message: Add colorCorrection property to FxApplication. Since the colorCorrection property on FxApplication is just a proxy for the Flash Player's Stage.c