09-30-2008 3:46 PM
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.
10-01-2008 10:32 PM
I don't think it's feasible. The page format must be specified in the form, therefore one form can have only one page format. You can try some kind of custom format (which is neither A4 nor Letter), but this might cause an issue while printing, because the printer usually looks for a specific page format and all funky formats require pressing a button on the printer.
This would be possible though with Adobe forms, so you might want to explore that option.