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

Functional Location: Address

myriam_bail
Explorer
6,355

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

1 ACCEPTED SOLUTION
Read only

Former Member
3,989

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

11 REPLIES 11
Read only

Former Member
3,990

Myriam,

First you create an address. Supply address number to DATA_GENERAL-READ_ADRNR field of BAPI import parameter. The address should show up.

Read only

3,989

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

Read only

0 Likes
3,989

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.

Read only

0 Likes
3,989

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

Read only

0 Likes
3,989

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

Read only

jrgen_kuba
Discoverer
0 Likes
3,989

Hi,

I'm looking forward for a solution. I do have the same problems creating a adress for a func. location.

regards,

Juergen

Read only

Former Member
3,989

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.

Read only

Former Member
0 Likes
3,989

You can also use FM 'INSERT_ADDRESS' to add address location to func.locat.

koszulkikoszulki bielikkoszulki patriotycznebielik

Read only

Former Member
0 Likes
3,989

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

Read only

Former Member
0 Likes
3,989

check this for read_adrnr issue in the bapi.

https://answers.sap.com/answers/12069603/view.html

Read only

0 Likes
3,989

I doubt the original poster is still interested 10 years later, nor the person posting prior to you 4 years agi.