on 06-17-2009 7:57 AM
Hi All,
I am calling the below function module from driver pgm, but it returns sy-subrc value 0. and not going to the smartfor. Can anybody tell what is the reason for that.
CALL FUNCTION FM_NAME
EXPORTING
I_BUDAT = I_BUDAT
I_IBLNR = I_IBLNR
I_PLANT = I_PLANT
I_ADRESS = I_ADRESS
I_POST_CODE = I_POST_CODE
I_HOUSE_NUM = I_HOUSE_NUM
I_CITY = I_CITY
I_COUNTRY = I_COUNTRY
IMPORTING
JOB_OUTPUT_INFO = LWA_JOB_OUTPUT
TABLES
z_i_item = z_i_item
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
Thanks,
Asha
Hi,
The function module which has been generated by the smartform is not getting triggered.Activate the
smartform call the function module in the reoprt program.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Execute the smartform from the smartforms Tcode and there in the table give some junk data both in the table and the template and check the smartform. For table u have to give more number of records for that just give one record and then click on the Double line tab which is present in the menu bar so that it keep on increasing the number of records then check the print preview so that you can get the real error.
Hope this will help you,
Regards,
Venkat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Also sometimes this kind of error occurs if the transport of the smartform has not happened properly to the other systems.
So, if you happened to transport to testing system and it works fine in the developement system then try to re-transport the form and then generate the smartform in the test system and check.
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check in debugging mode where exactly it occurs by debugging the FM generated for the smartform.
then check for the particular node in the smartform.
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can call the smartform by 2 ways.
1. first calling the FM 'SSF_FUNCTION_MODULE_NAME' by passing smartform name and get the generated function module name. then call the FM by using this name.
2. Directly you can call by using the FM <fm name> which you will get after activation of the smartform.
But preferable is the 1st one.
Thanks,
Suma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Generally Formatting Error exception occurs due to mismatch of the widths of windows with templates/tables.
check all the templates cell widths in ur window which should be exactly match with ur window width. also check the sum heights of all templates should not be greater than the window height.
in the same way, check the table cells width with window width. it should be matched..
for above cases generally we get Formating Error..
Hope it helps!!
Rgds,
Pavan
Hi,
Refer the below code
DATA: wa_fm_name TYPE rs38l_fnam,
wa_formname TYPE tdsfname.
wa_formname = 'Z_MM_SSF_PO'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = wa_formname
IMPORTING
FM_NAME = wa_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 wa_fm_name "'/1BCDWB/SF00000029'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
v_ebeln = v_ebeln
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.