Skip to Content
avatar image
Former Member

Smartform is showing landscape in preview but portrait in email

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 13, 2017 at 03:08 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2017 at 09:52 PM

    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

    Add comment
    10|10000 characters needed characters exceeded