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

Regarding layout open_form function module

Former Member
0 Likes
376

Hi All,

I am getting sy-subrc eq 0. for below code.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = c_printer

dialog = c_x

form = c_fonam

language = c_d

OPTIONS = e_itcpo

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

mail_options = 6

archive_error = 7

invalid_fax_number = 8

more_params_needed_in_batch = 9

spool_error = 10

OTHERS = 11.

IF sy-subrc NE 0.

MESSAGE e206(zb).

ENDIF.

One more thing when, we are passing dialog = c_x , weare getting popup to select print or printpreview, but when we are

giving dialog = c_space, it is not giving anypopup.

please help me out here

regards,

vinesh.

Edited by: Siddivinesh Jogu on Apr 4, 2008 7:54 PM

2 REPLIES 2
Read only

Former Member
0 Likes
359

hi ,

if u r not giving the value to the dialog ...it will not take any screen to display the pop up...it u give it then it will take the default screen and it will shown the pop up..

regards,

venkat.

Read only

vinod_vemuru2
Active Contributor
0 Likes
359

Hi Siddivinesh,

The purpose of this parameter(Dialog) is to control whether a dialog box appears before output to the printer. The user can set various spool parameters for the output in this window.

Check function module documentation for more help. If it didn't help then u can try where used list of this FM. U can go to any program and check how they are using this FM.

Check below link also.

http://help.sap.com/erp2005_ehp_03/helpdata/EN/47/bb786c75e5e6499ea60111aaa659e2/frameset.htm

Thanks,

Vinod.