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

rfc doubt

former_member224405
Participant
0 Likes
999

hi folks im try to create an invoice by calling a bapi incoming invoice i have declared fiscal year still my programe lands into to dump stating

Function module "BAPI_INCOMING_inVOICE_CREATE" was called

with the parameter "FISCALYEAR".

This parameter is not defined. i have defined the paratmeter fiscalyear can u let me know who should i troubl shoot this .

regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
957

Hi Anjum,

Could you please tell what type of error you are getting in the BAPI .

And the correct funtion module is BAPI_INCOMINGINVOICE_CREATE

Not

BAPI_INCOMING_inVOICE_CREATE

Regards,

Amitteja

7 REPLIES 7
Read only

Former Member
0 Likes
957

hi....

first go into the function module to see the data type of the FISCALYEAR parameter and its length.

now in your program declear an object having same data type and length as that of FISCALYEAR(of function module).

assign the value to this object and use it in function module.

you willnot get dump after that

regards

Edited by: Mohit Kumar on Feb 24, 2009 12:56 PM

Read only

Former Member
0 Likes
957

check if you have passed the fiscal year under the right sctino meaning under exporting only...

Read only

Former Member
0 Likes
958

Hi Anjum,

Could you please tell what type of error you are getting in the BAPI .

And the correct funtion module is BAPI_INCOMINGINVOICE_CREATE

Not

BAPI_INCOMING_inVOICE_CREATE

Regards,

Amitteja

Read only

0 Likes
957

we have costomized the bapi which inturn is calling the below bapi

and i m gettin the following error

as below for which i have already defined with the same as defined in function module

Function module "BAPI_INCOMINGINVOICE_CREATE" was called

with the parameter "FISCALYEAR".

This parameter is not defined.

Read only

0 Likes
957

Hi,

try declaring the fiscal year with different name in ur customised bapi

make it FIC_YEAR type GJAHR and check.

Regards,

NAGARAJ

Read only

Former Member
0 Likes
957

HI:

type should be as declared

""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(HEADERDATA) LIKE BAPI_INCINV_CREATE_HEADER STRUCTURE

*" BAPI_INCINV_CREATE_HEADER

*" VALUE(ADDRESSDATA) LIKE BAPI_INCINV_CREATE_ADDRESSDATA

*" STRUCTURE BAPI_INCINV_CREATE_ADDRESSDATA OPTIONAL

*" EXPORTING

*" VALUE(INVOICEDOCNUMBER) LIKE BAPI_INCINV_FLD-INV_DOC_NO

*" VALUE(FISCALYEAR) LIKE BAPI_INCINV_FLD-FISC_YEAR

*" TABLES

*" ITEMDATA STRUCTURE BAPI_INCINV_CREATE_ITEM

*" ACCOUNTINGDATA STRUCTURE BAPI_INCINV_CREATE_ACCOUNT OPTIONAL

*" GLACCOUNTDATA STRUCTURE BAPI_INCINV_CREATE_GL_ACCOUNT OPTIONAL

*" MATERIALDATA STRUCTURE BAPI_INCINV_CREATE_MATERIAL OPTIONAL

*" TAXDATA STRUCTURE BAPI_INCINV_CREATE_TAX OPTIONAL

*" WITHTAXDATA STRUCTURE BAPI_INCINV_CREATE_WITHTAX OPTIONAL

*" VENDORITEMSPLITDATA STRUCTURE BAPI_INCINV_CREATE_VENDORSPLIT

*" OPTIONAL

*" RETURN STRUCTURE BAPIRET2

Regards

Shashi

Read only

former_member404244
Active Contributor
0 Likes
957

Hi,

declare fiscal year as

data : v_fiscalyear type gjahr

or

data : v_fiscalyear like BAPI_INCINV_FLD-FISC_YEAR..

and check.

Regards,

Nagaraj