‎2009 Feb 24 11:52 AM
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,
‎2009 Feb 24 11:57 AM
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
‎2009 Feb 24 11:55 AM
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
‎2009 Feb 24 11:57 AM
check if you have passed the fiscal year under the right sctino meaning under exporting only...
‎2009 Feb 24 11:57 AM
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
‎2009 Feb 24 12:04 PM
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.
‎2009 Feb 24 12:10 PM
Hi,
try declaring the fiscal year with different name in ur customised bapi
make it FIC_YEAR type GJAHR and check.
Regards,
NAGARAJ
‎2009 Feb 24 12:02 PM
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
‎2009 Feb 24 12:03 PM
Hi,
declare fiscal year as
data : v_fiscalyear type gjahr
or
data : v_fiscalyear like BAPI_INCINV_FLD-FISC_YEAR..
and check.
Regards,
Nagaraj