Query to get Primary ship to and bill to contact details

Hi ,
Please help me to get the query to find primary ship to and bill to contact details for a istore customer .
Thanks
Mark

Hi Mark,
The following should give you a good starting point.
Regards,
Jon
SELECT
cac_party.party_name as customer
, cac.account_number
, cac_party.party_number as orgnum
, party_site.party_site_number as sitenum
, csu.location
, loc.address1
, csu.site_use_code
, orgcon.title
, cont_party.party_name as contact_name
, orgcon.job_title
FROM
hz_org_contacts orgcon
, hz_party_relationships party_rel
, hz_party_sites party_site
, hz_cust_acct_sites_all cas
, hz_cust_site_uses_all csu
, hz_cust_accounts cac
, hz_loc_assignments loc_assign
, hz_locations loc
, hz_parties cac_party
, hz_parties cont_party
WHERE 1=1
AND orgcon.party_relationship_id = party_rel.party_relationship_id
AND orgcon.party_site_id = party_site.party_site_id
AND party_site.party_site_id = cas.party_site_id
AND cas.cust_acct_site_id = csu.cust_acct_site_id
AND cas.cust_account_id = cac.cust_account_id
AND cac.party_id = cac_party.party_id
AND cas.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND loc.location_id = loc_assign.location_id
AND party_rel.subject_id = cont_party.party_id AND cont_party.party_type = 'PERSON'
ORDER BY cac_party.party_name, loc.address1, csu.site_use_code, cont_party.party_name

Similar Messages

  • Ship to and Bill to country code issue

    The ship to and bill to on the invoice for proforma is not printing the country if being shipped to France  All other countries print just fine...it is only France that will print (see the example below).  Anyone have an idea as to why?  Customer Master appears to be ok as well....Again this is only for France.
    Example:   Name of Company
                     Address 123 Rue
                     91919 - Bondoufke Cedex
                     Z.I. La XXXXXXXXX
                     F- Bondoufle Cedex (this is how the country prints)
    Edited by: Kimberly Blair on Oct 29, 2010 8:35 PM

    Hi
    It seems in your smartofrm for printing the address of ship to and bill to the function module Address_into_Printform is being used. The function module has some parameters that need to be passed like customer name, number of lines of address to be printed, Street PO Box priority etc. One such parameter is the sending country. If the customer is from FR and the sending country paramter is also FR then the country would not get printed as the function module thinks that for transport within country the address with the country detail is not required. Please change the logic of the smartform by altering the Address_into_printform parameter and leaving the sending country as blank.
    Thanks
    Indranil

  • IProcurement: Ship To and Bill To location at the header level

    All,
    Standard Oracle displays Deliver-To location at the detail level. But the Ship To and Bill To locations do not show on the requisition. I do understand that a typical requisitioner does not need to know this information and is just requesting an item to be delivered. But we are in a power user scenario, wherein we would like the iProcurement user to create a req, get it approved and use contracts to automatically create approved POs.
    1. We are not sure where the Ship To and Bill To location information on the Req/PO come from in the above scenario? Is it from the contract?
    2. Is it possible to make the Ship To and Bill To location information visible on the Req Header in iProcurement? I do not see it in the "CheckoutSummaryPG" to make personalizations and make them visible.
    3. Is there a way to configure Ship To and Bill To locations in iProcurement?
    Thanks
    Satish

    I dont think so its possible to show ship to and bill to location on Requisition. Header Level Ship to and Bill to Location is coming frm setup either from Supplier Site, Supplier or Default System Setup.
    Hence if you have Auto create Workflow Setup then you have to either correct setup on supplier site for Ship to and Bill to.
    Requisition line level Deliver to will be present in PO Distributions.
    Thanks,
    Akshay

  • Ship to and bill to address

    Hi experts
    I am newly installed sap bone 2005B version.I using OEC computers.I creadted one customer with ship to and bill to address. but in that address is not come in print lay out.
    I selected database and given Bill to address in respective area.
    what is the reason?
    pls tell me
    regards

    Hi
    1. yes
    2. system PLD also
    3. yes i changed my PLD but it will not come
    Now i understood the correct one, the customer bill to address not come in the invoice logistics part.
    I create the customer this also not come in the Logistics bill to address part as well as ship to address.
    what should i do?
    regards

  • SQL Query to get All AD Groups and its users in Active Directory

    Hi,
       Is there any query to get all AD groups and its user in an instance of a SQL server?

    Check this blog.
    http://www.mikefal.net/2011/04/18/monday-scripts-%E2%80%93-xp_logininfo/
    It will give you more than what is required. If you dont want the extra information,then you can try this.. I took the query and removed the bits that you might not require.
    declare @winlogins table
    (acct_name sysname,
    acct_type varchar(10),
    act_priv varchar(10),
    login_name sysname,
    perm_path sysname)
    declare @group sysname
    declare recscan cursor for
    select name from sys.server_principals
    where type = 'G' and name not like 'NT%'
    open recscan
    fetch next from recscan into @group
    while @@FETCH_STATUS = 0
    begin
    insert into @winlogins
    exec xp_logininfo @group,'members'
    fetch next from recscan into @group
    end
    close recscan
    deallocate recscan
    select
    u.name,
    u.type_desc,
    wl.login_name,
    wl.acct_type
    from sys.server_principals u
    inner join @winlogins wl on u.name = wl.perm_path
    where u.type = 'G'
    order by u.name,wl.login_name
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Query to get holidays including saturday and sunday by giving month and year as input

    query to get holidays including saturday and sunday by giving month and year as input.

    Hi,
    Create a table for holidays.  You could INSERT one row for each holiday in each year, but it might be more useful if you just create 1 row for every day, with a column that tells whether that day is a holday, part of a weekend, or a work day.
    See
    http://forums.oracle.com/forums/message.jspa?messageID=3351081
    for a user-defined function that tests if a given DATE is holiday.
    You could use such a function when populating the table I mentioned earlier.

  • How to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input

    Hi all,
    I need your help how to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input.
    in my query info object is 0CALQUARTER and variable is ZFIS_QTR.
    in 0CALQUARTER fiscal quarter stored in 201301,201302,201303,201304 and 201401 format, for current fiscal quarter 201401 and (current fiscal quarter - 1 ) would be 201304.
    please replay ASAP to deliver the report to client.
    thanks in advance.
    -- Rakesh Nagpure

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Regarding Ship to and Bill to Address on iStore.....urgent

    Hi All,
    In Address of Ship to and Bill to , I need extra search based on Address1..
    I am looking into jsp page;ibeCCkdSrchListAddr.JSP
    please give me any suggestions or steps to implement this feature.
    Thanks in advance..
    Best Regards,
    HHH

    Hi
    1. yes
    2. system PLD also
    3. yes i changed my PLD but it will not come
    Now i understood the correct one, the customer bill to address not come in the invoice logistics part.
    I create the customer this also not come in the Logistics bill to address part as well as ship to address.
    what should i do?
    regards

  • Restricting SHIP TO and BILL TO address in VD02

    Hi
    Does anybody have idea on how we can restrict accessing certain user community to change Ship to and Bill To address in VD02. Any thoughts on this will be helpfull.
    Thanks
    KV

    Alex
    <b>Thanks for your input.</b>
    After creating a Field Grp in IMG how can associate the Field Grp to the <b>F_KNA1_AEN</b> auth object. I have create the field Group in SPRO (IMG) via Financial Accounting -> Accounts Payable and Accounts Receivable -> Customer Accounts -> Master Data -> Prepare Changes to Customer Master Data -> Define Field Groups for Customer Master Data.
    Please let me know your thougts on this if this is correct what im doing.
    Thanks
    KV

  • Query to get all ports assigned and used by EBS instance.

    Hi,
    Can some one pleaase help to get
    Query to get all ports assigned and used by EBS instance.
    Help is appreaciated.
    Regards,
    Milan

    MILAN RATHOD wrote:
    Hi,
    Can some one pleaase help to get
    Query to get all ports assigned and used by EBS instance.
    Help is appreaciated.
    Regards,
    MilanIn addition to the thread referenced above by Helios, please check the context files and (Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1] -- F. List of Ports to Open in a DMZ Configuration).
    Thanks,
    Hussein

  • SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007

    Can you please help me to write an SQL Query to get Project Plan Name and Resource Name from Reporting database of Project Server 2007. Thanks!!

    Refer
    http://gallery.technet.microsoft.com/projectserver/Server-20072010-SQL-Get-a99d4bc6
    SELECT
    dbo.MSP_EpmAssignment_UserView.ProjectUID,
    dbo.MSP_EpmAssignment_UserView.TaskUID,
    dbo.MSP_EpmProject_UserView.ProjectName,
    dbo.MSP_EpmTask_UserView.TaskName,
    dbo.MSP_EpmAssignment_UserView.ResourceUID,
    dbo.MSP_EpmResource_UserView.ResourceName,
    dbo.MSP_EpmResource_UserView.ResourceInitials
    INTO #TempTable
    FROM dbo.MSP_EpmAssignment_UserView INNER JOIN
    dbo.MSP_EpmProject_UserView ON dbo.MSP_EpmAssignment_UserView.ProjectUID = dbo.MSP_EpmProject_UserView.ProjectUID INNER JOIN
    dbo.MSP_EpmTask_UserView ON dbo.MSP_EpmAssignment_UserView.TaskUID = dbo.MSP_EpmTask_UserView.TaskUID INNER JOIN
    dbo.MSP_EpmResource_UserView ON dbo.MSP_EpmAssignment_UserView.ResourceUID = dbo.MSP_EpmResource_UserView.ResourceUID
    SELECT
    ProjectUID,
    TaskUID,
    ProjectName,
    TaskName,
    STUFF((
    SELECT ', ' + ResourceInitials
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceInitialsCombined,
    STUFF((
    SELECT ', ' + ResourceName
    FROM #TempTable
    WHERE (TaskUID = Results.TaskUID)
    FOR XML PATH (''))
    ,1,2,'') AS ResourceNameCombined
    FROM #TempTable Results
    GROUP BY TaskUID,ProjectUID,ProjectName,TaskName
    DROP TABLE #TempTable
    -Prashanth

  • I downloaded the new operating system and all my contact details,address boof and numbers are GONE?When I receive a test email it dissapears after 30 seconds.ISP is Cox in San Diego and they don't have a clue?

    I downloaded the new operating system and all my contact details,address boof and numbers are GONE?When I receive a test email it dissapears after 30 seconds.ISP is Cox in San Diego and they don't have a clue?

    Hello Brian Delaney,
    It sounds like you are trying to send emails but for some reason, thousands show activity. I would start by re indexing the mailbox to help troubleshoot the issue:
    1.Quit Mail if it’s open.
    2.In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.To show your home Library folder, hold down the Option key, then in the Finder choose Go > Library.
    3.Open Mail.Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.
    Mail (Mavericks): Reindex messages
    http://support.apple.com/kb/PH14876
    If the issue persists, I would next remove the account, restart the computer, and re add the account:
    1.Choose Mail > Preferences, then click Accounts.
    2.Select an account, then click Remove.
    Mail (Mavericks): Remove mail accounts
    http://support.apple.com/kb/PH14944
    Removing an Exchange or IMAP account doesn’t permanently delete the account’s mailboxes and messages because they’re stored on the mail server. To retrieve the account’s mailboxes and messages from the server, add the account again in Mail.
    To add the account again, click the  rather than the  as described above and retest the issue.
    Thank you for using Apple Support Communities.
    Take care,
    Joe

  • Ship to and bill to

    hi,customer information is stored in hz_parties.but i want to know where exactly ship to location and bill to location are stored.

    hi,
    The Bill_to & Ship_to are usage types which are stored in
    RA_SITE_USES_ALL for 10.7
    HZ_CUST_SITE_USES_ALL for 11i
    you can query your bill_to & ship_to using SITE_USE_ID column from above tables. your site_use_id is nothing but the location column in the business purposes tab of customer form.
    Sanjeev Varma.S

  • Query to get the Excise amount and basic amount based on the cst or vat tax

    Dear all,
                       I need a right query to get the basic amount ,excise amount and the tax amount based on the CST or VAT tax rate.The output should be like this,
    VAT
    goods excisabe at 1% - taxable amt(basic+excise for vat 1%)            tax amt
    goods excisable at 4%-   txable amt                                                       tax amt
    CST
    goods excisabe at 1% - taxable amt(basic+excise for CST 1%)            tax amt
    My problem will also be solved..if i am able to get  the basic value from base table OPCH itself............Since am using the PCH1 table to get the total basic amt...the values are duplicating.
    Regards,
    Shyam

    Hi Sowjanya,
    If you're simply trying to place a grand total, use the 'Insert Summary' option.
    Choose the measure field as the 'Field to Summarize' > Choose 'Sum' as the summary operation > Under 'Summary Location' choose 'Grand Total Report Footer'.
    -Abhilash

  • HT1937 shipping address and billing address

    Hi,
    does anyone try to purchase apple product from its overseas website with your home country credit card?
    i am having a singapore credit card and i couldn't purchase an apple product for my hong kong friend, i tried it on apple HK website with HK shipping address and SG billing address but the billing address is Hong Kong by default.
    Lee

    You can't do that. Sorry.

Maybe you are looking for

  • P7N SLI Platinum Unstable with over 2GB ram and/or dual channel memory on.

    Hello need some help or to report something to MSI regarding blue screens, freezes when booting Vista 64 (SP1 + all fixes installed) with more then 2GB ram.  Single channel mode works (either 1 stick of 2 GB or 3 sticks of 2GB) and is rock stable.  B

  • How do you create a photo archive?

    I have a photo album already, shown as 2011 photos. I want to move those photos to an "archive" that would show as only a link on the new photo album page (shown as 2012). I do not want the 2011 "archive" to show in the main menu.

  • ORPAS:How the percentages in curve profile and resulting buy periods define

    Dear All, Am new to RPAS Assortment planning application,and I have a query in Assorment planning Maintain Curve Profiles The percentages which are entered in maintain curve profiles will change in resulting buying periods If the length of the buying

  • Number of authorized computers

    Hi, I'm trying to authorize a new computer but iTunes says "You cannot authorize more than 5 computers. You have already authorized 5 computers ... bla bla bla...". So I tried to go and see the list of authorized devices: three computers an one iphon

  • Downloaded design premium installed now getting license has expired message

    i have downloaded cs4 in the past but this time i figured id try the design primium this time and i just got done downloading and installing it....(3hr process) and now i try to use it and it is giving me the message "Licensing for this product has e