cancel
Showing results for 
Search instead for 
Did you mean: 

A4 and Letter SIze in Same Smartform

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Well in that case I need to change the window lengths as well.

Is it possible?

Thanks,

Manu

Former Member
0 Kudos

you will need to have two windows,

they cannot change dynamically

Former Member
0 Kudos

Thanks a lot for you help.

Can you suggest me how to go about it. I already have my form ready for A4 size and its running fine.

Just to need add details for the Letter Size.

Thanks in advance,

Manu

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Nehal,

I tried with the solution given by you to determine page format dynamically in ECC6.0. It is working but where as in R/3 4.6c it is not working. Please help me on this. If required I will raise it as new thread.

Thanks

Kiran

Pysri
Explorer
0 Kudos

Hi Nehal,

    It's working fine to me.. Awesome..

  

Thanks,

Srinivas.

Answers (1)

Answers (1)

Former Member
0 Kudos

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