Skip to Content

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

Needed smartform to determine page format automatically.

Hi

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'.

endif.

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

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

Thanks in advance

Kiran.

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