Smartforms returns with internal error
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.
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!
I have just gone over the thread again to try and get all the facts straight.
You say that faxing with the same program and form with another output type works. That means that your faxing is set up correctly.
You say that you are using a custom output type (ZAN01). How is it different from AN00?
Also, are you using the standard print programs, or have you customized them? (You mention commenting out some parameters in the dynamic function call; are you making a modification or did you copy the original programs?).
Another thing that is confusing me a little is that you mention a smartform problem, but seem to be using a Layout Set (i.e. old SAPScript). What are the values of your customizing entry for ZAN01/2 (2 being method Fax). (Are you sure the output type is ZAN01? I see the field as being only four characters long.
I am sorry for all these questions, but I am a little confused now, and just trying to work out how things stand.