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

smartforms

hi,

I am working with one smartform.My Zprogram is as follows .........but when I am trying to execute it the program is going to dump at the function module.........what is the problem..........?Can anyone help me out.......

Thanks in advance

Zprogram for a smartform

tables:gmgr,proj,prps.

PARAMETERS: p_gnbr like gmgr-grant_nbr.

data:

l_wbs_element like gmgr-wbs_element.

data: t_prps type prps.

data fm_name type RS38L_FNAM.

*Read WBS element

SELECT single wbs_element into l_wbs_element

FROM gmgr

WHERE grant_nbr = p_gnbr.

if sy-subrc = 0.

SELECT single * into t_prps

FROM prps

WHERE pspnr = l_wbs_element.

endif.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting formname = 'ZRMPS_GM_PAF'

  • variant = ' '

  • direct_call = ' '

importing fm_name = FM_NAME

exceptions no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

  • error handling

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

exit.

endif.

call function '/1BCDWB/SF00000006'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

t_prps = t_prps

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 02:06 PM

    Hi,

    Instead fo calling call function '/1BCDWB/SF00000006' call the FM_NAME directly, and your code seems ok, can you check the Smartform code

    Regards

    Sudeer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      thanks for all...........

      i have checked my smartform .............and there is a problem......that parameter is declared somewhere else..........I removed it and executed...........it's working.

      so once again thanks for all

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.