Skip to Content
0

Smartform is showing landscape in preview but portrait in email

Nov 13, 2017 at 02:44 PM

41

avatar image
Former Member

Hi All,

I changed an existing smartform page format from portrait to landscape by creating a custom page format in SPAD copying existing page format 'Letter - landscape'. When i view the smartform i see it in landscape but in tcode: SOST i see the smartform in portrait. Any ideas where to check for the issue that is causing this behaviour.

Thanks in advance,

Karuna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Michelle Crapo Nov 13, 2017 at 03:08 PM
0

Well I'd normally change the format in the form attributes of the smartform. If that's not possible, please show the code that is creating the mail.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 29, 2017 at 09:52 PM
0

Thank you Ms. Crapo. I figured out the issue.

I was able to find out the error with one of the post from SDN.

1. Run the FM from SE37

2. Put a break-point at the first executable statement if the FM.

3. Run your program. It will stop at the break-point

4. Put the break-point at the FM SSFRT_READ_ERROR (Choose from Menu).

5. Then press F8. You will see the reason for the error.

I found out that the error was saying 'Device Type ZXXXX does not support page format ZXXX'.

Thats when I created a custom page format but looks like I also had to create 'Format Types' with 'Page Format' assigned to it. And finally assign the format type I created to the 'Device Type' that it complained.

This fixed the issue.

Thanks again for reaching out to help.

Karuna

Share
10 |10000 characters needed characters left characters exceeded