Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

smartform error

Former Member
0 Kudos

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...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

9 REPLIES 9

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi!

It's RS38L_FNAM.

Regards

Tamá

Former Member
0 Kudos

Use the type

RS38L_FNAM.

DATA: V_FORM_NAME TYPE rs38l_fnam

Please mark points if the solution was useful.

Regards,

Manoj

0 Kudos

now this gives an error

exporting shud b changed by export

plz help

0 Kudos

Have u checked in forminterface of u r smartform is there any parameters u have mentioned........

reward points to all helpful answers

kiran.M

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

THANX TO ALL OF U FOR UR VALUABLE ANSWERS