on 10-12-2010 6:12 PM
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is the main table created in the NEXT Page.
Both Main table and Footer should be present in Next Page also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Delete
Edited by: Thien M. Pham on Oct 13, 2010 7:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Delete
Edited by: Thien M. Pham on Oct 13, 2010 7:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.