‎2008 Apr 07 11:08 AM
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
‎2008 Apr 07 11:14 AM
i think dere is some prblm in ur exporting parameters....
if u could tell the parameter values...it would help
regards
winnie
‎2008 Apr 07 11:22 AM
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.
‎2008 Apr 07 11:36 AM
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.
‎2008 Apr 07 12:10 PM
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.
‎2008 Apr 09 6:05 AM
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