on 04-22-2008 6:00 AM
Hi Friends
spool is not getting created for the below code:
p_sf_name = 'ZPO'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = p_sf_name
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
wa_outop-tdimmed = 'X'.
wa_control_parameters-no_dialog = 'X'.
wa_control_parameters-device = 'PRINTER'.
wa_control_parameters-preview = ''.
wa_control_parameters-langu = 'EN'.
wa_outop-tdarmod = 1.
wa_outop-tdimmed = 'X'.
CALL FUNCTION fm_name
EXPORTING
output_options = wa_outop
user_settings = space
wa_label_data = wa_label
control_parameters = wa_control_parameters
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Please help.
Thanks
Ramesh
Hi friends
after executing CALL FUNCTION fm_name i am getting Sysubrc = 3. (send_error = 3)
Please help me.
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = tnapr-sform
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH : spooloutput-spoolids.
CALL FUNCTION fm_name
EXPORTING
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
iv_vbeln = gv_vbeln
iv_repeat_flag = v_n_rep_flag
IMPORTING
job_output_info = spooloutput
tables
it_item_line_s = <table name>
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
before fm_name u need to refresh spool s and then in fm_name fm u need to import spool nos
sample code : https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d...
Hi,
Please check this thread for sample code and solution.
/community [original link is broken]
Regards,
shiva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.