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 Member
0 Likes
645

Hi Experts,

Below is the my code for open_form function module, here the problem is I am not getting any popup, what we get regularly .

MOVE c_x TO e_itcpo-tdnewid.

MOVE c_x TO e_itcpo-tdimmed.

MOVE c_x TO e_itcpo-tdpreview.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = c_printer

dialog = c_space

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.

regards,

vinesh

5 REPLIES 5
Read only

Former Member
0 Likes
616

i think dere is some prblm in ur exporting parameters....

if u could tell the parameter values...it would help

regards

winnie

Read only

Former Member
0 Likes
616

In the dialog parameter set it as 'X' instead of space.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = c_printer

dialog = '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

Reward if useful.

Read only

0 Likes
616

Hi Richa/ALL.

Thankz

now, I am getting the popup, but here the problem is , when I am running the transaction VT02, this print program will trigger, but here, it is going to dump, after OPEN_FORM, i am getting sy-subrc =9 ..Please let me know , what would be the reason.

regards,

vinesh.

Read only

0 Likes
616

In order to avoid dump, check sy-subrc just after open_form i.e.

Call function 'OPEN_FORM'

---

---.

If sy-subrc <> 0.

endif.

Secondly, if sy-subrc = 9 then some parameters might be missing.

Try to comment out parameter ITCPO as it seems to me that some parameters are missing while passing the Print information. If it works then you need to check this structure.

You can set it on the dialog screen.

Read only

Former Member
0 Likes
616

HI All.

I am still facing problem of SY-SUBRC = 9, I am requesting

all , please help me , it is very urgent..

I am facing this problem, when i am going to save the transaction, at that time,my print program will be called , at the time open_form is calling I am getting sy-subrc - 9. But when I am going directly issuing output, I am not facing any problem.

regards,

vinesh.

Edited by: Siddivinesh Jogu on Apr 9, 2008 10:55 AM