Creation of Ship tp party code based on Address in BAPI_SALESORDER_CREATEFR

Hi Experts,
Scenario is read external file as input to create SO in ECC .
I am using the BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order. In VA01, Ship to party and sold to party needs to be passed  in header level . But the problem is that I am unable to send the Ship to party Code , but i can send only the address of ship to party .
1. How can get the  Ship to party code based on the address ?
2. Which BAPI filed to update the Ship to party address ?
Kindly help me out.
Thanks.,
V.Rangarajan

Hi Vijay
I think if you mean Address as ADRNR, then what you can do is
1. Go to KNA1 and from ADRNR no get the Ship-to-party number.
2. When you get the Number Call your mentioned bapi and in Tables parameter 'ORDER_PARTNERS'  pass the values of ship-to-party and sold-to-party in field 'PARTN_NUMB', update the field PARTN_ROLE with assigned Partner Function.

Similar Messages

  • Maximum ship to party codes

    Hi Guys,
    Just want to ask this.
    What is the maximum ship to party codes that you can assign/attach to a Sold to party account in the customer master data?
    Hope you can help me out.
    Tia
    ~chance

    Hi, I've the same problem, when I try to add the SH  number 1001 the message is: There are already 1000 entries for function SH.
    Do you know if there is something I can do in order to skip this error message? anything by customizing? is there a SAP NOTE?
    Regards,
    Adriana

  • In IDoc system is picking Plant code instead of Ship to party.

    Hello Experts,
    I am not so good in Idoc process.
    When I am reprocessing the IDoc I came to know that system is picking Plant code (plant address) instead of Ship to party code.
    Kindly let me know How can I check it ?
    How I can reprocess it ?
    is there any way/t-code we can track the mapping in Idoc ??
    Awaiting your precious reply.
    Thanks,

    Hi,
    Please provide your scenario
    because Message type and Basic IDOC type varies from process to process
    if you know Message type, check in WE41/WE42
    and underneath you can get logical message as well

  • Ship to party  name (despcription) change in Sales order

    The requirement is as follow:
    After entering the Sold to party in a sales order, user enters the Ship to party code and would like change the name (description) of the ship to party as he likes in sales order. But without maintaining / modifying changes in partner functions/ customer master.  There is only one ship to party, so there will be no pop up to select the ship to party.
    This is something like one time customer ...here they want the the ship to party name can be changed.
    With Regards,
    Amar

    You should be able to change address in sales order and that change is only valid for this particular sales order. User should go to header partner function tab and select the ship to part and go to details and then change the address.
    Be sure that your delivery note is reading ship to party address from sales order not from customer master otherwise you will get old address in delivery papers.

  • How to change Ship to party no. in delivery doc. after creating Invoice

    Hi,
        Sold to party ( customer code ) 1001473
    But by mistake bill was raised ship to party ( customer code ) 1001082 then I changed the ship to party code ( through VA02 )and saved the documents, but still in the invoice it is showing  ship to party address only instead of sold to party.  If any thing possible in the delivery level ( vl02n ) to change the ship to party so that it will possible to change the invoice it self. Kindly confirm so that I will reverse the entry and change the ship to party code in vl02n and I hope it will not any reflect in the  invoice.
    Regards
    Jibanjyoti

    Hi,
    First reverse the invoice(Cancel)
    Then change partner functions
    go to SE16N and  Change table entries
    if you want to change in SALES ORDER,then put table VBAK,VBAP
    if you want to change in delivery,then put table LIKP, LIPS 
    After chages
    create invoice again
    Note : As I am not tested this due to system unavailability, but as far as my undersatnding it will work
    kapil

  • Creating Sales Order, but picking up wrong ship-to-party

    Hello Friends,
    I am creating an urgent sales order by mentioning the sales organization, distribution channel and division.
    I mention the sold-to-party X but do not enter the ship-to-party.
    I know it selects the ship-to-party automatically based on the partner functions mentioned in the sales area data of the customer (sold-to-party X).
    But my problem here is there are three ship-to-party mentioned, and it selects one. How does it determine which ship-to=party to determine?
    Is it sorted in ascending order?

    Hi Raj,
    yes it does show a pop-up with multiple Ship-to-parties and i can select the required. I agree.
    But actually i create sales order using a program, so the program calls BAPI_SALES_ORDER_CREATEFROMDATA which creates the sales order using the first entry in the partner functions pop-up by default.
    I want to know how is it determined that which partner function is first? Is it in ascending order?
    In the above screenshot, why does 16508 appear before 30597?

  • How to determine "Sold-to" party from "Ship-to" party

    Hi friends,
    <<text removed>>
    I have to determine the "Sold-to" party for a particular "Ship-to" party. Could you please let me know what is the Table we need to query for this??
    I have already checked out table KNVP, however I could not find the correct "Sold-to" party for the "Ship-to" party.
    <<text removed>>
    Thanks,
    Vishal.
    Edited by: Matt on Feb 11, 2009 11:22 AM  An emergency on your part doesn't consititute an emergency on our part.  To understand why your post is edited - read this http://catb.org/~esr/faqs/smart-questions.html
    Edited by: Matt on Feb 11, 2009 11:23 AM

    Hello Vishal,
    Ship-To party is assigned to Sold-To for each sales area. So the first step to get Ship-To, is to determine the Sales Area, if you don't have that then you can use the FM   SD_PARTNER_SALES_AREA_CHECK to get the Sales Area.
    If you already have the Sales area, then you can use the following FM, which will return Ship-To party code.
    *  Get Sold-To from Ship-To Party
       Call Function 'SD_PARTNER_GET_SOURCE_PARTNER'
          Exporting
             I_KUNNR             = cKUNNR  "Sold-To party
             I_PARVW             = 'WE'
             I_PARVW_SOURCE      = 'AG'
             I_VKORG             = cVKORG
             I_VTWEG             = cVTWEG
             I_SPART             = cSPART
             I_CALL_BAPI         = ' '
          Importing
             E_KUNNR             = cKUNAG
          Exceptions
             No_Partner_Found    = 1
             No_Partner_Selected = 2
             Others              = 3.
    Let us know if this helped...
    Amit Purohit.

  • Sales Order with different sold to party & ship to party

    Hi experts,
    We have one sold to party customer code DE0009 .  There is no other ship to party code assigned with this customer in the masters. but still user can make Sales order with Sold to party DE0009 & another ship to  party code ( DN0020 ) which is not assigned.
    Ideally , system should restrict it .
    Please guide us how to control.
    Regards,
    ( Rajneesh Gulati )

    Hello Rajneesh Gulati,
    Ship-to party doesn't have to be assigned to the sold-to party in the master data.
    You can kindly refer to Note 380507 which can provides you with more info.
    Best regards,
    Miri Shimony
    Solution Management
    Globalization Services

  • Sold to party adress copy to ship to party

    HI,
    when customers place an order on the internet they get a choice to deliver to a different delivery address.
    When customers choose this option and type in a different address it does not ask them to enter in a tel number.
    Would it be possible in sap to copy the main tel number entered on the internet  into the ship to party tel number on all occasions?
    Internet orders have shipping condition E1
    Example delivery 807924096 which is an internet order, the sold to party tel number is 07923622906 the ship to party has a different address and no tel number, could the sold to party tel number be copied to ship to party tel number?how
    reagrds,
    Debesh

    Hi,
    You cannot do this directly. But using the user exits you can enable it.
    You can also save the telephone number provided by the user in some Z table and then take the values from the Z table and then enter them in the telephone number of the ship to party. May be this can also be scheduled as a job and can run twice a day, by which you can actually optimise the system performance.

  • Change of Ship-to-party address in IC WebClient

    Dear Guru's,
    Acc. my business requirement i need to configure IC-webclient,
    Scenario1:- End User should be able to change the Ship-to-party address (on customers request) thru IC-Webclient. (in this scenario sold-to-party & ship-to-party are 2 different addresses.)
    can ny1 guide me on this.
    Thanx in advance
    -Nirav.

    Hi,
    Nirav
    Pull in the Transaction BP view from the transaction launcher .This will have the BP transaction which will have the details in edit mode for you .You can restrict the views with authorisations for the user.
    Hope this will resolve your Issue
    Regards
    Raj
    Don't forget to reward!!

  • 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.

  • Credit Memo Creation - Sold-to-party / Ship-to-party fields

    I am trying to create a SD Credit memo document.
    From the thread Credit Memo Creation I understand that  the BAPI BAPI_SALESORDER_CREATEFROMDAT2  cant be used and instead I gotta use the FM SD_SALESDOCUMENT_CREATE for this purpose.
    On this backdrop, I am trying to pass sold-to-party / ship-to-party values into this FM.
    But, in the structure SALES_HEADER_IN type BAPISDHD1, I couldnt find the fields to pass these values.
    Please advise the name of the fileds/structure where I should pass shiptoparty and soldtoparty values.
    In VA01 screen, you could see these fields.
    Thanks,
    Message was edited by:
            Jay
    Message was edited by:
            Jay

    jay,
    check the below link for couple of sample codes...
    Re: BAPI_SALESDOCU_CREATEFROMDATA, create credit memo request
    May be helpful for you
    ~~Guduri

  • Incoterm to be derived from Ship to party in sales order creation via va02

    Hi Experts,
    I have a requirement.
    When a new sales order is created from the screen va02, the inco term flows from the sold to party.
    It should infact flow from the ship to party.
    So standard SAP  SAP derives the incoterms from the sold-to -party when creating saloes order from the va02 screen.
    we should implement user exit for this.
    I just did a little bit of search and got the info that the euxt should be done in MV45AFZZ. in the FORM USEREXIT_MOVE_FIELD_TO_VBKD
    If anyone has worked on this please share your code details of things to be considered.
    Regs,
    SuryaD.

    Hi Experts,
    Found the solution.
    TCode SE38,
    In program MV45AFZZ, in FORM USEREXIT_MOVE_FIELD_TO_VBKD:
    IF us_posnr = 0 AND svbkd-tabix GT 0 AND NOT kuwev-inco1 IS INITIAL.
        vbkd-inco1 = kuwev-inco1.
        vbkd-inco2 = kuwev-inco2.
    ENDIF.
    SVBKD_TABIX = 0 means that you are in the creation mode (VA01),
    SVBKD_TABIX>0 means we are in the change mode(VA02)
    US_POSNR = 0 means that there is no position number for the item yet.
    Regs,
    SuryaD.

  • Pricing Procedure Based on Ship to Party

    Hi Guys,
    During creation of sales order I want the pricing procedure to be picked up based on ship to party.
    Ex: Sold -to -Party: Delhi ; Pricing procedure: 1
          Ship-to-Party: Mumbai; Pricing procedure: 2
    And if I run a sales order with SH -Mumbai, then the pricing procedure should be "2".
    If the SH is Delhi then the pricing procedure should be "1"
    Is this possible?
    Regards
    Ayyallas

    Hi  Ayyallas
    When you create the sales order , the pricing procedure is picked up based on the sales area + Cupp + Dupp. . So it is not possible to pick the pricing procedure based on the ship to party when you create the sales order.
    Regards
    Srinath

  • Select Contracts based on Ship-to Party

    Hi all,
    I have created two contracts of type ZCQ (VA41) with the following soldto and shipto party values.
    Contract 1: soldto1, shipto1
    Contract 2: soldto1, shipto2
    <b>Now I need to retrieve contracts, based on a search criteria consisting of Sold-to party and Ship-to party. i.e If I enter soldto1 and shipto1 I need to get back Contract 1 and if I enter soldto1 and shipto2 i need to get back contract 2.</b>
    Which is the field that I need to use to search for the Ship to value?
    Right now I am selecting based on VBAK-KUNNR for Sold to party. But am not able to figure out where the Ship to party value will be stored during the contract creation. So now my query returns both the contracts, no matter what the value of Ship to search field is
    Any pointers regarding this ( table, field, logic) would be really helpful.
    Thanks and Regards,
    Reena

    "See u are maintaining ship to party for the Contracts . so what table it is storing in "
    This is exactly what Im trying to figure out.
    I am creating contracts using VA41 for a particular value of soldto party and shipto party.
    After I craete the contracts, I am trying to retrieve these contracts based on the soldto and ship to party values that I had entered. Now, I dont know where the ship-to party is getting stored. 
    I am not making any mapping for the ship to party. I am currently trying with just VBAK and VBAP, since I dont know if I should use any other table.
    Data that I have in hand: Sold to Party, Ship to Party and Auart (ZCQ).
    Example to make it more clear
    Contract1: Soldto Party - 100042, Shipto Party - 100042
    Contract2: Soldto Party- 100042, Shipto Party - 100055
    Auart - ZCQ for both
    Now in my input parameters, when I eneter 100042 for soldto party and 100042 for ship tp party, i get back contract1 and contract2. But I just want contract 1.
    Similarly for the second scenario.
    Hope I have not confused you. Any help will be greatly appreciated.
    Thanks and Regards,
    Reena

Maybe you are looking for

  • AR Interface Error

    Hi All, I would like to inform to you all that I have newly created the tax code.  When the user giving interface from the external system to SAP system thru background processing, it gives error.  The document value is 120.12 (includes Tax) and the

  • How to deploy J2EE Application?

    Hi, I have JDeveloper 9.0.3 and I want to deploy application to AS 9i. My application have EJB and I want to run my EJBs at AS and connect to it from application or Applet. In JDeveloper my application works well. But I don�t know how can I deploy it

  • Imovie keeps crashing. Please help

    Here is the report it sends to apple. Keep looking for help but cant find something that will work... Process:     iMovie [537] Path:        /Applications/iMovie.app/Contents/MacOS/iMovie Identifier:  com.apple.iMovie8 Version:     8.0.6 (821) Build

  • My iPhone 1 can't sync with iTunes 10.6

    Hello. I have upgraded iTunes to 10.6.1 on Lion. Since, my iPhone 1 (OS v1.1.4) doesn't sync. When I launch a sync, it looks like to work fine, but if I go and check iCal, nothing changed. Events in my iPhone haven't been added to my iMac. I'm not su

  • Time machine for second user account erases other backups

    I have a system drive and one other drive (two partitions: Files and Movies) on my iMac, and have been using Time Machine to back up these three drives. Yesterday I created a second user account, but when logged in to that account Time Machine starte