Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.