Query to get intermediate ship to address in r12

Hi ALL,
How to get intermediate ship to address in R12.
Thnaks

Hi;
Please review:
Question Regarding Creating Intermediate Ship To Address Using Api [ID 1269646.1]
Intermediate Ship-To Address Functionality [ID 603168.1]
Regard
Helios

Similar Messages

  • Intermediate ship to address queries

    Hi All,
    I need to fetch the intermediate ship to address by linking the wsh_delivery_details table and hz_locations table for a order.
    I tried by using below query :
    SELECT ship_party.party_name ,
    ship_cust_acct.account_number,
    DECODE (ship_loc.CITY,NULL, NULL,ship_loc.CITY || ',') || DECODE (ship_loc.STATE,NULL, ship_loc.PROVINCE || ',',ship_loc.STATE || ',')
    || DECODE (ship_loc.postal_code, NULL, NULL,ship_loc.postal_code || ','
    || DECODE (ship_loc.country, NULL, NULL, ship_loc.country)) address5
    FROM hz_cust_acct_sites_all ship_acct_site,
    hz_party_sites ship_party_site,
    hz_locations ship_loc,
    hz_cust_site_uses_all ship_site,
    hz_parties ship_party,
    hz_cust_accounts ship_cust_acct,
    hr_all_organization_units ship_ou,
    wsh_delivery_details wdd,
    OE_ORDER_HEADERS_ALL h
    WHERE SHIP_LOC.LOCATION_ID=WDD.intmed_ship_to_location_id
    and h.header_id=WDD.source_header_id
    AND ship_site.cust_acct_site_id = ship_acct_site.cust_acct_site_id
    AND ship_acct_site.party_site_id = ship_party_site.party_site_id
    AND ship_party_site.location_id = ship_loc.location_id
    AND ship_acct_site.status = 'A'
    AND ship_acct_site.cust_account_id = ship_cust_acct.cust_account_id
    AND ship_cust_acct.party_id = ship_party.party_id
    AND ship_cust_acct.status = 'A'
    AND ship_site.status = 'A'
    AND ship_site.org_id = ship_ou.organization_id
    AND H.ORDER_NUMBER='788'
    This query is returning two rows for the same header_id , so my question is for a particular order having multiple items the intermediate_ship_to address also come multiple times? or for a order the intermediate_ship_to address should be one every time. please help me to understand thsi.
    Thanks

    Hi;
    Please review:
    Question Regarding Creating Intermediate Ship To Address Using Api [ID 1269646.1]
    Intermediate Ship-To Address Functionality [ID 603168.1]
    Regard
    Helios

  • 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

  • Want shipping Point address(not Number) in the invoice layout

    Dear Experts
    Please tell me tables and fields  how get the shipping point address in invoice layout, if i give likp-vstel, it picks the shipping point number only,
    issue resolution is very urgent
    Thanks and regards
    Janardhan

    Hi janardhan,
    i am also working on the same type of requirement. here i am giving the details. i think it will helpful to u..
    Sold to: VBRK_KUNAG
    Ship To: VBPA-KUNNR where VBPA-PARVW=”SH”
    Invoice No: VBRK-VBELN
    Name OF Finished Product
    Material Code: VBRP-MATNR
    Cases : VBRP-VRKME where MVKE-VRKME=”CSE”
    Pallets : VBRP-VRKME where MVKE-VRKME=”PAL”
    Price per case in Unit of measure: KONV-KBETR
    Price in Unit of measure: RV61A-AWEIN
    Net weight : VBRP-NTGEW
    frieght without VAT: VBRP-NETWR + VBKD-INCO1
    Vat 20%: 20% of KONV-KBETR where KONV-KSCHL=”ZVAT”
    total with VAT: VBRP-NETWR (VBRP-NETWR + VBKD-INCO1) + VBRP-MWSBK where KONV-KSCHL=”ZVAT”
    Only VAT : KONV-KBETR where KONV-KSCHL=”ZVAT”
    Ammount in words ( if value is 10rs, that should be come in ten repees only): VBRP-BRTWR
    1. My Client requires the company code address ( Name , city, pincode, phone number, etc) and his bank details in the layout
    VBRK-BUKRS – Com. Code
    ADRC-NAME1—Name
    ADRC-STREET—Street
    ADRC-CITY1 --- City
    ADRC-COUNTRY – Country
    ADRC-REGION—Region
    ADRC-POST_CODE1- Postal code
    ADRC-TEL_NUMBER – Telephone number
    2.He requires the customer Address like name , street, house number, pincode, phone number, and fax number)
    KNA1-NAME1 -
    Name
    KNA1-STRAS --- Street and house number
    KNA1-ORT01 --- City
    KNA1-REGIO --- State
    KNA1-PSTLZ -
    Pin code
    KNA1-LAND1 --- Country Key
    KNA1-TELF1 -- Telephone number
    KNA1-TELFX --- Fax number
    3. Total without VAT: VBRP-NETWR
    4. Freight without VAT : VBRP-NETWR + VBKD-INCO1
    5. Shipping Point Address has to come to layout
    ADDR1_DATA-NAME1 --- Shipping point name
    ADDR1_DATA-STREET --- Street
    ADDR1_DATA—HOUSUE_NUM1—house number
    ADDR1_DATA-CITY1 --- City
    ADDR1_DATA-REGION --- State
    ADDR1_DATA—POST_CODE1—postal code
    ADDR1_DATA—COUNTRY-- Country
    6. Plant Address address has to come to layout
    VBRP-WERKS -- Plant
    VBRP-WKREG—Region
    VBRP-WKCTY -- City
    VBRP-WKCOU -- Country
    these r the fields needs to be taken based on the requirement..
    Reward if helpfull.
    Regards,
    Praveen kumar.D

  • Printing ship-to address

    i was asked to print the ship-to address of the customer if kunnr is not equal to kunn2 of knvp table where do i get the ship to address details from

    Hi priya,
    You can use ADRC,VBPA tables with parvw = 'we' for ship-to-address.
    Thanks
    rahul

  • SRM 7.0 Ship to Address contact details not pulling through

    Hi all
    We are using SRM 7.0. We want users to choose the ship to address from a predefined list. I have added a new ship to address to an existing company. However when I add new contact details (telephone number, fax and email) it does not keep the new contact details. It still keeps the old contact details as standard. So when the requestor chooses the new ship to address, the old contact details are pulled through and not the new ones. How do I get the new contact details to pull through for the new address and the old contact details to remain for the old address.

    Hi
    did you crreate a new ship to address? or change the contact details of ship to address ?
    if you changed the ship to address . you must get updated address when you search.
    if you created new ship to address , you must get new ship to address when you search it.
    how did you change the ship to address ? - internal address?
    Muthu

  • SRM 7.0 Ship-to address by using search-help(F4).

    Hi,
    My problem -
    Create or change Ship-to address by using search-help(F4). After selection, new/changed address is not refreshed in detail screen of Ship-to adress. Default Ship-to address is displayed.
    I have looked at the SAP NOTE -1148246 which is the exact problem i have but the note is for older release and the changes mentioned in this SAP Note are done in my system.
    Thank you.
    Regards,
    Kailash.

    Hi
    did you crreate a new ship to address? or change the contact details of ship to address ?
    if you changed the ship to address . you must get updated address when you search.
    if you created new ship to address , you must get new ship to address when you search it.
    how did you change the ship to address ? - internal address?
    Muthu

  • Ship To Address Query

    Hi Gurus,
    I am trying to add a oe_order_lines_all table to the following Ship to Address Query but joining the table is giving duplicate results. Could you please let me know the right joins
    select distinct ooh.order_number,hl.address1,hl.address2,hl.address3,hl.city,
    hl.state,hl.postal_code,poh.segment1 po_number,poh.approved_date,
    hpz.party_number,hca.account_number,ool.fulfillment_date,
    ooh.booked_date,ooh.booked_flag,ooh.ship_to_org_id
    from apps.oe_order_headers_all ooh,
    apps.oe_order_lines_all ool,
    apps.hz_cust_site_uses_all hcsu,
    apps.hz_cust_acct_sites_all hcas,
    apps.hz_cust_Accounts_all hca,
    apps.hz_parties hpz,
    apps.hz_party_sites hps,
    apps.hz_locations hl,
    apps.oe_drop_ship_sources odss,
    apps.po_headers_all poh
    where odss.header_id = ooh.header_id
    AND odss.line_id = ool.line_id
    AND odss.po_header_id = poh.po_header_id
    and hcsu.site_use_id = ooh.ship_to_org_id
    AND hca.party_id = hpz.party_id
    and hcas.cust_acct_site_id = hcsu.cust_acct_site_id
    and hca.cust_account_id = hcas.cust_account_id
    and hps.party_site_id = hcas.party_site_id
    and hpz.party_id = hps.party_id
    and hl.location_id = hps.location_id
    Regards

    Hi Sandeep,
    I am not getting any duplicates when i remove ool field from the SELECT statement
    Regards

  • How to get the shipping point details nothing but (name , address, etc)

    Hi, i am having the billing document number from that i am fetching the delivery doc number and shipping point.
    how i can get the shipping point details from the shipping point number.in which table i  need to pass this shipping point number(VSTEL)?

    Hi Praveen,
    TVST Shipping point
    KNVS Customer Master Shipping Data
    VTTK Shipment header
    VTTP Shipment item
    VTFA Flow shipping documents
    TVSTZ Organizational Unit: Shipping Points per Plant
    B024 Shipping point
    TVSRO Shipping points: Countries in Which Routes are Defined
    TVSWZ Shipping Points per Plant
    You can get the details from ADRC table. Please note that the TVST table has got a field ADRNR, pls use the same field in identifying the number and goto ADRC table enter the number under the ADDRNUMBER. It will fetch the address details for you.
    For ex from the standard SAP: I have taken std 0001 shipping pt. When I run TVST table for shipping points I get to see that ADRNR field has 297 as the number. I take the same number 297 and goto ADRC table and enter it under ADDRNUMBER and it will give me the address details entered for shipping pt 0001.
                                                              (or)
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    Shipping point -> Deliveries / Returns
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Reward if helpful,
    Regards,
    Harini.S

  • Where is Ship-to Address getting generated ?

    Hi,
    I want to know where the ship-to address number is coming from.
    If you go to BBP_PD, and Partner 27, there you can see one field ADDR_NR.
    I am not able to find in the debug where exaclty this field is getting populated.
    Please help.
    Thanks,
    Vaibhav Goel

    sorry i have confused here in PDP scenario
    BBP_PARTNER_FUNCTION_TO_TYPE - this FM
    Laurent and richardo is correct.
    ship to address can be inheritd from organisation structure and it can be created and address number is the key needs to be supplied in organisation structure.
    or
    ship to address can be entered manually while creating shopping cart - extra one entry added in ADRC table
    but every time it creates crmd_partner guid for reference and stored in partner function 27.
               Partner_Fct    Description                    Partner_No
    0000000001 00000016       Requester                      4A813CEB04E41A03E10000008E0A0253
    0000000001 00000020       Goods Recipient              4A813CEB04E41A03E10000008E0A0253
    0000000001 00000027       Ship-To Address               48317AB1464D6CCBE10000008E0A1567
    0000000001 00000075       Location                       4831525145E10125E10000008E0A156B
    Do you want to know which FM used to determine partner function 16,18,27,39 etc... determination
    Partner Processing
    Through partner processing, the dynamic structure of the partner functions is formed for the different business transactions in the SRM system. In this way, an internal employee can adopt the partner function Requester or Goods Recipient when creating a shopping cart.
    The partner functions Vendor, Vendoru2019s Contact Person, Requester, and Goods Recipient appear in the header or item documents of a purchase order, for example.
    A semantic and syntactic check of the entered data is performed automatically in partner processing.
    Amongst other things it checks whether the business partner may adopt the assigned partner function.
    Muthu

  • How to get the Customer detials in Purchase order Ship To Address

    Hi Friends,
    While doing the back-to-back order, when raising the PO, I want populate the Customer Name, Contatct Person and Address in Ship To address box. Can anyone please suggest a good query which can do that. I looking to create a formatted search based pon that.
    Regards
    Shiva

    Shiva,
    You can start with this:
    SELECT T0.CardName, T1.Name, T0.Address2
    FROM ORDR T0 INNER JOIN OCPR T1 ON T0.CntctCode = T1.CntctCode
    WHERE T0.DocEntry = $[POR1.BaseEntry] AND T0.ObjType = $[POR1.BaseType]
    Please bear in mind, it is a FS based on the rows so will run only on row level.
    Regards,
    Nat

  • Query for getting address from RA_CUSTOMER_TRX_ALL.REMIT_TO_ADDRESS_ID

    Some one please provide query for getting REMIT TO ADDRESS details by using the column RA_CUSTOMER_TRX_ALL.REMIT_TO_ADDRESS_ID

    try
    select ct.remit_to_address_id,
           raa_remit_ps.party_site_number,
           raa_remit_loc.state,
           ft_remit.territory_short_name,
           ct.*
      from ra_customer_trx_all    ct,
           hz_cust_acct_sites_all raa_remit,
           hz_party_sites         raa_remit_ps,
           hz_locations           raa_remit_loc,
           fnd_territories_vl     ft_remit
    where 1 = 1
       and ct.remit_to_address_id = raa_remit.cust_acct_site_id(+)
       and raa_remit.party_site_id = raa_remit_ps.party_site_id(+)
       and raa_remit_loc.location_id(+) = raa_remit_ps.location_id
       and raa_remit_loc.country = ft_remit.territory_code(+)

  • Ship-To Address not getting picked for one particular user

    Hi SRM Gurus,
    I am working on SRM5.0 system with ECC6.0 as backend.
    For one particular SRM user, the Ship-To address number which has been maintained in his attributes through transaction PPOMA_BBP, as default delivery address, is not populated when he creates a SC.
    This default ship-to address is not seen while creating the cart even though the address can be found via the F4 search help in the same SC.
    Can anyone tell me why this is happening for one particular user?
    Please note that this problem is occuring even when the user is shopping for self and creating a new SC (no copying from template). So SAP note 1055203 is not valid in my case.
    I have checked the ADRC table, and this address number exists. Infact, when I assign this address number to some other user's Ship-To attribute, this default delivery address is picked in the SC.
    So, I understand that the problem is not with the address, but with the linking of this address number to this user. I even tried deleting and re-assigning the address number in the attribute to this user. But, it doesnot work still.
    Can anyone help me out?
    Thanks n Regards,
    Ancy

    Ship to address not being picked from attributes for any user it was being picked from Org address data , and I had reset the value
    now , when I am trying to create a SC and I have tried to add delivery address  bby 2 types .
    1. By adding through the portal
    2> i have tried to add the same throgh ppomabbp in user attributes "Delivery address"
    I have also made it default however when I raise the SC it again shows me as blank :
    I am not too sure how do I populate the value that I need . Please see below still the delivery address is blank !!

  • List of cutomer ship to addresses.

    Hi,
    How can I get all the ship to addresses of a cutomer from prod system.
    We are in the process of updating the addresses of particular cutomer. So I have to back up all the addresses of the same cutomer.
    Please give me an idea of how to do it.
    Thanks,
    Veni

    Get the adress number of the customer from KNA1 table(KNA1-ADRNR) using KUNNR. Using the adress number, you can query the table ADRC (ADDRNUMBER) to get the adress details.
    Regards,
    Ravi

  • Ship To addresses Template

    Hi,
    Although there are several post threads on this issue, i got confused to actually use which template. I want to add the ship to address to my existing BP database. Previously, i only upload the bill to address. My question is, which template shud i use? BPaddress or BusinessPartner? If l use BPAddress, how the system link to which custcode? If i use BusinessPartner, where do i specify the ship to?
    Hopefully can get a clearer picture on how is it done. Bcoz, most of the methods that was suggested, i unable to execute.
    Thanks.
    Harith

    Dear,
    The template for BP address (either shipto or billto) should be BPAddresses.xlt. if the BP already exists, please follow the steps below:
    In you BP header file, the CardCode is the key of the OCRD table so it is all that is needed to perform the update.
    In your BPAddresses template the column LineNum is needed . The line number here corresponds to the column Row Number from CRD1. The 1st address that appears in the BP master data is the BillTo so this will have a row number of zero - this is blank in the table CRD1, but the subsequent
    addresses have a row number that is visible in CRD1.
    Please kindly run the following query to see what you need to use in LineNum column to update an existing address:
    SELECT CardCode, Address, LineNum FROM CRD1 WHERE CardCode = '???'
    To add a new shipto address, the linenum should be the biggest number retrieved from above query plus 1.
    DTW will use recordkey to match the header BusinessPartner and BPAddress.
    Hope the above helps.
    Xiaodan AN
    SAP Business One Forum Team
    Edited by: Xiaodan An on May 26, 2008 11:22 AM

Maybe you are looking for

  • New outputs generated when changing logical system in output master record

    Hi! We are sending documents from ECC 5 to a legacy system via XI/PI. We are about to move from an old XI installation to a new PI installation. The output record used (for example in a billing document) is set up based on logical system. When moving

  • Best way to run M$ windows apps on linux ?

    hi everyone, i plan on getting rid of my windows partitions. but that's big deal because i need to run a few (exotic) programs that are made for windows. i need to find a way to use them in linux, be it through a windows emulator or a computer emulat

  • Webmail and browser Problem

    Hi, Recently, we are encountering problem with our webmail. We are using Iplanet Messaging 4.15 Patch 3. After we have upgraded our browser to Netscape 7, users keep on complaining the following: 1. Could not send attachment. 2. After login, the load

  • Camera Raw And Sony Cameras

    I have Photoshop CS5 and Camera Raw 2012 version 6.7.0.339. In Camera Raws camera Calibration Panel under Camera Profile it only says Adobe Standard, there is no drop down menu with eg. Landscape , Camera vivid etc.  My Cameras are Sony SLTa65 and So

  • Link from Travel back to Overview Homepage

    Hi All, In ESS Travel after completing the expense report a link takes me back to the wrong homepage framework. Its taking me to the original page with all 10 icons set as default. I have created a new simplictic homepage framework which only has the