07-19-2011 10:16 PM
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..
07-20-2011 5:09 AM
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
07-19-2011 10:41 PM
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.
07-19-2011 11:11 PM
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.
07-20-2011 4:00 AM
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
07-20-2011 6:22 AM
Hi Moderator,
Is my proposed solution not a right approach . Please comment on why it was said as removed by moderator in red......
07-20-2011 6:23 AM
07-20-2011 2:48 PM
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.
07-20-2011 5:09 AM
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