Partner role delete
Hi guy,
I have the need that a partner role is not allowed in a special sales order.
My first idea was to solve it with a partner schema.
But that is not possible, 'cause of the following problem;
If the sales order type XX, was created without a reference, the partner role is allowed.
If the sales order type XX, was created with a reference to a sales order type XY it is also allowed.
But it is not allowed, if the sales order type XX was created with a reference to a sales order type YY oder with a reference to sales order type XY, which was created with reference to type YY.
=>As the role is allowed generally, but not if there is any reference to a special type, the schema don't work.
So I would like to delete the partnerrole in a USEREXIT and send a mail or message to the user.
Does someone know a suitable exit or badi ?
Greatings Manuel
Hi Rasheed,
I tried USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ (because the MOVE_FIELD_TO_VBAK AND MOVE_FIELD_TO_VBAP isn't processed after a change of partners).
My coding:
...(check if partnerrole is forbidden)
delete xvbpa with where parvw = 'ZZ'.
When I debug the behaviour it is deleting the entry in xvbpa, but after saving the partnerrole does still exist.
Where is my failure ??
Greatings
Manuel
Similar Messages
-
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,
AnjaI 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 -
Partner with Partner role AP cannot be converted
Hi,
When order are getting created in CRM, we are getting an error 'Partner with partner role AP cannot be converted'.
We have checked the R/3 contact person and it is empty. We have checked the table CRMC_BUT_CALL_FU and tried
removing the entry from CT_BP_STRUCT and still this does not resolving the issue.
This is issue is with only certain orders in only one sales area. So I think that no notes can be applied.
Regards
SunilHi Sunil,
Cna you consider note :
1997323 - Partner with the partner role AP cannot be converted (Notification E C
(010) - Deleting a contact person in the master data
Best regards
Christophe -
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
RonHi...
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 -
Business Partner Role Specific Field View in WebClient
Hello to everyone,
I have a question that really needs a answer. We are upgrading from SAP CRM v4 to SAP CRM v7.0 and as such we have a number of custom Business Partner Roles within the Person BP Type. Against these custom roles we have developed custom field and tabs in order to separate the content within the BP Role further.
After rolling off an implementation of SAP CRM v6.0 [2007], the following seems apparent:
- Assignment of Roles is done via an assignment block in the Customer Maintenance view.
- You can create Business Partners in different roles initially.
- You cannot maintain Business Partner details in specific roles
However, you cannot display the role specific fields as you can in the WinClient. As an example, a Citizen Role BP will have different fields to that of a Teacher, but these roles could be assigned to one Business Partner.
There does not seem to be any guidance as to how this is managed in the WebClient and as it seems a fundamental part fo the SAP CRM offering, you would have thought that this questions has been asked, but I have found no answers.
I really hope anyone can help and appreciate any time and effort put into solving my question.
Many Thanks,
MatFlat.Hi MatFlat,
Yes, your observation is right - in the Web UI, fiel grouping is not implemented for roles. This is because the role concept is quite different between SAP Gui and Web UI.
In SAP gui, (CRM 4.0) roles had a functional meaning as well as a UI control. However, the concept was changed with Web UI. Now, roles have only a functional meaning, and no effect on the UI at all.
If you want to implement role based field grouping in Web UI, you need to define your own methods in the implementation class.
E.g : you can write code to influence the field properties based on the roles. I guess you can redefine the DO_PREPARE_OUTPUT methods of the impl class.
In order to get info about which roles the BP is maintained , you can use FM BUPA_ROLES_GET_2.
Hope this helps you.
Cheers,
Rishu. -
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.
WilliamHello 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. -
Problem in Creating a Business Partner Role
Hi Frns,
I am trying to create a BP Role from CAC->SAP Business Partner->Business Partner->Business partner Roles->Define BP Roles.
I copied BUP003 and given my BP Role name as ZEmp.
When i try to save it, it is giving an error message saying
"NO STANDARD ASSIGNMENT DEFINED FOR BP ROLE CATEGORY BBP003".
I have checked in BBP003 Category in the same.
What could be the problem?
Thanks in Advance
RohanHi Roshan,
You have Created a BP Role,
You must also have assgned the Same to a BP Role Category Check the Settings for BP Role Category Assignment and when Appropriate you shall Assign Std Assignment of BP Role Category to your BP Role by Selecting the Check Box
Referal Notes:
BP Role Category
Attribute of a BP role.
Use
The role category makes it possible for SAP and customer programs to program on the BP role.
Dependencies
The role category depends on a differentiation type.
Any number of BP roles can be assigned to a role category, with one role always acting as the standard role per role category.
It is possible to control the update of a role by assigning a role category to a role.
Hope it Anwers your Queries..
Thanks and Regards,
RK. -
Error message 06030 when copying PO items and partner roles
Hello gurus,
when I try to copy a PO item into a new PO using a different vendor, I get an error message:
Reference vendor 20003681 differs from vendor 20004972
Message no. 06030
So far so good. But when I put that new PO on "Hold" and reopen and save it later, the error message is gone.
This is a SAP error, isn't it? Obviously SAP cannot determine that the items have been copied after reopening the PO.
Second question:
In the new PO, there is a partner role VN as it should be, but the partner is still the vendor of the original PO I copied from. So now I have got two different vendors in one PO!
And even worse: I have not yet found a way to change the partner in the VN role because it is mandatory and cannot be changed after saving the PO.
Any ideas on either problem?
Thanks
AliciaHi,
Check following settings
Spro>materials mgmt>purchasing>partner determination>partner settings in purchasing documents>define partner schemas
select the schema you are using>double click on >partner funstions in procedure>check for role VN
No change column is tick ...thats why you are not able to change it and its grey ....if dont select this you will be able to change it
Thanks
Diwakar -
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
AlexHi Alex,
Could you specify what error message you are getting?
Thanks!
Rudra -
Partner roles in Vendor master record
Hi all
can some one explain me how to enter the partner roles in vendor master record
In sap help i didnt understood this point
"When working with partner roles, you must maintain the following settings:
Separate vendor master records must exist for all the partners of a vendor that are to be entered in that vendors master record."
what does it mean
suppose i am creating vendor master record 1234
Vendor master record:1234
LF 1234 /*vendor
BA1234 /*ordering address
i have to click 1234 in BA and select 'parner' at the top to enter the ordering adress right ...
what is the 'Separate vendor master records must exist for all the partners' mean
it has to be like this?
Vendor master record:1234
LF 1234 /*vendor
BA1235 /*ordering address
1235 vendor master record is created earlier and ordering address maintained ??
please help me in this record, any user manual or some screen shots to explain how to maintain partner roles in vendor master record
regards
Bhushan.NHi Sasi ,
What Ramkrishna explained is correct. I will try to illustrate it with the example.
Suppose you are creating a vendor 1234 which is Head office of the supplier where you need to place the order. But goods will be supplied from Pune plant so you should enter 1235 againts partner function GS , here 1235 is seperate vendor master record with Pune plant details & it must exist in the system so that you can use it as a partner function Hope this has cleared your doubts.
Similarly you vcan create other partner functions like payee,ordering party etc.
Regards,
Anand -
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.
RegardsThe 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. -
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 GoelHi 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 . -
Confusing definition of My and Partner Role in PartnerLinks
Assume I create two BPEL processes: One producer and one consumer
Each of them needs a JMS adapter as partner services.
When I click in the producer BPEL process on the JMS adapter definition
then I have to specify:
Partner Link Type=Produce_Message_plt
Partner Role=Produce_Message_role
My role=not specified
When I click in the consumer BPEL process on the JMS adapter definition
then I have to specify:
Partner Link Type=Consume_Message_plt
Partner Role=not specified
My role=Consume_Message_role
The relationship between "My role" and "Partner role" is somehow asymetric and confusing.
at a first glance I would have said before: The view is always from the BPEL process side.
But why do I have to specify NO "My role" in the producer ?
When I try to specify "My role" as "Produce_Message_role" and leave
"Partner role" as not specified then I get errors.
Can somehow explain me what the logic behind should be ?
PeterYou need to look at it from a message type perspective. Is the message you are calling async, or sync
If the process is sync you need to specify both, this is calling a sync partner link.
PartnerRole=Invoke
MyRole=Receive
Async can be tricky. When you call a async Partner Link, e.g. JMS Adpater you typically only one operation exists.
PartnerRole=Invoke
You are telling the partner to use the Invoke operation.
Async can be fire and forget or you may want to wait for a response so you have to implement a Receive activity. In this case you are the consumer and there is no Partner Role operation
MyRole=Receive
So to keep it simple
Sync Invoke activity = Both
Async Invoke activity = PartnerRole
Async Receive activity = MyRole
cheers
James -
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
DilipHi 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 -
Error during copy of partner: Partner role VN
I am creating an Inbound Delivery from an Outbound using SPED output type on the Outbound Delivery.
When I process the output using vl71 I get the following error.
Can anyone tell me what im missing.
The same scenario works for other plants except this one, its between 2 new plants in a new company code.
What do i do?
Type Message text
Object 0080011663
Output type: Stk.Transf.CrteDeliv
Processing log for program /SPE/STO_ID_PROCESSING routine STO_ID_CREATION
Error during copy of partner: Partner role VN
Error during copy of partner: Partner role VN
Error during copy of partner: Partner role VN
No inbound delivery created for the replenishment delivery 0080011663This issue has been resolved.
I recreated the Vendor from scratch and switched plant config settings to the new Vendor and entered the new vendor number in the Customer and retried the process. It works.
So i think there was something wrong with the initial Vendor setup.(Though i checked view by view and didnt find any difference)
Maybe you are looking for
-
Capture Excise Invoice for Returns delivery
Dear friends, Once the returns sales order is created and followed by returns delivery, we need to capture the excise invoice for it. Can anyone kindly guide this process. What will be the T.code for capturing excise invoice in this scenario and pls
-
True circles from round-cap dash?
In the discussion of tricuspoids Jongware stated that "circles" in Illustrator are not circles at all, but approximations "from four quadratic Bézier curves." Is the round cap for a stroke generated the same way, or would it be possible to generate a
-
New category "Content creation with Final Cut Studio"
Hi: I have found a new "Content creation with Final Cut Studio" category in FCS forum. I don't find clear the kind of questions/issues/discussions to post there ! http://discussions.apple.com/forum.jspa?forumID=1137 I think probably someone can claru
-
[SOLVED] Gnome: initial working directory set to / instead of HOME
Solved: See commentary #6 Hi there, Since some weeks ago, don't know what I touched, everything starts from the root directory instead of starting from the home directory. That is, file managers, consoles, emacs, etc. start always in the root directo
-
(This is my first mac ever ... I've been pc'd for over 21 years and I'm fairly fluent in windows) However, I have a error -50 when I send messages from entourage ... where do i find a listing of error messages and what they mean? your pal, trish!