on 02-01-2007 6:36 AM
Hi,
while posting the PO in ME22N, we are getting Error in OPEN_FORM for document 4500000040. Is this problem with the smartforms?
how to debug the smartforms?
regards
Gokul
Hi Gokul,
Check the output type NEU in NACE Transaction code. Which Smartform name is given. If you have given smartform name as well as script name then remove one of them. If you are using smartform then maintain the smartfom name only.
For debugging SMARTFORM create a program lines in smartfrom & write Hardcoaded BREAK-POINT.
When you will try to print the smartfrom from transaction code ME22n smartform will be executed in DEBUGGING mode.
Ashvender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gokul, I had same problem with smartforms... I am using a copy from smartform /SMB40/MMPO_A and in transaction NACE for message NEU I put in the field program /SMB40/FM06P and the smartform work perfectly. When you go to transaction NACE, select EF Purchase Order, Output Types, NEU Processing Routines... There you can configure the program, form and smartform.
In the program I have: /SMB40/FM06P
FORM routine: ENTRY_NEU
Form: empty
Smartform: copy from /SMB40/MMPO_A
For smartform /SMB40/MMPO_L is the same program
I hope help you
Rosa Rodríguez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi gokul,
...<b> i think as per u r settings u r using the driver program to trigger SAPScript... u r passing the SMARTFORM name to the OPEN_FORM</b>
but the OPEN_FORM is used to call the Scripts
first check the NACE configuration for the out put type u ra using give correct driver program and SMARTFORM name. if u r sure about u r print program name then give the correct FORM ROutine..in NACE.
to call the SMARTFORMs u have call the
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'zxxxsmartformname'
IMPORTING
fm_name = fp_v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE e107 WITH fp_c_formname.
ENDIF.
CALL FUNCTION fp_v_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = fp_st_control_parameters
user_settings = space
output_options = fp_st_output_options
wa_vbdkr = fp_st_vbdkr
IMPORTING
job_output_info = l_it_ssfcrescl
job_output_options = l_it_ssfcresop
TABLES
it_item = fp_it_item_final
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gokul,
In the Message types for znew give the right smart form print program name , your problem will be solved.
spro -> Materials Mangement -> purchasing -> messages -> output control -> message types -> define message types for PO , in there for Zneu give Program name as /SMB11/FM06P OR /SMB40/FM06P ,depending on from which package you copied.
and give the name of the smart form as well in there.
Hope this will works out.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the error? Does the form exist?
Rob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gokul,
To Debug the smart forms.There are two ways.
1)Take the smart form generated functionmodule and debug as u debug in Tcode SE37
2)By making use of the Tcode SFTRACE and get in switch on the trace,then it will display all smartforms under ur userid.select the one u needed,and debug it.
Reward points if useful.
Thanks
seshu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.