Wrong contact partner in the CRM sales order come from ISA

Hello,
I'd like to know if is it possible to manage the partner dermination "contact from a shopping basket created in ISA.
in my case, i have a shopphing basket created by a user XX and this shopping basket is used by a other  one (user ZZ) to create a crm sale order; The problem is that the contact filled in the crm order is the partner XX instead of ZZ. Is it possible to manage the determination by customizing XCM ou SPRO to define the suitable partner (ZZ)
Best regards.
CMA.

Hello CMA,
Thanks for explaining the problem clearly. Looks like you've got an issue. Though you created an "order" with reference to a "template", ISA doesn't use any Copy function configured in the backend. It is all done piece by piece using Java and ABAP code.
This is certainly a bug in standard code - unless somebody finds a note that explains. I couldn't find any SAP notes on this issue. The "Create new order on the basis of an order template" finally uses the action CreateFromPredecessorAction. While there is code available to address the "Ship-To list", "drop ship - ship-to", "Sold-To", "Requested Delivery date" etc. of the  source (template) to target (basket or order), the code essentially misses to change the Contact person of the target document to the current user.
You can address this issue in two ways. # Ask SAP to fix the bug in the above class or # Do it your own way, by just introducing an action to "massage" the data the way you want. The CreateFromPredecessorAction action has one outcome editdoc.
          <action path="/b2b/createfrompredecessor" type="com.sapmarkets.isa.isacore.action.CreateFromPredecessorAction">
               <forward name="editdoc" path="/b2b/updatedocumentview.do"/>
Introduce a custom action ZFixContactPersonAction immediately after like this:
          <action path="/b2b/createfrompredecessor" type="com.sapmarkets.isa.isacore.action.CreateFromPredecessorAction">
               <forward name="editdoc" path="/b2b_custom/zFixContact.do"/>
          <action path="/b2b_custom/zFixContact." type="com.parxlns.action.ZFixContactPersonAction">
               <forward name="success" path="/b2b/updatedocumentview.do"/>
In this custom action, you can add some quick code to "fix" the contact person partner from the header.
import com.sapmarkets.isa.businessobject.header.*;
import com.sapmarkets.isa.businessobject.order.*;
SalesDocument salesDoc = null;
BusinessObjectManager bom =
        (BusinessObjectManager) userSessionData.
        getBOM(BusinessObjectManager.ISACORE_BOM);
salesDoc = bom.getBasket();
    HeaderSalesDocument  header =
        (HeaderSalesDocument) request.
        getAttribute(MaintainBasketBaseAction.RK_HEADER);
String selectedPartnerID = bom.getUser().getContactData().getId();
String selectedPartnerGUID = (String) bom.getUser().getContactData().getTechKey();
PartnerList partnerList = new PartnerList();
//Get the document header - partner list value
               PartnerList partnerList = header.getPartnerList();
            PartnerListEntry contactData = new PartnerListEntry(selectedPartnerGUID, selectedPartnerID );
//Set the Contact partner in partner list
            partnerList.setContact(contactData);
//Set this partner list back to header.
header.setPartnerList(partnerList);
return ("success");
Hope this helps with little changes.
(sorry, there I am not aware of any solution with simple customization in the backend)
Easwar Ram
http://www.parxlns.com

Similar Messages

  • BDOC's to update the custom fields in R/3 from the CRM sales order

    Dear All,
    I need a small help.
    My requirement is as follows.
    When ever a sales order is created in CRM, an outbound delivery will be automatically created in the R/3 system.
    There are some fields in the CRM sales order which are not there in the R/3 system.So I have to create these fields in the LIKP and LIPS tables in R/3 which is not a problem.
    But I have to copy these fields from CRM to the LIKP and LIPS tables in R/3 when ever a sales order is created and saved in CRM. (This should happen automatically)
    So could anyone tell me whether there are any BDOC’s available to update the sales order info in the LIKP and LIPS tables and also any BADI which can be trigger for this purpose.
    Thanks in advance.
    Regards
    Shafath

    Hi,
    Thanks a lot. You have given a good solution.
    But a small correction.
    Sales Order is not transferred from CRM to R/3. The system is creating (automatically) a delivery in the r/3 system for the sales order created in CRM (Here we will not have the sales order in R/3), so we don’t have an entry in VBAK and VBAP tables.
    When we create a sales order in CRM and save , the delivery in R/3 is created and the sales order is not transferred to R/3.
    So while saving the sales order itself in CRM, I need to trigger a badi to update the LIKP and LIPS tables by calling a RFC (which needs to be developed in R/3).
    So I need a badi which triggers when the sales order is saved and which tells whether the sales order is saved without errors or not (because delivery in R/3 is created for only those orders which are created and saved without errors in CRM)  and returns the sales order number.
    It will be helpful if you can send some info on this.
    Any how thanks a lot for your quick response.
    Regards
    Shafath

  • FM to retrieve the CRM sales order values

    Hi Friends,
    Can any one tell me the FM to retrieve the CRM sales order values ,so that i can send these values to my Customer.
    Pls help me .
    Thanks,
    Ganesh

    hi,
    Use CRMD_ORDER_READ function module. Pass guid of you documnet to this function module. You will get desired value in internal tables.
    This FM will read form Buffer.
    There is one more readdb* .  This will read from Database
    Reward points if useful
    Murali

  • How to give the header condition type in the CRM Sales Order for freight ?

    Hi,
         We are creating Sales Order(SO) using FM 'CRMXIF_ORDER_SAVE'.And we are unable to track the FREIGHT condition type in the above FM to pass value.
         We want to check this value in CRMD_ORDER tcode.
        Pls let us know how to make it possible of the above issue.
    Thanks,
    Siva..

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • Bill-to-Party and Payer Partner Determination in CRM Sales Order

    Hi,
    In ECC, the sold-to-party has different bill-to-party and payer for each sales areas .For example:
    Sold-to-party:2001826
    For 8000 sales org/72 distribution channel:
    Payer: 2004818
    Bill-to-party: 2004818
    For 2000 sales org/ 02 distribution channel:
    Payer:2001826
    Bill-to-party: 2001826
    These business partners are in CRM system and the relationship data based on sales organization exists in CRMM_BUT_FRG0081 database table.
    I customize access sequence for bill-to-party and payer in CRM system which uses CRM_PARTNER_A by using Sold-to-Party as source. However it does not determine via this access sequence. Do you have any idea why the system does not use this relationship info?
    Best,
    Damlanur

    Hi there,
    Please use note 493947 to ensure all the manual configuration is in place. Also the item category for the plant item must be ATP relevant, the following code check this:
    FILL_BTM_PARTNER_PLANT SAPLCRM_DOWNLOAD_MAP
      check if item type is relevant for ATP
        check not ls_item_type-atp_profile is initial.
      map plant to business partner
        lv_loc_number = <ls_bapisdit>-plant.
        lv_loc_type   = gc_atploctype-plant.
        call function 'CRM_CONFIRM_MAP_LOC_TO_BP'
          exporting
            iv_loc_number    = lv_loc_number
            iv_loc_type      = lv_loc_type
          importing
            ev_partner       = lv_partner_no
          exceptions
            no_mapping_found = 1
            others           = 2.
        check sy-subrc = 0.
    If this still doesnt resolve the issue then you will have to debug the transfer queue stopping at function CRM_SALESDOC_MAP_BAPI2MBDOC to see why the data is not mapped.
    I hope this helps,
    Kind regards,
    Vanessa.

  • How to determine the delivery plant in a CRM Sales Order

    Hi experts:
    In CRM how to work the delivery plant determination? and I can change the Plan in a Sales Order before its download to ECC?
    I download the DNL_PLANT object but i don't understand what is the functionality of these are created like business partner in CRM.
    Thanks in advanced by your orientation about these questions that have me a little bit confuse.
    Sussie

    Hi Reddy
    Thanks for your reply, but the note says that only applies for India or Brazil legal purposes.
    In my case I still have confuse, in a normal Sales scenario CRM to R/3 how to works the determination of the delivery plant.
    I know that in R/3 is determined by:
    1. Customer-Material info record (Sales Area data)
    2. Customer Master data (Sales area data)
    3. Material Master data (Sales-area data)
    I can think that in CRM is determinate bye Material Master Data, but I still don't know if I can change
    it??  and where in the crm sales order before it is download to R/3??
    Thanks
    Sussie

  • PO Creation after CRM Sales Order Creation

    I am creating a CRM Sales Order and the moment I save the CRM Sales Order,
    it creates a PO in ECC. I need to find out how PO is getting triggered?
    When I open the CRM Sales Order it shows a PO already created for this Sales Order.
    Has anyone face this or same kind of scenerio ever? If yes please let me know how can fnd the triggering point of PO creation.
    Thanks in advance!!
    Sachin

    Hi Mathivana,
    I had faced these issue several time. As per SAP standard logic whenever you saved order in CRM it replicate immediatly in ERP till that time the order will be locked for any further change in CRM to save transaction data intigrity. The lock gets removed once the CSA queue(notification) from ERP update in CRM than unlocked.
    You check the in SMW01 transaction and perform search with order number you will find Bdocs are in Intermediate stage(I can't tell reason as it can be so many reason why Bdocs get stuck) -Select and activate the Bdocs once again if you are lucky and it activated your order till be unlocked.
    Or else user report most common for this issue "CRM_CHECK_DISTRIBUTION_STATUS" pass order number number and document type to unlock distribution than you will be able to change order.
    100 % sure shot answer. Appriciate if points alloted
    Thanks,
    prem

  • Create complaint with reference to CRM sales order

    Hi,
    We have the requirement to create a complaint as a follow-up to a CRM sales order.
    We don't want to reference the invoice, but only the sales order. The sales order is available in CRM,
    so I would expect that we can reference the CRM sales order when creating a complaint.
    However, what I find is that we need to implement BAdI "CRM_COPY_BADI_EXTERN". Is that true? Do we need
    to implement this BAdI?
    Is there a sample coding available?
    regards,
    Wim Olieman

    Perhaps I should create a new thread, appears the standard complaint return CRMR allows me to create the return mulitple times against the same sales order number in CRM 7.0.
    Our pricing flunctuates a bit, so we don't want the same order to be used over and over again in creating the return.
    Is this the same behaivor you see?

  • Replicate custom fields from CRM sales order to R/3 sales order

    Hi Michael,
    I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
    Do you know the set of steps to achieve the same.
    Any help would be appreciated.
    Thanks,
    Chamu

    Hi,
    the CRM sales order cannot be extended using set types. Set types are a functionality that is limited to products.
    You can however enhance the orders by using the easy enhancement workbench (ransaction EEWB). It will allow you to add specific fields to all levels of the sales document and will take care of ALL the objects that are necessary to update and maintain he fields (functions, screens, bdocs, bapi's,...)
    Depending on you system, it will also generate the update modules for R/3 (don't bet on it). Otherwise you'll have to program the extraction and mapping of the new fields in R/3.
    Michael.

  • Stop sales order replication from CRM to R/3

    Hi friends,
    How can we stop the sales order Replication from CRM to  R/3? Pls Guide me.
    Thanking u in advance.

    Hi Madhu,
    You can do by making distribution lock set in further statuses  of the CRM sales order.
    It will stop replication of CRM sales order to ECC.
    Regards,
    Madhu

  • Customer Credit Limit on CRM Sales Order

    Dear All,
    Can the customer credit limit be displayed on CRM Sales order(Customer from ECC, we use simple credit check on SAP ECC)
    Regards,
    Ahmed

    Hi,
    The standard credit check in SAP CRM calls up the automatic credit check in SAP R/3. You must define an RFC destination, and specify this destination for the credit check.
    ·        To define RFC destinations in CRM Customizing, choose Customer Relationship Management ® CRM Middleware and Related Components ® Communication Setup ® Define RFC Destinations.
    ·        To specify destinations for the credit check, choose Customer Relationship Management ® CRM Middleware and Related Components ® Communication Setup ® Middleware Parameters ® Define Middleware Parameters. Then choose the activity Credit Check and enter an RFC destination for the parameter CRMCREDCHE.
    You can also carry out an initial data transfer for credit data.For transactions that are still open for which you are reactivating update of credit data, you can initially transfer the credit data for a reorganization of data in SAP R/3. To do this, start the initial data transfer for object CMDOC_NOTIFY using transaction R3AS.
    When setting up credit limit check, refer to SAP Note 568157, 570155 and 619500.
    With Regards
    Selvam T

  • CRM sales order and APO transaction /n/SAPAPO/AC03

    Which sales order is seen in /SAPAPO/AC03 or /SAPAPO/RRP3 when you create an CRM sales order (ATP check is done in APO) and the order is replicated in ECC?
    Is the CRM sales order or the ECC sales order item displayed in the APO product availability overview?

    Hi Marc,
    The ECC sales order display depends on the availability of integration
    model and active ATP fields maintained in ECC material master
    In APO, the product view display is controlled in Order view
    customisation at APO under PPDS
    Regards
    R. Senthil Mareeswaran.

  • CRM Sales Order Item Status Does Not match R/3 Item Status

    The status of the CRM sales order item is being set to 'In Process' when the related R/3 sales order line item status is set to 'Complete' - when, the delivery quantity is zero for the sales order item.  This happens when the warehouse can't find the stock to pick - the delivery quantity is set to zero.  Thus, the CRM order item status does not agree with the R/3 order item status.  We need for the line item status to be set to 'Complete' in CRM.  Anyone have an idea as to how to make this happen?
    Thanks you.

    Hi Peter and Suresh,
      From the information provided I understand that the sales order created in CRM after replication to R/3 has some status change.
    1.  What are the fields which are updated in R/3 for the sales order created in CRM ?
    2. If sales order fields are updated in R/3 are these updates reflected back to CRM?
    3. If they are reflected back in CRM? Is there still flexibility for sales order to be changed in CRM and replicated back to R/3?
    Can you please share you experiences.. Any help is highly appreciated.
    Thanks
    Jothi

  • CRM sales order and rules-based ATP

    Case:
    CRM sales order calls SCM APO for an ATP check.
    Rules-based ATP is triggered.
    CRM sales order is saved and replicated in R/3.
    Question:
    Is it possible that the ATP check (wie rules-based) is triggered in CRM again?
    Or must the CRM sales order item be cancelled?
    Thanks a lot for your help.

    Hi,
    Find answers below for each of your question.
      which steps are done when an ATP check ist triggered in APO by a CRM sales order item?
    - are temporary quantity assignments created in APO?   YES.
    - are these delta records deleted when the sales order is saved? YES. As normal behaviour.
    - are these sales order items transferred via the middle ware to APO? Sales orders are flown from CRM to ERP (Middle ware) and from there we used to CIF to SCM. No idea abt sales order transfer from CRM to SCM.
    Best Regards,
    Deepthi

  • How to prevent modifying the same sales order in R/3 & CRM at the same time

    Guys,
    We are using CRM 5.0& R/3 4.6C. We have the middle set up. I have noticed that its possible to open the same sales order in R/3 and CRM in the change mode. I believe this could cause inconsistenices if the users modify the same order in different systems. Is there a standar way to prevent this from happening.
    Is there something like a change lock like we have the distribution lock?
    Anirudh

    Hi,
    As per OSS Note 705200 scenario X, Y and Z are supported with R/3 4.6C. Even if you use Scenario A, SAP wont support that. I would suggest sceario Z to be implemented. This would convert all the CRM order into R/3 order as soon as they are transferred to R/3. As a result the order can now only be modified in R/3 and all the changes would flow back into CRM maintaining the integrity between the systems.
    Refer to OSS Note 541113 for details.
    Regards,
    Gaurav Gera

Maybe you are looking for

  • Error in Communicating with DCR Server LMS 4.0

    I´m receiving this error when I try do add a device in isolated form or by discovery: Error in communicating with DCR Server. DCR Server may be down. Please start the DCR Server and then refresh the page. I am using windows 2008 standard server RC1 S

  • Multiple electronic signatures in a WORD document

    Thanks William. I got this far last week and I am hitting the same wall. After I sign it "Marks As Final" and makes it a read only. Then the next person opens it and it says it will remove the signature if you edit this file. How do you stop it from

  • Mac update to 4.4.1

    I am operating on a Mac with PSE 6. I currently have the 4.3.1 version of Camera RAW. When I downloaded the update to 4.4.1 I get the error message "could not complete your request because Photoshop does not recognize this type of file". Any suggesti

  • Problem with Photomerge after Update CC

    Hi Guys, have anybody the same problems with photomerge out there since new PS CC update 6 days ago? Photoshop cant stich the pics. PS missed the last step "nahtlose komposition erstellen". What can i do? System: Mac Pro (2013) *whoop whoop Regards M

  • I use Daylite CRM, but it's not compatible with iCloud.

    Nor is Outlook for Mac. iCal and Address Book don't have the functionality I need. Where do I go from here? Can anyone suggest a CRM that can link contacts to appointments and emails, and synchronise with my iPhone and iPad?