‎2005 Nov 15 10:14 AM
User is taking invoice prinout. For a particular output type say "IGFA" if the language is other than EN, the printer name has to be changed to different printer name. Please suggest me..
‎2005 Nov 15 10:17 AM
Hi,
use fm GET_PRINT_PARAMETERS -
import parameter: destination
Andreas
‎2005 Nov 15 10:55 AM
Sir, My requirement is like this.
user is taking invoice printing for a particular output type IGFA.For this output type the printer name is getting defaulted now. The requirement is based on the output language other than EN, I have to change the printer name at runtime. I also tried making changes in the print program of the IGFA output type, by modifying the NAST structure. But changes are not getting updated.please advice me..
‎2005 Nov 15 1:52 PM
HI,
Maybe it is taking the default printer name which you can find in the menu item SYSTEM=>USER PROFILE=>OWNDATA..When you check the defaults tab you will find the printer name attached.
I think you can try this.
From NAST table you can get the language.You can do the following
data:dt_itcpo type itcpo.
dt_itcpo-TDDEST = PRINTER NAME REQUIRED. or
dt_itcpo-TDRDIDEV = PRINTER NAME REQUIRED..
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = XXXXX
options = dt_itcpo
Hope it is helpful.Plz do reward points if it works out fine.
‎2005 Nov 15 11:17 PM
Hi Naveen,
This can be resolved by
A) The Output Condition creation:
Define Language as a field in the Output Determination. Then, in Txn VV22, create the relevant Output condition records, with different Communnication parameters (Printers) for each language. Note that this language field is different from the NAST language, though the values should be the same for your situation.
B) If custome driver program
The other solution is that if your driver (print) program that handles the output type IGFA is a custom program, you can update the NAST parameters (preferred, as it leaves an audit trail) or ITCPO structure. TDDEST is the field for the printer.
Let me know if this helps.
Cheers,
Bhanu
‎2005 Nov 16 6:19 AM
Hi,
When I am trying to update the NAST Parameters, It is updating in the print program,wheras the moment it leaves the print program the changes are not reflecting to the NAST structure. Also tried with ITCPO structure. Please suggest me.
‎2005 Nov 17 10:44 AM
Hi,
Is it a smartform or a script.If it is samrtforms,just check form interface.In the import parameters,there is a field user settings.By default it is X..just mark it as blank if it is X or mark it X if it blank and check.
Regards,
vivek
‎2005 Nov 15 10:19 AM
Hi
as per my knoledge in SAp scripts ,we can
in open_form
we have one option to change printer.
check it out.
all the best