on 02-02-2011 7:39 AM
Dear Gurus,
I designed one smartform with 2 pages which are completely different.
When I tried to test the form by executing the driver program , I'm getting an error given below.
1)No output request open. Document processing not possible.
kindly look into it and plz guide me.
Thanks
Natasha SS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii,
1)driver program need not to be executed.
2)Save and activate program and give that program name as below.
3) save in NACE also.
REPORT ZSD_EXCISE_INVOICE.
TABLES : vbrk.
DATA : v_fm_name TYPE rs38l_fnam. "Form name
DATA : wa_nast TYPE nast,
v_screen TYPE c.
CONSTANTS : c_formname TYPE tdsfname VALUE 'smartform name'.
DATA : p_VBELN LIKE VBRK-Vbeln.
&----
*& Form entry
&----
FORM entry USING returncode us_screen.
DATA lw_field(20).
FIELD-SYMBOLS <fs_nast> TYPE ANY.
lw_field = '(RSNAST00)NAST'.
ASSIGN (lw_field) TO <fs_nast>.
IF sy-subrc <> 0.
MESSAGE 'Output Type Not Defined ' TYPE 'E'.
ENDIF.
wa_nast = <fs_nast>.
p_Vbeln = wa_nast-objky.
IF p_Vbeln IS INITIAL.
MESSAGE 'Excise Invoice Not Saved ' TYPE 'W'.
returncode = 5.
ELSE.
v_screen = us_screen.
PERFORM fetch_data. "Fetch data from database tables.
PERFORM call_form CHANGING returncode. "Call Smartform.
ENDIF.
ENDFORM. "entry
&----
*& Form call_form
&----
FORM call_form CHANGING returncode.
DATA : ssfctrlop TYPE ssfctrlop.
DATA : SSFCOMPOP TYPE SSFCOMPOP.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = v_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.
CALL FUNCTION v_fm_name
EXPORTING
P_VBELN = p_vbeln
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.
ENDFORM. " call_form
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.