2005 Nov 09 12:10 PM
Hello,
I create a Functional Location with the BAPI_FUNCLOC_CREATE. The BAPI do not associate an address. So I try to create the address with the functions ADDR_INSERT, ADDR_NUMBER_GET, ADDR_MEMORY_SAVE and ADDR_MEMORY_CLEAR (call in this order). The address was create, it is in the table ADRC, but there is no link to the functional location. There is no entry in the table ILOA or in the transaction IL03. I don't unterstand this. I give the number of the functional location and other keys with the parameters address_handle and adress_reference, but this key was ignore.
How can i create a address in the funcional location? With the ADDR* Functions or are there any other functions/BAPIs?
regards Myriam
2005 Nov 09 3:32 PM
Myriam,
First you create an address. Supply address number to DATA_GENERAL-READ_ADRNR field of BAPI import parameter. The address should show up.
Hello,
I create a Functional Location with the BAPI_FUNCLOC_CREATE. The BAPI do not associate an address. So I try to create the address with the functions ADDR_INSERT, ADDR_NUMBER_GET, ADDR_MEMORY_SAVE and ADDR_MEMORY_CLEAR (call in this order). The address was create, it is in the table ADRC, but there is no link to the functional location. There is no entry in the table ILOA or in the transaction IL03. I don't unterstand this. I give the number of the functional location and other keys with the parameters address_handle and adress_reference, but this key was ignore.
How can i create a address in the funcional location? With the ADDR* Functions or are there any other functions/BAPIs?
regards Myriam
2005 Nov 09 3:32 PM
Myriam,
First you create an address. Supply address number to DATA_GENERAL-READ_ADRNR field of BAPI import parameter. The address should show up.
2005 Nov 10 12:20 PM
Hello,
I tried this. First I create a new address_number then i put the address_number in the field DATA_GENERAL-READ_ADRNR of the BAPI_FUNCLOC_CREATE but the address doesn't show up.
And I test to supply the address_number in the parameter field DATA_GENERAL-READ_ADRNR and DATA_GENERALX-READ_ADRNR of the BAPI BAPI_FUNCLOC_CHANGE. It doesn't show up, too.
What did I wrong?
For Create a new Address of Funcional Location i call the functions:
ADDR_INSERT
ADDR_NUMBER_GET
ADDR_MEMORY_SAVE
ADDR_MEMORY_CLEAR
BAPI_FUNCLOC_CREATE or BAPI_FUNCLOC_CHANGE
BAPI_TRANSACTION_COMMIT
I picked up in a documentation in OSS about the BAPI_FUNCLOC* BAPIs that the parameter-fields starting with READ* are for output only. Not for input. Is that true?
regards Myriam
2005 Nov 10 2:36 PM
have a look of include MILO0F00_IFLO_UPDATE, FORM IFLO_UPDATE USING IND_INHB_DELETE. Put a breakpoint there and create a new address in transaction IL02 and see how SAP is doing it.
2005 Nov 14 8:02 AM
Thanks for the hint. SAP use the function FUNC_LOCATION_UPDATE for update the functional location.
After I create a adress number, I use it also now for update the functional location. It's not perfect but it works.
best regards
Myriam
2007 Apr 06 12:22 AM
Hi ,
I am trying to use the above function module for updating the address . I am able to see the adrnr in table IFLO but when i open the functional location in transaction IL03 and selecti the address, getting pop with address is not maintained for functional location.
Could you please provide me some code.
Regards,
Praveen
2009 Nov 19 12:16 PM
Hi,
I'm looking forward for a solution. I do have the same problems creating a adress for a func. location.
regards,
Juergen
2009 Dec 04 7:53 AM
I used this code. it works.But this code has to be called once Functional location create call is comiited.This is a workaround only.
CALL FUNCTION 'FUNC_LOCATION_READ'
EXPORTING
tplnr = functional_location " Functional location needs to be commited
IMPORTING
iflo_wa = iflo_old
EXCEPTIONS
iflot_not_found = 1
iloa_not_found = 2
no_authority = 3
OTHERS = 4.
IF sy-subrc 0.
throw error
ENDIF.
MOVE-CORRESPONDING iflo_old TO iflo_new.
MOVE lv_adrnr TO iflo_new-adrnr.
MOVE lc_update TO riupd_old-indupd.
MOVE lc_update TO riupd_new-indupd1.
CALL FUNCTION 'FUNC_LOCATION_UPDATE'
EXPORTING
iflo_new = iflo_new
iflo_old = iflo_old
riupd_new = riupd_new
riupd_old = riupd_old.
2014 Nov 20 11:12 PM
You can also use FM 'INSERT_ADDRESS' to add address location to func.locat.
2015 Apr 15 11:18 AM
Hi Myriam,
I have the same requirement.I have had followed the same approach.
The problem is that in my case function module "ADDR_NUMBER_GET" is not working.
It is showing error address_handle is not valid.
Can you help me in this.
Regards
Harminder Singh
2019 Jul 16 3:24 PM
2019 Jul 16 7:57 PM
I doubt the original poster is still interested 10 years later, nor the person posting prior to you 4 years agi.