Skip to Content
avatar image
Former Member

Data not getting displayed after Smart Form being created

Dear Freinds,

I have developed one smart form however when iam executing the Smartform iam able to view in

the print priview the layout . However when iam calling from the program the Function module is returing

FORMATTING_ERROR = 1

could any one let me know what exactly this errror where i have to check . Please if you can gudie it would be great help

the code i have used is

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZLEAVE_APPLICATION_FORM'

IMPORTING

fm_name = v_fnam

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

CALL FUNCTION v_fnam

  • 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

it_final = IT_FINAL

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

The Function Module has return me the exception error as Formatting error

please help me

regards

madhuri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 18, 2008 at 04:32 PM

    Hi Friend,

    Comment the below shown lines and check whether it is working or not...

    EXCEPTIONS

    no_form = 1

    no_function_module = 2

    OTHERS = 3.

    If same error is displayed then better debug and find where your value is missing.

    Cheers!!

    Balu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2008 at 02:21 PM

    Hi,

    You need to debug the smartform, for that before running the program goto tcode SMARTFORM_TRACE and Switch on the Trace, then run the program, now Refresh the log in SMARTFORM_TRACE and click on the display icon, it will show where the formatting error is.

    Regards

    Karthik D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2008 at 06:24 PM

    Hi,

    in the below Function module you have commented Exporting parameters, so try to pass nessasary parameters.

    example.

    DATA: l_x(1) VALUE 'X'.

    DATA: lv_fm_name TYPE rs38l_fnam,

    lv_control_parameters TYPE ssfctrlop,

    lv_output_options TYPE ssfcompop.

    • Set relevant control parameters

    lv_control_parameters-getotf = l_x. "OTF output

    lv_control_parameters-no_dialog = l_x. "No print dialog

    lv_control_parameters-preview = space. "No preview

    • Set relevant output options

    lv_output_options-tdnewid = l_x. "Print parameters,

    lv_output_options-tddelete = space. "Print parameters,

    lv_output_options-tddest = 'LOCL'.

    CALL FUNCTION lv_fm_name

    EXPORTING

    control_parameters = lv_control_parameters

    output_options = lv_output_options

    user_settings = space

    Still if you are not getting then try to check your layout and its Page attributes like height, width, upper margin etc.

    Thanks,

    Sree.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Sree,

      Iam getting the same problem after passing the Exporting parameters as you have said below.

      so i did smartform_trace and i found the below error given

      ! E SSFCOMPOSER 601

      MSGV1: WA_FINAL-ZGAMTACRU

      symbol WA_FINAL-ZGAMTACRU not found

      trace output closed due to error

      could any one let me know what do mean by this problem........... i have declared ZGAMTACRU

      as amount field. i.e the data type is CURR.

      please could you suggest me how to proceed.

      regds

      madhuri

  • avatar image
    Former Member
    Oct 20, 2008 at 05:12 AM

    Hi madhuri,

    Call the funtion module of the smartform once again in the driver program. '/1BCDWB/SF........'.

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 06:01 AM

    Hi,

    Please put break point the FM:SSFRT_WRITE_ERROR at

    append l_error to errortab.

    and check ERRORTAB table.

    Regards

    Jana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 06:33 AM

    Hi Madhuri,

    try to this code

    DATA : FORMNAME TYPE TDSFNAME.

    DATA : FM_NAME TYPE RS38L_FNAM.

    FORMNAME = 'ZLEAVE_APPLICATION_FORM'.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    FORMNAME = FORMNAME

    • VARIANT = ' '

    • DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = 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 FM_NAME

    TABLES

    it_final = IT_FINAL

    ENDFORM. "ENTRY

    i think ur problem is solved.

    Regards

    swamy.

    Add comment
    10|10000 characters needed characters exceeded