cancel
Showing results for 
Search instead for 
Did you mean: 

For execution error

former_member423024
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

check this link.

[;

[;

Answers (1)

Answers (1)

Former Member
0 Kudos

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