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

Function Module ADDR_NUMBER_GET

Former Member
0 Likes
2,564


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

11 REPLIES 11
Read only

archanapawar
Contributor
0 Likes
2,061

This message was moderated.

Read only

0 Likes
2,061

Hi,

LINK wasn't helpful. Problem is still existing. Addressnumber needs to be stored in a Field of a customer table.

Regards

Norbert

Read only

tharu
Contributor
0 Likes
2,061

Hi Nobert,

Please check the table ADRC in SE11. All address numbers are stored in that table.

Thanks

Read only

Former Member
0 Likes
2,061

Hi,

The address number needs to be stored in a field of a customer table.

Regards

Norbert

Read only

Former Member
0 Likes
2,061


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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,061

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

Read only

0 Likes
2,061

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


Read only

0 Likes
2,061

Read again (actually) the FG documentation, look for 4th sample provided...

Regards,

Raymond

Read only

0 Likes
2,061

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


Read only

0 Likes
2,061

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.

Read only

0 Likes
2,061

So if SE37 test works fine, but not your program, the problem should come from missing conversion of data into internal format (that SE37 execute by default) look for conversion-exit associated to domain of parameter subfields.

Regards,

Raymond