on 04-02-2009 4:41 AM
hi all,
i was stuck with an error while executing a smartform, th e report output is comming for some documents but it is not comming for some documents and it is showning the exceptions as 2
in function module SSFCOMP_PROCESS_DOCUMENT while calling the form my code is like this..
LOOP AT ITAB.
AT FIRST.
CONTROL_PARAMETERS-NO_CLOSE = 'X'.
ENDAT.
AT LAST.
CONTROL_PARAMETERS-NO_CLOSE = SPACE.
ENDAT.
IF RAD1 EQ ' '. " rad1 is for print , rad 2 is for pdf download.
*
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = ' '.
CONTROL_PARAMETERS-GETOTF = 'X'.
OUTOP-TDDEST = 'LP01'.
*
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = ''
V_VBELN = ITAB-VBELN
V_PRIOR_INVAMT = V_PRIOR_INVAMT
V_CUR_PO_TOT = V_CUR_PO_TOT
I_GST = I_GST
I_QST = I_QST
I_HST = I_HST
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = TAB_OTF_DATA
JOB_OUTPUT_OPTIONS =
TABLES
T_FINAL = T_FINAL
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.
**
TAB_OTF_FINAL[] = TAB_OTF_DATA-OTFDATA[].
ELSE.
*********errror triggering from the below function module after else.........
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = 'X'.
CONTROL_PARAMETERS-GETOTF = 'X'.
OUTOP-TDDEST = 'LP01'.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = 'X'
V_VBELN = ITAB-VBELN
V_PRIOR_INVAMT = V_PRIOR_INVAMT
V_CUR_PO_TOT = V_CUR_PO_TOT
I_GST = I_GST
I_QST = I_QST
I_HST = I_HST
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = TAB_OTF_DATA
JOB_OUTPUT_OPTIONS =
TABLES
T_FINAL = T_FINAL
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.
ENDIF.
-
please help me it is telling that as internal error for the exception 2.
regards,
venkat
Hi,
I m Deepak, i getting the same error while running print prog.
When i debuged the smartform i get the return code sy-subrc = 1
in internal function module SSFCOMP_PROCESS_DOCUMENT in smartform function module.
And the error i m getting is - Field #13; does not exist in form.
How can i solve this problem.
Please guide me regarding this as u already solved it.
Regards,
Deepak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ive solved it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.