on 04-01-2008 5:24 PM
Hi SDN,
I want to use Letter size and A4 size pages in my smartforms, based on company codes.
How can I make my changes in my existing smartform to add Letter size for new company codes without disturbing the existing form.
Is there a way in which I can create a new Page and the conditions for those specific company codes.
Helpful answers will be rewarded!!!.
Thanks,
Manu
Use this code, in intialization
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.
Edited by: Nehal Fonseca on Apr 2, 2008 9:46 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The basic problem between A4 and Letter
is the height. the width is not that much of an issue
A4 is longer than Letter in height.
So you can have longer or lower windows for A4
Just have one window WIND_A4 with lower starting point or greater height depending on ur requirement
and one WIND_LETTER with higher staring point or lesser height
U can use the same company code flag or another flag to determine which window to print at runtime
Hi,
The page format (in your case either DINA4 or LETTER) is defined at the header level of the smartform, so you can't mix page formats in one form that I know of.
The only thing you can influence at the page level is portrait/landscape, duplex or printer tray.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.