Changing the partner role

Hello guys! How are ya'?
I need to change an actual Business Partner Role in my CRM 2007.
I tried to execute a FM called BAPI_BUPA_ROLE_CHANGE but, it doesn't running.
Anybody here know how can I to do this?
Thanks in advance.
Regards.
Danilo Cardoso

Hi Danilo,
I'm doing good! Hope life's looking great at your end too !
I think the problem here might be that your role is not assigned a role category. For a role to get saved to database table BUT100, it is mandatory to assing the role to a role category since the code only works on role category.
To assign a role category, go to view V_TB003, select and double click the role. On this new screen, maintain the role category--> role assignment.
In case you are using a Z role, you have 2 options -
a)use an existingrole category
b) create a new Z role category and assign this new category to the Z role.
To create role categories, you can go to view V_TB003A.
Hope this helps.
Cheers,
Rishu.

Similar Messages

  • BAPI_PO_CREATE1 is not defaulting all the partner role in the PO

    Hi All,
    I am facing a problem while Purchase Uploads using  BAPI_PO_CREATE1 in the LSMW via Idoc .
    The BAPI is not behaving same as Txn ME21n .
    In the Txn ME21n when we enter the Vendor the partner tab is automatically filled with  all the  Partner roles .
    While when we use BAPI it is only filing the Partner role with a single partner  role VN.
    We are sending the sturcture partner role  as blank because we wanted it to be defaulted as it is in Txn ME21N.
    During the program analysis we found the following :
    BAPI is calling the Function Module MM_PARTNER_SELECT which try to fill the Partner function
    using WYT3 table . The table  Wyt3 has the plant field as empty for that particular Vendor.
    The BAPI is  using the plant to determine the partner roles .
    While in Txn ME21n the plant field is not used for determining the partner role .
    In txn Me21n once we change the vendor entered initially & then again re enter the  initial vendor  number
    then it behaves like BAPI & only display the single partner role .
    Kindly advice .
    Regards,
    Anurag Goel

    Hi All ,
    FYI
    We found the solution for  defaulting  partner role using   BAPI_PO_CREATE1,It is a customization issue .
    We have check the  Higher level indicator ( Search at higher level )  in the customization Txn OLME  Under Partner Determination -
    > Partner setting in Purchasing document -
    >Define partner schemas
    If this indicator is not set, the system only  transfer partner roles  that are maintained at plant level .
    Best regards,
    Anurag Goel .

  • Function module is used to change the bp role

    WHICH function module is used to change the bp role????

    I have another doubt also,when i add a role (example prospect) for a bp using the function module it works fine.but if i see the classification tab in bp transaction for that particular partner,the prospect check box is not checked.
    how to check that checkbox in classification tab automatically while we create a role????

  • Dot11Radio0 stuck in reset status after changing the station role

    Hi Everyone.
    I've got a AIR-AP1231G-A-K9 router. IOS has been upgraded to the latest version c1200-k9w7-mx.123-8.JED. Everything worked fine before I change the station role from root to repeater or workgroup bridge. Following is my configuration:
    ap#sh run
    Building configuration...
    Current configuration : 1224 bytes
    version 12.3
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname ap
    enable secret 5 $1$KHHu$bN/odUmHdmb.0cwa57GYs1
    ip subnet-zero
    no aaa new-model
    dot11 syslog
    dot11 ssid Lanyard
    authentication open
    username Cisco password 7 123A0C041104
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    ssid Lanyard
    speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface FastEthernet0
    no ip address
    no ip route-cache
    duplex auto
    speed auto
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address 11.11.11.1 255.255.255.0
    no ip route-cache
    ip http server
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    ip radius source-interface BVI1
    bridge 1 route ip
    line con 0
    line vty 0 4
    login local
    line vty 5 15
    login
    end
    ap#sh ip int bri
    Interface IP-Address OK? Method Status Protocol
    BVI1 11.11.11.1 YES NVRAM up up
    Dot11Radio0 unassigned YES NVRAM up up
    FastEthernet0 unassigned YES NVRAM up down
    ap#
    Then I changed the station role
    ap#conf t
    ap(config)#int dot 0
    ap(config-if)#station-role repeater
    ap(config-if)#end
    ap#sh ip int brie
    Interface IP-Address OK? Method Status Protocol
    BVI1 11.11.11.1 YES NVRAM down down
    Dot11Radio0 unassigned YES NVRAM reset down
    FastEthernet0 unassigned YES NVRAM up down
    ap#
    Interface Dot11Radio0 stuck in reset. No matter I reload or powercycle the AP, I still get the same reset status on Dot11Radio0.
    Please help! Any input will be appreciated.

    In order to get either the repeater or the workgroup bridge functionality working, you would likely need to have a Cisco AP as root. This is because the repeater and workgroup-bridge functionalities require Cisco Aironet Information Element (IE), which requires a Cisco root AP. There is no standard for interoperability for these functionalities (not part of any 802.11 standards). You can always try to connect them, making sure that they are using the same authentication/encryption configuration. However, it is unlikely to work.

  • How to change the Partner function code in Quotation

    Hi All,
    We have a requirement that whenever a Quote is cancelled,
    We need to change one of the function codes in the partner tab and also the user status should be changed.
    Can anyone give a quick solution on this?
    Your response will be appreciated.
    Thanks in advance.
    Regards,
    Ramya

    You will best implement this as an action (tx. SPPFCADM), which is called on changing the status to cancelled. In this action you can call a function module changing the partner functions using e.g. CRM_ORDER_MAINTAIN as the appropriate function module.
    Regards, Kai

  • BAPI_PO_CHANGE is not changing the PARTNER NO.

    Hello experts,
    I wanted to change the partner no. using  BAPI_PO_CHANGE, in SE37, but its not working. It saying, 'Error transferring ExtensionIn data for enhancement CI_EKPODB'. Can you please help me?
    Regards,
    David.

    Hi
    I've tried this code in my system:
    DATA: return    TYPE TABLE OF bapiret2 WITH HEADER LINE.
    DATA: popartner TYPE TABLE OF bapiekkop WITH HEADER LINE.
    DATA: error     TYPE flag.
    popartner-partnerdesc = 'GS'.
    popartner-langu       = sy-langu.
    popartner-buspartno   = '0070005647'.
    APPEND popartner.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        purchaseorder = '8500000393'
      TABLES
        return        = return
        popartner     = popartner.
    LOOP AT return.
      WRITE / return-message.
    * Check error
      IF return-type = 'E' OR return-type = 'A'.
        error = 'X'.
      ENDIF.
    ENDLOOP.
    CHECK error IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    It works fine
    Max

  • Need log of the users who changed the partner profiles.

    Hi,
    Some user has been changed partner profiles of the CUA configuration Setup.
    It is displaying only Agent Name. They delete the Inbound and outbound parameters of the partner profiles created by CUA. So, I need to trace out the user who changed these parameters.
    It will be appreciate if anybody can help in this issue.
    Thanks,
    Shiva.

    I resolved this issue by deleting the partner profiles created by CUA in all child clients. And delete the Distribution model in all child clients and re-distribute the distribution model from Master client.
    Now its working fine.
    But I am not able to trace out the user who changed partner profiles. I checked in ST03N but i didnt get the information abt the we20. ( I am using ECC 6.0 version).
    And in WE20 it is not showing any User ID who changed the partner profiles. I checked in following tables but I didnt find any changed details of partner profiles.
    EDIPHO
    EDMSG
    EDP12
    EDP13
    EDP21
    EDPP1
    T002T
    T005T
    Regards,
    shiva.

  • Changing the Partner in Opportunity by Funciton module

    Hi,
    I am trying to change the employee responsible partner of an opportunity.
    I was unable to find the correct code.    I tried using the below code but i am unable to do.
    Please help me in this regard.   I have tried with FM 'BAPI_OPPORTUNITY_CHANGEMULTI'   But I am unable to understand how to pass the partner values to it.
    L_Guid = it_CRMD_ORDERADM_H-guid.      ."'4582EEBA723000A500000000837FBA1A'.
      INSERT L_Guid INTO TABLE Lt_Header.
    *move  '43A15126B7A2006502000000837FBA1A' to Lt_Header.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          IT_HEADER_GUID       = Lt_Header
        IMPORTING
          ET_PARTNER           = Lt_GetPartner
        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.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    READ TABLE Lt_GetPartner INTO wa_GetPartner WITH KEY PARTNER_FCT = '00000014'.
    if sy-subrc = 0.
    data v_index like sy-tabix.
    v_index = sy-tabix.
    w_uname = 'salesrep1.
    ls_partner_com-partner_no = w_uname.
        INSERT ls_partner_com INTO TABLE it_partner.
    ls_input_field_names-fieldname = 'PARTNER_NO'.
        INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
        INSERT ls_input_field  INTO TABLE  lt_input_fields.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
       IT_PARTNER                    = it_partner.
    CHANGING
      CT_ORDERADM_H                  = CT_ORDERADM_H
      CT_INPUT_FIELDS                = lt_input_fields
    EXCEPTIONS
       ERROR_OCCURRED                = 1
       DOCUMENT_LOCKED               = 2
       NO_CHANGE_ALLOWED             = 3
       NO_AUTHORITY                  = 4
       OTHERS                        = 5
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    append  L_Guid to lt_guids.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        IT_OBJECTS_TO_SAVE         = lt_guids
    EXCEPTIONS
       DOCUMENT_NOT_SAVED         = 1
       OTHERS                     = 2

    Hi,
    Two problems that I found in the mentioned code are:
    <b>1. ls_input_field_names-fieldname = 'PARTNER_NO'.
    INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.</b>
    In between these two lines you should also add the following line:
    <b>ls_input_field_names-changeable = space.</b>
    <b>2. w_uname = 'salesrep1.</b>
    I am not sure if you can pass the user name directly instead of the BP number. There are some standard function modules for getting the BP number from user name. You can use that and then assign the BP number.
    Hope this helps!
    Jash

  • How to change the Partner in Service Order

    Dear Experts,
      I am working in SAP CRM 5.0.I want to change the Partners of Service Order Using the Function Module 'BAPI_ACTIVITYCRM_CHANGEMULTI'.Can anyone give me the Sample code for Changing the Partners.It is very Urgent Requirement.Please help me.
    Thanks & Regards,
    Ashok.

    Hi,
        Following is the code for changing partner: Please go through it:
    "fill the details of partner which is
              "to be added as main partner or in place of Interaction Agent
              wa_partner_new-ref_guid = w_guid_ref.
              wa_partner_new-ref_handle = '0000000000'.
              wa_partner_new-ref_kind = 'A'.
              wa_partner_new-kind_of_entry = wa_partner-kind_of_entry.
              wa_partner_new-ref_partner_handle = '0000'.
              wa_partner_new-ref_partner_fct = 'Z_IA'. "
              wa_partner_new-ref_partner_no = wa_partner-partner_no.
              wa_partner_new-ref_no_type = wa_partner-ref_no_type.
              wa_partner_new-ref_display_type = wa_partner-ref_display_type.
              wa_partner_new-display_type = 'BP'.
              wa_partner_new-no_type = 'BP'.
              wa_partner_new-partner_fct = 'Z_IA'.
              wa_partner_new-partner_no = w_partner_no.
              wa_partner_new-mainpartner = 'X'.
              INSERT wa_partner_new INTO TABLE it_partner_new.
              wa_partner_newx-display_type = 'X'.
              wa_partner_newx-no_type = 'X'.
              wa_partner_newx-partner_fct = 'X'.
              wa_partner_newx-partner_no = 'X'.
              wa_partner_newx-mainpartner = 'X'.
              INSERT wa_partner_newx INTO TABLE it_partner_newx.
               IF it_partner_new[] IS NOT INITIAL AND it_partner_newx[] IS NOT INITIAL.
        "maintain all changes to be done
        CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI'
          TABLES
            partner  = it_partner_new
            partnerx = it_partner_newx.
        CLEAR : wa_guid1.
        REFRESH : it_guid1.
        wa_guid1-guid = w_guid_ref.
        APPEND wa_guid1 TO it_guid1.
        "save the changes
        CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
          TABLES
            objects_to_save = it_guid1.
        "commit the transaction
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Please reply if anything else os required.
    Please reward points if useful.
    Regards,
    Ashlesha

  • Function module to change the partner of partner function of an order

    Hi All,
          I want to change a partner of a particular partner function related to an order if a condition is satisfied. That is if a condition is satisfied then the earlier partner assigned to the partner function should be changed and new partner should be assigned to the partner function of the order. Is there any fucntion module to do this. I got the function module 'CRM_PARTNER_MAINTAIN_SINGLE_OW' but it adds one more partner of the same patner function but what i want is to add the new partner in place of the earlier partner. If anyone has some pointers plz post.
    Thanks in advance,
    Rahul.

    Hi,
    Did you try using functions like 'SD_PARTNER_UPDATE' ?
    Thanks
    Mark points if helpful.

  • How to change the portal role presentation based on users BW authorization?

    Hello,
    I have created 3 BW Roles, each one contains an iView with a certain report.
    For simplicity let's name the Roles A,B,C and assume that in order to see the proper report the user needs to be assigned to the matching group (A,B,C) at the BW side.
    I have imported these 3 roles to the portal as worksets, created new pcd role, placed these 3 worksets inside the new role and assigned this role to a certain group of users in the portal (these users are ABAP users so they are the same at the BW side as well).
    What I would like to do is this: I would like that each user that I have assigned this new role to will see only the worksets that he/she allowed to see based on it's BW authorization. Meaning, if I have been assigned roles A and B at the BW I will see only worksets A and B inside the role.
    The problem is this: From the portal I cannot assign the users to the BW groups and from BW I cannot control pcd roles so this kind of change requires me to make two modifications: One for authorization from the BW and one for presentation from the portal. I would like to manage it just from one place, either from the BW or from the portal, I don't care.
    How can I achieve this?

    I think I have found a solution: Export it as a role instead of a workset and do one to one assignments with the BW groups.

  • Can we change the partner number based on the reason in CIC0 in CRM ?

    Dear Experts,
            Can we change the responsible partner number based on the reason in CIC0 in CRM ?
    regards,
    Abhijit G. Borkar
    Edited by: Abhijit Borkar on Jul 10, 2009 6:46 AM
    Can it be done by using 'Actions' ?

    Hi Abhijit,
    Yes you can do this a number of ways:
    action
    badi - partner or order
    event - custom function module
    Remember that the partner determination must allow for this partner to be changed.
    Cheers
    Andrew

  • How can I change the internal role in GP runtime

    Hi all,
    Can I use the GP API to change the GP's internal role,for example,the overser in GP's runtime?
    If this is possible,so how should i do this?
    Thank you !
    Best regards
    delma

    Hi,
    yes, there is a solution. You can do this both in DT or in RT using the APIs.
    This document describes both approaches (point 4 and 7 respectively):
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API</a>
    The example shows how to access the Administrator role and change its user assignment.
    HTH:)
    Regards, Petja

  • User exit to change the partner function in VA02

    Hi experts,
    I have a requirement to increment Volume field value everytime when the end customer ( partner function) is modified  at header and item level.
    Can you suggest some exits ?
    PLease suggest

    Hi
    Try with the following exits.
    EXIT_SAPLV46H_002
    EXIT_SAPLV46H_001
    Thank you,
    Sekhar.

  • Partner Role not coming when creating the Vendor Master

    Hi all
    There is a standrd role AZ.
    There is a standrd Partner Determination procedure  L1.
    The role AZ is assigned to the Partner Determination procedure  L1.
    When creating the vendor master in MK01 the role is not coming in the list of partner function.
    For Document types there is a standard shema 0002.
    The role AZ has also been assigned to doc type.
    What can be the reason.
    Is the assignment against doc type at all required.
    Please suggest.
    Regards

    The procedure for setting partner functions:
    Step 1
    Vendor Account Group
    IMG->LOGISTICS GENERAL->BUSINESS PARTNER->VENDOR->CONTROL ->DEFINE
    ACCOUNT GROUPS AND FIELD SELECTION
    Step 2
    Defining Partner  Schemas
    IMG->MATERIALS MANAGEMENT->PURCHASING->PARTNER -> DETERMINATION -
    >PARNER SETTINGS IN VENDOR MASTER RECORD
    ->DEFINE PARTNER SCHEMAS
    Step 3
    Assign Partner Schema
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION->PARTNER 
    SETTINGS IN VENDOR MASTER RECORD->DEFINE PARTNER SCHEMA
    „«  THEN ASSIGN PARTNER SCHEMA
    Step 4
    Define  Permissible Partner Role Per Account Group
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION -
    >PARTNER ROLES ->DEFINE PERMISSION PARTNER ROLES
    If you want a partner schema for your own document type then define your partner schema and assign to document type using the below mentioned path.
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER ->DETERMINATION -
    >PARTNER SETTINGS IN PURCHASING DOCUMENTS ->DEFINE PERMISSION 
    PARTNER SCHEMAS
    And then
    ASSIGN PARTNER SCHEMAS TO DOCUMENT TYPE
    Once you have this configuration then you change your vendor in easy access menu (XK02-select partner function) define the partner roles.

Maybe you are looking for