Hi Experts,
I have a query similar to your original post but don't know exactly how to proceed.
When i am trying to issue Delivery output for T code VL02N after selecting Output type e.g. 'ZABC'
and then selecting print preview, it gives following error.Please see the screen shot :
I have checked the driver program as well as smartform thoroughly , wa_name has not been declared any where.
I tracked down the place of error and it coming from FM 'SSFCOMP_PROCESS_DOCUMENT'
CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'
EXPORTING HEADER = %HEADER
DOCSTRUC = %DOCSTRUC
STARTPAGE = CONTROL_PARAMETERS-STARTPAGE
ARCHIV_INDEX_TAB = %ARCTAB
MAIL_APPL_OBJECT = MAIL_APPL_OBJ
IMPORTING RESULT = %RESULT_PD
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
DOCUMENT_OUTPUT_INFO = %RESULT_PD.
SY-SUBRC becomes 1, consequently it raises above error using subroutine %RAISE.
Interestingly, when i pass same data to the FM for different Outbound Delivery No., it does not show any error.
In this case SY-SUBRC is EQ zero. and smartform print preview gets processed successfully.
Dont know how to track down the error, please let me know the solution to eliminate this.
Best Regards.
Saurabh Singh