cancel
Showing results for 
Search instead for 
Did you mean: 

CALL FUNCTION (lv_fm_name) returns Exception as system_error .

Former Member
0 Kudos

Hello Experts,

  

  The following code returns system error. What is inconsistent in the system so that it is throwing this error ?

CALL FUNCTION lv_fm_name
         EXPORTING
           /1bcdwb/docparams  = fp_docparams
           quote_details      = lt_pdf_info
         IMPORTING
           /1bcdwb/formoutput = output
         EXCEPTIONS
           usage_error        = 1
           system_error       = 2
           internal_error     = 3
           OTHERS             = 4.

Thank and Regards,

Nikhil Kulkarni

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nikhil,

Are you able to execute your Form directly from SFP ? If it is not working then there can be static issues in your form. For instance - Issues with Text module binding, Variable binding, binding variables which do not exist, using unknown paragraph or character format in Text modules, etc

Please check the link suggested by Paul if there are no issues from static side.

Thanks,

Ravinder

Former Member
0 Kudos

Hello Ravindeer,

   Now it is showing sy-subrc eq 1 , that is Usage error.

Another thing, if i execute the form directly then i see one different Function module name and while executing from Driver Program i see a different Function module name .

Thanks and Regards,

Nikhil Kulkarni

varun_vadnala3
Active Participant
0 Kudos

Hello Nikhil,

Place a break point in the dynamic generated FM. And debug you will find the issue.

The dynamic FM is obtained by executing adobe form from SFP txn.

Note 717568 contains

additional information regarding the analysis of runtime errors.

Rgds,

Varun

Former Member
0 Kudos

Hello Varun,

CALL FUNCTION 'FPCOMP_FORM_START'
   EXPORTING
     i_docpar       = %docpar
   EXCEPTIONS
     usage_error    = 1
     system_error   = 2
     internal_error = 3
     OTHERS         = 4.
%fpcomp_error.

inside the dynamic call of Function module, it is giving usage_error. SOme times it gives System error also.is there any problem in the layout ?

Thanks and Regards,

NIkhil Kulkarni

varun_vadnala3
Active Participant
0 Kudos

Please check the input docparams sturcture to the FM.

Former Member
0 Kudos

Hello Varun,  

  I am passing the following details.

      fp_docparams-langu   = 'EN'.
       fp_docparams-country = 'US'.
       fp_docparams-fillable = ''.

** Now call the generated function module
       CALL FUNCTION lv_fm_name
         EXPORTING
           /1bcdwb/docparams  = fp_docparams
           quote_details      = lt_pdf_info

         IMPORTING
           /1bcdwb/formoutput = output
         EXCEPTIONS
           usage_error        = 1
           system_error       = 2
           internal_error     = 3
           OTHERS             = 4.

Are these enough ?

Thanks and Regards,

Nikhil Kulkarni

Former Member
0 Kudos

Hi Kulkarni,

First, please check it AGAIN to avoid the error by oversight. Maybe there are two forms with VERY similar names.

Secend, mayby it is a generation error. Try to activate again and see carefully if the status line of layout designer reports any error.

Cheers,

Tao Lin

paul_max1
Explorer
0 Kudos