cancel
Showing results for 
Search instead for 
Did you mean: 

reason for formatting error in smartform

Former Member
0 Kudos

Hi All,

I am calling the below function module from driver pgm, but it returns sy-subrc value 0. and not going to the smartfor. Can anybody tell what is the reason for that.

CALL FUNCTION FM_NAME

EXPORTING

I_BUDAT = I_BUDAT

I_IBLNR = I_IBLNR

I_PLANT = I_PLANT

I_ADRESS = I_ADRESS

I_POST_CODE = I_POST_CODE

I_HOUSE_NUM = I_HOUSE_NUM

I_CITY = I_CITY

I_COUNTRY = I_COUNTRY

  • IMPORTING

  • JOB_OUTPUT_INFO = LWA_JOB_OUTPUT

  • TABLES

  • z_i_item = z_i_item

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

Thanks,

Asha

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

The function module which has been generated by the smartform is not getting triggered.Activate the

smartform call the function module in the reoprt program.

Regards,

Sravanthi

Former Member
0 Kudos

Hi

Can anybody tell what is the meaning of this error. message number 414 and message class is SSFCOMPOSER

Thanks,

Asha

Former Member
0 Kudos

Hi,

Execute the smartform from the smartforms Tcode and there in the table give some junk data both in the table and the template and check the smartform. For table u have to give more number of records for that just give one record and then click on the Double line tab which is present in the menu bar so that it keep on increasing the number of records then check the print preview so that you can get the real error.

Hope this will help you,

Regards,

Venkat.

Former Member
0 Kudos

Hi,

Also sometimes this kind of error occurs if the transport of the smartform has not happened properly to the other systems.

So, if you happened to transport to testing system and it works fine in the developement system then try to re-transport the form and then generate the smartform in the test system and check.

Regards,

Ram

Former Member
0 Kudos

Hi,

Please check in debugging mode where exactly it occurs by debugging the FM generated for the smartform.

then check for the particular node in the smartform.

Regards,

Ram

Former Member
0 Kudos

Hi,

You can call the smartform by 2 ways.

1. first calling the FM 'SSF_FUNCTION_MODULE_NAME' by passing smartform name and get the generated function module name. then call the FM by using this name.

2. Directly you can call by using the FM <fm name> which you will get after activation of the smartform.

But preferable is the 1st one.

Thanks,

Suma.

Former Member
0 Kudos

Hi

I created the smartform in the above way only.

but it returns sy-subrc value as 1, (Formatting error ).

How I can solve this problem?

Thanks,

Asha

Former Member
0 Kudos

check all ur windows position and size ... sometime this will create this kind of problem.

Former Member
0 Kudos

Hi,

I checked the size. No problem..

There are two pages in the smartform. In first page main window i put one table and 3 template, so that whenever it overflows should come to the second page. In second page I have only the main window.

Is there any problem with this?

Thanks,

Asha

Former Member
0 Kudos

Hi,

Generally Formatting Error exception occurs due to mismatch of the widths of windows with templates/tables.

check all the templates cell widths in ur window which should be exactly match with ur window width. also check the sum heights of all templates should not be greater than the window height.

in the same way, check the table cells width with window width. it should be matched..

for above cases generally we get Formating Error..

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos

Hi,

Refer the below code

DATA: wa_fm_name TYPE rs38l_fnam,

wa_formname TYPE tdsfname.

wa_formname = 'Z_MM_SSF_PO'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = wa_formname

IMPORTING

FM_NAME = wa_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 wa_fm_name "'/1BCDWB/SF00000029'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

v_ebeln = v_ebeln

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • 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.