Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

print

madan_ullasa
Contributor
0 Likes
1,199

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..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,169

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.

11 REPLIES 11
Read only

Former Member
0 Likes
1,170

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.

Read only

0 Likes
1,169

hi ash,

i want to capture the values i enter in the print dialog only... no selection screen allowed..

madan..

Read only

0 Likes
1,169

try using this FM to get the print parameters

GET_PRINT_PARAMETERS

Read only

Former Member
0 Likes
1,169

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

Read only

0 Likes
1,169

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....

Read only

0 Likes
1,169

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.

Read only

0 Likes
1,169

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.....

Read only

claus_wallacher
Product and Topic Expert
Product and Topic Expert
0 Likes
1,169

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

Read only

claus_wallacher
Product and Topic Expert
Product and Topic Expert
0 Likes
1,169

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

Read only

Former Member
0 Likes
1,169

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.

Read only

Former Member
0 Likes
1,169

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.