Application Development 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: 

formatting error!

Former Member
0 Kudos

Hello all,

In the print program, the smart form function module is returning sy-sunrc eq 1 which is a formatting error.

But the smartform is not having any errors and is active. I dont know why it is returing this error.

Can someone help me with this.

Thanks,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you using any address nodes or any other special nodes that require you to pass in data into their parameters?

Check that the data you pass in is of the correct type and value as i have faced this 'formatting error' before.

Cheers.

7 REPLIES 7

abdul_hakim
Active Contributor
0 Kudos

hi somen,

this is certainly due to the formatting error at the form.

carry out syntax check at the individual nodes and finally activate ur form.also check the print preview to confirm whether any windows get overlapped...

Cheers,

Abdul Hakim

0 Kudos

Abdul,

I have some windows overlapping in the form. But I was thinking that it should not be a problem. The reason is I had copied that form from another one which has windows overlapping. Let me correct that and I will get back to you.

Thanks,

0 Kudos

hi somen,

thatz fine but you carry out the syntax check for the individual nodes...

Cheers,

Abdul Hakim

Former Member
0 Kudos

formatting error may be caused by wrong cell assignment of fields.

to know which field that is, you can execute your smartform using se37, it will give you the exact error

Former Member
0 Kudos

Are you using any address nodes or any other special nodes that require you to pass in data into their parameters?

Check that the data you pass in is of the correct type and value as i have faced this 'formatting error' before.

Cheers.

Former Member
0 Kudos

I had the same problem earlier, If you are using any currency and quantity fields then check for the reference table and fields, If you give it wrong it will give the formatting error.

Thanks,

Rajesh

0 Kudos

Hello all,

Thanks for all your replies.

I had tried with all the solutions and what I found out is

1. The formatting error is not because of the windows overlapping.

2. Not because of currency or quantity fields etc.

I did a syntax check at each and every node, but they are syntactically correct. Next I deleted the address nodes in my smartform and it worked perfectly. Maybe I am not populating them correctly.

Matt...full points to you and points are awarded to all other replies for your suggestions. They sure will be very useful in future.

Thanks,