How to update Sold-To Party (In ORDER_SAVE BADI)

Hi,
I have a requirement as follows:
In for a Sales Order, In ORDER_SAVE BADI, I have to do validation for Sold-to Party. If validation fails, I need to display an error message and I need to clear the Sold-to Party field, hence user has to select another sold-to party.
Could you please let me know, how can I clear the sold-to party, in ORDER_SAVE BadI. Any FM's to do that?
Thanks,
Sandeep

Hello Sandeep,
why you want to delete the sold-to ? I think its just easier to give a error message in the log, so the users  could enter a new sold-to. Within the badi order_save you can prvent saving with exception do_not_save  - see note 1519171 for detailed information.
Best regards
Rene

Similar Messages

  • How to update Sold to Party for a contract

    Hi Gurus,
    I got a strange and fuzzy requirement. My client wants to update the Sold-to-party in 2011 for the contracts created in 2010 with any status and with any sub-sequent documents to that particular contract. I know SAP wont support on this. because it is a standard functionality that we cannot update Sol-to-Party rather we can update BP,PY ans Shipto etc.... But still this my requirement. Anybody any solution is always helpful to me..
    Thanks,
    Bhargav.

    Hi all,
    I just want to add one more point to my requirement I am using this FM SD_SALESDOCUMENT_CHANGE to update Partners other than Sold-to-party. And I found out that we have another FM SD_PARTNER_SINGLE_MODIFY to update partners. this second FM is there in the first FM. So please provide your valuble solutions/comments
    Anticipating for your replies,
    Regards,
    Bhargav.

  • How to make sold to party to only order and ship to party to only delivered

    Dear friends.
    How to make sold to party say 123456 to only  order goods and should not be delivered goods if made ship to party in particular sales order.(customer 123456 is defined in customer master as both sold to party and ship to party).Similarly how to make ship to party xyz to be only delivered GOODS and should never order goods when made sold to party in particular order.(customer XYZ is defined in customer master as both ship to party and sold to party).
    I created delivery block for Customer 123456 and ordering block for XYZ ,but it does not work?
    Please give your views
    Thanks
    Ranganathan V

    Hi Amit,
    you are right,why should we define sold to party as ship to party when you do not want it be delivery or ship to part as sold to party when you don't want it to order?
    but situation is like this ,my sap customer has clients which are defined as both sold to party and ship to party.In one sales order it will be sold to party ,but in other order it will be ship to party.
    in these conditions how do we go about ?
    is there any settings available in customer hierarchy ?
    please let me know
    Thanks
    regards
    Ranganathan V

  • How to change sold to party in sales order

    Hi
    We have the below requirment of changing sold to party after creation of sales order...
    Below is the scenario
    Once sales order is created,purchase requisition is created autamatically and purchase order is created with reference to the purchase requisition..So when Goods receipt is done,the respective stock is getting reserved for that sales order...
    We wanted to change the sold to party option.
    After creation of purchase order,sold to party option in sales order is display only..
    Can u tell us how to make it changeable...
    Regards
    Sudha

    Hi,
    Why don't you try to make the Partner Function for Sold to Party as Modifible (Don't select Non Modifible) for the Sales Order Header in partner determination determintaion setting in customizing.
    You have to check with the partner determination procedure assigned to your sales order type and check accordingly.
    Reward points if it helps.
    Regards,
    Harsh

  • How to validate Sold to party while creating sales order

    Hi All,
    I need to validate the sold to party which is entered when a order is created.
    I able to read the Partner no using the FM u2018CRM_ORDER_READ_OWu2019, but how can I check if this partner number has u2018sold to partyu2019 function assigned.
    Thanks & Regards
    Shanthi

    Hi Shanti,
    There is a little twist in the validation that you intend to do to meet your business requirement. I will provide you with the Sap help link also. Have a look at this and you will understand the same.
    [Partner Function|http://help.sap.com/saphelp_sm40/helpdata/EN/3c/92eceb484a11d5980800a0c9306667/content.htm] - Come to very end. Here there is a pictorial representation of how you can map a Partner function with the Business Partner Master Data. The system also maps in the similar way.
    The Database tables which might be of help to you are BUT050 - Business Partner Relationship Category,  CRMC_PARTNER_PFT - Definition of Partner Function Types. The rest you need to follow your own logic. I guess this will be enough to help you to get started. Let me know if you need any more inputs.
    Hope this helps.
    Thanks,
    Samantak.

  • How to make Sold-to party field changable in va02

    Dear all,
    I want to change sold to party in Sales order but this field is coming in grey mode. How I can make it to changable.
    Thanks&regards
    Manoj Topal

    Hi Manoj
    -> Use t.code SHD0
    -> Give t.code VA02 , Then give Business object - BUS2032
    -> Select the Program screen and click on display /  change icon and enter into that screen and then check   wheather required data is in which mode , (disable/ required/visible)
    ->Then change the data to disable/ required/visible mode as per your requirement
    NOTE : Search in the forum also
    Regards
    Srinath

  • How to map sold to party from crm to r/3

    If you create a BP as sold to party role and if we use that in one of the transactions in CRM and if that transaction is distributed to R/3 , we will get a new Sold to party number.Now how can we map the BP we gave in CRM with the one present in R/3.
    Thanks and Regards
    Ramesh.

    Hi Ramesh,
    Keep the number range for business partner same on both CRM and R3. You can use this number to map the Partners on both the system.
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • How to Create Sold-to-party i.e. default in sales documents ?

    Hi Experts,
    I have studied a lot of threds about default sold-to-party.
    But still I have a query, suppose I create any customer and using enhancement I use that customer as default in sales document, but suppose I dont know about the sales area of my actual customer and if the sales area of my actual customer and default customer are different then how the sales document will allow us to enter the another customer whose sales area is different.
    Now what I want to know:
    1. How to create a customer so that I can use that as a default in sales document and that customer should be compatible with other sales area.
    2. Is it possible to include a customer, whose sales view has not been created, in our sales document.
    Thanks in advance.
    Regards,
    Vishal Singh

    Hi,
        To create a default customer which can be attached to any sales document can be done through common distribution channel and common division. A customer created in common DC and Division can be attached to sales document in any sales area.
    If a customer is not extented to sales view, it cant be attached to any sales document.
    Regards,
    Deepak

  • Update Sold to party address to Ship to party in parties involved

    Dear Experts,
    I have problem in Development, actually my requirement is while creating the service order user will give the Sold to party number. I want to update the ship to party address as per the given sold to party in the Parties involved.
    Please guide.
    Regards
    Anandhan

    Hi Anandhan,
    Have you worked on call back event function modules earlier. Using a call back function module would be required more of coding and in your case its not necessary to use FM.
    There is another simple way to achieve this requirement. You can create a custom implementation for the badi COM_PARTNER_BADI and use the method COM_PARTNER_MERGE.
    This badi will trigger for all the partners maintained in service order, so we have pick only ship to party partner function.
    1. Check the partner function field(partner_fct)  value in changing parameters CS_PARTNER_BADI, if it is your ship to party partner function then continue with below steps
    2. Get the REF_GUID field from CS_PARTNER_BADI and
    read the document process type and partner details.  Observe below sample code
    lv_guid         = is_partner_control-document_id. "is_partner_wrk-guid.
         APPEND lv_guid TO li_guid.
         lw_object_name = 'ORDERADM_H'.
         APPEND lw_object_name TO li_object_name.
         lw_object_name = 'PARTNER'.
         APPEND lw_object_name TO li_object_name.
         CALL FUNCTION 'CRM_ORDER_READ_OW'
           EXPORTING
             it_header_guid       = li_guid
             it_requested_objects = li_object_name
           IMPORTING
             et_orderadm_h        = li_orderadm_h
              et_partner           = li_partner
           CHANGING
             cv_log_handle        = lv_log_handle
           EXCEPTIONS
             document_not_found   = 1
             error_occurred       = 2
             document_locked      = 3
             no_change_authority  = 4
             no_display_authority = 5
             no_change_allowed    = 6
             OTHERS               = 7.
         IF sy-subrc <> 0.
           RETURN.
         ENDIF.
    3. Check the process type using li_orderadm_h table.
    4. Read sold to party partner details from li_partner and pick the address fields and assign them to CS_PARTNER_BADI structure.
    Best Regards,
    Dharmakasi.

  • How to fetch sold to party no

    hi everyone,
                           when ever a sales order is created, automatically mail should send to the sold partys no.
    so i in need of getting the sold to party no as soon as sales order is created.
    how to get the sold to party no - kunnr field
    thanks in advance
    karthe
    Edited by: KARTHE on Sep 6, 2010 9:55 AM
    Moderator message: very basic, please (re)search yourself before asking.
    locked by: Thomas Zloch on Sep 6, 2010 12:35 PM

    select single kunnr adrnr lifnr
        into (he_kunnr, he_adrnr, he_lifnr)
        from vbpa
       where vbeln = he_vbeln                    
         and posnr = '00000'
         and parvw = 'SP'.    "  (= sp)

  • How to change sold to party description

    Hi all,
    I want to change sold to party description to customer in VA11/ VA21/VA01 (sold to party).
    Is there any possibility to change it?
    Please give me solution if it is possible............
    Thanks in advance
    Babu

    Dear Babu,
    There are two ways to change the description of Sold to party:
    1. XD02 / VD02 - Change the Customer description, which would be Master Data change & would effect all Documents.
    2. At time of Sales Order processing (which is what you want): VA01 / VA02 - Double click on Sold-to-party code & you will go to Header - Partner Data - Here once again click on Customer Code of required partner (Sold-to-Party in your case) & make the necessary changes.
    There changes would be applicable only for the particular Sales Order & the Master Data would not be changed.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • How to change Sold-to party in S.O when creating with ref to Quotation

    Dear All,
    We are creating Sales Orders with reference to Quotation.
    The requirement is that the same quotation will be used for different sold-tp parties when creating sales order. Currently the System does not allow to change the Sold-to when creating Sales Order for a different Sold-to with reference to a Sales order (that was created with a different Sold-to).
    Please let me know the best possible options so that the sold-to party in the sales order can be changed when creating with reference to Quotation that is created with a different sold-to party.
    Regards
    Venkat.

    Hi,
    Try This.
    IMG-SD-SALES-MAINTAIN COPY CONTROL FOR SALES DOC-SALES DOC TO  SALES DOC.
    Choose the required sales DOCs and change the settings of Coping Requirements to 2
    I think this will solve ur issue..
    Regards,
    boseavi

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

  • How to change sold to party

    Dear Gurus,
    We need to create a lot of Quotations each day and only few of them get converted to sales order. So if we create Customers Masters for the creation of Quotations, we will end up with a lot of useless customer masters. So we want to create a Quotation with a One Time Customer account and then only if the customer confirms the deal we want to create the sales order with the newly created customer code.
    But in the over view screen of the sales order (which is created with reference to the Quotation), system is not allowing the change of SP.
    In VTAA for these documents we have assigned 002 'Header Diff Customer' in Copying Requirements. Still . . . .
    What can I do to acheive this requirement, with out this, we will end up with unnecessary CMRs. Plz help us out here gurus.
    Thanks and regards.
    Venkat - Hyd

    Sorry all, I just noticed my error in asking a question. I should have clarified that we need to create an Inquiry - Quotation - Sales Order.
    Dear Amitesh,
    Like I said in my question, in VTAA's copy requirements putting 002 is not working. Anything else?
    Dear Anjaneyulu,
    The requirement is to create an Inquiry - Quotation - Sales Order. Since our client receives around 30 to 40 enquiries per day, they need to capture them and prepare those many Quotations and sent out.
    They need to do all this in the system so the management can track the number of Inquiries received, the number of Quotations sent and the number of Order secured.
    For this they dont want to create Customer Master Records since all the Quotations will not get them orders, hence the need to create Inquiry and Quotation with a One Time Customer, where all the Enquirers' details are captured and then for only those Orders which are received, they want to create a Customer Master Record and with that number create a Sales Order. They need to have a Document Flow from Inquiry to Quotation to Sales Order for all the orders received, so we need to change customer number in the sales order. Cannot change in Quotation as there is an Inquiry as a preceeding document and system is not allowing to change the SP.
    Any ideas??
    Regards
    Venkat - Hyd

  • Sold to Party and Ship to party field are in grey out mode in VA01.

    Hi Friends,
    I am facing a very critical situation, Please help me on this.
    While creating the sales order by VA01, the Sold to Party and Ship to Party field are in grey out, so we cannot enter sold to party and ship to party. This is happening for all Order types.
    And while checking the existing sales order by VA02, so I found that at Header level and Item level the Partner tab are disable
    ( mena partner tab are in grey mode,).
    But when we click on sold to party field in VA02 it directly moves to partner but all Partner shown in Sales tab.
    I have check all the partner function and partner determination configuration.
    So can any one help me out in this, how in VA01 sold to party and ship to party field are in grey out mode.
    How in VA02 the partner tab are disable.?
    Thanks
    Irfan Ullah
    09370236510

    Hai Irfan Ullah,
    In Sales - customer
    1. Partners are listed (SP,BP,PY, SH)for account group and Partner Determination procedure(TA) is assigned to it
    Now for sales order type you need to assign the partner determination process
    SPRO
    Sales and Distribution
    Basic Functions
    Partner Determination
    Set Up Partner Determination
    Execute
    Set Up Partner Determination for Sales Document Header
    Select TA - standard order from the right side list
    and select Partner Determination Procedure Assignment (from left)
    Now assign your sales type to Partner determination TA.
    Create a SALES order you can find the sold to and ship to are editable.
    Regards,
    Mani

Maybe you are looking for

  • Terminal name

    Hi, we are using oracle 10g, My query is that One user created one table in database 2 month back, now I want to know the terminal name from which that table was created. Can anybody please suggest how to check terminal name for that table in oracle.

  • How do i populate a dropdown box in jsp?

    Can someone write some code that takes 15 string values (passed to the jsp in the URL) and puts them in a dropdown select box (or combo box i think they're called). I've trawlled around looking on the forums but I cant get my code to work the way I n

  • Arw converter for photoshop 6.0?

    I am running photoshop 6 and need to convert arw files to raw or dng.  Is there a converter that goes back that far?  I downloaded Adobe DNG converter, selected the oldest conversion and I still can't seem to open them.  Am I out of luck with such an

  • Lenovo H515s wireless card

    I have an H515s Type 10126, running Windows 8.1. It didn't come with a wireless card. This is something I'd definitely like to add. Does anybody know which ones are supported by H515s ? Thanks! JL30 from France Solved! Go to Solution.

  • HT201406 How can I use my external keyboard opposed to the internal key board on the screen.

    I have a Zagg IPad, and the problem I'm having is the external keyboard that sits in the case will not work.  The internal keyboard on the screen is the only one that works.  How can I change the keyboard to work from the base instead of using the ke