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

perform error

Former Member
0 Likes
615

Hi All, i'm using perform statement, i'm getting error as "difference between actual and formal parameter".

PERFORM F_LONG_TEXT TABLES tb_iava_data

tb_ltext_char

int_lngtxt

.

FORM f_long_text TABLES tb_iava_data STRUCTURE bapi1240_ihval

tb_ltext_char STRUCTURE zhses_char_ltext

int_lngtxt STRUCTURE wa_lngtxt

.

READ TABLE tb_iava_data INTO wa_iava_data WITH KEY

valuation_asstype = text-029.

IF sy-subrc = 0.

v_seqno = wa_iava_data-recno_root.

v_actn = wa_iava_data-chngstatus.

wa_lngtxt-chr_class = wa_iava_data-valuation_asstype.

wa_lngtxt-charname = text-030.

wa_lngtxt-person_spflag = c_grp.

APPEND wa_lngtxt TO int_lngtxt.

CLEAR wa_lngtxt.

CALL FUNCTION 'ZHSES_INC_LTEXT_READ'

EXPORTING

i_incactn = v_actn

i_increcn = v_seqno

TABLES

t_charact = int_lngtxt

t_ltext_char = tb_ltext_char

.

ENDIF.

ENDFORM.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

Hey the code looks fine,

The parameters formal & the actual parameters are equal just check with type of the structure.

Regards

Abhii

3 REPLIES 3
Read only

Former Member
0 Likes
582

Hey the code looks fine,

The parameters formal & the actual parameters are equal just check with type of the structure.

Regards

Abhii

Read only

Former Member
0 Likes
581

Hi,

You should create a line type for tables wa_lngtxt, like it is there in data dictionary for BAPI1240_IHVAL which is CCIHY_BAPI1240_IHVAL & for zhses_char_ltext (i think this is also a table & not structure) you can use same zhses_char_ltext.

FORM f_long_text TABLES tb_iava_data type CCIHY_BAPI1240_IHVAL

tb_ltext_char type zhses_char_ltext

int_lngtxt type z_wa_lngtxt (line type of wa_ingtxt).

endform.

Hope this helps.

Read only

Former Member
0 Likes
581

activation problem