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?
Ani
Hi 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>
Similar Messages
-
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,
AndreAHi 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 -
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 missing in the replicated order
Hi Experts,
I Have created an order in ECC which has replicated to CRM with some errors partner functions are missing. could help me how to solve this problem in below link you can see the detail analysis of the error.
1)http://s657.photobucket.com/albums/uu298/vallabhaneni/?action=view¤t=orderecc.jpg
2)http://s657.photobucket.com/albums/uu298/vallabhaneni/?action=view¤t=orderincrm.jpg
Thanks & Regards
V.SrinivasHi V.srinivas,
For Order Replication from ECC system to CRM system your Configurations for both the system must be Coinciding.
Hope your Partner Function Determination in ECC and CRM are also maintained the Same way,else check for the Determination of Sub-Partner Function determination (Ship to Party,Bill to Party..) in ECC and CRM the way its maintained.
The Main Problem arising in your Order is after replication from ECC System your Sub-Partner Functions aren't getting Determined,
Check for the Partner Determination Procedure in CRM for the Sub-Partners and try to Determine them from your Main Partner Function e.g. Sold to Party.
Hope it Solves your Query..
Revert back for Further Queries..
Thanks and Regards,
RK. -
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. -
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 -
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 -
Partner functions OA and IP missing for Vendor in Extended classic PO
As part of current Classic scenario, we have maintained OA (Ordering Address) and PI (Invoicing Party) for a vendor in R/3. We have also maintained different ordering addresses for multiple plants in the Vendor master: Partner functions screen --> Alternative data.
I would like to acheive the same functionality in Extended Classic scenario. We have replicated the vendors from R/3 to SRM. After activating Extended Classic scenario, we see only VN as the partner function in R/3 PO.
Q1. How can we enable OA and PI partner functions in R/3 PO (Extended Classic) ?
Q2. How can we enable different ordering addresses for multiple plants in R/3 PO (Extended Classic) ?Hi
Which SRM Server are you using ?
<b>You need to maintain Partner Functions in the SRM Server - SPRO Transaction - Configuration Settings.</b>
<u>Here is the Path from SPRO Transaction -></u>
<b>Supplier Relationship Management -> SRM Server -> Cros Application Basic-Settings -> Define Partner Functions</b>
<u>Maintain Similar entries as mentioned below.</u>
Function Function Type Usage Description Abbreviation
00000016 0013 B2B Requester RQ
00000017 0007 B2B Contact Person CP
00000018 0011 B2B Bidder BI
00000019 0012 B2B Vendor VD
00000020 0002 B2B Goods Recipient GR
00000025 0014 B2B Portal Provider PP
00000026 0008 B2B Responsible Employee RE
00000027 0017 B2B Ship-To Address DP
00000028 0003 B2B Invoice Recipient IR
00000029 0015 B2B Invoicing Party IP
00000030 0018 B2B Ship-From Address SP
00000034 0002 B2B Plant PLNT
00000038 0001 B2B Sold-to Party ORDR
00000039 0026 B2B Preferred Vendor PRVD
00000051 0019 B2B Purch. Org. Auth. For Release AREL
00000074 0025 B2B Service Agent SERV
00000075 0031 B2B Location LOCA
00000097 0034 B2B Invoicing Party Employee IPEm
<u><b>Hope this will definitely help.</b></u>
<u>More details -></u>
<b>For 1), see these links below -></b>
Partner function missing in backend PO
Re: Error in transmission while PO cration
"Multiple" partner data at PO header
Partner functions in plan driven MM-SUS
Re: Partner function not found
Number range for business partner
Re: Problem with BP. Assignment: Business partner person to user not unique
Error in creation of Employee for Business Partner
Re: enter exactly one partner of type vendor
Re: Business partner as Vendor and Invoicing Party
Partner functions in EBP for extended Classic Scenario
Classic Scenario PO has multiple OA Partner Functions for Vendor
<u>For 2), see the pointers -></u>
<u><i>There is an article written by Jason Didday at www.saptips.com entitled "mySAP SRM and SAP R/3 Partner Functions: Supporting OAs, VNs and IPs" that you may find useful.</i></u>
<u>In SRM, there is no standard relation betwwen plant and vendor master data.
You can use BBP_GET_VMDATA_CF BADI to add backend data in SRM while using BBPGETVD and BBPUPDVD transactions.</u>
Replication of Ordering Address from R/3 to SRM
Re: Adding Partner Function to R/3 PO from SRM in Classic using BADI
Partner function Payee in SRM
Adding Partner Function to R/3 PO from SRM in Classic using BADI
Do let me know.
Regards
- Atul -
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 -
Mandatory partner function at sales order item level
Hi all,
I'm customizing partner schema at item level for sales order. I have created a custom partner function, I put it in a new sales order item partner procedure and i set this partner function as mandatory (I want that system show me a message if this function is missing at item level in sales order). This partner function is defined only at sales order item level (not at header level or customer master).
If i create and save a sales order with an item type that use the item partner procedure I have created, system don't show me any message for the item custom partner function missing, else if it is set as mandatory in sales order item partner procedure.
I have read some posts in these forums about this functionality, but it seems a different situation.
Someone had a similar type of problem?
Thank you in advance for any possible suggestion.
Regards
GianpaoloHi,
First you have to create a new partner function.
Then assign that partner function to the account group.
Then assign that partner function to partner determination procedure for the item category.
Over here click on the mandatory button also.
Then assign that partner determination procedure to item category.
Then to XD02 and give your customer number and in the partner tab maintain the data for that partner function.
Now go to VA01 and create your sales order you will see you partner function.
If you wont have maintained it in the customer master then it will prompt an error.
Regards
Raj. -
Classic Scenario PO has multiple OA Partner Functions for Vendor
Hi,
I have a 'design' issue. My R/3 Vendor has many OA Partner Functions for the different Branches they have and the PO needs to be Faxed to the OA Partner Function number, but the PO needs to be created against the VN Partner Function.
So, how do i do this in SRM? I was going to have a seperate Catalog link for each OA Partner function, but this is not creating the R/3 PO with VN Partner Function of the 'core' Vendor number.
Does anyone have any advice for this?
regards Adam
Using SRM 5.0 (Server 5.5) SP 8 and R/3 4.6C in Classic Scenario - my catalogs are external vendor.Hi
Please see these links, which might help ->
Partner function missing in backend PO
Re: Error in transmission while PO cration
"Multiple" partner data at PO header
Partner functions in plan driven MM-SUS
Re: Partner function not found
Number range for business partner
Re: Problem with BP. Assignment: Business partner person to user not unique
Error in creation of Employee for Business Partner
Re: enter exactly one partner of type vendor
Re: Business partner as Vendor and Invoicing Party
Partner functions in EBP for extended Classic Scenario
Regards
- Atul -
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 -
Order Partner Functions for VENDORs
Hi All,
We are using CRM 5.0 and ECC 6.0. We successfully replicated all the VENDORs from ECC to CRM BPs with BBP000-VENDOR role as this features is supported from CRM 5.0.
We are now trying to get the VENDOR Partner functions replicate from ECC sales order to the Partner Functions for the CRM ORDERS. Looks like SAP doesn't support this feature yet. I am getting the Partner Functions (say Z1 - Freight Carrier ) but the partner data is BLANK. So i am working on a workaround.
My Issue I am using ORDER_SAVE BADI to enter a BP from CRM to this Partner Function that is coming empty to CRM. For some reason my code is not working. Below is my code
Data declarations for VENDOR Partner Function*********
data: lt_partner_ref type CRMT_PARTNER_EXTERNAL_WRKT,
ls_partner_ref type CRMT_PARTNER_EXTERNAL_WRK,
lt_partner type CRMT_PARTNER_COMT,
ls_partner type CRMT_PARTNER_COM,
lt_partner_act type CRMT_PARTNER_COMT,
lt_partner_attributes type CRMT_PARTNER_ATTRIBUTE_COM_TAB,
ls_partner_attributes type CRMT_PARTNER_ATTRIBUTE_COM.
data:lt_header_ref type crmt_object_guid_tab,
guid type crmt_object_guid.
guid = iv_guid.
insert guid into table lt_header_ref .
call function 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_header_ref
IMPORTING
et_partner = lt_partner_ref
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.
Start of the code to VENDOR PARTNER FUNCTIONS for ORDER Heafer/Item ***********
Read table lt_partner_ref into ls_partner_ref with key partner_fct = 'Z0000007'.
if ( sy-subrc = 0 ).
ls_partner-kind_of_entry = 'C'.
ls_partner-partner_fct = 'Z1'.
ls_partner-partner_no = '0010060331'.
ls_partner-display_type = 'BP'.
ls_partner-no_type = space.
ls_partner-REF_HANDLE = '100'.
INSERT ls_partner INTO TABLE lt_partner.
ls_input_names-fieldname = 'KIND_OF_ENTRY'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_names-fieldname = 'PARTNER_FCT'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_names-fieldname = 'PARTNER_NO'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_names-fieldname = 'DISPLAY_TYPE'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_names-fieldname = 'NO_TYPE'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_names-fieldname = 'REF_HANDLE'.
ls_input_names-changeable = ' '.
INSERT ls_input_names INTO TABLE ls_input_field-field_names.
ls_input_field-ref_guid = ls_partner_ref-ref_guid.
ls_input_field-objectname = 'PARTNER'.
ls_input_field-ref_handle = '100'.
ls_input_field-logical_key = '0000'.
ls_input_field-ref_kind = 'B'.
INSERT ls_input_field INTO TABLE lt_input_field.
Endif.
call function 'CRM_ORDER_MAINTAIN'
EXPORTING
it_partner = lt_partner "I added this for VENDOR PF
CHANGING
ct_input_fields = lt_input_field
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
others = 5.
endmethod.
Could anyone check my code and suggest any changes?
Thanks,
Karuna.Hi ROshan,
Open customer master in XD02 sales view and save it then check in XD03 it should display the partner functions.
As you said the account group has been changed I think the records needs to be saved again.
Maybe you are looking for
-
Error while posting Parked FI invoice
Hi, While posting the Parked document (after approval) through WF, we are receiving below error message : Parked document could not be posted F5 E 010 &(currency) Your expert advice would be appreciated to solve this. regards, Kiran
-
Indication of documents about Inventory management in BW
H I've got this excellent document "How to handle inventory management scenarios in BW". Very clear, easy to understand. I'd like to go into more details about 2LIS_03_BX (initialization of the current stock), compression of requests and marker updat
-
Use of Business Process Flow in BPC
Hello Everybody, I am new to SAP BPC. I am able to create a New Business Process Flow in BPC. But Can any one tell me what are the actual Uses of Business Process Flow in BPC. Thanks a lot in Advance! Regards, Satish.
-
Include Service inside application bundle?
I read a brief note in the Dev docs that you can include Services inside your application bundle to distribute them with your app. Is this possible with the newer Automator-created Services? Where should they be stored in the bundle? When I peek ins
-
Do anyone know how to write a sql query to get the last 5 record. e.g. there are 10 records and record number are 11, 3, 6, 32, 55, 7, 21, 90 i want to get the record record number in 90, 55, 32, 21, 11 But i dont want to write 5 nested..... Can anyo