08-22-2007 12:07 PM
REPORT ZDEMO_FORM.
DATA: V_FORM_NAME TYPE rs381_fnam. "this line causes an error...below is the "error
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'.
EXPORTING
FORMNAME = 'ZDEMO_FORM'
IMPORTING
FM_NAME = V_FORM_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 V_FORM_NAME
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERRO = 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.
********************************************************************************************
when i activate this report
an error comes
type rs381_fnam is unknown
plz help and plz chek whether my report is correct...
08-22-2007 12:11 PM
Hi,
I see that you have declared v_form_name as type rs381_fnam.
But it is "RS38L_FNAM".
Try changing the type as rs38<b>L</b>_fnam....This should work..
Program seems to be correct.
<b>Reward points for helpful answers.</b>
Best Regards,
Ram.
08-22-2007 12:11 PM
Hi,
I see that you have declared v_form_name as type rs381_fnam.
But it is "RS38L_FNAM".
Try changing the type as rs38<b>L</b>_fnam....This should work..
Program seems to be correct.
<b>Reward points for helpful answers.</b>
Best Regards,
Ram.
08-22-2007 12:12 PM
08-22-2007 12:12 PM
Use the type
RS38L_FNAM.
DATA: V_FORM_NAME TYPE rs38l_fnam
Please mark points if the solution was useful.
Regards,
Manoj
08-22-2007 12:15 PM
now this gives an error
exporting shud b changed by export
plz help
08-22-2007 12:19 PM
Have u checked in forminterface of u r smartform is there any parameters u have mentioned........
reward points to all helpful answers
kiran.M
08-22-2007 12:29 PM
Remove the dot after the function module name in the CALL FUNCTION statement. Use this code:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZDEMO_FORM'
IMPORTING
FM_NAME = V_FORM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS =3.
Please mark points if the solution was useful.
Regards,
Manoj
08-22-2007 12:34 PM
WHEN I CLICK ON THE PRINT PREVIEW BUTTON
IT SAYS FILL ALL THE FIELDS BUT I DONT KNOW ANYTHING ABT OUTPUT DEVICE
PLZ TELL N THANX
08-22-2007 12:37 PM
You have to enter a output device name there. The output devices are maintained by Basis in the transaction SPAD. If you dont know any output device, you can use the standard output device LP01.
Please mark points if the solution was useful.
Regards,
Manoj
08-22-2007 12:46 PM