‎2014 Dec 08 9:58 AM
Hello,
I want to get a new address number by using above function module.
I get always the return code 1 because the internal table addr_appl_to_int is initial. I don't know how to fill that internal table. In a few places on internet SAP note 1779872 has been mentioned but I can not find it.
Is here in SCN anyone who could help?
Thank you
Regards
Norbert
‎2014 Dec 08 11:32 AM
‎2014 Dec 08 12:06 PM
Hi,
LINK wasn't helpful. Problem is still existing. Addressnumber needs to be stored in a Field of a customer table.
Regards
Norbert
‎2014 Dec 08 11:43 AM
Hi Nobert,
Please check the table ADRC in SE11. All address numbers are stored in that table.
Thanks
‎2014 Dec 08 12:08 PM
Hi,
The address number needs to be stored in a field of a customer table.
Regards
Norbert
‎2014 Dec 08 11:58 AM
Hi,
please check whether number range object ADRNR exist in your system or not.
and are you passing ADRC table to this fm?
Thanks,
Sree
‎2014 Dec 08 12:31 PM
Did you read documentation of function group SZA1 (or -5 or -7 depending on address type) you should have found FM ADDR_DIALOG_PREPARE
Look also at online documentationfor reference : Central Address Management (BC-SRV-ADR), Working With CAM, Preparing to Work With CAM and Maintaining Addresses
Regards,
Raymond
‎2014 Dec 08 1:27 PM
Hello all,
I've still a problem with below coding inside the function module.
READ TABLE addr_appl_to_int WITH KEY l_key_h BINARY SEARCH.
Still I do not have any idea where and how the internal table ADDR_APPL_TO will be filled. So I always have a mismatch between items of that table and content of field l_key_h and I can't save the data.
Regards
Norbert
‎2014 Dec 08 3:45 PM
‎2014 Dec 09 8:01 AM
Hi,
I did read it again an I provided data as like in function group documentation described.
But now I get and error in function module ADDR_INSERT. With the EXCEPTIONS interface SY-SUBRC 2 came up and internal the error had been triggered by below coding.
FUNCTION addr_aesref_get .
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" EXPORTING
*" VALUE(AESREF) TYPE REF TO CL_ADDRESS_ENHANCER
*" EXCEPTIONS
*" AESREF_NOT_EXIST
*"----------------------------------------------------------------------
IF NOT ( gref_address_enhancer IS INITIAL ).
aesref = gref_address_enhancer.
ELSE.
MESSAGE e521 RAISING aesref_not_exist.
ENDIF.
ENDFUNCTION.
Inside the function group documentation there is no detailed info which fields of the structures are required.
Regards
Norbert
‎2014 Dec 09 11:42 AM
If I process function module ADDR_INSERT separately in SE37 with the same data I use in my program it works fine without any problems.
‎2014 Dec 09 12:50 PM