cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform batch print - page format issue

Former Member
0 Kudos

I am creating a smartform in a batch job and sending it to various printers throughout our company. The form is going to the printer but it attempts to print in the A4 (DINA4) page format. I have the smartform set to print (under the Form Attributes -> Output options tab) in Letter format though.

I am passing output_options to the smartform FM. The field that I am setting is the printer (output_options-tddest). output_options is of type ssfcompop. I would imagine that page format would be a field in that structure but I can't find it. Do you know of any other way to change the page format in a batch job via ABAP code?

Thanks,

Davis

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

did you try it out in a dialog?

See yahhhh

ALexandre

Former Member
0 Kudos

Yes it worked in dialog. I actually figured it out a bit ago and forgot to update the question. It ended up being that I needed to specify the printer specifications when I created the batch job. I assumed that no printer needed to be specified because I was specifying the printer in the program.

Davis.

0 Kudos

Hi,

Very good! Would you mind show us what fields you are fill?

Thanks

Alexandre

Former Member
0 Kudos

The field in the ABAP code is output_options-tddest (that gets filled with the 4 character printer code) and the following:

output_options-tdimmed = 'X'. "Print immediatly

output_options-tddelete = 'X'. "Delete after printing

In the Smartform I went to the Form Atributes page and selected the page format on the output options tab. Then when I created the batch job in SM36 I added a step (an ABAP program) and assigned a printer to that step.

Regards,

Davis