Application Development 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: 

type problem in formal parameters

Former Member
0 Kudos

Hi gurus

data dec.

FORM fill_hd_adr_partadd_fin

USING is_bil_outp_dbdata TYPE lbbil_outp_dbdata

is_print_data_to_read TYPE lbbil_print_data_to_read

ls_vbrk LIKE LINE OF is_bil_outp_dbdata-vbrk

if_parvw LIKE nast-parvw

if_parnr LIKE nast-parnr

CHANGING es_bil_invoice TYPE lbbil_invoice.

  • local field symbol for the loop at IS_BIL_OUTP_DBDATA-VBPA.

FIELD-SYMBOLS <fs_vbpa> TYPE LINE OF lbbil_outp_dbdata-vbpa.

This code showing error

PERFORM fill_hd_adr USING <fs_vbpa>

ls_vbrk

tpar-nrart

CHANGING es_bil_invoice-hd_adr

error is

In PERFORM or CALL FUNCTION "FILL_HD_ADR", the actual parameter"<FS_VBPA>" is incompatible with the formal parameter "IS_VBPA".

2 REPLIES 2

Former Member
0 Kudos

Hi,

write CASTING at the end of the assignment.

then we can free this error

check this link

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3930358411d1829f0000e829fbfe/content.htm

rgds,

bharat.

Message was edited by:

Bharat Kalagara

Former Member
0 Kudos

Hi Sandeep,

Make the type of <fs_vbpa> as lbbil_outp_dbdata.

U have to maintain the sequence while passing parameters.

check it out.

Reward points if helpful.

Regards,

Hemant