Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

needed smartform to determine page format automatically.


I have a reqirement to print the smartform output in Letter format paper for one company code and it should print it in A4 size paper for rest of the company codes.

I am using R/3 4.6c

I tried with this code

data: lx_sf_header(31) type c,

field-symbols: <fs_header> type SSFFORMHD.

if company_code = 'XXXX'.

CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.

assign (lx_sf_header) to <fs_header>.

<fs_header>-PAGEFORMAT = 'LETTER'.


but I am getting short dump & this logic is working fine in ECC.

Please help me regarding this.......

Thanks in advance


Edited by: kiran Pasala on Sep 30, 2008 4:44 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question