Partner functions (R/3- CRM) based on employee number (KNVP-PERNR) or CP
Hi all gurus,
I am trying to replicate an partner-function base on personnel number/employee number for customers from R/3 to CRM.
For those partner-functions only the employee number is filled in KNVP-PERNR (the KNVP-KUNN2, KNVP-LIFNR and KNVP-PARNR are empty).
If I follow the replication process I don't see the employee number getting mapped to the "bapimtcs structure" (in function module COM_BUPA_MWX_CREATE_REL) and therefore those partnerfunctions are not replicated to CRM.
(all employees are entered in HR-R/3 and downloaded to CRM as business partners)
Basically this is exatly the same situation described in the following forum:
[Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR) |Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)]
What (function modules/configuration) is necessary to get those partner-functions being replicated to CRM?
Unfortunately I was pretty unable to collect valid solution track.
Thanks in advance,
AndreA
Hi Andrea,
We were able to solve the exact same issue.
Here are steps used by us to fix the issue :
IMG Settings in CRM :
SPRO>CRM>Basic Functions>Partner Processing> Date Transfer>Distribution of Partner Functions from SAP ECC into CRM>
Partner Function = VE
Funciton = Employee Responsible(00000014) ( can be any other partner function which is a employee)
Usage= CRM
Also make sure the following settings are also done
SPRO>CRM>Basic Functions>Partner Processing> Date Transfer-->Distribution of Partner Functions from CRM into SAP ECC
Funciton = Employee Responsible(00000014)
Partner Function Cat = Employee
Scenario = CRM
R/3 func = VE ( even though you are using the PE partner function in ECCwe use VE here as you know VE is the german version of PE)
Type = MR master record
Also make sure that SAP Notes 1020514 and 1099363 have been applied in ECC.
Let me know if you have any issues. This should fix it.
Thanks
Edited by: Venkat_30 on Dec 14, 2011 5:15 AM
Similar Messages
-
Any report or Table to see orders with BP partner functions in SAP CRM?
Hello All,
Could anyone help me in getting the table or any report for orders with BP partner functions in SAP CRM?
Would appreciate replying at the earliest.
Cheers
SreedharHello Bruno,
Thanks very much.
It is somehow helpful for my need but not completly. This is ok when the orders are less in number.
My requirement is how to check the first name , last name and number for contact persons in a list of CRM orders(simply who is the contact person for a list of orders).Let me know for any additional info.
I would apprecaite if you could help me in getting any other way.
Cheers
Sreedhar
Edited by: sreedharhazari2 on Jun 8, 2010 9:18 AM -
Partner Functions in Procedure - CRM 2007
We have an issue where a "Partner Function is determined on a 'Plan Header' ".
We need to populate the Ex. Interaction Centre (CRM) function, which 95 times out of 100, works fine.
the majority of plans that are created, this will read the Org Unit from the user creating the plan to populate this data.
basically we have interfaces creating plans with references to Quotes, using the Standard PIAPPLUSER, and as no Org Unit is assigned to this service user, we are able to add our own Org Unit to the ICENTER function.
however, if there are any errors during this processing, and we need to reprocess, it reads the Org Unit of the person processing the data, and not the code i am passing into CRM_ORDER_MAINTAIN....
we have looked at the settings:
Determination Time in Partner Determination
Specifies at what point in a transaction the system determines business
partners for that transaction.
o Recurring partner determination starts as soon as you begin creating
a transaction document and reoccurs as you process the transaction,
until the system has found partners for all partners functions to
which you assigned recurring partner determination.
o Determination during product entry occurs when you make entries at
item level. If you want to carry out partner determination based on
particular products or services, use this option.
o Determination when saving occurs when you save the transaction for
the first time.
- For example, you could be use this option to determine partners
based on the total value of the transaction.
ideally, we would like the determination to only occur if there is not an OU present for the ICENTER partner function.
does anyone have any ideas?could not change this programmatically due to the configuration. no longer required.
-
Hi Guru's
Any know if there any Partner Function of SPRO in CRM that simulate the standar rule 00000157 of PFAC ?
I need aplicate this Partner Function in my Policies rules, but I don't know how to do it.
Thank you very much advance,
Carlos Castillo.Hi, use FM RH_ACT_LEADING_POSITION.
Regards -
Partner function replecation from CRM to R/3
Hi ,
Can any one tell me whats the Object to replecate Partner functions from CRM to R/3
Thanks in Advance.
ShaanHi,
if you mean the customizing: the setup of partner functions on the R/3 & CRM system needs to be done seperately.
--> in CRM, the partner functions are dependent on relationships.
if you mean transfer the data: object/bdoc bupa_rel is used to transfer data between CRM & R/3.
Michael. -
R/3 Partner Function missing in CRM
Hi Guys,
There is partner function in R/3 called SR (Material safety sheet reciepient). This partner function is assigned as mandatory in R/3 while creating customers in R/3.
However in the CRM system there in Role similar to that one. How do I get around this issue. Even if i create a new role how will I link this new role to the R/3 partner function?
AniHi Ani,
You need to map R/3 Partner funtion to CRM partner funtion and vica versa.
Please perform the partner funtion data transfer settings as below
In IMG settings,
Customer Relationship Management>Basic Functions>Partner Processing-->
Data Transfer
Here in you have two mappings to be done
1) Distribution of Partner Functions from SAP ECC into CRM
2)Distribution of Partner Functions from CRM into SAP ECC
Please read the help associated to IMG to get the clear picture.
And see the example for mapping of partner funtion 'Sold-to-Party'
i.e partner funtion in R/3: 'AG'
and Partner funtion '00000001' in CRM
Best Regards,
Pratik Patel
<b>Reward with Points!</b> -
Partner function....of Sales employee..
Hi, i want to create a partner function of sales employee in my customer master. there is no HR role in the organinazion...how will i go for it? The requirement is, that partner function has to flow in the order document as well. Can anyone plz tell me the process for the same? i am on client's site..
Regards.
amit.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 -
Partner Function Duplicating in CRM from ECC
Hi All,
We are in CRM 5.0 and ECC 6.0. We are facing the problem in relationships with BPs. When we are changing the Z1(inside sales rep)/Z2(outside salesrep) in ECC the changes are replicating to CRM by adding a new entry instead of updating the existing one. Thus leading two Z1s in CRM and causing inconsistency. The BDOC BUPA_REL in SMW01 is showing 2 entries for each update
with the OBJECT_TASK as 'M'. Does anyone out there help me please.
Thanks,
Karuna.Hi Karina,
I am the same as you.
In R3 when i change responsible employee in a client (partner relation), this is replicated succesful to CRM but is added rather than to be modified in business partner relation.
You could fix it? Someone has an idea about this ?
Thank's
Yenia -
How to work with Partner Function Categ. - Person Responsible vs. Employee
Hi together,
I have a question regarding partner processing (we are using Web Client UI):
Our customers are served by one Sales Rep. who is travelling and additionaly by an Account Manager who is working inhouse (he is assigned to & supporting up to 5 sales reps). In our R/3 System we are using two different z-(customer)partner roles - let's say SR and AM. When we create new customers and sales documents the AM is determined out of the assignment to the SR (SR has to be typed in by user). So the Sales Rep is the leading employee in the relationship to the customer, while the AM is the SAP power-user.
How should I use these Roles in CRM? Both employees have to be assigned to our Customer-BUPAs and to every sales document.
The first thought was using the CRM-partner-function 0012 Sales Rep.(category employee) for the SR and 0014 Employee Resp. (category person responsible) for AM.
My problem is that I don't know what the difference between the two partner function categories person responsible(0008) and employee(0005) is.
Because the SalesRep is the leading employee I think it would be better to use him as the responsible person? Another point is that the responsible person is available on all the Web Client Views on the first detail block and the other employees are only visible in the "parties involved" block. But the SalesRep doesn't use the system very often.
What do you think is the best way?
Best Regards
StefanHi,
I think it makes logical sense to assign SR as employee responsible.
Please go through the following link for further information on this account.
http://help.sap.com/saphelp_crm40/helpdata/en/c4/1161f39f6ec94c88c90a11b0820a16/frameset.htm
Regards,
Deepak -
Partner function relationship customer - employee not replicated
Hi Gurus,
We are working on the HR-CRM scenario and we are replicating employees from ECC to CRM. For our purposes we created in ECC 3 custom partner functions.
In CRM we have created and mapped these partner functions, in particular in CRM we have:
u2022Created the relevant custom Relationship categories
u2022Defined the 3 partner functions
u2022Made the mapping for the distribution from ECC to CRM and viceversa
After this we have proceeded as follows:
u2022Replication of the employees from HR to CRM: it works properly
u2022Re - launched the BUPA_REL object in order to update the CRM system
We have used one of these custom partner functions for one customer and as for now these partner functions are not replicated from ECC to CRM.
For instance, in ECC we have a customer with the custom relationship u201CHas the Sales Manageru201D to the employee 90000003.
That employee has been replicated in CRM but the relationship between him and the customer has not been updated in CRM.
Is this the normal behavior? Or there is something missing/wrong in the configuration done?
Thanks a lot.
BR,
StefanoHi Dinesh
For automatic partner determination in customer master data you need to make the configuration setting . For that you go to>SPRO>SD>Basic Function> Set UP Partner Determination --> Set up Partner determination for Customer master Data, there you need to do the configuration . For details configuration Please search the forum.
Hope it is helpful for you
Thanks
Ashok -
Org determination in transaction based on custom Partner Function
Hi All,
I am trying to figure out how can I modify the partner determination procedure and org data profile to determine the sales area (org,dc,div,so,sg) in a transaction automatically without having to choose the sales org.
Here is the set up:
Sales Org ->Soff->Sales group are permitted for Org determination in ppoma_crm.
Custom Partner Functions - Y1 and Y2 assigned to Sales Partner Function Category
Access Sequence YXXX has the following set up:
Source PF Function Category Usage
10 COM_PARTNER_A
20 CRM_PARTNER_C Sold to Party
30 CRM_PARTNER_C Activity Partner CRM
40 CRM_PARTNER_C Sales Prospect
50 CRM_PARTNER_C Activity Partner
Partner Procedure YPP001 has the following setup:
Function Access Sequence
14 User Recurring
15 YXXX Recurring
21 0001 Recurring
23 YXXX Recurring
Y001 Recurring
Y002 Recurring
Y1 YXXX Recurring
Y2 YXXX Recurring
Org Data Profile YORGPROF01 is maintained for Scenario SALES with Org Model Deter Rule 10000177. Sorg and Dc mandatory set.
The transaction type YOPP is configured as shown:
Org Profile YORGPROF01
Partn Func Org Activity Partner
Partner Determination Proc YPP001
Now here is the issue:
We want that when we create transaction YOPP it should fill the Org data including Sales Office and Sales group from the partner associated with the PF Y1 which gets assigned automatically when the account is selected on the transaction.
With the above setting, it populates all the sales offices and sales groups that have been marked for determination in ppoma_crm (which we don't want it to do). We need it marked for determination so the BP's master data associated with Y1 shows up the sales group and sales office.
When the account is selected on the transaction and Y1 is determined via partner determination, we would want the sales Org also to get determined automatically from the Y1 partner's master data.
Anything that can be changed in the above settings to make this happen?
Thanks
PCHi
Although i have no practical experience with this but an educated guess would be to use Partner function determination . If you have 'employee responsible ' PF , Then u can further use him for org determination.
May be this helps...
Regards
Ruchi -
Replication Of Z Partner Functions from CRM to ECC
HI All,
We are creating the " Z Partner Functions " in SAP CRM & ECC.in our scenario partner functions flows from CRM to ECC and we want to replicate these partner functions from CRM to ECC.
So can some onle please tell me how to do this?.
Thanks in Advance,
Arun1. Create the partner function in ECC
2. Assign the partner function to the relevant partner procedure in ECC
3. Create a partner function in CRM
4. Map the partner function as follows:
Customer Relationship Management
--> Basic Functions
--> Partner Processing
--> Data Transfer
--> Distribution of Partner Functions from R/3 into CRM
Create the following entry:
Partner function in R/3 Function
and also the below:
Create a mapping entry for data transfer from CRM to R/3 via the
following IMG activity in CRM:
Customer Relationship Management
--> Basic Functions
--> Partner Processing
--> Data Transfer
--> Distribution of Partner Functions from CRM into R/3
Create the following entry:
Function R/3 function Type in R/3 -
Problen in assigning partner function at the time of creation of lead .
Hi ALL ,
I have requirement , where as soon as bp will be created a lead has to be generated mentioning the BP as sales prospect (partner function) . I have to assign employee reponsible partner function too in lead , at the same time .
I have used BAPI :BAPI BAPI_LEAD_CREATEMULTI to create the lead .
But its not accepting the partner function as well as organisation details , giving error like Ref field for Partner ,Orgman are not allowed.
Can any one tell me where and how can I assign the Partner function in case of my reuirement .
Thanks & Regards
Debasri sarkarHi Debasri,
I am able to develop a code to add a partner
Check this:
*- Data
DATA: lt_partner TYPE crmt_partner_comt.
DATA: ls_partner TYPE crmt_partner_com.
DATA: lt_input_fields TYPE CRMT_INPUT_FIELD_TAB.
DATA: ls_input_fields LIKE LINE OF lt_input_fields.
DATA: ls_input_fields_names TYPE LINE OF CRMT_INPUT_FIELD_NAMES_TAB.
DATA: LV_Guid type CRMT_OBJECT_GUID.
DATA: LV_AddPartner type NOTES-UDATE.
DATA : lt_orderadm_h TYPE CRMT_ORDERADM_H_COMT,
ls_orderadm_h like line of lt_orderadm_h,
gt_obj_guids TYPE crmt_object_guid_tab.
LV_Guid = '96CB40512AA2BD4C95EEE26BFD8E6187'.
LV_AddPartner = '00000012'.
*- Partner info
ls_partner-ref_kind = 'A'.
ls_partner-kind_of_entry = 'C'.
ls_partner-no_type = 'BP'.
ls_partner-display_type = 'BP'.
ls_partner-ref_guid = LV_Guid.
ls_partner-ref_partner_fct = LV_AddPartner.
ls_partner-partner_fct = LV_AddPartner.
ls_partner-PARTNER_NO = '0000409993'.
INSERT ls_partner INTO TABLE lt_partner.
*- Input Fields info
* ls_input_fields-ref_handle = '1'.
ls_input_fields-ref_guid = LV_Guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'PARTNER'.
CONCATENATE ls_partner-ref_partner_handle LV_AddPartner
INTO ls_input_fields-logical_key.
ls_input_fields_names-fieldname = 'PARTNER_FCT'.
INSERT ls_input_fields_names INTO TABLE ls_input_fields-field_names.
ls_input_fields_names-fieldname = 'NO_TYPE'.
INSERT ls_input_fields_names INTO TABLE ls_input_fields-field_names.
ls_input_fields_names-fieldname = 'DISPLAY_TYPE'.
INSERT ls_input_fields_names INTO TABLE ls_input_fields-field_names.
ls_input_fields_names-fieldname = 'PARTNER_NO'.
INSERT ls_input_fields_names INTO TABLE ls_input_fields-field_names.
ls_input_fields_names-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_input_fields_names INTO TABLE ls_input_fields-field_names.
INSERT ls_input_fields INTO TABLE lt_input_fields.
*- Make the changes in memory
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
IT_PARTNER = lt_partner
CHANGING
ct_orderadm_h = lt_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.
Write 'Error!'.
ENDIF.
* Get guids
LOOP AT lt_orderadm_h INTO ls_orderadm_h.
INSERT ls_orderadm_h-GUID INTO TABLE gt_obj_guids.
ENDLOOP.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = gt_obj_guids
EXCEPTIONS
document_not_saved = 1.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Hope this solves the issue.
Regards,
Saumya -
Partner function update using CRM_PARTNER_MAINTAIN_SINGLE_OW
Hi Experts,
Can some one pls help me with some working code/sample to update a partner function value in CRM Order. I tried the below code but it doesnt seems to be working.
Appreciate your help on this.
call function 'CRM_ORDER_READ'
exporting
it_header_guid = lt_guid
iv_mode = 'C'
importing
et_orderadm_h = it_orderadm_h
et_sales = it_sales
et_orderadm_i = it_orderadm_i
et_orgman = it_orgman
et_shipping = it_shipping
et_partner = it_partner
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.
Implement suitable error handling here
endif.
clear wa_orderadm_h.
read table it_orderadm_h into wa_orderadm_h index 1.
lv_ref_guid = it_orderadm_h-guid.
call function 'CRM_PARTNER_GET_CONTROL_INF_OW'
exporting
iv_ref_guid = wa_orderadm_h-guid
iv_ref_kind = 'A'
importing
es_partner_control = ls_partner_control
exceptions
determination_failed = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
move-corresponding ls_partner_control to es_partner_control.
Common fields for both create and change *****
import lv_qplant to lv_werks2 from memory id 'QUOTA_PLANT'.
select single partner_no
from crmm_locmap
into w_partner
where ext_locno = lv_werks2. "wa_quota_so_items_return-werks2.
Partner_com parameter
ls_partner_com-ref_guid = wa_orderadm_h-guid.
ls_partner_com-ref_kind = 'A'.
ls_partner_com-partner_no = w_partner.
ls_partner_com-display_type = 'BP'.
ls_partner_com-no_type = 'BP'.
Find whether create or change is required
read table gt_partner into wa_partner with key partner_fct = '00000035' ref_kind ='A'.
if sy-subrc eq 0.
ls_partner_com-kind_of_entry = 'C'.
ls_partner_com-partner_fct = '00000035'.
ls_ip_fields-fieldname = 'DISPLAY_TYPE'.
append ls_ip_fields to lt_ip_fields.
ls_ip_fields-fieldname = 'KIND_OF_ENTRY'.
append ls_ip_fields to lt_ip_fields.
ls_ip_fields-fieldname = 'NO_TYPE'.
append ls_ip_fields to lt_ip_fields.
ls_ip_fields-fieldname = 'PARTNER_FCT'.
append ls_ip_fields to lt_ip_fields.
ls_ip_fields-fieldname = 'PARTNER_NO'.
append ls_ip_fields to lt_ip_fields.
call function 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
exporting
iv_ref_guid = wa_orderadm_h-guid
iv_ref_kind = 'A'
is_partner_com = ls_partner_com
iv_populate_mode = 'X'
iv_check_partner_only = ' '
is_partner_control = es_partner_control
iv_external_call = 'X'
changing
ct_input_field_names = lt_ip_fields
exceptions
error_occurred = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.Reply to an old post but still can be helpful to someone in need
*& Report ZUPDATE_TRANSACTION_PF
REPORT zupdate_transaction_pf.
*======================================================================*
* Variable declaration for ALV *
*======================================================================*
TYPE-POOLS: slis. " Type pool required for ALV
TYPES: BEGIN OF gs_output,
extid TYPE ib_extid,
prodid TYPE comt_product_id,
msg_type TYPE bapi_mtype,
message TYPE bapi_msg,
layout TYPE slis_t_specialcol_alv,
END OF gs_output.
DATA: gt_output TYPE TABLE OF gs_output,
gs_output TYPE gs_output,
gt_fieldcat TYPE slis_t_fieldcat_alv,
gt_color_green TYPE slis_t_specialcol_alv,
gt_color_red TYPE slis_t_specialcol_alv,
gt_color_yellow TYPE slis_t_specialcol_alv,
gt_layout TYPE slis_layout_alv,
lt_header_guid TYPE crmt_object_guid_tab,
ls_header_guid TYPE crmt_object_guid,
lt_partner TYPE crmt_partner_external_wrkt,
ls_partner TYPE crmt_partner_external_wrk,
lt_guid TYPE crmt_object_guid_tab,
lt_guid_single TYPE crmt_object_guid_tab,
lt_req_obj TYPE crmt_object_name_tab,
ls_req_obj TYPE crmt_object_name,
lt_partner_update TYPE crmt_partner_comt,
lt_partner_com TYPE crmt_partner_comt,
ls_partner_com TYPE crmt_partner_com,
lt_input_fields TYPE crmt_input_field_names_tab,
ls_input_fields TYPE crmt_input_field_names,
lv_partner_fct TYPE crmt_partner_fct,
lv_partner_no TYPE bu_partner,
lv_trans_no TYPE crmt_object_id_db,
lt_return TYPE STANDARD TABLE OF ddshretval,
ls_return LIKE LINE OF lt_return,
lv_guid TYPE crmt_object_guid.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE block1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (36) forpf.
PARAMETERS: p_pf TYPE comt_partner_fct OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (36) frombp.
PARAMETERS: p_frombp TYPE but000-partner OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (36) tobp.
PARAMETERS: p_tobp TYPE but000-partner OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (36) fortrans.
SELECT-OPTIONS: p_trans FOR lv_trans_no MATCHCODE OBJECT crm_order_object_id.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE block2.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (36) fortest.
PARAMETERS: p_test AS CHECKBOX.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b2.
INITIALIZATION.
fortrans = 'Transaction Number'.
forpf = 'Partner Function'.
frombp = 'From Business Partner'.
tobp = 'To Business Partner'.
fortest = 'Test Run, Check Only'.
*======================================================================*
* AT SELECTION-SCREEN *
*======================================================================*
AT SELECTION-SCREEN.
FIELD-SYMBOLS:
<sscrfields> TYPE sscrfields.
DATA:
lv_answer TYPE char1,
lt_options TYPE TABLE OF rfc_db_opt,
lt_fields TYPE TABLE OF rfc_db_fld,
lt_func_det TYPE TABLE OF tab512.
CHECK sy-ucomm EQ 'ONLI'.
AT SELECTION-SCREEN ON p_trans.
CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
IF p_trans IS INITIAL.
MESSAGE e398(00) WITH 'Please enter the transaction numbers'.
ENDIF.
AT SELECTION-SCREEN ON p_pf.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pf.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'CRMC_PARTNER_FT'
fieldname = 'PARTNER_FCT'
TABLES
return_tab = lt_return[]
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 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.
IF lt_return[] IS NOT INITIAL.
READ TABLE lt_return[] INTO ls_return INDEX 1.
p_pf = ls_return-fieldval.
ENDIF.
CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
IF p_pf IS INITIAL.
MESSAGE e398(00) WITH 'Please enter the partner function'.
ENDIF.
AT SELECTION-SCREEN ON p_frombp.
CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
IF p_frombp IS INITIAL.
MESSAGE e398(00) WITH 'Please enter the business partner id to be changed'.
ENDIF.
AT SELECTION-SCREEN ON p_tobp.
CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
IF p_tobp IS INITIAL.
MESSAGE e398(00) WITH 'Please enter the new business partner id'.
ENDIF.
*======================================================================*
* START-OF-SELECTION *
*======================================================================*
START-OF-SELECTION.
PERFORM init_alv_col_color.
PERFORM update_transactions.
END-OF-SELECTION.
PERFORM create_report.
*& Form create_fieldcat
* text
FORM create_fieldcat.
PERFORM add_fld USING: 'EXTID' 'Order ID' '20' 1,
'PRODID' 'Product ID' '20' 2,
'MSG_TYPE' 'MSG Type' '8' 9,
'MESSAGE' 'Message Description' '100' 10.
ENDFORM. "CREATE_FIELDCAT
*& Form add_fld
* text
* -->P_FIELDNAME text
* -->P_SELTEXT_M text
* -->P_OUTPUTLEN text
* -->P_COL_POS text
FORM add_fld USING p_fieldname
p_seltext_m
p_outputlen
p_col_pos.
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = p_fieldname.
ls_fieldcat-ref_fieldname = p_fieldname.
ls_fieldcat-seltext_m = p_seltext_m.
ls_fieldcat-outputlen = p_outputlen.
ls_fieldcat-col_pos = p_col_pos.
APPEND ls_fieldcat TO gt_fieldcat.
ENDFORM. "add_fld
*& Form create_report
* text
FORM create_report.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = 'Creating output ...'.
* Get the field headers into an internal table
PERFORM create_fieldcat.
gt_layout-coltab_fieldname = 'LAYOUT'.
gt_layout-colwidth_optimize = 'X'.
gt_layout-zebra = ' '.
* Call ABAP/4 Grid Viewer
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_program = sy-repid
it_fieldcat = gt_fieldcat[]
is_layout = gt_layout
TABLES
t_outtab = gt_output " it_sort = gt_sort
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " create_report
*& Form init_alv_col_color
* text
FORM init_alv_col_color.
* Red ALV column
PERFORM add_field_color USING gt_color_red 'MSG_TYPE' '6' '1' '1'.
PERFORM add_field_color USING gt_color_red 'MESSAGE' '6' '1' '1'.
* Green ALV column
PERFORM add_field_color USING gt_color_green 'MSG_TYPE' '5' '1' '1'.
PERFORM add_field_color USING gt_color_green 'MESSAGE' '5' '1' '1'.
* Yellow ALV column
PERFORM add_field_color USING gt_color_yellow 'MSG_TYPE' '3' '1' '1'.
PERFORM add_field_color USING gt_color_yellow 'MESSAGE' '3' '1' '1'.
ENDFORM. "init_alv_col_color
*& Form add_field_color
* text
* -->PT_COLOR text
* -->FIELDNAME text
* -->COL text
* -->INT text
* -->INV text
FORM add_field_color USING pt_color TYPE slis_t_specialcol_alv
fieldname col int inv.
DATA: ls_color TYPE slis_specialcol_alv.
ls_color-fieldname = fieldname.
ls_color-color-col = col.
ls_color-color-int = int.
ls_color-color-inv = inv.
APPEND ls_color TO pt_color.
ENDFORM. "add_field_color
* Form TOP-OF-PAGE *
* ALV Report Header *
FORM top-of-page.
*ALV Header declarations
DATA: t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader,
t_line LIKE wa_header-info,
ld_lines TYPE i,
ld_linesc(10) TYPE c.
* Title
wa_header-typ = 'H'.
wa_header-info = 'Data Migration'.
APPEND wa_header TO t_header.
CLEAR wa_header.
* Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
APPEND wa_header TO t_header.
CLEAR: wa_header.
* Time
wa_header-typ = 'S'.
wa_header-key = 'Time: '.
CONCATENATE sy-uzeit(2) ':'
sy-uzeit+2(2) ':'
sy-uzeit+4(2) INTO wa_header-info. "time
APPEND wa_header TO t_header.
CLEAR: wa_header.
* File Path
wa_header-typ = 'S'.
wa_header-key = 'File Path: '.
wa_header-info = ''.
APPEND wa_header TO t_header.
CLEAR: wa_header.
* Test Mode
wa_header-typ = 'S'.
wa_header-key = 'Test Mode: '.
IF p_test = 'X'.
wa_header-info = 'Yes'.
ENDIF.
APPEND wa_header TO t_header.
CLEAR: wa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
ENDFORM. "top-of-page
*& Form UPDATE_TRANSACTIONS
* text
* --> p1 text
* <-- p2 text
FORM update_transactions .
SELECT guid INTO TABLE lt_header_guid FROM crmd_orderadm_h WHERE object_id IN p_trans.
IF sy-subrc EQ 0.
LOOP AT lt_header_guid INTO ls_header_guid.
CLEAR: lt_guid, lt_req_obj, lt_partner, lt_input_fields.
ls_req_obj = 'PARTNER'.
APPEND ls_req_obj TO lt_req_obj.
APPEND ls_header_guid TO lt_guid.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_guid
it_requested_objects = lt_req_obj
IMPORTING
et_partner = lt_partner
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.
lv_partner_fct = p_pf.
lv_partner_no = p_frombp.
SHIFT p_frombp LEFT DELETING LEADING '0'.
READ TABLE lt_partner INTO ls_partner WITH KEY partner_fct = p_pf partner_no = p_frombp.
IF sy-subrc EQ 0.
LOOP AT lt_partner INTO ls_partner WHERE partner_fct = p_pf AND partner_no = p_frombp.
lv_partner_no = p_tobp.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_partner_no
IMPORTING
output = lv_partner_no.
REFRESH lt_input_fields.
CLEAR ls_partner_com.
ls_partner_com-ref_guid = ls_partner-ref_guid.
ls_partner_com-ref_kind = ls_partner-ref_kind.
ls_partner_com-ref_partner_handle = ls_partner-ref_partner_handle.
ls_partner_com-kind_of_entry = 'C'.
ls_partner_com-partner_fct = ls_partner-partner_fct.
ls_partner_com-partner_no = lv_partner_no.
ls_partner_com-display_type = 'BP'.
ls_partner_com-no_type = 'BP'.
ls_partner_com-ref_partner_no = ls_partner-ref_partner_no.
ls_partner_com-ref_partner_fct = ls_partner-ref_partner_fct.
ls_partner_com-ref_no_type -
Invoice via email to external sender with partner function
Hello all,
sending an invoice via email to the recipient address that's in the customer master is working fine in our system. Now we want the invoice to be sent to one of our employees and we did the following settings:
- Created a personnel number in the HR module and assigned this number to the SAP user ID of the employee.
- Created a partner function ( Transaction OPSPAR1) with partner type ER - Personnel number. Is this the correct partner type?
- Added new partner function in customer master and assigned personnel number of employee.
- In output section of the invoice, we added output type, selected medium = external send, assigned new partner function and partner=personnel number.
After issuing output, a message comes up that output could not be issued.
Any suggestions? Am I missing something?
Thanks
AnneDear Anne,
Have you maintained Recipient field with User Id of employee in the condition record Communication detail screen.
If not maintained maintain Recipient field with User Id of employee then try.
I hope this will help you,
Regards,
Murali.
Maybe you are looking for
-
Facebook doesn't work with Firefox 28.0 + Flashplayer 12,0,0,77
Hey everybody, first of all let me tell you the specs of my system: Laptop: Windows 7 Home Premium 64 bit Acer Aspire 7745G Laptop Intel i7 Q720 @1,6 GHz 4,00 GB RAM Browser: Mozilla Firefox 28.0 Flash Player Version: 12,0,0,77 Problem: So the Flash
-
How to obtain data from SAP in the form of XML
Hi We have a requirement to integrate SAP CRM server with 3rd party utility. The 3rd party utility needs SAP Data in the form of XML. please guide me in getting the following data in the form of XML; XML formats for: - Customer data - Product
-
Suddenly can't see files on remote server
I am at a loss. I have been managing about 7 or 8 simple websites for quite a few years using Dreamweaver MX 2004. This week, I have suddenly lost the ability to see the remote files on about half of the websites I manage. The files are there when I
-
RoboHelp for FrameMaker and FrameMaker 8
I still use the legendary, yet discontinued and unsupported, "RoboHelp for FrameMaker". However, when I installed my new Tech Comm Suite and FM 8. RoboHelp for FrameMaker would not work with FM 8. I know this is a long shot, but does anyone know a wo
-
Catalyst 2960-x Tel 1 and g49, bug
Hi Cisco Community I am experiencing a very strang bug or it's just a "feature". We are setting up 3 Catalyst 2960-x (EX5) as a stack. Te 1/0/1 and Te 2/0/1 are bundled as Etherchannel. (works fine "In-channel-group") But we just can not connect anyt