Skip to Content

Smartform batch print - page format issue

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 29, 2007 at 09:08 PM

    Hi,

    did you try it out in a dialog?

    See yahhhh

    ALexandre

    Add a comment
    10|10000 characters needed characters exceeded

    • Lundi Vox Alexandre do Carmo Rocha

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.