Get the Ship-to-Party from Sales Order and Line item

Hi all,
I am developing one report in which I want to get the Ship-to-Party for a particular Sales Order and Sales Order Line item number.
I can see table VBPA from I can get value of KUNNAR and so on. But my concern is that can the Ship-to-Party differ for different line items for sales Order, if yes how to get that one, any table or any function module?
In my scenario i found out that ship-to-party only depend upon sales order and partner function not line item.
please help me..
regards,
vikas.

Hi,
First step: Customer Creation (T. Code: XD01)
i) Create Sold to Party (Ordering Party) with Account Group: Sold-to-Party
ii) Create as many Ship-to-Party and Bill-to Party, if reqd, with Account appropriate Account Groups.
iii) Match all the Ship-to-party/ Bill-to-Party/ Payer for the respective Sold-to-Party under Tab: Sales Area data, Sub-tab: Partners.
Second Step: Sales Order Creation (T.Code: VA01)
i) Enter Sold-to-Party at Header Level.
ii) Enter Materials (at Line-item level).
iii) Now, System will pop-up all the Ship-to-Party/ Bill-to Party/ Payer, Matched for the particular Sold-to-Party. Click on appropriate selection.
OR
Now, (if option doesn't pops-up) select the line and Double Click on to the same line. it will lead to the next page. Here, Click Tab: Partners
Now, in Column: Partner Function, search for appropriate Partner: Ship-to-Party or Bill-to-Party or Payer.
Remember: Sold-to-Party will be non-editable as entered at Header level.
Repeat the same for Each Line-item.
Regs,
Amit K. Yadav

Similar Messages

  • How to know the excess stock with in a sales order and line item

    Hi,
          i am running an MRP against a sales order and sales order line item. the materials are getting planned based on the requirement. but due to some reasons the production orders are confirmed with out consumption of the actual required quantity of the  components. so the stock  is kept  ideal in the sales order  though it is not required further.
       do to some othere reasons also the excess stock of componenets exist. the PR or POs may also exist for the materials though they are not required further.
    i am in need of a report for the excess stock or excess PR or Purchase order for a sales order.
      please give me logic to find the excess things in that sales order and sales order line item. the Expensional message 26 is there in stock requirement list . but it does not give the excess quantity existing.
    regards
    madan

    hi rajesh,
      thanks for your reply. please tell me the logic to see when only partial quantity of sale sorder are delivered  and also when no delivery is made also.
    but manufactured and placed in stock.
    please tell me the tables to follow and logic of going ahead with them.
    regards
    madan

  • Locking Sales order and line item from reading

    Hi,
    I am writing an interface program to create an offer list inspection report. If two users are running the program at the same time, and if the first user read and processing a sales order line item, it should not read the same sales order line item twice for the second user.
    Please let me know if anybody has used locking sales order at line item level (VBAP).
    The enqueue function for VBAP is not working.
    Any suggestions will be helpful.
    Regards
    Ravikanth

    hi Ravi ,
    u Can lock the Sales Order for processing ,  u cannt restrict users @ tables level.
    u hhave to enqueue the VBELN
    Regards
    Prabhu

  • Copy "Ship to party" from sales order to "Delivery addreess" in PO

    Hi All,
    when i create a Purchase Order in ref to the Purchase Requistion of the Sales Order, I want the Ship to Party address from line item of the Sales Order needs to get copied to the Purchase Order line item in "Delivery address" tab of the PO.
    Please tell me the required configuration settings to achieve this.
    Awaiting your responses.
    Thanks in advance.
    Rgds.
    Anil.

    Hi All,
    This is a third party scenario. And in third party scenarios I guess the ship to party address from sales order will be automatically copied into the delivery address of the PO (Standard Functionality of SAP). But some how this is not happening and use to happen till the sixth week. Do I still need to check the enhancements given by the experts above? or we can achieve this with some configuration settings from schedule lines etc?
    Rgds,
    Anil.

  • How to populate the ship-to-party in Sales Order at the header level

    Hi Config experts,
    I created Sales Order. I entered the Sold-to-party number, item and Qty and when I press ENTER, the ship-to-party field does not get populated with Business Parter number. I am expecting the same sold-to-party number to get populated automatically in ship-to-party field too. But it is still empty.
    Any clues how to get BP no. automatically in ship-to-party field.
    Thanks,
    John

    Hi John,
    The partner is determinated by access sequences on your partner function in partner determination procedure. For example, if you set the access sequence 0017 'Current Partner: Sold-To Party' on ship-to party on your partner determination procedure, you can see the ship-to is set as sold-to when you enter the sold-to.
    Regards,
    Masayuki

  • Line item Ship-to Info is not the same in Header Ship-to Party During Sales Order Creation via IDOC

    We have observed that during creation of sales order using idoc, the line item ship-to party is not the same with header ship-to. The ship-to party info in line item is equivalent to the header's sold to party. To give you a quick background, Sold to party info is given in idoc and ship to party is being determined using table EDPAR. In this specific scenario, sold to customer is not the same with ship to customer.
    Initial checking on the code leads us in function module VIEW_KUAGV. This FM populates partner details of sales order header and line item in program LVEDAF1Z
    Below is the code for Sales order Header. Notice that WE_INPUT parameter which contains Ship to party is passed as exporting parameter in FM VIEW_KUAGV. This is the reason why Ship to Party is populated correctly in sales order header but not in sales order item.
    Initially, it first set to Sold-To Party. However, if WE_INPUT is given or provided, partner details is set to Ship-To Party.
    Please advise on how we can make the ship to party info in header and line item be consistent. This is SAP Standard program which why we are hesitant to make change on the program. If there is a configuration to make this happen, kindly advise.
    Regards,
    Rommel

    Hi Jayesh,
    If I understand you correctly, you want that when creating SO from Quoatation
    the Ship to Party also follow/copy Ship to Party from Quotation, right?
    Just to confirm with you, when you creating SO reference from Quotation, you
    use copy/follow-up function, am I right?
    You can do this by setting in configuration of Copy Control (like mentioned by Hui).
    Step as follow :
    1. Go to IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions
    2. Create your BAdi (Business Add-In for Copying Control), such as get Ship to
        Party value from source document and use it in current document
    3. Use this Rule you have created in BAdi (no. 2), in copy control transaction type
        IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions-> Define Copying Control for Transaction Types
    4. Here you set Copying Routine for your transaction types (put name of your Badi
        created in step no. 2)
    Or alternatively, you can set it on access sequence in Partner Function
    Ship to Party in configuration. You can define access sequence the Ship
    to Party is taken from Preceeding Document -> Ship To Party
    1. Go to Partner Function access sequence :
        IMG->CRM->Basic Functions->Partner Processing->Define Access Sequence
    2. Create new access sequence with following entry :
        - Source COM_PARTNER_A (PrecedingPartner)
        - Check Mapping for Partner Being search
        - Partner Function in Source  = Ship To Party
    3. Assign this Access Sequence in you Partner Function used in Sales Order Transaction
       Type.
    Tell me if this is what you looking for
    Gun.

  • Ship to party in sales order

    Hi All,
    I have few doubts about sales oder in SAP.
    Ship to party is customer where we want to ship the goods.
    1)The code which i see in Ship to party in not available in SAP APO.
    Any idea how to check the ship to party of sales order in APO.
    Thanks,
    Krishna

    Hi Ada,
    Thanks for the reply but in my case this field is empty.
    Where as in R3 there is Ship to party information.
    Thanks,
    Krishna

  • How to get the Ship-To text for an Order from R/3 to CRM?

    Hi experts,
    how to get the Ship-to-Party text for an Order from R/3 to CRM?
    Here I used a Function Module CRM_ORDER_READ and its working in the Development server.
    After when this passed to the Stage Server for the Order i am maintaining the same Ship-to-Party for the order in the Stage server and I am no getting the text for that{Text maintained for the Ship-to-Party in the stage server}.
    Thanks in advance.

    Hello Nilaksha.
    You can use the following query. Modify the segment to be queried if you wish.
    SELECT cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4 "Account",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id = <your set_of_books_id'
    AND cc.segment2 = 'your segment value'
    AND l.effective_date <= '30-nov-09'
    GROUP BY cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4
    Hope this helps.
    Octavio

  • How to fetch the VAT registration number of the ship to party from billing

    Dear SDN Team
    How to fetch the VAT registration number of the ship to party from the billing document.  Can you proide some information for fetching the VAT registration number of the ship to party.
    Normally only the payer VAT registration number will be displayed in the Invoice.  But in my case the Ship to party VAT number is displayed. 
    I have resolved this problem by doing the customizing setting in order to have the payer vat registration number.  But for the Old Billing documents it is more than 30,000 documents where it was printed with the ship to party VAT number.  So i need to identify those documents.
    Can you please help to resolve this problem.
    With Regards,
    Jai

    Hi,
    To get VAT from the ship to from Billing, You have to first fetch the BILLING NUMBER from the VBRK and then goto the Document flow in VBFA to get the SALES DOCUMENT NUMBER and with sales document you will get the SHIP TO number from the VBPA with the PARVW = SH
    Once you got the SHIP TO , then goto the KNA1 and get the VAT ID in the field STCEG
    so the logic will be as follows
    VBRK---VBELN and then
    VBFA--VBELN with the document Category as C
    VBPA-VBELN and get the  KUNNR with PARVW =SH
    Now with KUNNR ( ship to ) get the VAT ID from KNA1-STCEG
    regards,
    santosh

  • Re: Pricing for more than one ship-to-party in sales order

    Hi Gurus,
    Currently I am facing a problem regarding pricing the shipping charge for a sales order having more than one ship-to parties in it.
    Our business process is having a pricing condition type which calculates the shipping charge based on the total value of the order.
    The technical details of the condition type are as follows:
    ZSHH
    Cond. class =    A  Discount or surcharge                  Plus/minus  =  A Positive
    Calculat.type =  B  Fixed amount
    "Group cond" & "RoundDiffComp" are "checked"
    GrpCond.routine 1  Overall Document
    Scale basis = value
    Now due to this depending on the entire order value the shipping cost is calculated.
    However when there are 2 ship-to-party the system should group the items to be shipped to each ship-2-party and calculate the prices accordingly.
    Now as the "GrpCond.routine 1  Overall Document" -- it is taking the total order value while calculating the shipping price even if there are 2 ship2party in the sales order. I am just wondering how to go about this situation.
    There is no value in the pricing formula that calculates the price based on ship-2-party.
    Can anyone help me with this?
    Does this mean that I have to create a new scale formula in VOFM?
    Also how is the shipping price charged when the customer requests partial deliveries?
    Thanks in advance
    Vinit

    Vinit,
       You need to create a new GrpCond.routine. You can do this in VOFM-> Formulas -> Structure of group key. You will need to have the carrier available in the communication structure komp. So assuming you do this, create a formula like 050(RV65A050). Enter code that would look like(I am assuming your carrier code is 10 in length):
    FORM FRM_GRUPPENKEY_050.
      xvakey      = '050'.
      Xvakey+3(10) = komp-carrier.
    ENDFORM.
    Then assign 50 to the condition type(v/06) as the new GrpCond routine. This should give you your desired results.
    Partial deliveries will only take the portion of delivery charges shipped from the line. Eg if 10$ freight on the line and 1 of 2 is shipped, you will only see 5$ on that invoice as long as your pricing rule is copy unchanged.
    Edited by: Matthew Menzies on Jan 21, 2009 11:26 PM

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Change of Ship to Party on sales order after invoice

    Hi all,
    I have created a sales order, created a despatch advice and then created an invoice. After that i opened sales order and changed ship to party there. System is allowing me to change ship to party on sales order after invoice. I want that system should not let me change ship to party on sales order after invoice.
    How can i do that as this is an audit issue as we have different prices for different ship to parties.
    Please respond.
    Best Regards,
    AI.

    Hi
    You have two options
    1. create a transaction variant in T.code SHD0 for VA02 and make the field as display in the variant. But remember that you will not be able to use standard T.code VA02 after this, you need to make and use a "Z" t.code like ZA02
    2. Take the help of your ABAPER and ask him to find a screen exit in the sales order PBO module, where he will be able to grey out the ship to party field.
    Hope this helps
    Chandra Kiran

  • More than one ship to party in sales order

    Hi All,
    Can anyone tell me , could we have more than one ship to party in sales order if no then why not?
    Regards,
    Ashima

    Hi Ashima,
    One order can have any no.of ship-to-parties.If an order contains more than one item,there is a possibility to maintain different ship to parties for each and individual item.We can do this while processing the sales order,at item level.In order to do this we have to follow the menu path
    In the overview of saled doc use the menu path Goto-Item-parner.
    Here u can find default ship to party for all items.Here u can change your desired ship to party particulat to that item.
    Like wise u can maintain any no.of ship to parties in a single order.
    But one thing is imp all these ship to parties must be assigned to that sold to party,Which is entering at the header level.
    Basing on the no of ship to parties we are maintaining at the item level during the creation of order, delivery splits into more than one.

  • Quantity is different from sale order and delivery

    Hi,
    Gurus,
    Quantity is different from sale order and delivery.
    I identified the Material in the sales order, the item category for this material as BOM.
    I have also checked the bill of material display header overview. The Base Quantity maintained as 1000 EA3. The SUBITEM maintained in G in the unit field in bill of material display.
    Accordingly i have checked the same for material master's additionl data in Units of Measure tab, it is mentioned the basic unit as 1000 EA3 and alternative unit as 600 G.
    My client processed the order for 100 QTY. The QTY for the two sub item is 99.601 each in the sale order.
    My client Question is why in delivery the Material Qty is coming as 99.730 and the SUB ITEM is coming as 99.330 EACH.
    Note:- The material X is maintained in EA3 in Bill of material header overview. I do no how the sale unit came as G for the Material in sale order.
    The other two sub item is perfectly coming as G. Because it is maintained in G in the Bill of Material Display.
    Guide me GURUS.
    Thanks and Regards,
    ANAND

    Hello Rumar
    I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
    In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses.

  • Blocking RdA creation from Sales Order Schedule Line

    Hi Gurus,
    please do you know if there is a way to block the RdA creation from Sales Order schedule line, for TAS item category? I tried with Header Delivery block without quantity confirmation but even if quantity on schedule lines are not confirmed, RdA is created anyway.
    Thank you very much
    Kind Regards
    Andrea

    thank you

Maybe you are looking for

  • File Sharing Only One-Way Now Since Soft Crash

    Greetings! Several months ago my 1.25 10.4.11 eMac suffered not a physical hard drive crash but some kind of software crash that scrambled directories. Disk Warrior made the system functional again, save an occasional prefs or cookie glitch caused by

  • Oracle forms

    hi, oracle forms training slides i need

  • Identifying and managing clients in nonblocking NIO socket programming

    Here's my beef. When I write a Server using a thread for every new connection that comes in, I can remember everything for each client in its respective thread. I can have a table entry in a MYSQL database for each client which each thread can look u

  • After importing from iPhoto, how would you eliminate the photos?

    I have installed Aperture adn like it quite a bit. I imported from iPhoto (which copies over the pictures...not move.) I have backed up the photos in iPhoto to an external hard drive in case Aperture blows up on me and I need to go back to iPhoto. Bu

  • Error in  PO release strategy

    Hi everyone,    I am facing an error in PO release strategy ie;  '  purchasing document (pdocno)  not subject to release strategey'. pls help me in solving this. Thanks, Archana.