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

Address number not generated for function location creation

Former Member
0 Likes
2,992


Hi,

I have a requirement where i have to create a function location.The funtcion location data will be uploaded from the flat file into an internal table.

I am using the following procedure:

1)Firstly i am uploading the data from the flat file into an internal table which contain function location details and address data details.

2)Then I am using the following 4 function module to insert the address into the ADRC table from the internal table.

a)ADDR_INSERT

b)ADDR_NUMBER_GET

c)ADDR_MEMORY_SAVE

d)ADDR_MEMORY_CLEAR

After these steps i am calling the bapi "BAPI_FUNCLOC_CREATE".Then commiting the bapi.

After this i am calling the bapi "BAPI_RE_AO_CHANGE".Then commiting the bapi.

The problem is when i am calling the function module ADDR_NUMBER_GET,it is showing the error address_handle not valid.I need this function module to generate address number which i can pass to the bapi "BAPI_FUNCLOC_CREATE" for creating function location with address.

The line read table addr_appl_to_int in the function module is not working.

Can anyone help me in this.

Regards

Harminder Singh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,345

Hi,

Got resolved on my own..

Regards

Harminder Singh

7 REPLIES 7
Read only

Former Member
0 Likes
2,346

Hi,

Got resolved on my own..

Regards

Harminder Singh

Read only

0 Likes
2,345

Hi Harminder,

Can you please elaborate what did you do to get this resolved. We have the same requirement.

Regards,

Aditya

Read only

0 Likes
2,345

Hi Aditya,

1)Firstly i uploade the data from the flat file into an internal table which contain function location details and address data details.

2)Then I am using the following 4 function module to insert the address into the ADRC table from the internal table.

a)ADDR_INSERT

b)ADDR_NUMBER_GET

c)ADDR_MEMORY_SAVE

d)ADDR_MEMORY_CLEAR.

When I call the Function module "ADDR_INSERT",pass the parameter "Check_address".Pass only the blank value .Although it is not manadatory,you still have to pass it so that your address are saved into the ADRC table.

After calling function module "Addr_number_get" please use Commit work.And also use Commit work after calling ADDR_MEMORY_SAVE.

After these steps i am calling the bapi "BAPI_FUNCLOC_CREATE.In this case address number will not be saved into IFLO table.Then Call function module Func_location_Read and then call Func_location_update to update the address data into the Function location.

After this i am calling the bapi "BAPI_RE_AO_CHANGE".Then commiting the bapi.

Hope this will solve your query.

Regards

Harminder Singh

Read only

0 Likes
2,345

Hi Harminder,

Thanks for the reply, I have one more question if you can spare time.

Which function module did you use to add the Sold to and Bill to in the functional location. I check the BAPI BAPI_FUNCLOC_CREATE and it does not have a place to add the partner function and the partner number.

Regards,

Aditya Sahai.

Read only

0 Likes
2,345

Hi Aditya,

I cannot help in this case as my requirement was only to add the address data into the function location and assignesd the assignement object ID to the function location.

Sorry,I cannot provide any assistance in this case.

Regards

Harminder Singh

Read only

0 Likes
2,345

That's perfectly fine. Thanks for the help.

Regards,

Aditya.

Read only

kaszaheni
Newcomer
0 Likes
1,863

Hy, 

Can you help me what did you write for the handling section? 

I have the same problem 😞 

Thanks for your help! 

Henrietta