on 11-29-2007 3:13 PM
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
Hi,
did you try it out in a dialog?
See yahhhh
ALexandre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
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.