cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Smarttform

Former Member
0 Kudos

Hi all

i created a smartform in the Z format.How can i compile it.It is not a standard smartform.Please tell me how to copile the smartform.If needed please give me the driver program to run a smartform

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

get the smartform function module name and call the function module name in your program.

Example:

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZZZ_TEST1'

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

Close the thread if your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

Hi

Please tell me how 2 get the smartform function module name also give an example code dat will b gr8

Vijay

former_member196280
Active Contributor
0 Kudos

goto smartform Tcode, give your smartform name,

Display, from menu goto Environment--> function module name.

copy the name that is given in the pop-up...

goto SE38 create a new program, click on pattern and next to function module paste the above copied name... ok.. pass all parameter if any... execute....

or follow the above process... which is told above...

I guess your question is answered, close the thread if answered.

Regards,

SaiRam

Answers (0)