CRMXIF_ORDER_SAVE for deletion of partner-role

Hello there,
I need to delete a partner-role from an order so I'm using BAPI CRMXIF_ORDER_SAVE. However, the partner is not being deleted. Please have a look at the content of the CRMXIF_BUSTRANS_T structure:
OBJECT_TASK          U
OBJECT_GUID          46986070E6C6005702000000C0A8974B
OBJECT_ID                                                                               
PROCESS_TYPE          0
OBJECT_TYPE          BUS2000126
POSTING_DATE          20070730
DESCRIPTION          Systemtechnik S1
DESCR_LANGUAGE          D
DESCR_LANGUAGE_ISO                                                                               
LOGICAL_SYSTEM                                                                               
CRM_RELEASE                                                                               
CLIENT                                                                               
CREATED_AT          0
CREATED_BY                                                                               
CHANGED_AT          0
CHANGED_BY                                                                               
LOCAL_TIMEZONE                                                                               
ARCHIVING_FLAG                                                                               
OBJECT_ID_OK                                                                               
HIGHEST_ITEM_NO          0
CRM_CHANGED_AT          0
DESCRIPTION_UC                                                                               
EARLY_ORDER_NO                                                                               
CALC_SCHEMA                                                                               
SCENARIO                                                                               
TEMPLATE_TYPE                                                                               
VALID_FROM_EXT          0
VERIFY_DATE          0
ACTIVITY                                                                               
LEAD                                                                               
OPPORTUNITY                                                                               
PARTNER                                                                               
PARTNER_NO     260485
     PARTNER_GUID                                                                               
ALT_PARTNER_NO                                                                               
ALT_PARTNER_NO_TYPE                                                                               
IDENT_NUMBERS     Table[initial]
     PARTNER_FCT     15
     PARTNER_PFT                                                                               
PFT_SUBTYPE                                                                               
MAINPARTNER                                                                               
RELATION_PARTNER_NO                                                                               
RELATION_PARTNER_GUID                                                                               
CALENDAR                                                                               
DISABLED                                                                               
KIND_OF_ENTRY                                                                               
ADDR_ORIGIN                                                                               
STD_BP_ADDRESS                                                                               
ADDR_OPERATION                                                                               
ADDR_NR                                                                               
ADDR_NP                                                                               
ADDR_TYPE                                                                               
DISPLAY_TYPE                                                                               
ERROR_FLAG                                                                               
DOC_ADDRESS                                                                               
TERRITORY     Table[initial]
     OBJECT_TASK     D
     INPUT_FIELDS                                                                               
ORGDATA                                                                               
PRICING_PARAMS                                                                               
BILLPLAN                                                                               
BILLING                                                                               
CANCELATION                                                                               
SUBJECT                                                                               
REF_OBJECT                                                                               
SALES                                                                               
SHIPPING                                                                               
PAYPLAN                                                                               
DATES                                                                               
CUMULATION_HEAD                                                                               
CONDENSED_STATUS                                                                               
STATUS                                                                               
DOC_FLOW                                                                               
ATTACHMENT_LINK          Table[initial]
TEXT                                                                               
CUSTOMER_H                                                                               
IPM_RCHAR                                                                               
ITEM          Table[initial]
CONTROL_SWITCHES                                                                               
INPUT_FIELDS
Adding new partners to the order is working fine though.
Is there anything I got wrong?
Regards,
Anja

I still could use a little help here. For better testing I extracted the relevant coding into an evaluation-report:
DATA data TYPE crmxif_bustrans_t.
DATA is_data TYPE crmxif_bustrans.
data is_data_f type CRMXIF_BUSTRANS_F.
DATA is_actx TYPE crmxif_activity_x.
DATA is_act TYPE crmxif_activity.
DATA is_datesx TYPE crmxif_appointment_xt.
DATA it_dates TYPE crmxif_appointment_t.
DATA is_dates TYPE crmxif_appointment.
DATA is_statusx TYPE crmxif_status_xt.
DATA it_status TYPE crmxif_status_t.
DATA is_status TYPE crmxif_status.
DATA it_partnerx TYPE crmxif_partner_xt.
DATA it_partner TYPE crmxif_partner_t.
DATA is_partner TYPE crmxif_partner.
DATA is_partner_f TYPE crmxif_partner_f.
DATA lv_return TYPE  bapiretm.
* HEADER
is_data-object_task = 'U'.
is_data-object_guid = '46AE8865377D005900000000C0A8974B'.
is_data-process_type = '0000'.                   
is_data-object_type = 'BUS2000126'.               
is_data-posting_date = '20070731'.
is_data-description = 'Systemtechnik S1'.                
is_data-descr_language = 'D'.
* ACTIVITY
is_act-category = 'Z99'.                        
is_act-extern_act_id = '420006760000124133'.              
MOVE is_act TO is_actx-data.
is_actx-datax = 'X'.
MOVE is_actx TO is_data-activity.
* DATES
is_dates-appt_type = 'ORDERACTUAL'.              
is_dates-timestamp_from = '20070801070000'.     
is_dates-timestamp_to = '20070802130000'.                        
APPEND is_dates TO it_dates.
MOVE it_dates TO is_datesx-data.
is_datesx-datax = 'X'.
MOVE is_datesx TO is_data-dates.
*STATUS
is_status-status = 'E0003'.          
is_status-user_stat_proc = 'CRMACTIV'.
is_status-active = 'X'.
is_status-language = 'D'.
append is_status to it_status.
move it_status to is_statusx-data.
is_statusx-datax = 'X'.
move is_statusx to is_data-status.
* PARTNER
is_partner-partner_guid = '42004B723E57004300000000C0A89748'.
is_partner-partner_fct = '00000015'.
is_partner-object_task = 'D'.
is_partner_f-partner_guid = 'X'.
is_partner_f-partner_fct = 'X'.
move is_partner_f to is_partner-INPUT_FIELDS.
APPEND is_partner TO it_partner.
MOVE it_partner TO it_partnerx-data.
it_partnerx-datax = 'X'.
MOVE it_partnerx TO is_data-partner.
APPEND is_data TO data.
CALL FUNCTION 'CRMXIF_ORDER_SAVE'
  EXPORTING
    data   = data
  IMPORTING
    return = lv_return.
COMMIT WORK.
Does s.o. see anything conspicuous?
Regards,
Anja

Similar Messages

  • BDC for PFCG for deletion of user roles

    I need to create a BDC for deleting users from roles in PFCG transaction and after deletion you have to click on User comparison in User tab.
    Any idea how to compare and delete theusers from role.
    It comes in Table control.
    1)delete from table control .
    I have not been able to see delete from Table programs.
    George

    Hi
    U should consider PFCG trx is enjoy trx so it's not suitable for BDC, what doesn't mean you can't do a BDC program for that trx but it won't be easy.
    Anyway you can know the users assigned to certain profile reading table AGR_USERS. I believe PFCG shows them sorted alphabetical, so you can know the position where an user should be, after u should use PAGE UP and PAGE DOWN command to scroll the table control.
    Max

  • Looking for a field "Partner-role"...

    Hello,
    I am looking for a field and do not know exactly what the field is called and in what table I can find it. It is a partner-role and in our system I should find for example
    ZCRM001 and ZCRM002 in it. It may be a table BUT000 or something like that. Anybody how can help me?

    Hi,
      I think the field that you are trying to find is,
      BUT100-RLTYP
      In any case I can see BUT100-ROLE in 46C..
    Sri

  • Procedure for deleting a role which is already in Production

    Hi,
    can any one explain me the procedure for deleting a role which is already in production
    i want to know procedure for deletion of
    1.single role
    2.composite role
    3.derived role
    4.parent role
    thanks,
    SSSS

    Hi,
    Role deletion must be done in development box and the deletion must be transported to quality and productuion
    For single and derrived roles create the transport request and delete the role and transport the deletion.
    For Deletion of parent role: you cannot delete the parent role unless all the derrived roles within it are deleted.
    To avoid the transport of user assignment make sure PRGN_CUST is set to 'NO' value for the parameter USER_REL_IMPORT.
    Rakesh

  • Account groups for Partner Roles in Vendor Master

    1. Can we use same account group to create the vendor master for the different partner roles? for the partner roles like goods supplier, invoicing party, order party, etc do all these need to have different account groups , example one account group for goods supplier, one account group for invoicing party, etc , etc.
    2. why we need the configuration for partner role in purchasing documents besides  partner role settings for vendor account group. what is the logic behind to have partner role dependent settings for purchasing documents.
    If we do not maintain for partner role settings for purchasing documents  what effects it will cause?

    > 1. We can have 1 account group represent all partner role or separate account group for each role.
    1.If we use the same account group, the field selection control for fields will be applicable to partner roles also. If we have made vendor schema as mandatory in vendor master than we have to assign to partner vendor also. Example ordering address will not require company code data only purchase data, it will not require also pricing procedure as mandatory as no price determination will be required for ordering address.
    I think we have to use combination of account group -same account group and different account group will defining vendors for partner function.
    Do we require to assign vendor schema group to following vendors roles- goods suppliers, invoicing party and payee.
    If we do not assign vendor schema group will these partner role determine price from the VN partner role. For example VN (vendor) has vendor schema group assigned, no vendor schema group assigned to invoicing party, then while doing MIRO the invoicing party will be defaulted. Do the price determined for VN role will be populated for invoicing party in MIRO?
    > 2. we need partner role in purchasing doc because we can copy partner role from vendor master to purchasing document
    It means we need to assign similar roles in schema for vendor account group and purchasing documents. If you see the schema in config for partner determination in IDES system, different roles exists in vendor schema and purchasing document schema.
    This is creating confusion for me to understand.
    Please clarify
    2. we need partner role in purchasing doc because we can copy partner role from vendor master to purchasing document

  • Suppress partner role with orders05

    Hi,
    In customer masterdata it is indicated that a certain partner roles are valid for a customer. In the partner determination procedure it is indicated what roles are relevant for specific sales order type.
    However, when I create a sales order manually I it possible to delete the partner roles.
    Is something like this possible when creating a sales order using an IDOC?
    So, I don't want to have a specific partner role in the sales order, regardless it is maintained in the masterdata and customizing, when a sales order is created by IDOC.
    Regards
    Ron

    Hi...
    Call area menu BUPT
    Business Partner->Control->Events
    Check the BDT Events...DSAVC...inside this you can call your own function module and put a check here...You can see the import and export parametrs for your FM from any of the above standard FMs....
    Try it
    Mithlesh

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

  • Opportunity partner role pickist definition?

    Hi,
    Where does one define custom values for the opportunity partner role picklists? The help indicates that the administrator can create custom values, but I can't seem to locate where. Under Admin>Application Customization>Opportunity Partner Field Setup, the Role and Reverse role picklists are read_only.
    Thanks,
    Dan

    Set it up under Account Relationship Field Setup and then you will see it when you do a opportunity partner relationship.

  • New Vendor Partner Role on PO

    Hi,
    I created a new vendor partner role that I can use on PO Partner header.  When I create a PO and assign the Partner role, system generated message that the partner role vendor needs to be extended to the purchase org PO is posted for: 
    Message F2165: Vendor <vendorID> has not been created for purchasing organization <purchase org>
    Vendor for this new partner role does not have to be created for the purchasing org for my intended use.  Does anyone know how I can get around this? 
    Looking at some code (LWY09F01) looks like SAP allows some of its standard Partner Roles to be used without vendor being created for the purchasing org:
    RS     Invoicing Party
    BA     Ordering Address
    VA     Contract Address
    HS     Manufacturing plant
    TF     Freight Service Agent
    AZ     Payment Recipient
    I would think SAP would allow customer defined Partner Roles (Y, Z) to be used without vendor being created for the purchasing org. 
    Any suggestions would be greatly appreciated.
    Thanks,
    Susan Wang

    Hi Susan,
    I'm also in the midst of a similar situation. Did you find any solution (customizing or custom development) to achieve this?
    Thanks
    Anuj

  • How to change some partner data for defined partner role?

    Hello SDN!
    I need to set another ID and address for partner both in header and positions. Data comes from CRM ISA. I'm using extended BADIs with methods IF_EX_CRM_ISA_BASKET_HEADCHANGEHEAD_BEFORE_ORDER and IF_EX_CRM_ISA_BASKET_ITEMSCHANGEITEMS_BEFORE_ORDER for header and positions. These methods have tables CT_PARTNER and CT_INPUT_FIELDS. CT_PARTNER already has record needed for me (with role '000000002' and given REF_GUID). I need to change PARTNER_NO field with our ID for this record. But if I do this, focuses in ShipTos comboboxes in order.jsp become reseted after any refresh/actualisation of page. Record in CT_INPUT_FIELDS also created and filled properly.
    How I can properly change PARTNER_NO field?
    Regards, Lev

    Hi Lev,
    Local variables maybe?
    Have a look at the CRM_PARTNER_OB function group for reading. storing and deleting the partner data.
    Regards,
    Patrick.

  • BDT event for delete role in BP transaction

    Hi,
    I have requirement where in I need to display specific fields on UI when user adds a role to a business partner in BP transactions and also need to save the user inputs into the tables. I was able display the fields and also save the inputs that was entered in UI into the table, But I have requirement were in I need to delete the data from tables when user deletes the role in BP the transaction.
    I would like to know if there is any event in BDT that would be triggered when user deletes a role from the Business partner in BP transaction.
    It would be helpful if some one can provide some inputs on this.
    Thanks
    Raghavendra

    Hi Smita,
    Thank you for response. Following are steps that are followed for deleting a role from a Business Partner in BP transaction.
    1 Select a Business Partner that has multiple role in BP transaction.
    2 Click on the Role Details button, all the Role that associated with the business partner is displayed.
    3 Select a Role from the list and then click on the delete button.
    4 After Delete Button, Click on the Enter Button.
    5 Save the Business partner. Now the role has been deleted from the business partner.
    Thanks,
    Raghavendra

  • E-Recruiting 6.0: Business Partner Role For Branches

    Hi Experts,
    In the IMG, SAP E-Recruiting > Basic Settings > Enterprise Structure > Define Business Partner Role for Branches
    Can anyone help in the following:
    1) What is the purpose of Business Partner Role and how does it relate the Branches? Or how can i make use of it?
    2) If i am going to maintain the Company & Branches via the Administrator function instead of IMG, do I still need to configure this step: Define Business Partner Role for Branches
    Thanks.  Will reward points for any helpful tips.
    William

    Hello William,
    the Business Partner is an application / module which belongs to the base components of the SAP. It is used and partly extended by various other applications / modules. Next to E-Recruiting it is used for example by CRM and the financial service solution (FS-CS, FS-PM, FS-RI). All of these modules can put their data for a person or an organization into the same tables. Depending on the installation / system environment or even within one single module the requirements for available fields and business checks as on authorization differ between kinds of business partners (e.g. in FS-CS the commission solution for the financial service sector knows external agents and internal employees which have to be treated differently). The business partner is the element to assign the logical / business role in which a person is handled by the system.
    For E-Recruiting you have 2 kinds of business partners, too. On the one and there are people being candidates and on the other hand there are branches of your company which hire people. The configuration allows you to seperate them if you need to identify anywhen which business partner is a branch and which is a candidate. So far I never tried if this is really working as there is no real use for this I never set it up. The attributes and the business checks are the same anyways.
    Hope that helps a bit to understand the context
    Best Regards
    Roman Weise
    PS: please remember that you have to maintain the branches via administrator bsp application. Using the IMG entry won't work.

  • Creation of partner roles for customer master

    Hello,
    when I try to create one or more partner roles while creating a customer with IDOC DEBMAS basic type DEBMAS06 I get the error message:
    No customer ID found for partner .
    The required fields PARVW and KUNN2 are filled with valid values.
    Can anybody help ?
    Regards
    Alex

    Hi Alex,
    Could you specify what error message you are getting?
    Thanks!
    Rudra

  • Partner selection at sales order entry: ship-to's flagged for deletion

    Hi All,
    I need some inputs for the following issue.
    For Partner selection at sales order entry level: ship-to's flagged for deletion are also proposed as it is entered in customer master. I dont want to delete the ship-to's marked for deletion in the customer master.
    In short - only the ship-to's that are not marked for deletion should get populated.
    Kindly suggest if there is an userexit for the same.
    Regards
    KCB

    Hi,
    You can try Blocking option for the particular Ship to Party.
    But this will not disable it appearing in the Partner Function Selection Pop up.
    Once you block it; though it appear in the selection pop up, you cannot select & proceed, as it gives a error message.
    You can set this block in 2 ways.
    1 - Tx: XD05
    Go to the Tx give the customer number, sales area & Pres enter.
    There you can set different type of blocks depend on your scenario.
    Save
    2 - Tx: XD02
    Go to TX, Give the Customer number (Ship to Party) & go in. Since you have marked him as a delete, you'll get a warning message there too.
    Select Menu option -> Extras -> Blocking Data
    You'll coime to the same screen as above.
    Maintain relevant blocks & Save
    Check whether it satisfy your requirement.
    Best regards,
    Anupa

  • Vendor Creation ,Partner role OA not allowed for Vendor of a/c group ZLOV

    Dear Freinds,
    I am facing problem of  Vendor creation , i am getting message  PARTNER ROLE OA NOT ALLOWED FOR VENDOR OF ACCOUNT  GROUP ZLOV.
    While creation of  Vendor in Partner function  i  could not  enter  partner number, system is not accepting any data, message is getting as above.due to which i could not create any vendor.
    Presently I am in process/ setting of  ERS functionality in MM,
    now all my Vendor creation is stuck up ,
    please help me how to solve the problem
    Regards
    Dilip

    Hi Dilip,
    Check first have you Define Permissible Partner Roles per Account Group..
    Check the path:
    SPRO-Materials Management-Purchasing-Partner Determination-Define Permissible Partner Roles per Account Group
    Here check whether OA is assigned with ZLOV or not...If no then click on new entries and enter partner function as OA and Vendor account group ZLOV...Save nd come out...
    Now proceed...Hope it helps..
    Utsav

Maybe you are looking for