Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

run time error while execute the program

Former Member
0 Likes
3,114

Dear Experts ,

I'm having the  runtime error while executing my program , kindly help me to correct . I have mentioned below as what error i got.

Runtime Errors         CALL_FUNCTION_UC_STRUCT

Except.                CX_SY_DYN_CALL_ILLEGAL_TYPE

Short text

     Type conflict during structure parameter transfer at CALL FUNCTION.

What happened?

     Error in the ABAP Application Program

     The current ABAP program "ZDLROUTSTANDING_COPY" had to be terminated because it

      has

     come across a statement that unfortunately cannot be executed.

Error analysis

     An exception occurred that is explained in detail below.

     The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was

      not caught in

     procedure "PDF" "(FORM)", nor was it propagated by a RAISING clause.

     Since the caller of the procedure could not have anticipated that the

     exception would occur, the current program is terminated.

     The reason for the exception is:

     In the function "/1BCDWB/SF00000080", the STRUCTURE parameter "IT_WORKS_SF" is

      typed in such a way

     that only actual parameters are allowed, which are compatible in Unicode

      with respect to the fragment view. However, the specified actual

     parameter "SFTWORKS" has an incompatible fragment view.

Missing RAISING Clause in Interface

    Program                                 ZDLROUTSTANDING_COPY

    Include                                 ZDLROUTSTANDING_COPY

    Row                                     876

    Module type                             (FORM)

    Module Name                             PDF

Trigger Location of Exception

    Program                                 ZDLROUTSTANDING_COPY

    Include                                 ZDLROUTSTANDING_COPY

    Row                                     894

    Module type                             (FORM)

    Module Name                             PDF

Source Code Extract

Line  SourceCde

  864 **            i_logo             = 'ENJOYSAP_LOGO'

  865 *            IT_LIST_COMMENTARY = I_LIST_COMMENTS1.

  866

  867 ENDFORM.                    "alv_top_of_page1

  868 *&---------------------------------------------------------------------*

  869 *&      Form  PDF

  870 *&---------------------------------------------------------------------*

  871 *       text

872 *----------------------------------------------------------------------*

873 *  -->  p1        text

874 *  <--  p2        text

875 *----------------------------------------------------------------------*

876 FORM pdf .

877

878 *  *** Smartforms & PDF ***

879

880   ssfctrlop-no_dialog = 'X'.

881   ssfctrlop-preview   = 'X'.

882   ssfctrlop-getotf    = 'X'.

883   ssfcompop-tddest = 'ERP7'.

884   DATA : mcheck LIKE sy-subrc.

885   CLEAR : fm_name.

886

887   "Get Function module name for given smartform

888   CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

889     EXPORTING

890       formname = 'ZSFDLOS1'

891     IMPORTING

892       fm_name  = fm_name.

893

>>>>   CALL FUNCTION fm_name

895   EXPORTING

896         control_parameters   = ssfctrlop

897         output_options       = ssfcompop

898         mrefno               = mrefno

899 *       P_TITLE              = MTITLE

900   IMPORTING

901         document_output_info = st_document_output_info

902         job_output_info      = st_job_output_info " IT_OTF_DATA

903         job_output_options   = st_job_output_options

904   TABLES

905         it_works_sf          = sftworks

906   EXCEPTIONS

907         formatting_error     = 1

908         internal_error       = 2

909         send_error           = 3

910         user_canceled        = 4

911     OTHERS               = 5.

912

913   IF sy-subrc NE 0.

Advance Thanks

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,190

Check the exception reason available in error analysis.

Read only

Former Member
0 Likes
2,190

you need to create a structure of type sftworks and call it in your smartform.I think there is some mistake in this part of code.

Read only

0 Likes
2,190

already i have created the structure for sftworks.

(i.e)

DATA : sftworks LIKE sfworks OCCURS 100 WITH HEADER LINE,

        wa_sftworks LIKE sfworks.

Read only

0 Likes
2,190

check if you have mentioned exporting importing tables properly in Smartform.

Like ur exporting mrefno then this must be importing in smartform.check for all cases

Read only

Former Member
0 Likes
2,190

Kiruphaga,

Check whether the type of sftworks in both program and smart form are of same type. If it is different, then it might throw error. I think, the type you of table you are passing in program is different from smart form, thats why the error. Check it out.

Thanks!

Read only

satyabrata_sahoo3
Contributor
0 Likes
2,190

This is a clear and known error. Check for type conflicts of import/export/table parameters of "CALL FUNCTION fm_name " .

-Satya

Read only

arindam_m
Active Contributor
0 Likes
2,190

Hi,

Check if  the tables it_works_sf and sftworks have same structure and both are defined as internal tables. They should match exactly.

The problem occurs in the below statement:

it_works_sf      = sftworks

Cheers,

Arindam

Read only

krishnasahu
Newcomer
0 Likes
1,970

krishnasahu_0-1724072510156.png

I am getting error at time creation warehouse task. Plz any help me

 

Read only

0 Likes
1,965

Please ask a new question instead of reviving an old message about Unicode and structure definition compatibilities.