Skip to Content
0
Former Member
May 19, 2015 at 03:15 AM

Smart form driver prog- Short Dump

37 Views

hI,

I am an SAP functional consultant trying to learn a lil of ABAP. i was trying calling Smart Form using driver program but i am getting a dump.

What i have done:-

I have created a smartform by the name of Ztest_form. Saved, checked and activated it. An FM is generated.

I come ot SE38 and create a prog.

I defined the data :- FM_Name type RS38L_fnam.

I call the the generated FM using the Pattern button.

then i call the Function SSF_FUNCTION_MODULE_NAME

then I change the name of the FM generated due to the activation of the smartform with "FM_Name". Now it looks like as below:

REPORT ZPROG_FORM.

Data: FM_NAME type rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZTEST_FORM'

* 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'

* EXPORTING

* 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 =

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

When I save, Check and activate it, everything is fine, but when i test it i get the dump attached above.

Can you please help me with the solution. Would request you to please consider that i am not a technical guy.

SAP.

Attachments

Dump.PNG (31.6 kB)