‎2010 Jun 14 9:54 AM
Hi experts,
I am doing smartforms...for that i created one driver program....where i have wrote code like
REPORT ZPROGRAM_SMARTFORM.
data: itab type table of ekpo." with header LINE.
PARAMETERS: P_EBELN LIKE EKPO-EBELN.
DATA : fm_name type RS38L_FNAM.
SELECT * FROM EKPO INTO TABLE ITAB WHERE EBELN = p_ebeln.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME ='ZPO_PRINT'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
P_EBELN = P_EBELN
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = ITAB
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.
and IN smart forms in form interface import parameter is P_EBELN TYPE EKPO-EBELN AND TABLES AS ITAB LIKE EKPO....
when i am trying to execute the driver program it displays the error message as ' Invalid numbering type ().' in status bar...
can anybody please help me...
‎2010 Jun 14 10:54 AM
After both the fuction module you have the sy-subrc statement with out 'EQ' just check it..
You have it as IF sy-subrc 0 'EQ' is missing in this statement.
Before thinking about the issue as a big one just check for small things.
Regards,
Gopal
‎2010 Jun 14 10:28 AM
hi,
what is the number and the ID ( Message class) of the message?
Regards, luigi
‎2010 Jun 14 10:37 AM
Hi,
Thankq for giving reply....
Message no is SSFCOMPOSER600..can you please help me....where is the problem....
‎2010 Jun 14 10:54 AM
After both the fuction module you have the sy-subrc statement with out 'EQ' just check it..
You have it as IF sy-subrc 0 'EQ' is missing in this statement.
Before thinking about the issue as a big one just check for small things.
Regards,
Gopal
‎2010 Jun 14 11:08 AM
Hi gopal,
I have specified the same..but while pasting eq is missing....this issue is related to the smartform not the printing program.
thanks
‎2012 Feb 23 6:33 AM
I got solution to your problem. Problem exists in the Styles you are using. Go to your style which is being used in your smartform. Now go to the Paragraph Formatting. Check all your nodes falling under it. Now go to Numbering and outline tab ..then see Top outline Paragraph dropdown.. If anything is selected here.. deselect it. Activate your style. Activate your smartform. And you are done!
Edited by: mansoorahmed on Feb 23, 2012 7:34 AM