Skip to Content
avatar image
Former Member

Smartforms returns with internal error

Hi,

I am trying to send a fax with smartforms via message control, but after calling the function module an exception is called -> (unknown exception raised) internal error. I have got red traffic lights in the message protocol.

I can print the smartforms without problems.

I can print and fax the smartform with the same(!) print program and the same(!) formular for another message type.

Customizing has no errors. Sap notes search got no results. Strange...

I have just modified the generated function module to look for the error. The exception is called here at the very end of the function module:

IF CONTROL_PARAMETERS-NO_CLOSE = SPACE.

CALL FUNCTION 'SSFCOMP_CLOSE'

IMPORTING RESULT = %RESULT_CL

EXCEPTIONS OTHERS = 1.

IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.

JOB_OUTPUT_INFO = %RESULT_CL.

ENDIF.

Obviously, the SSF composer can't be closed. Why?

The parameters control_parameters-no_open and control_parameters-no_close are initial before calling the smartform function module.

Thanks for any hints!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 30, 2005 at 02:18 PM

    Hello Christian,

    Looking at function SSFCOMP_CLOSE, it seems that it will raise an error when ssfcstat-tdopen is false, indicating that for some reason, the processor has closed the form.

    What you could do is to debug and set a watchpoint on ssfcstat-tdopen (but only in the SSF processor, i.e. Local Watchpoint = X) in the first call to the SSF processor (function group STXBC).

    You can then see if at any point this variable is changed, and probably why.

    Regards,

    Martin

    Add comment
    10|10000 characters needed characters exceeded