BAP for Creation of new BP Relationship

I am attempting to create a new relationship as a part of a data conversion task.  I have used function modules:
BAPI_BUPR_RELATIONSHIP_CREATE
and
BUPR_RELATIONSHIP_CREATE
In both instances I specify the following:
Partner 1 = existing Sold-to BP
Partner 2 = existing employee (BP role employee)
Relationship = BUR011 (Responsible Employee)
Dates default and when using BUPR_RELATIONSHIP_CREATE
GUI is left blank
When I run the function modules there are no errors and the messages: 
Warning: Not time constraints: Date specifications will be ignored
Success: Relationship was transferred. 
However, when I view the Sold to BP or the Employee BP record in transaction BP (Relationships button), there are no new relationships and BUT050 has no additional entries.
I am not sure if something else needs to be done or if I have the wrong function module all together!
Can anyone assist?
Thanks

Hi Katrina,
You can use BAPI_BUPR_RELATIONSHIP_CREATE and just pass 3 values:
partner1
partner2
relationship category
However if successful you then need to call
BAPI_TRANSACTION_COMMIT
or it won't be saved to the database.
That is why your tests are not working.
Cheers
Andrew

Similar Messages

  • BAPI for Creation of inspection lot

    I have two scenario:-
    1.Can any body help to find BAPI for creation of Inspection lot for the material under PO envisaged for PDI.
    2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
    My objective is to creation inspection lot without assigning Inspection type of Z01SI01 or Z01SI02 and so on in the material code under a respective Plant 1004 or 1005 0r 1006 so on.
    In my Z Development for creation of inspection lot BDC is run for QA01 as this code created inspection lot on when material code has inspection type Z01SI01 i.e. location of source inspection and vendr code particular classification under 010 vendor class inspection type Z01SI01. System search both the inspection type for both material and vendor then create inspection lot in QALS table by assiging inspection matching inspection on the lot.
    I want to get rid of assignment of inspection on the materilal. If any BAPI or FM is avalable for creation of inspection without assigning inspection type on material code. I want to create inspection lot in which Inpsection type assignment can be done based on vendor class only.
    YPB

    2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
    I am very sure that this is not possible.You can not create inspection lot without inspection lot origin or inspection type.
    Regards
    Sujit

  • BAPI for creation of subcontract PO

    Hi all,
       Currently iam doing a BAPI for creation of subcontract Purchase Order using the BAPI_PO_CREATE1. But in this BAPI iam unable to find the table for entering Components.
    Regards,
    Sun.

    Hi,
    I wil give you how to fill the components of PO items, it is a sample code;
    *zPoHeader
      if kna1-kunnr eq 'BOR020'.
        zpoheader-comp_code   = '0040'.
      endif.
      if  kna1-kunnr eq 'BOR040'.
        zpoheader-comp_code   = '0048'.
      endif.
      zpoheader-doc_type    = 'ZSA'.
      zpoheader-doc_date    = mkpf-budat.
      zpoheader-vendor      = 'BOR050'. "şimdilik
      zpoheader-pmnttrms    = 'Z030'.
      zpoheader-purch_org   = '1100'.
      zpoheader-pur_group   = '101'. "malzeme ÜZERINDEKI marc-ekgrp
      zpoheader-currency    = zsaleshead-waers.
      zpoheader-item_intvl  = 10.
      zpoheaderx-comp_code  = 'X'.
      zpoheaderx-doc_type   = 'X'.
      zpoheaderx-vendor     = 'X'.
      zpoheaderx-purch_org  = 'X'.
      zpoheaderx-pur_group  = 'X'.
      zpoheaderx-currency   = 'X'.
      zpoheaderx-doc_date   = 'X'.
      zpoheaderx-pmnttrms   = 'X'.
      zpoheaderx-item_intvl = 'X'.
    *zPoitem
      loop at i_posnr.
        lv_ebelp = lv_ebelp + 10.
        zpoitem-po_item    =  lv_ebelp.
        zpoitem-material   = i_posnr-matnr.
        if kna1-kunnr eq 'BOR020'.
          zpoitem-plant      = '0040'.
          zpoitem-stge_loc   = '4001'.
        endif.
        if kna1-kunnr eq 'BOR040'.
          zpoitem-plant      = '0048'.
          zpoitem-stge_loc   = '4801'.
        endif.
        zpoitem-quantity   = i_posnr-menge.
        zpoitem-po_unit    = i_posnr-meins.
        zpoitem-net_price  = i_posnr-bfiyat.
        zpoitem-price_unit = 1.
        zpoitem-tax_code   = 'V0'.
        zpoitemx-po_item    = lv_ebelp.
        zpoitemx-po_itemx   = 'X'.
        zpoitemx-material   = 'X'.
        zpoitemx-plant      = 'X'.
        zpoitemx-stge_loc   = 'X'.
        zpoitemx-quantity   = 'X'.
        zpoitemx-po_unit    = 'X'.
        zpoitemx-net_price  = 'X'.
        zpoitemx-price_unit = 'X'.
        zpoitemx-tax_code   = 'X'.
        append: zpoitem, zpoitemx.
        clear : zpoitem, zpoitemx.
      endloop.
      call function 'BAPI_PO_CREATE1'
        exporting
        poheader                     = zpoheader
        poheaderx                    = zpoheaderx
    tables
       return                       = zreturn3
       poitem                       = zpoitem
       poitemx                      = zpoitemx.
    Send me your results,
    Kenan.

  • Bapi for creation of a contract against services.

    Hi.
    i just want to know the correct bapi for creation of contracts against services..here i was tried with BAPI_CONTRACT_CREATE but the documentation says that it is not supported for exxternal or internal services.
    so iam not sure if this bapi is the one for contract creation for services.
    any way i was tried to test this function module but i havent got  Contract created.
    wil be waiting for an excellent answer.
    bye.
    reegards.
    seetaram.

    Hi Ram,
    Try the function module
    BAPI_CONTRACT_CREATEFROMDATA.
    Once you create the contract, update the technical objects for the contracts
    using two function modules called one after another.
    IWOL_WV_ADD_OBJECTS
    IWOL_WV_POST_OBJECT_LIST
    Regards,
    Chandra Sekhar

  • BAPI for Creation of Maintenance Plan (TCode - IP01)

    Hello
    Kindly help me with the BAPI for Creation of Maintenance Plan (TCode - IP01)
    Thanks and Regards
    Avishek

    Hi
       Check Tcode: IBIP. and LSMW method and below link it may be helpful.
    [link|Re: LSMW for uploading equipment.]
    Thanks,
    Asit Purbey.

  • BAPI for Creation of the Project in ECC using Standard Templates

    Hi,
    I want BAPI for Creation of the Project in ECC using project id and project standard template ID
    and BAPI for Updating of project and WBS element  using  project id and WBS element ID

    One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • Bapi for creation of equipment master

    hi friends ,
    I have to made a BDC program for creation of equipment master .
    for that  I am using bapi i.e. ' BAPI_EQUI_CREATE '.
    I had matched the fields of transaction IE01 but in the additinal data part i could not able to map 'Partner' fields .
    pls some body can guide what should i do for it.

    Hi Das,
    If u r going to create equipment no against this Bapi BAPI_EQUI_CREATE"
    then u need to pass material no, Equipment type, Serial No. there is no need to give partner no .
    If its good, then plz give point.

  • Manual for creation of new Plant in SAP

    Hi Members,
    I need to test in quality finance related activities, creation of Profit center, Cost center, Standard Heirarchy, etc.. Does anyone help me with the manual for role of Finance guy in creation of new Plant..
    Rgrds,
    Ravi

    Hi Ravi,
    Please find the below link for steps to create plant with screens.
    http://www.saponlinetutorials.com/how-to-create-plant-in-sap-mm-define-plant/
    BR, Srinivas Salpala

  • BAPI for creation of Authorization Objects in BI 7.0

    Hi BW Gurus,
    Greetings!!!
    Is there any BAPI Available for creation of Authorization Objects in BI 7.0.
    The data will be transferred through flatfiles.
    Kindly provide me the info as earliest as possible.
    Best Regards,
    Priya

    Got the Workaround...
    Priya

  • BAPI for Creation of Stock

    Hi Freinds,
    I need to trigger the creation of a stock from a BAPI.
    So in MIGO i am using movement type 501 and type as Others.
    I could see a bapi BAPI_GOODSMVT_CREATE for that .But in the checktable for the tcodes t158g , i could not find MIGO.So i doubt if i can use this BAPI for the creation of a stock.
    Please let me know if there is a BAPI for the creation of stocks.
    Thanks and Regards,
    Anoop

    Hello,
    Use the belwo bapi.
    BAPI_WHSE_TO_CREATE_STOCK
    Reward if helps.
    Thanks,
    Krishna

  • BAPI for posting a new HR POSITION

    Hi is there any BAPI to post a new position.

    Hey Shiv,
    As far as I know there is no BAPI for that but what you can do is to run a BDC for transaction "PO13" to create a position. To capture the object ID you can query the table "HRP1000" with criteria as the object type = 'S' (this is for position) and the UNAME as the guy who ran the BDC. You can get the latest position that was created by the user.
    Regards,
    Sudhi

  • Standard remote enabled bapi for creation of purchaser contract in srm

    Hello Friends
    Plz tell me is there any standard,remote enabled FM/BAPI in SRM system for creation of purchaser contract.
    I found BBP_PD_CTR_CREATE. But this is normal FM.
    I need BAPI like BAPI_CONTRACT_CREATE which there in ECC system.
    Plz help.
    Thanks & regards,

    One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.

  • BAPI  for  creation of Equipment BOM

    Which BAPI is used for creation of Equipment BOM?

    Hi,
    Check this Code, it works:
    DATA ecsin  TYPE csin.
    DATA estkob TYPE stkob .
    DATA estzub TYPE stzub .
    DATA astlnr TYPE stzub-stlnr .
    DATA t_stpob TYPE STANDARD TABLE OF stpob WITH HEADER LINE .
    PARAMETERS: pa_equnr TYPE equnr DEFAULT '1500037'. "Your Equipment.
    START-OF-SELECTION.
       ecsin-equnr = pa_equnr.
       ecsin-stlty = 'E' .
       ecsin-stlan = '4' .
       ecsin-werks = 'C002'. "Your Plant.   
       ecsin-datuv = '20130101'.
       estkob-bmein =  'ST'.
       estkob-bmeng = 1.
       estkob-stktx = 'TEST'.
       t_stpob-stlty = 'M' .
       t_stpob-postp = 'L' .
       t_stpob-idnrk = '000000000040002882'. "Your Component.
       t_stpob-meins = 'ST' .
       t_stpob-menge = 1 .
       t_stpob-rvrel = 'X' .
       APPEND t_stpob .
       t_stpob-menge = 2.
       t_stpob-idnrk = '000000000040002877'. "Your Component.
       APPEND t_stpob.
       CALL FUNCTION 'CSAI_BOM_CREATE'
         EXPORTING
           ecsin                    = ecsin
           estkob                   = estkob
           estzub                   = estzub
    *   FL_NO_CHANGE_DOC         = ' '
    *   FL_COMMIT_AND_WAIT       = ' '
    *   FL_NO_COMMIT_WORK        = ' '
    *   FL_ALE                   = ' '
         IMPORTING
    *   FL_WARNING               =
           astlnr                   = astlnr
         TABLES
           t_stpob                  = t_stpob
         EXCEPTIONS
           error                    = 1
           OTHERS                   = 2.
       IF astlnr IS INITIAL.
    ****ERROR.
       ENDIF.
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    Regards,
    Sergio.

  • Bapi for creation media product family

    hi friends ,
    Is there any bapi exist for  creation of media product family.

    Hi sandipan,
    for creation of media product family there is no bapi.acually how bapi's are nothing but api methods or transactions.
    the business object for productcatalog is BUS1071.
    go to SWO1(its not zero) and check this .
    they assigned a transaction WWM1 to create productcatalog.
    reward points if helpful.

Maybe you are looking for

  • Re: Whence should come the frameworks?

    At 03:44 PM 6/20/98 +0200, Daniel Nguyen wrote (on the polymorphic polymorphism thread: Is it a battle between Forte and Sage ?One hopes not, but this reminds me of an interesting question that I would like to throw out for comment. With any product

  • Pages 8 doesn't seem to work with 10.8

    I am having trouble opening a file in Pages 8 using my Air with 10.8. All that will show in the window are the recent changes. I can't get it to open the existing file with all the data in it. This file was created on my desktop iMac using a earlier

  • Database location for application update necessity

    Hi everyone, I'm trying to write a java application similar to msync.exe. However I want to know in advance how much data there will be to be downloaded. This is no problem for data from the database. I'm using ConsolidatorManager.getDownloadInfo().

  • Fatal internal error: "memory.cpp" line 638

    I have created a dll (C++) from a labview vi (7.1.1 WinXP) that does order analysis. However when i try to use this dll i keep getting this memory error. I believe i am allocating memory correctly (i.e. i am using DSNewHandle and DSSetHandleSize etc)

  • Field Point 4.0.1 will not load LabView Drivers

    When I load Field Point 4.0.1, it does not load the LabView Feild Point VIs.