‎2015 Apr 15 10:33 AM
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
‎2015 Apr 21 10:45 AM
‎2015 Apr 21 10:45 AM
‎2015 May 28 3:56 AM
Hi Harminder,
Can you please elaborate what did you do to get this resolved. We have the same requirement.
Regards,
Aditya
‎2015 May 28 7:11 AM
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
‎2015 May 28 8:35 AM
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.
‎2015 May 28 10:20 AM
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
‎2015 May 29 2:49 AM
‎2024 Dec 02 3:38 PM
Hy,
Can you help me what did you write for the handling section?
I have the same problem 😞
Thanks for your help!
Henrietta