Skip to Content
author's profile photo Former Member
Former Member

runtime error when executing smartform in se38

hi,

i designed a smartform but when iam executing that using se38 am gettin runtime error.can anybody plz help me.

&----


*& Report ZDEMOPRG

*&

&----


*&

*&

&----


REPORT ZDEMOPRG.

DATA FNAME(30) TYPE C.

TABLES: LFA1.

DATA: BEGIN OF ITAB OCCURS 0.

INCLUDE STRUCTURE LFA1.

DATA: END OF ITAB.

SELECT-OPTIONS S_KUNNR FOR LFA1-KUNNR MEMORY ID 001.

SELECT * FROM LFA1 WHERE KUNNR IN S_KUNNR.

MOVE-CORRESPONDING LFA1 TO ITAB..

APPEND ITAB.

ENDSELECT.

CALL FUNCTION '/1BCDWB/SF00000006'

EXPORTING

FORMNAME = 'ZEXM_SMART'

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

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

plz help me

thanks

sudheer

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Oct 19, 2006 at 07:28 PM

    What is the runtime error?

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 08:20 PM

    First of all, you shouldn't be calling your form like this:

    CALL FUNCTION '/1BCDWB/SF00000006'

    When you transport your form to another system, the FM that is generated by your Smart Form will change. Please try like below:

     V_FORM_NAME = 'ZEXM_SMART'.
    
     CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
           EXPORTING
                FORMNAME           = V_FORM_NAME
           IMPORTING
                FM_NAME            = V_FM_NAME
           EXCEPTIONS
                NO_FORM            = 1
                NO_FUNCTION_MODULE = 2
                OTHERS             = 3.
    
      CALL FUNCTION V_FM_NAME
           EXPORTING  ....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2006 at 06:36 PM

    Hi,

    Check the program SF_EXAMPLE_01 of how the smartforms is called...The smartforms name is SF_EXAMPLE_01..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2006 at 05:12 AM

    Hi,

    Try this and reward points by clicking the star on the left of reply,if it helps.

    data: form_name type tdsfname value 'ZEXM_SMART'.

    data: fm_name type rs38l_fnam.

    ....

    TABLES: LFA1.

    DATA: BEGIN OF ITAB OCCURS 0.

    INCLUDE STRUCTURE LFA1.

    DATA: END OF ITAB.

    SELECT-OPTIONS S_KUNNR FOR LFA1-KUNNR MEMORY ID 001.

    SELECT * FROM LFA1 WHERE KUNNR IN S_KUNNR.

    MOVE-CORRESPONDING LFA1 TO ITAB..

    APPEND ITAB.

    ENDSELECT.

    call function 'SSF_FUNCTION_MODULE_NAME'

    exporting

    formname = form_name

    • 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

    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.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.