2007 Aug 08 11:46 AM
When dealing with sap scripts.
I use the function module OPEN_FORM
If I dont pass the parameter "options".... what will be the default printer device
where is it taking the default device from???
I need help... Urgent
Thanks in advance!
Best regards,
Kranthi
2007 Aug 08 11:54 AM
Hi..
It will take the DEFAULT PRINTER from USER MASTER RECORD.
Tcode SU01.
Or
System menu -> user profile -> own data
and Select the Defaults Tab.
Here you can find the default printer name which is taken by OPEN_FORM
<b>Reward if Helpful</b>
When dealing with sap scripts.
I use the function module OPEN_FORM
If I dont pass the parameter "options".... what will be the default printer device
where is it taking the default device from???
I need help... Urgent
Thanks in advance!
Best regards,
Kranthi
2007 Aug 08 11:49 AM
2007 Aug 08 11:49 AM
say ur creating an order, the default printer is assigned to the order while creation. Now, when u use the script to print something using ur program, this default printer is taken into consideration and the same is printed.
2007 Aug 08 11:54 AM
Hi..
It will take the DEFAULT PRINTER from USER MASTER RECORD.
Tcode SU01.
Or
System menu -> user profile -> own data
and Select the Defaults Tab.
Here you can find the default printer name which is taken by OPEN_FORM
<b>Reward if Helpful</b>
2007 Aug 08 11:56 AM
2007 Aug 08 11:58 AM
plase go the sturctue ITCPO AND pass the value to this field TDDEST .
2007 Aug 08 12:00 PM
Hi,
<b>Print Options</b>
Different variants can be defined for the output via the parameter Options. The structure is described in table ITCPO. Some of the fields contained in this structure can be changed by the user via the print dialog.
<b>
Invalid options</b>
Invalid parameter values were passed in table ITCPO for the print options.
Possible errors:
An output device which does not exist was specified in field TDDEST.
Invalid characters were used for the page selection in field TDPAGESLCT
If u still have doubt, please check with tcode SM37 with the FM OPEN_FORM.
<b>Friendly Note:</b> You have many open threads and Plz close the threads if they are answered/solved and reward points to the people who are helping you by taking their valuable time apart from their regular activities
2007 Aug 08 12:01 PM
But if I havent given any device name, from where is the program taking the output printing device name????
2007 Aug 08 12:04 PM
If I dont give any value to the structure ITCPO...... what will be the default value and from where is the default value taken?
2007 Aug 08 12:12 PM
plase do like this
DATA : BEGIN OF OPTIONS.
INCLUDE STRUCTURE ITCPO.
DATA : END OF OPTIONS.
OPTIONS-TDDEST = P_TDDEST.
PARAMETERS : P_TDDEST LIKE TSP03-PADEST.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |