on 11-13-2007 9:34 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Goto that smartform->global settings--> form attributes.
in form attributes select output options tab
in that u can chage the page format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.