‎2006 Mar 17 7:20 AM
Hi frnds,
cud anyone tell me how i can capture the values i enter in the print option dialog in my program ?
Im using 'open_form' func. module in my prog. During the execution i get the print option dialog, where i enter the printer name and other attributes. i want to captuer these values in my program... can i by any structure ??
points assured to all..
madan..
‎2006 Mar 17 7:24 AM
Usually we enter these values on selection screen. We declare parameters for the same - specially for the priinter name.
Could it be possible for you to handle in this way.
‎2006 Mar 17 7:24 AM
Usually we enter these values on selection screen. We declare parameters for the same - specially for the priinter name.
Could it be possible for you to handle in this way.
‎2006 Mar 17 7:26 AM
hi ash,
i want to capture the values i enter in the print dialog only... no selection screen allowed..
madan..
‎2006 Mar 17 7:48 AM
try using this FM to get the print parameters
GET_PRINT_PARAMETERS
‎2006 Mar 17 7:39 AM
Hi
I think u can do it by declaring an internal table like ITCPO(which is the table for print options).
hope this helps,
thanks,
priya
‎2006 Mar 17 7:42 AM
hi priya,,
i want to capture the value from the dialog, i dont want to pass the value to the dialog..
the struct. itcpo is used to pass the value to the dialog..
regards,
Madan....
‎2006 Mar 17 7:52 AM
Hi Madan,
Yes first u would be passing the values to the dialog right and then u can loop at the internal table declared like itcpo and bt loop and endloop u will be writing the output stmts.
‎2006 Mar 17 7:59 AM
priya,
Im not to pass the values to the dialog. i vil have to get the values entered by the user for the first time. So that for the second time the user need not enter the values again in the dialog.. this will be taken care by me, by passing the values to the struct itcpo, for the second print onwards..
madan.....
‎2006 Mar 17 7:46 AM
Hi Madan,
function OPEN_FORM has an optional parameter OPTIONS. You need to provide your print options in this structure, then the print popup will not show up.
Regards,
Claus
‎2006 Mar 17 7:59 AM
Hi Madan,
try to use function GET_TEXT_PRINT_PARAMETERS instead. This function gives you a popup like you see with OPEN_FORM but just returns the value in structure NEWOPTIONS. Then call OPEN_FORM as often as you need with the values you received from GET_TEXT_PRINT_PARAMETERS.
Regards,
Claus
‎2006 Mar 17 8:13 AM
Hi madan,
1. simple.
2.
<b>DATA : result LIKE itcpp.</b>
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = 'ZAM_TEMPSS1'
IMPORTING
<b> RESULT = RESULT</b>
exceptions
canceled = 1.
3. Result will contain the user selected parameters.
regards,
amit m.
‎2006 Mar 17 8:31 AM
U can use GET_PRINT_PARAMETERS which is the right way to modify print parameters. U can also set param. to avoide popup. Go to FM and press Function module documentation for more help.