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

internal table type conflict error...

naimkhans_babi
Active Participant
0 Likes
1,645

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,191

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,192

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

Read only

0 Likes
1,191

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.

Read only

0 Likes
1,191

This is not a tables parameter nor a tables type, so do not try to make it an internal table. You have defined the structure incorrectly, define like this.

data: total_address type  <b>BAPIBUS1006_ADDRESS</b>.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,191

Hello,

Declare the export parameter

<b>total_addres type BAPIBUS1006_ADDRESS</b>

Reward if useful.

Vasanth

Read only

Former Member
0 Likes
1,191

Total_address should be of type BAPIBUS1006_ADDRESS and not BAPIBUS1006_ADDRESSES

-Kiran

Read only

Former Member
0 Likes
1,191

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.

Read only

Former Member
0 Likes
1,191

Hi,

Declare the total_address this way..

data : total_address like BAPIBUS1006_ADDRESS.

It wont throw any dump.

Rgds,

prakash

Read only

Former Member
0 Likes
1,191

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.

Read only

0 Likes
1,191

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