cancel
Showing results for 
Search instead for 
Did you mean: 

Changing page format in Smartforms

Former Member
0 Kudos

Hello gurus,

Is there a standard program which can change the page format in smartforms. In sapscript executing the program (RSTXFCON) we can change the page formats. Now my requirement is to change the layout from dot-matrix page to A4 page. Points will be rewarded for valuable effective solutions.

Thanks in advance.

Regards.

D.P.Mallick

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Use below code in your Smartforms - Code Initialization.

DATA:lv_format TYPE ssfformhd-pageformat.
FIELD-SYMBOLS : <fs_header> TYPE ssfformhd.
" fetch value from ztable as per requirement
SELECT SINGLE value FROM ztable
  INTO lv_format
  WHERE fname = 'Z_SMARTFORM'
    AND varie = 'PAGEFORMAT'.
IF  sy-subrc EQ 0.
" %HEADER of generated program has PAGEFORMAT
  CONCATENATE '(' sy-repid ')' '%HEADER' INTO DATA(lm_header).
  CONDENSE lm_header.
  ASSIGN (lm_header) TO <fs_header>.
  IF <fs_header> IS ASSIGNED.
    <fs_header>-pageformat = lv_format.
  ENDIF.
ENDIF.
Former Member
0 Kudos

Goto that smartform->global settings--> form attributes.

in form attributes select output options tab

in that u can chage the page format