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

OPEN_FORM

former_member799868
Participant
0 Likes
1,303

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

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
1,253

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,253

goto se37 give open_form n goto fm documentation.

Sameer

Read only

Former Member
0 Likes
1,253

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.

Read only

varma_narayana
Active Contributor
0 Likes
1,254

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>

Read only

former_member799868
Participant
0 Likes
1,253

How do we assign the default print device

Read only

Former Member
0 Likes
1,253

plase go the sturctue ITCPO AND pass the value to this field TDDEST .

Read only

Former Member
0 Likes
1,253

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

Read only

former_member799868
Participant
0 Likes
1,253

But if I havent given any device name, from where is the program taking the output printing device name????

Read only

former_member799868
Participant
0 Likes
1,253

If I dont give any value to the structure ITCPO...... what will be the default value and from where is the default value taken?

Read only

Former Member
0 Likes
1,253

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.