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 to Read ADDR1_DATA structure

Former Member
0 Kudos

Helo Gurus !!!!

I want to ger address for a company code which is maintained in IMG.

This address is stored in a sturcture ADDR1_DATA .

Is there any function module to read this data?

Points are assured !!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Goto table T001. Just pass the company code. In the resulting record search for the field 'ADRNR'. Then goto table ADRC then pass ADRNR value. You will get you output.

Regards,

Sankar.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Goto table T001. Just pass the company code. In the resulting record search for the field 'ADRNR'. Then goto table ADRC then pass ADRNR value. You will get you output.

Regards,

Sankar.

Former Member
0 Kudos

Hi

The structure will have value only during run time.

Goto T001 table pass the BUKRS and get the ADRNR value

then goto ADRC table get the address of the same

Regards

Shiva

former_member188685
Active Contributor
0 Kudos

You can use the Function

BAPI_ADDRESSORG_GETDETAIL

OBJ_TYPE BUS1069, OBJ_ID is company code.

Check it.

Import	OBJ_TYPE	BUS1069
Import	OBJ_ID	1000
Import	OBJ_ID_EXT	
Import	CONTEXT	0001
Import	IV_CURRENT_COMM_DATA	X