Ship-to Party details- not from Customer master

Hi all,
I need to fetch ship to party details for SO and those details should not be from Customer master(order specific including name, location and region)
For that  I am using following code.
      SELECT vbeln
             kunnr
             adrnr
             parvw
        FROM vbpa
        INTO TABLE it_vbpa
        FOR ALL ENTRIES IN it_vbak
        WHERE vbeln = it_vbak-vbeln
        and   posnr = '000000'               "Header line partner details
        AND parvw = 'WE'.
      IF NOT it_vbpa[] IS INITIAL.
        SELECT addrnumber
               name1
               location
              region
          FROM adrc
          INTO TABLE it_adrc
          FOR ALL ENTRIES IN it_vbpa
          WHERE addrnumber = it_vbpa-adrnr.
      ENDIF.
Am I doing it in correct way or am I missing something here?.  Please suggest.
Regards

Hi,
It seems you are retrieving partner detials at header level of a SO. Code seems to be OK.
Let us know if you have further issues. Thanks.

Similar Messages

  • Ship to Party Other than in Customer Master

    Dear All,
    I want to control that only the ship to party assigned in the customer master will be derived in the sales order and user will not be able to enter another ship to party even before entering the sold to party. In standard system there is a control from which you can restrict this once default ship to party has been derived user cant change the ship to party. But if a user during data entry without pressing the enter manually enters the ship to party, system accepts that ship to party even though its not defined in the customer master
    Kindly help me on this

    Hello ABAPer
    First of all i am not clear of your requirement
    Partner functions whatever you have defined in CMR will flow into sales order unless and until you have different partner determination procedure at sales doc header level
    Without defining at sales header and item level you cant add just like that in sales order
    Make sure it is defined at CMR only
    By ticking the unique check box system will allow you to create the partner function only once
    I have checked that
    This is for only new CMRs and i dont think that it will apply for Already created CMRs
    The checking what you have done is after ticking the unique check box you would have tried it out in the existing setup
    I request you to create a new CMR now with SH unique ticked and see and reply back
    Regards
    Raja

  • Payment terms based on specific dist.channel, division and Plant but not from customer master.

    Dear All
    I have a requirement,
    Generally payments terms from customer master will flow to sales order. but here my requirement is to get a different payment terms based on specific distribution channel, division, customer  and plant those are there in sales order but not from customer master. is there any user exit or functional module to fulfill this requirement, or any other suggestion appreciated.
    Thanks,
    Reddy

    This Problem you can solve without user exit too.
    The Customer master data itself can solve the problem.
    You can maitain diffrent Payment Term as per the sales area (Dist.Ch+Div+S.org) of customer master.
    and each sales are wise u can change the plant also.
    You just need to set your logic with the combination of sales are and plant. And need to assign which payment term should determine to sales order.
    If you are rasing sales order with X sales area relavent to that payment term will trigger.
    Hope above logic will work, otherwise you can go with user exit.

  • Ship to party is not comming same in Sales order from Quotation?

    Dear all,
    Here I have a scenario,
    (1) I created 1111 sold to party and extended fot SH,BP,PY and
    (2) I created 2222 ship to pary is only a SH not others.
    Now when i enter 1111 for sold to party and 2222 as a ship to party in Quotation and when i am going to create a order with reference to that Quoatation the system pick up 1111 as a sold to party and also ship to party same in order.
    Why?
    Can anybody guide me
    Thanks
    Jayesh

    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 10106086 not defined for sales area 6000 40 30 error

    HI gurus,
    We have maintained cross divisions 00, we VR02 have maintanied the combined the divisions and we have maitned the division at MM01, we are getting VP210 error: Ship-to party 10106086 not defined for sales area 6000 40 30.
    please help me in this we are unable to create a order.
    this is urgent.

    Hi,
    The error is Ship-to party 10106086 not defined for sales area 6000 40 30
    Here system is considering distribution chan 40 & division 30 
    Go to VOR1 and maintain like as
    Sales ogz - Distribution channel - Distribution for Condition  - Distribution chn for CUST/MATERIAL
    6000 - 40 - 40 - 00
    Then in VOR2
    Sales ogz - Division - division for Condition  - division for CUST
    6000 - 30 - 30 - 00
    Then also check you have created customer for sales area 6000-00-00
    Check in VOV8 go to details of your sales order type under general control tab Check division should be blank
    OR
    Remove division form material master basic data tab 1
    Kapil

  • Mapping Sales dist from customer master to 0SD_C01 infocube

    Dear All,
    I have a requirment of mapping Sales Dist ( 0SALES_DIST )  from Customer Master ( 0CUST_SALES ) into report based on Infocube Billing Condition Value ( ZSD_C01 ) . i.e. report should show Sales dist data fro customer master and not from transaction data.
    The infocube ( ZSD_C01 ) contains sold to party ( 0SOLD_TO ) which can not be mapped to 0CUST_SALES .
    Is there any solution for this.

    Dear Alex ,
    When I am doing remodeling to Add 0CUST_SALES in Customer Dimenssion and  using 1:1 maping with characteristics of 0SOLD_TO option . system is giving following error. 
    Characteristic 0SOLD_TO does not have all compoundings of 0CUST_SALES
    Since 0CUST_SALES is compounded with Sales Area  remodeling doesn't work in spite of having all characteristics of Sales area in the infocube.
    Is there any other way to replace the data.

  • Text from customer master to delivery header

    Hi Experts,
    Here we have a requirement, Text what we maintain in the customer master (like Shipping point address) text need to be trigger at Delivery header,
    1) Is it possible in standard text determinaction or we need to go for any user exits?
    2) If we want to use user exits what are the user exits we have to copy the data from customer master to delivery header.
    NOTE: Client doesnt want to use the text from sales order or scheduling agrements.
    Please help me to fill the requirement .
    best regards,
    chiranjeevi

    Hi Chiranjeevi,
    It is possible to achieve this with standard text determination procedure itself.
    Goto transaction VOTXN and in the "Delivery --> Header" create a new access sequence with the Customer Master Text IDs (like the ID which contains the Shipping Point address) from which the text is to be selected. Once done, create or make use of an existing text determination procedure available under Delivery Header and then assign the access sequence to the Delivery Header Text ID into which the Customer Master text is to be copied. Maintain additional settings as necessary. This will ensure that the text from customer master is directly copied over to the delivery header.
    There are many documents already available (search in Google) to explain the text determination process if you need help with the same.
    Regards,
    Som

  • Need to pull postal code in SO from customer master instead on postlcd/city

    I want  postal code to be pulled in sales order - partners tab for  bill to party from customer masater/ under PO box adress.
    Currently it is pulling postal code/city from customer master/ under street address.
    Is there any standard con-fig available for same ?
    please reply,
    Thanks and regards,
    Sujit

    normally not but in asset reporting there seems to be a relation between structure and report-name (not tcode)
    go to tcode se11 and search for structures with search term FIAA_SALVTAB* and you'll find some structures.
    The last part of the name (RABEST, RABEWG ) is the link to the report (RABEST01, RABEWG01)
    hope that helps
    Andreas

  • The ship-to party could not be determined

    Hi All,
    while i was creating abilling doc i got this massage ( The ship-to party could not be determined) system massage NU 049
    although i am using acustomer which i defined to it aship-to party and this ship-to party already retrived in the sales order and delivery so can u help me pls.

    Hello
    Are you sure you are getting Error Message NU 049.
    B'coz this message is associated to material, when NU049 Material & is flagged for deletion, i.e., you chose a material that is flagged for deletion in the material master.
    If that's not the case then kindly post message associate to shipping partner. I hope this should be VP-194: No customer master record exists for ship-to party &
    As most of the partner error message number starts with
    - VP
    - VPD
    - VPD_DETERM_LOG
    Thanks & Regards
    JP

  • Ship to party can not be found in freight order for cost calculation

    Dear All,
    Cost charge can not be calculated because of missing ship to part. Please help me about this problem
    In my rate table, there are 3 combinations which are Product + Carier + Ship to party.and cost will be calculated according to weight. Also resolution base is selected product in calculation sheet.
    When I press "calculate charges" button in fregiht order and have a look at charge anylysis log, product ID and Carier are found successfully, ship to part not. Erro message is "Calculation base SHIP_To_PARTY has [ ] on resoltion base product"
    Also how can I add new scale base , is there any user exit or any documentation?
    Regards,
    Ali

    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.

  • Tax condition(JVAT) of ship to party is not triggering in Sales order

    Hi,
    Tax condition(JVAT) of ship to party is not triggering in sales order...
    Scenario:
    Tax condition types:
    JCST- CST Payable
    JVAT- VAT Payable GJ
    Customer Tax classification for JVAT in OVK3:
    1-  VAT 4%
    A- VAT 0%
    B- VAT 2%
    Material Tax classification for JVAT in OVK4:
    0-Tax Exempt
    1-Full Tax
    In CMR for
    Sold to Party:1001(Mumbai), In Sales Area Data(Billing Tab),we have
    Country/Name/Tax category/Name/Tax Class./Descrption
    IN / INDIA / JCST  / CST Payable / 1 / CST 3%
    IN / INDIA / JVAT / VAT Pay GJ  / 1 / VAT 4%
    In CMR for
    Ship to Party:2001(Gujarat),In Sales Area Data(Billing Tab),we have
    Country/Name/Tax category/Name/Tax Class./Descrption
    IN / INDIA / JCST  / CST Payable / 1 / CST 3%
    IN / INDIA / JVAT / VAT Pay GJ  / A / VAT 0%
    Access Seq:   JLST
    Condition table : 368(Country/Region of Del Plant/Region/Tax class1-Cust/Tax Class1-Mat)
    Condition record maintained for JVAT as IN/GJ/GJ/1/1 as 4%
    Condition record maintained for JVAT as IN/GJ/GJ/A/1 as 0%
    Now the sale(Shipping to) is happening in Gujarat..
    In sales order
    I entered SP:1001 and SH: 2001
    When i check the pricing in sales order,condition type JVAT is triggering 4% which is not true as it as to pick 0%
    Kindly guide me where i went wrong...
    Regards
    Azeez.Mohd

    Hi Friends.
    I found the solution...
    Its customization mistake..
    Solution:
    When we have 'n' tax categories then we should have 'n' condition tables..
    I have 2 tax categories: JCST and JVAT but i have only one condition table 368 which is wrong.. i should have 2 condition tables.. so i created another con. table 468 and assigned to access aeq JLST.
    then when i create cond. record , we have to select the appropriate table then it will fetch accordingly.. in sales order..
    with regards

  • Payment card retrieved from customer master?

    hi gurus,
    i am using payment card processing. i want to know why i can only manually input card type and no in sales order although i have maintained the information in customer master. can anyone kindly tell me how can i set to enable auto retrieving card type and no from cutomer master into sales order? thanks a lot.

    Hi Daniel,
    i guess you havent missed any config and the payment card details wont copy to sales order by default. I am also working payment cards. Reason why it isnt set in config is, we may want to input a different card number at the time of sales order / or want to use two cards to authorize a sales order / or if one of the cards has expired or invalid then i want to input a second card info.
    Still if you want to pull in the info from customer master you may check with userexit_field_modification.
    let me know if you have more queries on payment cards.
    regards
    sadhu kishore

  • Copy mode of payment from customer master data to sales order,

    Hi Gurus,
    Hope all is fine.
    I have a small doubt. If we want to transfer the mode of payment from customer master data to sales order, do we have to use Exit- MV45AFZZ.
    Can't we transfer the data without the exit?

    Hi,
    I have tested this in sand box.Thought the customer master is having payment method ( payer ) ,It is not copying from customer master to sales order but if you maintain manually in sales order ,it is copying into billing document level.FYI see below snap shot.
    Note:If you want it from customer master into sales order,may be you need to take help of abaper on this.
    BR's,
    Naren

  • How to Copy Sales Text Data from Customer Master to Sales Order.

    Hi SAP Guru's
    I have Completed Configuration for Central Text for Customer Master for two texts 1)Additional Attachments 2) Wooden Packing
    I got these two fields in Customer Master.
    I need these data to be copied from  Customer Master to sales order. But i am unable get these two in to sales order.
    Steps which  I have done for Text Determination.
    1) Text Id in for Text Object KNA1
    2)Placed Text Id  in Text Procedure  and assigned   this procedure to Customer Account Group.
    Could you please advice me
    Thanks in Advance.

    Text Control
    In this IMG activity, you define the rules for text determination. You must carry out the following steps:
    Select a text object and define the rules for text determination for this object. Text objects are, for example, the sales texts in the customer master record or the sales document header.
    Define the permitted text types for every text object. If the text types contained in the standard SAP R/3 System are not sufficient, create new ones.
    Define the access sequences. This way, you define how the SAP System should determine the texts for a text type.
    Group the text types together in text determination procedures. The SAP System then proposes the text types from the procedure when you maintain a customer master record or a sales & distribution document. The search for the respective text is carried out using the access sequence which you have stored for each text type in the procedure.
    Allocate the text determination procedures so that a procedure applies to the following criteria in each case:
    account group customer
    sales & distribution document type
    item category

  • Invoice SAP SCRIPT is not printing Customer master text.

    I was given a SD-invoice#  XXXXXXXXX, which has problem with in it's SAP SCRIPT --> is the text is taken from  "customer master data head office text" is not printed on the SCRIPT out put.
    1). What I don't understand by going to /nvf03 --> by giving invoice number , then how can I view the script output ?
    The text is supposed to print in footer ...however the coding inthe FOOTER window is
    /:   INCLUDE 'Z_FOOTER_SO_4700_INV' OBJECT TEXT ID ADRS LANGUAGE 'IT'
    So, do I need to add coing for text of customer master data ?
    Any idea about text and field name ?
    THANKS IN ADVANCE.

    Hello,
    To see the output go to /VF03, enter the billing document number but don't press enter. Go to Billing Document in the menu bar, Issue Output to, select a line and do a print preview (if there's nothing there, the doc hasn't been printed before).
    To print the text, ask somebody to navigate to where it is in SAP. Double click on it, choose Got -> Header. This will give you all the information you need for the INCLUDE.
    The INCLUDE statement you have is for a standard text (trans: SO), not the "customer master data head office text".
    Michael
    Edited by: Michael Evershed on Sep 26, 2008 10:41 PM
    Edited by: Michael Evershed on Sep 26, 2008 10:41 PM

Maybe you are looking for

  • Issue with VS project - Report has remapped fields

    VS 2005, Crystal XI R2 We recently upgraded a VS project using Crystal reports. The database has changed, with table name and field name changes. We used the "set datasource location" to remap the table names and fields. Reports run fine as stand alo

  • ABAP Mapping: No MESSAGE_OUT during runtime. test OK

    Hi everybody, I got a ABAP-Mapping. During runtime I get noch MESSAGE_OUT (empty!) But when I test the ABAP-Mapping, everything is fine! Any ideas? Regards Mario Edited by: Mario Müller on Sep 11, 2008 9:09 AM

  • IPhoto Library from iPhoto 08 to 09

    I'm a newbie...pardon my lack of knowledge on this. I've got an iMac running Leopard and iPhoto 08. I've got a pretty extensive library setup. My wife just setup a new mini-mac running Snow Leopard and iPhoto 09. They are both sharing on the same net

  • Zprograms and t-codes

    Hi i have to prepare a report that displays the zprograms and respective t-codes. can someone give me the tables relevant to them please. its very very urgent.

  • Netbeans and JavaFX

    I am new to Netbeans and am only using it for the JavaFX integration (IntelliJ user) so I am not sure if I am dealing with my ignorance of Netbeans or some JavaFX idiosyncrasy. However, when I try to organize my JavaFX code into package structure (ra