Skip to Content
avatar image
Former Member

Flexible Real estate smartform

Hello Experts,

i am trying to convert the standard smart form RE_CN_010 to PDF.but i am getting a dump while calling the function module.

When calling function module "/1BCDWB/SF00000034", one of the parameters required according to the interface description was not specified. This is parameter "IS_SFPARAM". This parameter was "IS_SFPARAM".

using the below code to call the smartform via FM.


EXPORTING control_parameters = st_control_parameters

output_options = st_output_options

IMPORTING document_output_info = st_document_output_info

job_output_info = st_job_output_info

job_output_options = st_job_output_options

EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5.

am i missing anything .Please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 13, 2017 at 12:33 PM

    Hi Sravya,

    use the pattern generator in the Abap Editor, and ask for the function module : /1BCDWB/SF00000034

    all the obligatories parameters will be uncommented.

    After this you could replace the name /1BCDWB/SF00000034 with v_fm_name

    or you could read this beautiful document wrote by a very simpatic guy :



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2017 at 09:11 AM

    Thank you Fredrick for your response.

    I tried to put a break point in the FM in the form GLOBAL INIT, triggered the print preview from RECN t code and checked the value it is passing to IS_SFPARAM. it is actually generated at run time i think. not sure how the data is filled in mt_map_doc in the below method.

    METHOD get_options .

    DATA: lo_doc TYPE REF TO cl_recp_sf_doc.


    CLEAR es_options. CLEAR es_doc. cf_error = abap_false.

    * CONTEXT mac_get_doc_ref_without_cast lo_doc.

    * BODY * options es_options-recp_sf_options = lo_doc->mo_app->ms_options.

    * document es_doc-recp_sf_doc = lo_doc->ms_doc.


    DATA: ld_guid LIKE ms_map_doc-guid.


    * test mode of form builder is not supported

    IF ( sy-tcode = 'SMARTFORMS' ) OR ( sy-tcode = 'SE37' ). MESSAGE i072(recpsf). ENDIF. MESSAGE e072(recpsf) RAISING not_found. ENDIF.

    * BODY

    ld_guid = id_guid. IF ms_map_doc-guid <> ld_guid. READ TABLE mt_map_doc INTO ms_map_doc WITH TABLE KEY guid = ld_guid. IF sy-subrc <> 0.

    * internal error: GUID not found MESSAGE e073(recpsf) RAISING not_found. ENDIF. ENDIF. ro_instance = ms_map_doc-doc.

    Add comment
    10|10000 characters needed characters exceeded