‎2006 Jul 17 1:42 PM
Dear friends
I am receiveing this runtime error...
Could you please tell me where I am making a mistakes, it gave me following error .
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEG
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_BUPA_ADDRESS_GETDETAIL" i
In the function module interface, you can specify only
fields of a specific type and length under "ADDRESSDATA".
Although the currently specified field
"TOTAL_ADDRESS" is the correct type, its length is incorrect.
data: total type standard table of BAPI_FSBP_TC_STR_TRANSFER with header line,
wa_total type BAPI_FSBP_TC_STR_TRANSFER,
total_address type BAPIBUS1006_ADDRESSES.
call function 'BAPI_BUPA_ADDRESS_GETDETAIL'
exporting
businesspartner = '0100000311'
IMPORTING
ADDRESSDATA = total_address.
Regards
Naim
‎2006 Jul 17 1:46 PM
Hello,
Declare the internalt table of type importing paramter
ADDRESS_DATA
Data : Begin of IT_ADDRESS occurs 0.
include structure BAPIBUS1006_ADDRESS.
DATA: End of IT_ADDRESS.
ADDRESSDATA = IT_address[].
Reward if helps.
Thanks,
Krishnakumar
‎2006 Jul 17 1:46 PM
Hello,
Declare the internalt table of type importing paramter
ADDRESS_DATA
Data : Begin of IT_ADDRESS occurs 0.
include structure BAPIBUS1006_ADDRESS.
DATA: End of IT_ADDRESS.
ADDRESSDATA = IT_address[].
Reward if helps.
Thanks,
Krishnakumar
‎2006 Jul 17 1:50 PM
Hi,
Instead of directly passing the business partner value to the function module, declare a variable of type BAPIBUS1006_HEAD-BPARTNER and move value to that variable. then pass this variable for the exporting parameter business_partner.
‎2006 Jul 17 1:51 PM
‎2006 Jul 17 1:47 PM
Hello,
Declare the export parameter
<b>total_addres type BAPIBUS1006_ADDRESS</b>
Reward if useful.
Vasanth
‎2006 Jul 17 1:48 PM
Total_address should be of type BAPIBUS1006_ADDRESS and not BAPIBUS1006_ADDRESSES
-Kiran
‎2006 Jul 17 1:48 PM
hi Naim,
Please have a look at the documentation as whether the field 'total_address' type is declared as in the doucmentaion ... i.e, prob if it is of type string you might be declaring it as type C .. something like that ...
call function 'BAPI_BUPA_ADDRESS_GETDETAIL'
exporting
businesspartner = '0100000311'
IMPORTING
ADDRESSDATA = total_address.
‎2006 Jul 17 1:53 PM
Hi,
Declare the total_address this way..
data : total_address like BAPIBUS1006_ADDRESS.
It wont throw any dump.
Rgds,
prakash
‎2006 Jul 17 2:05 PM
Hi Naim,
For declaring structures used in BAPI, do it in this way. You wont get any error.
DATA : it_addressdata <b>TYPE</b> bapibus1006_address <b>OCCURS 0 WITH HEADER LINE</b>.Consider this code.
REPORT zztest_arun_1.
DATA : it_addressdata TYPE bapibus1006_address OCCURS 0 WITH HEADER LINE,
buspartnr TYPE bapibus1006_head-bpartner.
buspartnr = '0100000311'.
CALL FUNCTION 'BAPI_BUPA_ADDRESS_GETDETAIL'
EXPORTING
businesspartner = buspartnr
IMPORTING
addressdata = it_addressdata.
Regards,
Arun Sambargi.
‎2007 Mar 06 3:40 PM
Hello Arun,
in one of my requirement i need to create a new address based on existing address. So i want to use 'BAPI_BUPA_ADDRESS_GETDETAIL' BAPI for getting address details but one of input parameter is " businesspartner", i am not getting what should i give here, is it customer number or customer address number or smth else?. can you please help me here.
Thanks in advance...
Rgds,
Mohan