CRM_PARTNER_MAINTAIN_SINGLE_OW - Add Partner

Hello,
In BADI CRM_ORDER_SAVE, method PREPARE, I'm currently calling CRM_PARTNER_MAINTAIN_SINGLE_OW to change BP ID's on a custom Z Partner Function we have at our company.  This works perfectly, however, I'd also like to use CRM_PARTNER_MAINTAIN_SINGLE_OW to add a completely new Z Partner Function, in the event it is not already present, under certain business rules/requirements.
Can I use CRM_PARTNER_MAINTAIN_SINGLE_OW to add new Z Partner Function relationship to an Opportunity Item?
I need to add a new Z Partner Fuction relationship with the following:
REF_KIND = 'B'   " Item Level
REF_PARTNER_FCT = 'ZIDC'
REF_PARTNER_NO = '0000123456'
REF_NO_TYPE = 'BP'
REF_DISPLAY_TYPE = 'BP'
KIND_OF_ENTRY = 'C'
PARTNER_FCT = 'ZIDC'
PARTNER_NO = '0000123456'
DISPLAY_TYPE = 'BP'
NO_TYPE = 'BP'
Each time CRM_PARTNER_MAINTAIN_SINGLE_OW is executed in the PREPARE method of the BADI, nothing is reflected on the front-end.  The new Partner Function relationship is not added...  Again, updating existing relationships works perfectly.
I also tried CRM_ORDER_MAINTAIN and CRM_ORDER_MAINTAIN_OW.  But still nothing
Thanks!

I had the same issue with crm_order_maintain_ow as you are talking about. everything was ok, wheh i was updating data, but when i wanted to add new stuff on existing order, i noticed that always the new order was created.
I managed to solve my problem by using crmxif_order_save function. There you can easily define if you want to make update (U) or insert (I) and on which level.

Similar Messages

  • How to Add Partner function in the main screen of the Sales order???????

    Hello All,
    I am working on ECC 6.00 SD module
    I want to add partner function in the main screen of the sales order, that mean add more partner function beside Sold to party and the ship to party to be in the order header, Is it possible and how?
    Regards
    Jacopo Françoise

    Hi
    If you want in the sales order , above the sold to party as the  box then you need to go for enhancements
    Regards
    Srinath
    Edited by: sri nath on Jun 11, 2008 6:56 PM

  • Add Partner application to OSSO

    Hi,
    I am using OracleAS Single Sign-On. I have my application (UCM) having the url "http://host/ucm". I want to register UCM as partner application with my OracleAS Single Sign-on. I logged in to the SSO Sever and on the UI, I selected the link "Add Partnet Application".
    On this page opens to register an partner application. Here the pages asks for three urls "Home URL", "Success URL" and "Logout URL".
    Can some one please tell me what should I specify for all these urls? My Single Sing-on server and my application (UCM) resides on separate servers.
    Thanks & Regards,
    Yash Shah

    Please see the other response to your other post. UCM will need the credentials posted down to the app.

  • How can add partner at the time of PO creation

    The requirement is to add an extra partner in the Purchase Order header Partner tab at the time of PO creation itself. The PO is being posted through Idoc. A custom function module has been maintained as inbound processing FM and it calls BAPI_PO_CREATE1 inside.Can anyone help me resolving the requirement?

    Using GOS ...

  • Add partner functions to customer master

    Hello,
    how can I add new partner functions to a customer master. Is there an IDOC available for that ? With DEMAS / DEBMAS06 I can only change the standard partner functions.
    Thanks for your help.
    Regards
    Alex

    Hi,
    No you should not feel confident with SD_CUSTOMER_MAINTAIN_ALL.
    It is used for only one very special case. The maintenance of consumer. And this should only be true from the transaction itself.
    There exists other cases, one of the oldest one is the BAPI_CUSTOMER_CREATEFROMDATA1. But is is exclusively reserved for SAP Online store.
    Despite the fact CMD_EI_API is quite difficult to use, it has the main benefit that is it supported if being triggered directly.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    The only valid solutions are :
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Hope this helps
    BR
    Alain

  • Add partner while creation of sales document

    Hi All,
             I have a requirement in which I need to add a PARTNER FUNC (forwarding agent) to the partners tab in sales order (VA01). The partner is determined from a custom table based on shipping conditions, transportation group,landing zone and country. I have chosen USEREXIT_MOVE_FIELD_TO_VBAK ( MV45AFZZ) to put my logic in. After I enter item details and hit enter and go to header->partners I see a new entry partner function (Forwarding agent) and the Partner fields populated correctly. But the address fields (Name1, City, Street etc) are empty even though the address is maintained in the master data. Once I save the document and come back in change mode even the partner field is showing '0'. The VBPA table is properly populated, I am not able to figure out why its not visible on screen. Any input is greatly appreciated.
    I tried USEREXIT_SAVE_DOCUMENT but it doesn't even populate the partner function.
    Thanks,
    Giri..

    You can write the code under form routine(MV45AFZZ) :
    FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    ENDFORM.
    if you update the address in VBPA,it will not update centrally,you should update ADRC Table,then it effects into centrally
    Thanks
    Seshu

  • CJ20N BAPI to add Partner functions

    I am looking for a bapi to add partners to a WBS element. I have managed to add partners to the project definition using BAPI_BUS2001_PARTNER_CREATE_M but for the underlying WBS element I am not able to find a BAPI
    Thanks
    Yves

    check the theard it may help u.
    Re: add a new tab in transaction ME51N
    Regards
    Kiran Sure

  • User exit for add partner in delivery document when execute then tx-vl06

    Hi,
    I try to add new partners in delivery document when I execute the transaction vl06. For this, I use the user exit MV50AFZ1 where I implement the code that add new registers in table XVBPA. This solution doesn't work because it doesn't add new partners in delivery document.
         CLEAR XVBPA.
         XVBPA-MANDT = '010'.
         XVBPA-VBELN = LIKP-VBELN.
         XVBPA-POSNR = '000000'.
         XVBPA-PARVW = 'ZC'.
         XVBPA-PERNR = '00000045'.
         XVBPA-ADRNR = '0000000000'.
         XVBPA-LAND1 = 'ES'.
         XVBPA-ADRDA = 'D'.
         APPEND XVBPA.
         CLEAR XVBPA.
         XVBPA-MANDT = '010'.
         XVBPA-VBELN = LIKP-VBELN.
         XVBPA-POSNR = '000000'.
         XVBPA-PARVW = 'SP'.
         XVBPA-LIFNR = '0000000491'.
         XVBPA-ADRNR = '0000083037'.
         XVBPA-LAND1 = 'ES'.
         XVBPA-ADRDA = 'D'.
         APPEND XVBPA.
    Please, anybody knows others solutions.
    Thanks for your help.
    Xevi G.

    Hi Ram Ki,
    It doesn't work. When I execute the transaction vl06g, the flow doesn't pass for this user exit.
    Thanks for your comment.
    XeviG.

  • How can I add customer partner function entries in LSMW?

    I am using SAP ECC 6.0 with best practices installed. I am able to create sold-to customers using the batch input program RFBIDE00. 
    When I try to add partner function entries using structure BKNVP, it appears that the partner ID stored in KTONR is not populating SAPMF02D screen 324 after it is entered on screen 2324. I receive a “Data is incomplete; check” error.  I could not find an SAP note or other solution to correct this problem. 
    While searching for a solution, I found a few recommendations to use the IDOC message DEBMAS to create the partners function entries instead of batch input.  When I try to use this approach, I am receiving an error “Deletion is not allowed: SP is mandatory function”.  I was trying to add an SH (WE Ship-To) at the time. I found a reference that explained that all partners were replaced when this IDOC message is used.  It further explained that this should work if all partner references were included in the message.  This approach did not work either. I still receive this error if I omit or include an SP (AG Sold-To) record.
    Does anyone have a solution to either problem or another approach?

    Hi
       You can use LSMW :-
    1) Create a project , sub project and an object.
    2) execute it from 1 st screen to enter the object.
    3) You will find proces steps.
    4) In Maintain Object Attributes  choose Program Name RFBIDE00.
    or I-DOC or the way you want the input to be.
    5) You can proceed from there following the instruction..

  • [HELP!] How to add a partner to a SO document???

    Hi all,
    I have a problem. I want to add partner F11604 to item 10, and I call FM 'BAPI_SALESORDER_CHANGE'. Actually nothing happend. Here is my code, I need your help! Thanks!
    lw_partners-PARTN_ROLE = 'Z2'.
    lw_partners-PARTN_NUMB = '000010'.
    lw_partners-PARTN_NUMB = 'F11604'.
    APPEND lw_partners to li_partners.
    lw_part_ch-DOCUMENT =  '7300000587'.
    lw_part_ch-ITM_NUMBER =  '000010'.
    lw_part_ch-UPDATEFLAG  =  'I'.
    lw_part_ch-PARTN_ROLE  =  'Z2'.
    lw_part_ch-P_NUMB_NEW  =  'F11604'.
    append lw_part_ch to li_part_ch .
    lw-PARTNERADDRESSES-ADDR_NO = '0000096467'.
    lw-PARTNERADDRESSES-NAME = 'XXXXu2018.
    lw-PARTNERADDRESSES-CITY = 'QINGDAO'.
    lw-PARTNERADDRESSES-REGION = '121'.
    lw-PARTNERADDRESSES-COUNTRY = 'CN'.
    lw-PARTNERADDRESSES-LANGU = 'ZH'.
    APPEND lw-PARTNERADDRESSES to li-PARTNERADDRESSES.
    Not sure if PARTNERADDRESSES is needed or not...*
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '7300000587'
        order_header_inx           = lw_header_inx
      tables
        return                             = li_return
        PARTNERS                     = li_partners
        PARTNERCHANGES       = li_part_ch
        PARTNERADDRESSES   = li-PARTNERADDRESSES
    Thank you in advance!

    Hi Alex,
    Have you put the commit work task?

  • How to include a new Z Partner Function in Sales order header drop down lis

    Hello SAP experts,
    We have come up with a new requirement to include a custom Partner Function-ZI  in dropdown of SO header-Partners field.
    Current scenario- Presently we are maintaining this partner function  ( Say ZI-  Institute ) in customer master data-Sales area tab.There could be more than one partners under this PF in master data. While entering sales Order, all partners associated are displayed in Header- partners tab, where only SP, SH, BP, PY partner functions are displayed.
    Requirement- 1. Is to  provide Drop down of this ZI-Institute partner function (which I did not find presently) in SO header-partners field and user should be able to provide one of partner function as available in Customer master ( as there are more than one partners that can be set in Customer master data but user need to be able to provide ONE of this ZI partner fucntion in DROPDOWN of PF tab in SO header ).
    2. In addition, How can I link this new partner function in related sales reports against that particulat order and invoice?
    Kindly suggest your valuable inputs as what should be the procedure to get this.
    Many thanks in advance.

    Hi,
    Go to partner determination by VOPA
    OR
    IMG >> SD >> Basic function >> Set up partner functions >> set up partner function for sales document header
    click on partner function and Maintain partner function ZI  and back
    Then select your existing partner determination procedure (Standard is TA) and click on PARTNER FUNCTIONS IN PROCEDURE and add partner function. and make it mandatory so even user forget to mention then at the time of saving system can remind user 
    Then double click on PARTNER DETERMINATION PROCEDURE ASSIGNMENT
    Assign partner procedure to sales document
    Now when you creating sales order go to header partner tab and enter you institute partner number
    For sales order and invoice report
    Execute this report by selecting partner function ZI in VA05N and VF05 respectively
    kapil

  • How to define WE20 partner for all outb deliveries

    Hello, I would like to create an outbound delivery DELVRY05 IDoc for every delivery.   When the warehouse (LIKP-LGNUM) is a certain value, and the packing status is 'C', we'd like to produce the IDoc and save to a file port.   I have setup most of this, but am stuck on the partner function settings.   In NACE, I have defined a new output type 'ZAWB' under V2.  I have select 'EDI' for the medium.  But on the Default Values tab, what should the partner function be?   I want this for all customers.  I can't go and create a WE20 entry under 'KU' for every single customer.  Also in NACE, does an entry need to exist in the Partner Functions screen?  And how would the WE20 partner be defined?

    Requirement:
    Produce an outbound IDoc containing delivery data.  When the delivery
    header packing status = 'C' AND the warehouse is 'SHN' 'SRV' or 'OCE',
    the output should appear in the Extras -> Delivery Output -> Header screen
    as a new entry.  The output will produce a DELVRY05 IDoc, message type DESADV.
    It will be saved as a file on the SAP server, formatted in XML format.
    Setup to get this to work:
    Since the warehouse number LIKP-LGNUM was not available in the standard
    communication structure KOMKBV2, the field needed to be added so we can
    use it in an output condition record.
    1.  Structure ZAKOMKBZ4, added field ZZLGNUM for warehouse number.
        This structure is an include in communication structure KOMKBV2.
    2.  Added field ZZLGNUM to structure ZAKOMBZ, which is included in
        structures KOMB and KOMBZ.  Needed to update the Field Catalog.
    3.  Edited program RVCOMFZZ, Form USEREXIT_KOMKBV2_FILL
        to move the warehouse value from LIKP into the communication structure.
        Insert the code:   COM_KBV2-ZZLGNUM = COM_LIKP-LGNUM.
    4.  Add field ZZLGNUM to Field Catalog, table V_T681F.  Use SM30
        Usage: B    Appl: V2    Field Group: 001
        This will also add an entry to table T681F
    5.  v/59   V/60   v/61   Create/Change/Display Condition Table (Output Shipping)
        With SE11, see what table number is avail, put B9* and hit F4. 923 wasn't being used yet.
        Used v/59 to create new condition table 923.   
        Warehouse should appear on the right side now if you did steps above.
        Add field to the left side: Warehouse  (just dbl-click Warehouse on the right side and it should
    appear on the left)
        Pressed 'Generate' button and it created table B923
    6.  Txn NACE.  Select row V2, then click  Access Sequence button.
        Created new Access Sequence Z005 'Warehouse'
        Select row Z005 and dbl-click Access, Add new row: Access Nbr: 10  Table: 923   Hit Save.
        Hit Back once and select row Z005 again and dbl-click Fields, which should
        automatically fill in a new row showing the new ZZLGNUM field.  Hit Save.
    7.  Txn NACE.  Select row V2, then click  Output Types  button
        Created new output type ZAWB which will be used to produce the DELVRY05 IDoc
        Tabs:                    Field:                Value:
          General Data             Access Sequence       Z005
                                   Access to Conditions  checked
          Default Values           Dispatch time         Send immediately                   
                                   Transmission Medium   EDI
                                   Partner Function      SH    (Ship-To Party)
        Processing Routines:
          Program:       RSNASTED
          Form Routine:  EDI_PROCESSING
        Partner functions:  (1 entry)
          Medium   : EDI      Function:  SH  
    8.  Txn BD54.  Created new Logical System 'IEDHL'  for Ireland DHL 3PL Warehouse (Non-SAP)
        This is not really a 'system'.  The plan is to save the IDoc files to a folder on the
        SAP filesystem.
    9. VV21  VV22  VV23   Output - Condition Records : Shipping
        But we can get to this as well via txn NACE.
        Create 3 new entries in the condition table.
        Output type     :  ZAWB   (our new output type)
        Key Combination :  Warehouse  (is the only selection)
        Warehouse number:  SHN   (do same for SRV and OCE)
        Function        :  LS
        Partner         :  IEDHL  (this will be populated in the output screen in VL02N)
        Medium          :  6  - EDI
        Date/time       :  4  - Immediate
        Language        :  EN
        Notice the entries appears in the table B923 now, created in step 5.
    10.  Output the IDoc in XML format.  In WE21, define a port under XML file.  I will
         call it DEV_XML.  On the Outbound file tab, you can specify a function module
         that is used to create the filename.  For example, EDI_PATH_CREATE_CLIENT_DOCNUM.
    11. Txn WE20.  Under Partner Type  'LS', Add partner 'IEDHL'.
        Then create an outbound parameter for DESADV as follows:
        Partner No.   :  IEDHL
        Partner Type  :  LS
        Partner Role  :  LS
        Message Type  :  DESADV
        Tabs:                    Field:                 Value:
          Outbound Options         Receiver Port          DEV_XML  (Define with WE21)
                                   Transfer IDoc Immed.   (selected)
                                   Do not start subsys    (selected)
                                   Basic Type             DELVRY05
                                   Canc Proc after Err    (checked)
                                   Segm. Release in IDoc  700
          Message Control          Application            V2
                                   Message Type           ZAWB
                                   Process Code           DELV
          Perm. Agent              Type                   O         (or US)
                                   Agent                  50000079  (or your username)
                                   Language               EN

  • Adding Partner into Purchase Order (ME21N, ME22N)

    Hi,
    I want to add a parnter into purchase order. Logic of determining of partner is very complex and I have to write a program for this purpose.
    Are there any user exit where I can include this program and add additional line into EKPA?
    Thanks in advise,
    Hristo Hristov

    Hi Sanjay,
    All parameters of method POSTED of this BADI are "importing" - I can't add parntner into IM_EKPA
    I need to add partner into PO and then use this partner role into output determination of same purchase order.

  • Confusion on partner function of ALE process

    Hi experts,
    Now I am developing the ALE for message type ORDERS in inbounding process for testing purpose. Our customer is running their business in SAP and her company code is 6000 in her SAP system, and our company is vendor in her system, the vendor number is 1100. She create a purchase order and run the transaction code ME9F then the IDOC will send to our SAP system, and then the sales order is created in our system. Actually the whole process is OK. But I am really confused by the partner function setting and sales area setting in VOE4 and VOE2.
    In VOE4, the setting is below:
    Customer          Ext.Function         Name                            Exnternal partner          Int.no
    6000                 SP                       Sold-to party                  6000                            6000
    6000                 BP                       Bill-to party                    6000                            6000
    6000                 PY                       Payer                            6000                            6000
    6000                 SP                       Ship-to Party                  6000                            6000
    In VOE2, the setting just like below:
    Customer       Vendor number     Sorg.                   Dchl              Dv             Saty
    6000              0000001100          1000                   12                 00              OR
    We had to create a customer number 6000 in order to make the ALE process smoothly. So I just want to know:
    1) We really need to make our customer number same as company code of customer in her SAP system if we use ALE ??
    2) If answer of 1) is yes, then in our production system, the customer numbers are different from their company codes, what and how do you suggest to mapping the is relationship?? Use a user-exit in IDOC??
    3) if answer of 1) is no, how can we make the ALE go next smothly??
    Can any one give me a suggestion on above??? Thanks in advance.
    Joe
    Edited by: Joe.GR Chen on Jun 19, 2009 11:23 AM

    hi,
    to add partner function sales employee follow these steps:
    1. img>S & D>basic functions>go to partner determination screen and select customer master and select your partner proceedure.
    2. now double click on partners in partner proceedure and add partner function SE using new entries and save.
    3. now assign the partner function to you account group and save
    to create a sales employee goto t code PAL1 and create sales representative.
    to add sales rep to your customer master goto your customer master using XD02 and in sales area tab goto partner tab and add the partner function SE and the sales rep number and save
    regards,
    krishna prasad

  • Regarding sample code to update partner function using SD_PARTNER_UPDATE

    Hi All,
    Please provide some sample code to update/add partner function using FM 'SD_PARTNER_UPDATE'.
    regards
    Vishnu

    A better option would be to use a break point on this FM while creating a sales order. That way you will know how standard uses this FM.
    Thanks,
    Vikram.M

Maybe you are looking for

  • In Oracle 10g Error while using COLLECT

    I getting error while using collect in 10g SQL> ed Wrote file afiedt.buf 1 SELECT deptno 2 , COLLECT(ename) AS emps 3 FROM emp 4 GROUP BY 5* deptno SQL> / , COLLECT(ename) AS emps ERROR at line 2: ORA-00932: inconsistent datatypes: expected NUMBER go

  • Adobe Form - data from previous selected record is shown.

    Dear All, i have created a wd component consisting of two views. in the first view i am displaying  an alv which is bound to an internal table. on selecting a record and clicking a button the second view gets called containing an interactive form (ad

  • ITunes crashes as soon as it loads

    I haven't had a response yet to a question about no sound and no screen saver that I posted an hour ago, but I've just noticed another problem. I clicked iTunes in the dock and it loaded, with images from the iTunes store coming up - and then instant

  • Pl/sql doubts clarification

    Hi, I have doubts with some of the questions given below: 1.Identify two features of obfuscation. (Choose two.) A. The Import and Export utilities accept wrapped files. B. SQL' Plus cannot process the obfuscated source files. C. Only the wrap utility

  • Not able to connect to RAC Database with VIP entries

    Hi All, My RAC database run with Physical Host entries in listener and tnsnames files. But VIP services are running in both nodes. Now i want to use VIP enties to connect to the RAC database from client side. I have modified the both the listener and