cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Error: Items not printed on next page

Former Member
0 Kudos

Hi everyone,

I am currently working on a Smartform for printing an Invoice. The problem is as follows:

I have a First page and a Next Page. There is a Summary in the footer.

If the items fit on the First page, then there is no problem. If there is space then the Summary is printed on the same page, if there is little space, then the Summary goes on to the Next page (Page Protection is applied).

The problem arise when the items do no fit on the First Page. In this case, I get a weird error saying "Unexpected Error" and some Message 003. I can't understand what the problem is!

I have various attachment pages as well and they are printed properly.

Please help me crack this error at your own leisure!

Thanks.

Edited by: kishan P on Oct 13, 2010 9:44 AM

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi all,

The problem is solved.

At the footer of the main table, I had selected both the options- Print at page break and after end of main table. However there were 2 folders in the footer, one said print at page break only and other, print at end of main table.

As there was a mismatch, I was getting the error. As of now I have just kept the Summary folder and deleted the other. So its printing now.

Thankyou all for your help!

Former Member
0 Kudos

Hi,

Is the main table created in the NEXT Page.

Both Main table and Footer should be present in Next Page also.

Former Member
0 Kudos

Hi,

I have defined the next page. As I said, the summary shifts on the next page if it doesn't fit on the first page. The problem arises if the items do not fit on the first page.

Former Member
0 Kudos

Hi Ameya

there might be syntax error. Try to get what exaclty is an error using following code.

CALL FUNCTION <smartform>

.......

EXCEPTIONS

.......

IF SY-SUBRC 0.

CALL FUNCTION 'SSF_READ_ERRORS'

IMPORTING

ERRORTAB = IT_ERRORLIST.

ENDIF.

In IT_ERRORLIST you will get error message.

Regards

Sachin G Patil

Former Member
0 Kudos

Delete

Edited by: Thien M. Pham on Oct 13, 2010 7:15 AM

Former Member
0 Kudos

Delete

Edited by: Thien M. Pham on Oct 13, 2010 7:15 AM

Former Member
0 Kudos

HI,

It can occurs when you did not identify next page for first page. Check this.

Or you can use tcode SFTRACE to trace smartforms error. More information kindly walk through SAP library link http://help.sap.com/saphelp_470/helpdata/EN/49/c3d8a4a05b11d5b6ef006094192fe3/content.htm

Thanks,