Badi for middleware ERP - CRM
Hi
We are replicating business partners from ERP to CRM, but we do not want to have the id number to be replicated from the ERP. Does anyone know a Badi that can remove the id number before sending the data to CRM?
Thanks
Claus
Hi Claus,
If you don't want the business partners with the same numbers of ERP system I would simply assign it an internal number range to that BP group, instead of the external number range.
But still if you want to work on it, my suggestion is to manipulate the values send to CRM with a new function module (like COM_BUPA_MWX_BPS_FILL_CENTRAL) and configure it in ERP table COM_BUPA_CALL_FU. This table determines the calls that are made when a business partner bdoc arrives or leaves the ERP system.
Must confess I never tried your purpose but hope that this may help you a little more
Kind regards,
Garcia
Similar Messages
-
Badi for ECC to CRM Customer replication track changes
Hi Experts,
We have a requirement to call external web service whenever erp customers(BP) are getting replicated to crm both in case of creation and updation scenario.
Any Badi which gets triggered in the above scenario which we can implement to track changes in bp or any other approach to implement this requirement.
Thanks in advance..
Cheers,
Sumit MittalHi Robert,
Thanks for providing details..
We tried using the existing standard function module (CRM_REQ_RECORD_CREA_FROM_ORDER) as receiver function module and check FM (CRM_REQ_RECORD_CHECK_REQ_TYPE).. now when we try to create bp control doesn't hit in either of the FM's.. are we doing anything wrong?
Instead of the standard if we provided our own z- FM what should be the interface that it expects?
Thanks in advance..
Cheers,
Sumit -
Creating BADI for datasource enhancement in CRM system
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Kushal,
You can find the BADI name by,
Go to Transaction SE24
Enter the Object Type CL_EXITHANDLER and click on Display.
Double Click on method "GET_INSTANCE".
Put a Break-point on Call method cl_exithandler=>get_class_name_by_interface
Run RSA3 transaction and execute the DataSource.
The execution will stop at the break point.
Check the values of variable 'exit_name', it will give you the BADI name called at that time.
Thanks,
Kokila -
Creating BADI for datasource enhancement in CRM.
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Prasad Reddy,
This are the available badis and exits for this t.code:
Enhancement/ Business Add-in Description
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD
BADI_MATERIAL_CHECK Enhanced checks for material master table
BADI_GTIN_VARIANT
BADI_EAN_SYSTEMATIC
o.of Exits: 3
o.of BADis: 11
Find the Exact exits and badis for ur requirement.
How to fine the exact badi:
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any
transaction
Rgds,
P.Naganjana Reddy
if you follow this 7 steps, you will find a suitable BADI. -
User,Customer exits or BADI for IDOC Type - CRMXIF_ORDER_SAVE_M01 in CRM
Hi Friends,
We are creating teh EDI Sales order in CRM using below details:
Basic Type - CRMXIF_ORDER_SAVE_M01
Message Type - CRMXIF_ORDER_SAVE_M
Functional Module - IDOC_INPUT_CRMXIF_ORDER_SAVE_M
Direction -Inbound
We need to customize the values for the IDOC,
Can any one help us in providing the details on any Customer Exits , User Exits and /or BADIs for the abov ementioned FM.
We greatly appreciate your early responce.
Thanks
VijayThanks Naresh, it helped...
Can you please help on the below:
1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01 for sales order conformation/acknowledgement.
3. Need a BADI after the EDI Sales order is saved.
Thanks in advance
Vijay -
BAdI for replacing CRM Pricing
Hi Experts,
I have a requirement to make a RFC call to retrieve the pricing from ECC/Vistex in CRMD_ORDER transaction after hit enter key with product/qty entry. I'm searching a BAdI for CRMD_ORDER (so many BAdIs for this TC) that can RFC by customer/material to retrieve the pricing from ECC then overwrite CRM's pricing with it (at least has customer/material as importing and subtotals as export/changing). Can anyone please advise if there is a BAdI for this purpose?
Thanks in advance, JinIn CRM_PRICING_I_BADI-MERGE: there are netvalue/price and subtotals in Importing IU/S_PRICING_I_WRK, but not in Changing CS_PRICING_I_BADI.
In CRM_PRICING_BADI-MERGE: there are none of them.
Why PRICING BADIs have no Pricing fields that can be changed? I think I'm missing something here. Any advise / documentation?
Thanks, Jin -
How to find the BADI for the transaction CRM_IC in CRm 5.0
Hi all,
I have a issue:
in CRM 5.0, for the transaction CRM_IC (IC Web tcode), i need to do an enhancement for that tcode.
In crm_ic, we can enter Business partner and product id data,whenever we provide the inputs for BP and Product id and if we press enter then it displays the details like product description, UOM etc.
what i need to do is when we enter product id which is not available in Product Master,develop an enhancement which get those details from Cust / Dist chain and replace the entered value with retrieved value.
For this CRM_IC, I need to find the correct BADI.
Can any one send me out the Exact BADI for this requirement.spro> crm > transactions > basic settings > badi's
BAdI: Product Processing at Item Level
In this step, you can create enhancements for product processing at item level in the business transaction The following methods are available to you in the Business Add-In CRM_PRODUCT_I_BADI:
CRM_PRODUCT_I_CHECK: BAdI to check object PRODUCT_I
CRM_PRODUCT_I_MERGE: BAdI to merge object PRODUCT_I -
CRM 5.0 Compatibility with backend upgraded to EHP4 FOR SAP ERP 6.0 / NW7.0
Hello,
What are the compatibility issues for EHP4 FOR SAP ERP 6.0 Upgrade with CRM 5.0 ? Are there any OSS notes to address upgrade specific issues?
Following are the System Details:
Upgraded EHP4 FOR SAP ERP 6.0 / NW7.01
Component: SAP_APPL
Release: 604
Support Pack: SAPKH60402
Level: 0002
Existing CRM 5.0
Component: BBPCRM
Release: 500
Support Pack: SAPKU50006
Level: 0006
Thanks,
AG
Edited by: Arijeet Ganguly on Sep 15, 2009 11:49 PMHi Amirsd,
You will need to use your Solution manager system to apply EHP 4 to your newly installed system.
Use MOPZ to generate XML file which contains the packages to be downloaded to upgrade your current system to EHP 4.0
After that download EHPI tool from SAP Marketplace and use EHPI tool to install downloaded packages.
It would run in 7 phases including downtime phase.
Let me know if you have any queries. !!!!
Regards,
Shobhit Garg -
Hi There,
I have to execute some custom code whenever an order line item has been deleted. Is there any BADI for this?
BADI should give me all the line item details and update indicator.
Thanks in advance,
Rams.Hi Rams,
Use the parameter IV_GUID in which you will get HEADER GUID.
Pass this header guid to the CRM_ORDER_READ to get the required data for item.
Refer the following piece of code:
APPEND iv_guid TO lit_header_guid.
INSERT gc_object_name-orderadm_h INTO TABLE lit_req_object.
INSERT gc_object_name-orderadm_i INTO TABLE lit_req_object.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lit_header_guid
it_requested_objects = lit_req_object
IMPORTING
et_orderadm_h = lit_orderadm_h
et_orderadm_i = lit_orderadm_i
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.
<b>Reward points if it helps.</b> -
BAdi for Search Criteria in IC
Hi Experts,
I am working on the UI of the IC, i have to implement a BAdi for the search criteria in the Account Identification -> ERP Sales Document , I am trying this badi "CRM_BUPA_IL_SEARCH" but this is not getting triggered.
Can anyone suggest any name of the BAdi for the same ?
Thanks in advance,
regards,
sharad,Hi sharad,,
if you want to use your badi to search a object you have to use as a search bol object BuilHeaderSearchNew. If you are using BuilHeaderSearch(sap standard) it's not working.
You can define to use the BuilHeaderSearchNew in spro->CRM->INDUSTRY-SPECIFIC Solution->Utility Industries->Setting for User Interfaces->Identification->Define Identification Profiles. Choose your z-profile and in the row Search By BP select the value BuilHeaderSearch. Check if it saves your value, becouse we had a problem with this.
Or you can use table crmc_iu_md_prof to enter the value BuilHeaderSearchNew directly for your z-profile. -
ERP/CRM/HRM in a Java system
For medium-sized organizations that are finding a need to progress towards an 'entry-level' ERP/CRM/HRM solution, where does this solution fit into the different types of technologies?
For example, in a particular enterprise application assume there is an application server that acts as the middleware between web browsers and Java clients, as well as the back-end EJBs, database, etc.
Where would the ERP/CRM/HRM solution fit into this? Would it basically be implemented as EJBs, a database, or are they considered a back-end program?
I've been looking at Compiere, and all I can really tell from its API is that it's a huge bunch of Java classes...but where do they fit into the whole scheme of things, and what parts of your current system would have to connect with it? (e.g. would you access the ERP classes from the servlet, from EJBs, etc...)
I'm just having a really hard time conceptualizing this...
Thanks.Hello,
the magic regarding connection strings is described in chapter 9.1 of the manual coming with the installation of SAP GUI for Java. There is also a <a href="https://forums.sdn.sap.com/click.jspa?searchID=2057281&messageID=3087436">thread</a> availabe discussing this.
Best regards
Rolf-Martin -
Replicating Custom Fields for Products in CRM from ECC
Hi All,
I am having difficulty in replicating SAP standard field values from ECC to custom fields for products in CRM. This is what i did:
1. I created a new settype(ZMASTER_INFO) with a single attribute(ZIND_STD) and added
this new settype to MAT_HAWA. (As all our materials fall under this material type).
2. I am looking to map SAP standard field from ECC to this custom field of mine.
I wrote the code in CRM BADI
'ZPRODUCT_CUSTOMER2->MAP_R3_TO_CRM_MATERIAL' with the following code:
DATA: ls_ZMASTER_INFO TYPE ZMASTER_INFO_maintain.
DATA: ls_category_bdoc TYPE COMT_PROD_CAT_REL_MAINTAIN,
ls_category TYPE COMT_PROD_CAT_REL,
lt_categories TYPE COMT_PROD_CAT_REL_TAB,
ls_settype TYPE COMT_settype_ext,
ls_cat_settype_rel TYPE COMT_CAT_FRAG_REL,
lt_cat_settype_rel TYPE COMT_CAT_FRAG_REL_TAB,
lt_cat_settype_rel_all TYPE COMT_CAT_FRAG_REL_TAB.
LOOP AT lt_cat_settype_rel_all INTO ls_cat_settype_rel.
CALL FUNCTION 'COM_SETTYPE_READ_SINGLE'
EXPORTING
IV_SETTYPE_GUID = ls_cat_settype_rel-frgtype_guid
IMPORTING
ES_SETTYPE = ls_settype
EXCEPTIONS
NOT_FOUND = 1
NO_IMPORT_VALUES = 2
NO_TEXT_FOUND = 3 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CASE ls_settype-frgtype_id.
WHEN 'ZMASTER_INFO'.
ls_ZMASTER_INFO-relation-owner = 'X'.
ls_ZMASTER_INFO-relation-logsys = cs_product_bdoc-header-com_product-logsys.
ls_ZMASTER_INFO-data-ZZ0010 = is_mara-STD_DESCR.
ls_ZMASTER_INFO-DATA_X-ZZ0010 = 'X'.
APPEND ls_ZMASTER_INFO TO cs_product_bdoc-data-ZMASTER_INFO.
APPEND ls_settype-FRGTYPE_GUID TO cs_product_bdoc-data-MNT_SETTYPE.
ENDCASE.
ENDLOOP.
Since in ECC i am not having any custom fields i did not write any code in ECC for TPS34 and TBE24. I just wrote this BADI in CRM and using the field S_MARA-STD_DESCR.
I am not sure if i need to write the code in ECC. COUld anyone please confirm if i need the code in ECC?
Also in the CRM BADI, lt_cat_settype_rel_all is EMPTY. Not sure how this gets its value.
Could anyone please suggest if i am missing anything here? Any help is appreciated.
Thanks,
Karuna.Hi Karuna,
One more solution is to change the BDoc data content before it hit the Database.
this can be done in badi: Data_Exchange_badi (if u dont find this try with following search string: xchange)
In the above mention badi you will find a method which is used to populated the contend jst after bdoc in CRM is being populated by R/3 data.
Best Regards,
Pratik Patel
<b>Reward with Points!</b> -
Hi,
I need a user exit or Badi for defaulting Plant at line item level.
The scenario goes like this: when ever user tries to change an existing Purchase order and tries to add a new line item in it, I need to trigger USEREXIT or BADI , so that it reads the previous line Plant and updates the current line with the same plant.
I tried with user exit MM06E005 but it didnt seem to work.
Can any one please help me?
I am new to BADI, so I am not sure how to find the BADI and use it. It would be great if anyone can help me i this.
Thanks
RamyaHello
The BAdI ME_PROCESS_PO_CUST is the right one. The method PROCESS_ITEM should be triggered whenever the user changes something in the purchase order at item level and executes any kind of function (e.g. ENTER, CHECK or SAVE).
However, instead of overwriting the user input via the BAdI you should implement method CHECK ( Closing Check ) where you can validate the user input. If any of your validation fails you can send an error message and set CHANGING parameter CH_FAILED = 'X'. This approach is much more transparent for the user.
NOTE: In order to "send" an error message you need to add the include mm_messages_mac to your implementing class. For an example see class CL_EXM_IM_ME_PROCESS_PO_CUST (should be available on ERP 6.0):
METHOD if_ex_me_process_po_cust~process_item .
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
INCLUDE mm_messages_mac. "useful macros for message handling
* here we check customers data
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-loekz EQ 'D'.
* check field badi_afnam
IF ls_customer-badi_afnam IS INITIAL.
mmpur_metafield mmmfd_cust_02.
mmpur_message_forced 'W' 'ME' '083' text-003 '' '' ''.
ENDIF.
ENDIF.
ENDMETHOD. "IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
Regards
Uwe -
Badi for searchterm and lifecycle
Hi,
When an account is created then the value in searchterm is checked against a table .If the value in searchterm is present in the ztable and our lifecycle value is customer then that account is created otherwise an error message is to be returned on the UI.
For implementing the above condition we have to implement BADI's for both the fields?
I am able to find the BADI for searchterm check but i am unable 2 find a BADI for lifecycle field.
Please help.
Regards
ShilpiI think you can use the badi 'BUPA_FURTHER_CHECK'. This badi is called in the function module 'BUPA_CENTRAL_CHANGE'.
In general, the BP search term ('BU_SORT1' or 'BU_SORT2' in the table 'BUT000' is contained in the root object 'BuilHeader' of BOL model.This object is controlled by the class 'CL_BUPA_IL_HEADER' (#1). If an user changes the BP data, the method 'Modify' will be called. And also, if the user saves the BP data, the method 'SAVE' will be called.
The above badi is called during the processing the 'modify' method.
If this badi does not meet your requirment, I think you should also consider to use the following transaction (#2). In this transaction, you can replace the standard processing (ex. cl_bupa_il_header) with your own logic.
Hope this helps.
(#1) You can find the standard definition in the table 'CRMC_OBJIMP_BUIL'
(#2) t-cd: spro
-> Customer relationship management
-> CRM cross-application components
-> Generic Interaction Layer / Object Layer
-> Component-Specific Settings
-> Extend Object Model for Business Partner -
Hi,
I am working on the CRM 5.0.
Any one worked on the BAdi "CMS_IDOC_BADI" (CMS BADI for IDOC related processing) for populating the custom fileds in the IDOC.
Pls let me know.
Thanks.
Rohita.Hi,
I have the structure CMST_CDT.
I need to modify this structure.
There are some custom fileds in the ITEMS.
CMST_CDT_ITEM_XT---CMST_CDT_ITEM_TAB---CMST_CDT_ITEM.
In CMST_CDT_ITEM we have ITEM_EXTN.
I need to modify some fileds in this ITEM_EXTN.
Could any one pls help me in this ?
Thanks.
Rohita.
Maybe you are looking for
-
Adobe Reader Crashes while opening Secure PDF Documents
Hi, I have Adobe Reader 8.1.2. Up until today, i was able to open secure PDF documents without any issue. Suddenly, it started to give me errors, saying "Adobe Reader has encountered a problem and it needs to close. I have to tell Microsoft" and so o
-
F8 Function Key Not Working In DreamWeaver
No response in the Adobe DreamWeaver forum, so here goes... The F8 function key used to bring up the Files window in DreamWeaver on previous Mac machines, but I'm trying to figure out why it won't on a new installation of Adobe CS3 on a brand new Mac
-
Daughter Lost her Iphone 5S two days ago. Initially thought it was misplaced at friends home however have searched endlessly without luck. Icloud may not have been set up previously ( Im not entirely sure) however when logged in on a computer the F
-
The Brightness and Wallpaper setting of my iphone 5 will not open. All other settings open and work fine. What could be the problem?
-
Hello, Is there any trusted oracle database in Oracle9i or 10g? It was there in Oracle 7. Thanks.