cancel
Showing results for 
Search instead for 
Did you mean: 

Default Address

Former Member
0 Kudos

Dear Experts,

How can I get the Business Partner's default address. ? Plz help me in query.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kuldeep,

There are 2 fields in OCRD Table named as ShipToDef and BillToDef. You can use the same for that.

Hope it helps.

Thanks & Regards

Ankit Chauhan

Former Member
0 Kudos

Hi,

Can you please explain and create some sample query ?

Regards

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kuldeep,

Try this:

Select  T0.[ShipToDef] , T1.[Street], T1.[Block], T1.[ZipCode], T1.[City], T1.[Country], T1.[State] FROM OCRD T0 JOIN CRD1 T1 ON T0.CardCode = T1.CardCode AND T0.[ShipToDef] = T1.Address WHERE T0.[CardCode]  = 'CARDCODE'

Hope it helps..

Thanks & Regards

Ankit Chauhan

Former Member
0 Kudos

Hi,

Thank you for reply. I was looking for the same.

But if there are multiple address then what to do ?

Regards

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kuldeep,

In that case you need to use the field AdresType From CRD1 Table.

Also you can have a look on LineNum Field in the CRD1 Table.

LineNum represents the addresses as it appear in SAP Application Address tab of the Business Partner Master Data.


Also you can refer these Links:





Hope it helps.



Thanks & Regards


Ankit Chauhan

Former Member
0 Kudos

Hi

I will check it and reply you about the same.

Regards

Former Member
0 Kudos

Hi,

Thank you. Problem Solved.

Regards

Answers (0)