2010 Aug 17 5:38 AM
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.
2010 Aug 17 6:02 AM
Hey the code looks fine,
The parameters formal & the actual parameters are equal just check with type of the structure.
Regards
Abhii
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.
2010 Aug 17 6:02 AM
Hey the code looks fine,
The parameters formal & the actual parameters are equal just check with type of the structure.
Regards
Abhii
2010 Aug 17 6:14 AM
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.
2010 Aug 17 6:31 AM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |