Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SMARTFORM ERROR

harshsisodia31
Participant
0 Likes
3,417

Hello,

every time when I execute the form after generation I get the following message:

"The test for /1BCDWB/SF00000009 was regenerated but errors occurred"

the scarce description in the help is this:

"One reason could be the complex typing of the function module parameters.

In certain circumstances, it is not possible to access test cases in the test data catalog."

I was also getting below in smartform

In the exception 1 is triggered ("FORMATTING_ERROR").

Does somebody know what the problem is ??

Thanks

Harsh Sisodia

7 REPLIES 7
Read only

satyabrata_sahoo3
Contributor
0 Likes
1,797

Might be some part in your Smartform is not fitting into the scale/space provided. Or could be due to any parameter conflicts to the Function module. Debug and check where exactly the error coming.


Read only

Former Member
0 Likes
1,797

1. Make sure that the parameters that you are using in smart form and those that are exported from the print program are matching.

2. Make sure that smart form is activated.

3. There may be mismatch in the size of window and contents. If so adjust accordingly.

http://scn.sap.com/thread/742405

Read only

Former Member
0 Likes
1,797

Hi Harsh,

Please be more specific in the topic as well as question. Where exactly is the issue? If its a formatting error then on what line?

Regards

Purnand

Read only

gouravkumar64
Active Contributor
0 Likes
1,797

Hi Harsh,

Do a syntax check there ctrl+f2.

This error generally comes when, suppose in Template/table You are writing

Row 3 column 3,but You have designed 3 row & 2 column .

Check this type of similar case for wrong row or column assignment.

Check sy-subrc ,It will be probably 1 or 13.

Thanks

Gourav.

Read only

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Likes
1,797

Hello,

In 4.6C environment this table XSFPARS don't exist in structure SSFCOMPOP.
The test environment of the Function Builder may not correctly display complex categories. Generic categories such as DATA, OBJECT, STANDARD STANDARD TABLE, ANY TABLE are also not currently supported by the test environment. It is described in the attached notes 585475.

That was the reason of the message "The test for & was regenerated but errors occurred"  most often.

As workaround you can create an simple function module.  Here you can determine the current name of the smartforms via function SSF_FUNCTIONAL_MODULE_NAME. And here you can avoid to use

the table XSFPARS as import parameter.

Regards,

David

Read only

Former Member
0 Likes
1,797

HI Harsh ,

I think you have face issue with Function Modulde parameters.

Please call transaction se37 and then test Function Modulde  /1BCDWB/SF00000009.

If you not know the cause of the root error, you compare parameter this FM with where you have call this FM in your code or using Pettern to insert FM.

Thanks and best regards,

Quynh.

Read only

arindam_m
Active Contributor
0 Likes
1,797

Hi,

Check out your windows and table definitions within the windows. This kind of error usually occurs when window sizes are bigger than you page size or often due to table or template size being bigger that your page size and take help of the graphical editor this usually appears in F9. to see your relative window positions in the page, Also check the table or line widths defined for usage in these windows.

Cheers,

Arindam