on 07-17-2012 1:09 PM
hi sql expert,
i need to find out the list of my secondary ship to address from sap b1. How can i do this? what table should i get this?
thanks.
Harith
Try:
SELECT T0.[CardCode], T0.[Address], T0.[LineNum]
FROM CRD1 T0
JOIN OCRD T1 ON T1.CardCode=T0.CardCode
WHERE T0.[AdresType] ='S' and T0.Address != T1.ShipToDef AND T1.CardCode LIKE '[%0]%'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harith,
Your requirement is not very clear to me. Please have an example for what you exactly want.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gordon,
I want to query out all of the secondary addresses onwards from all of my customers. for example customer A, has 5 delivery points..by default, the 1st point is the same as the bill to address right? so, i need to know what are the rest of the delivery address from 2 to 5.
Hope this clears.
Thanks.
Harith
Hi,
Check this :
select cardcode, Address, Address2, Address3
from CRD1
where AdresType = 'S'
Change 'S' to 'B' if you want the Bill to Address.
Kind Regards,
Jitin
SAP Business One Forum Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use CRD1 Table
Eg Query Modify this..
SELECT T0.[CardCode], T0.[Address], T0.[AdresType], T0.[LineNum] FROM CRD1 T0 WHERE T0.[AdresType] ='S' and T0.[LineNum] =2
Regards,
Sudhir B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.