cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Runtime errors for smartforms in Quality.

former_member212002
Active Contributor
0 Kudos

| The function module " " is called,

| but cannot be found in the library.

|

| Error in the ABAP Application Program

|

| The current ABAP program "ZMMRFQ_SERVICE" had to be terminated because it has

| come across a statement that unfortunately cannot be executed.



 653|  SELECT SINGLE bedat FROM ekko INTO edate WHERE ebeln = p_ebeln.                           
|  654|ENDFORM.                    " get_data                                                      
          
|  663|FORM smartform .                                                                            |
|  664|  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'                                                  |
|  665|      EXPORTING                                                                             |
|  666|        formname                 = 'ZMM_RFQ_SERVICE'                                        |
|  667|*   VARIANT                  = ' '                                                          |
|  668|*   DIRECT_CALL              = ' '                                                          |
|  669|      IMPORTING                                                                             |
|  670|        fm_name                  = fm_name                                                  |
|  671|      EXCEPTIONS                                                                            |
|  672|        no_form                  = 1                                                        |
|  673|        no_function_module       = 2                                                        |
|  674|        OTHERS                   = 3.                                                       |
|  675|                                                                                |
|  676|  IF sy-subrc <> 0.                                                                         |
|  677|    WRITE: / 'ERROR 1'.                                                                     |
|  678|* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO                                         |
|  679|*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.                                         |
|  680|  ENDIF.                                                                                |
|  681|                                                                                |
|  682|*loop at t_final.                                                                           |
|>>>>>|  CALL FUNCTION fm_name                                                                     |
|  684| EXPORTING                                                                                |
|  685|                                                                                |
|  686|                                                                                |
|  687|  control_parameters         = control                                                      |
|  688|    output_options             = output_options                                             |
|  689|    user_settings              = space  "'X'                                                |
|  690|                                                                                |
|  691|*    sum                    = sum                                                           |
|  692|                                                                                |
|  693|*    bdoc                     = bdoc                                                        |
|  694|                                                                                |
|  695|*     l_tlines1    =   l_tlines1                                                            |
|  696|*      l_tlines2    =   l_tlines2                                                           |
|  697|                                                                                |
|  698|*      l_tlines3    =   l_tlines3                                                           |
|  699|*                                                                                |
|  700|*       l_tlines4    =   l_tlines4                                                          |
|  701|*                                                                                |
|  702|*       l_tlines5    =   l_tlines5                                                          |
----------------------------------------------------------------------------------------------------

Any kind of help or inputs will be appreciated.

Regards,

Abhinab Mishra

Edited by: Abhinab Mishra on Sep 4, 2009 2:52 PM

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member212002
Active Contributor
0 Kudos

The problem was in structure of the itab used in the smartforms...

Resolved on own.. Closing the thread...

Former Member
0 Kudos

Hi,

put a break point at FM 'SSF_FUNCTION_MODULE_NAME' and check what is the value you are gettting in variable fm_name, then go to SE37 and check the FM name in fm_name is available or not..

Hope it helps!!

Rgds,

Pavan

former_member212002
Active Contributor
0 Kudos

it is not getting anything.

It is NULL(SPACE).

Now what should i do???

Regards,

Abhinab Mishra

Former Member
0 Kudos

Hi,

then check whether the name of SF 'ZMM_RFQ_SERVICE' which you r passing to FM 'SSF_FUNCTION_MODULE_NAME' is same as you created in Smartforms Tranx...if both r same check whether the Smartform is available r not? i guess there might b passing a wrong Smartform name..

Rgds,

Pavan

Former Member
0 Kudos

Hi,

Check your smart form has been transported into Quality or not. I think this problem gets triggering when the smart form is not available in Quality server.

former_member212002
Active Contributor
0 Kudos

Thanks for the quick replies.

But FYI, the form has already been transported.

Is there any that needs to be done to clear this exception.

Regards,

Abhinab Mishra

Former Member
0 Kudos

Hi,

I don't think you have transported your form 'ZMM_RFQ_SERVICE' . Check it in quality system

Regards