on 07-30-2008 6:04 AM
Hi,
I need to change the printer name of the invoice when the same o/p type is triggering for the second time.
The requirement is as follows.
Every time the program should check whether there is any entry or not with the output type u2018ZURDu2019 and printer u2018 USJC-PM03u2019 (for that invoice number) in NAST, if we found an entry then change the printer name from 'USJC-PM03' to 'LOCL'.
I tried to change the printer name like this.
ls_composer_param-tddest = 'LOCL'. and passed ls_composer_param in smartform function module.But second time also it is showing the printer name as 'USJC-PM03'.
Can anyone tell me how to change the printer name?
Hi
In the FM of the Smartform we can find the print paramaeters
in that try to use the strcutre for chaing the device name
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried in this way
st_output_options type SSFCOMPOP
st_output_options-tdprinter = 'LOCL'
When I try to execute the program ,a popup box is coming and it is asking for output device.When I give LOCL,it is displaying error message as 'Output device LOCL is not type LOCL'.What would be the reason for this?
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.