Skip to Content
avatar image
Former Member

smartform error

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 22, 2007 at 11:11 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 11:12 AM

    Hi!

    It's RS38L_FNAM.

    Regards

    Tamá

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 11:12 AM

    Use the type

    RS38L_FNAM.

    DATA: V_FORM_NAME TYPE rs38l_fnam

    Please mark points if the solution was useful.

    Regards,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Aug 22, 2007 at 11:34 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Aug 22, 2007 at 11:46 AM

    THANX TO ALL OF U FOR UR VALUABLE ANSWERS

    Add comment
    10|10000 characters needed characters exceeded