cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic select page format

arpit_shah
Contributor
0 Kudos

Hi All,

My requirement is to pass page format from SE38,

instead of assign in smartforms.

because here two devise LP01 and LP02.

LP01 for Laser printer

and LP02 for dot matrix printer.

It is correctly print in LP02, because for that page format is correct but when i m print using LP01 page is wide so it will take so many pages and output is not correct.

so how to pass parameter for page format from SE38 to smart form.

I hope u all understand my problem.

pls do the needful.

thanks & rgds,

Arpit Shah

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

in Smartform we can get multiple page formats for this you need to do setting in Tcode SPAD .

regards

fareed

Former Member
0 Kudos

populate

st_output_options type SSFCOMPOP

st_output_options-tdprinter = LP01 or LP02

as per ur requirement and pass it to the smartform

CALL FUNCTION v_fm_name

EXPORTING

ARCHIVE_INDEX =

ARCHIVE_INDEX_TAB =

ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = st_control_parameters

MAIL_APPL_OBJ =

MAIL_RECIPIENT =

MAIL_SENDER =

OUTPUT_OPTIONS = st_output_options

USER_SETTINGS = space

TABLES

IS_LABELS = IS_LABELS

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

arpit_shah
Contributor
0 Kudos

Hi Pratik,

I want to pass page format not output device.

Former Member
0 Kudos

Hi,

FORM INETRFACE of the smart form->

Output options is of type SSFCOMPOP where we can set the page format option dynamicaly or

In the SE38 program, try to declare a structure of type SSFCOMPOP and populate the value dynammicaly for page format and pass the same to the FM of the SF when called in the program.

Or we can apss the

in the SSFCOMPOP->

TDDEST type RSPOPNAME in this we can give the page format and pass the same to the output options.

check this table for more-

TSP03 (Spool: Name of output device)

Thanks & Regards,

Chandralekha.

arpit_shah
Contributor
0 Kudos

my requirement is if user select LP01 then it select one page format and if it is select LP02 then select other page format or print in land scape.

Rgds,

Arpit

Former Member
0 Kudos

why do u need a different page format?

try this...

create two pages...one for LP01 and another for LP02

double click on the page for LP02 and goto output options. Here select the radio button for landscape.

basic Logic

check if tdprinter = lp01

call page 1

elseif tdprinter = lp02

call page 2

hope it solves ur prob

arpit_shah
Contributor
0 Kudos

Hi Pratik......

thanks for ur reply..

i want if LP01 then page should be print in Landscape mode and if LP02 then it will print in Potrait mode.

how to do it.

thanks & rgds,

Arpit

former_member181995
Active Contributor
0 Kudos

Arpit,

as far as my knowledge it is not possible.we cannot assing page formate dynamically.

i want if LP01 then page should be print in Landscape mode and if LP02 then it will print in Potrait mode.

how to do it.

for this you may assing two form for respective transaction lp01 and lp02.

i can stay along with you untill you get your answer for assing dynamic page format.

Amit.