Application Development 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: 

Function module ''ADDR_GET"

ramesh_putta
Participant
0 Kudos

Hello,

I am working on a program which uses the function module 'ADDR_GET' which imports 'SADR' ( Company Data ).

The structure SADR contains a field SPRAS (Lnaguage key) which is no where in the whole function module gets filled up.

Just because SPRAS not getting filled up I am having further issues in the program which is using this function module.

not sure why there isnt any code in ADDR_GET to fill SADR-SPRAS. Anyone had the same issue before or anyone with ideas please help..

1 ACCEPTED SOLUTION

jack_graus2
Active Contributor
0 Kudos

Hi Ramesh, I just did a test call for ADDR_GET for some addresses and SADR-SPRAS always gets filled for these test. Maybe the address you are testing doen't have the language key filled ? Have a look at the address and try to fil the language key in case it is empty.

Regards Jack

7 REPLIES 7

Former Member
0 Kudos

Hi Ramesh,

Did you try passing manually the language key and test your scenario even if you dont get the spars

field. When i check there are conversion routines for that but i dont think conversion routine is an issue here but.

I would suggest to put a break point in Function module and debug and see whats heppening.

Thanks,

Pradeep.

0 Kudos

Pradeep, thanks for the reply.

I cannot pass the language field to the function module.

If you meant to pass the SPRAS manually to SDAR after coming out of function module, I cannot do it either because the program using this FM is a standard SAP program.

When i passed the SPRAS in the debugging, the program works fine and got desired results.

0 Kudos

There is a EXIT for this EXIT_SAPLSADR_001. Try writing code here .

<Removed by Moderator>

Thanks,

Pradeep.

Edited by: Vinod Kumar on Jul 20, 2011 9:35 AM

0 Kudos

Hi Moderator,

Is my proposed solution not a right approach . Please comment on why it was said as removed by moderator in red......

0 Kudos

Ok i remember now ....why its commented.....

Thanks,

Pradeep.

0 Kudos

Pradeep / Jack

Thanks for your responces . The address number i was working with doesnt have the LANGU field updated in table ADRC.

I got the desired results when i updated this field.

Thanks for your help.

jack_graus2
Active Contributor
0 Kudos

Hi Ramesh, I just did a test call for ADDR_GET for some addresses and SADR-SPRAS always gets filled for these test. Maybe the address you are testing doen't have the language key filled ? Have a look at the address and try to fil the language key in case it is empty.

Regards Jack