CRM Badi help

Hi All,
I am doing and CRM Implementation and i need to enhance Badi and the method mentioned-->CRM_ORDERADM_H_BADI' and in  'CRM_ORDERADM_H_MERGE'.
I am new to Badi. if some one can send me the code it will be great help. I will modify the badi as per my requierment. Just need to know what all thing are requiered when enhancing the BADI.
************************Points will be rewarded.*************************
Thanks in advance

Hi Shilpa,
As you mentined in the thread, i think , you reqiured to create an implenetation for the badi by
1. SE18 2. Type Badi name(click display): CRM_ORDERADM_H_BADI
3. menu->implementation>create->(give name)
4.then Write the code for the Method :CRM_ORDERADM_H_MERGE
Can you explain for what purpose or requirement it is needed to enhance the BADI - CRM_ORDERADM_H_BADI ??
For your reference this is the Documentation of the BADI :CRM_ORDERADM_H_BADI
BAdI: General Processing of Header Data
In this step, you can create enhancements for processing header data in transactions. The following data is availabe to you in the Business Add-In CRM_ORDERADM_H_BADI:
CRM_ORDERADM_H_CHECK: BAdI to check object ORDERADM_H
CRM_ORDERADM_H_MERGE: BAdI to merge object ORDERADM_H
CRM_ORDERADM_H_CHECK
Additional checks can be carried out - the results of these checks can be copied as error messages.
All parameters are copied as importing parameters in the interface.
The error message error_occured can be triggered.
CRM_ORDERADM_H_MERGE
All parameters are copied as importing parameters in the interface.
An individual BAdI structure containing the communication fields for the object is copied as a changing parameter.
If the error message error_occured is triggered, an error message is copied to the application log. If no error is triggered, the changed data is copied from the BAdI structure to the wrk structure. This means that you have the option of changing values for this object with this BAdI.
Prerequisites:
In order that you can use a business add-in, an implementation must be generated for the availabile definition for the BAdI, and the relevant methods must be programmed.
Recommendation:
Error messages:
Error messages should not be issued directly, but should be forwarded to the application log using the function module CRM_MESSAGE_COLLECT. By defining the error gravity, you can define whether it leads to a program termination, an incorrect status or only a warning in the transaction.
The error messages issued must, however, be deleted by the implementer at the start of the BAdI, as otherwise they will not disappear from the log file, and the system would therefore continue to display the error, even if it was already solved.
Example
data:
    ls_msgidno type bal_s_idno,
    lt_msgidno type  bal_r_idno,
    lv_save_message    type c.
ls_msgidno-sign       = 'I'.
ls_msgidno-option     = 'EQ'.
ls_msgidno-low-msgid  = 'CRM_ACTIVITY_H'.
ls_msgidno-low-msgno  = '801'.
append ls_msgidno to lt_msgidno.
call function 'CRM_MESSAGES_DELETE'
  exporting
    it_r_msgidno   = lt_msgidno
    iv_ref_object  = is_activity_h_wrk-guid
    iv_caller_name = gc_object_name-activity_h. " See include programCRM_OBJECT_NAMES_CON
*In the error case, collect the message:
if <error_condition>.
  messge id 'CRM_ACTIVITY_H' type 'E' number '801'
         into lv_save_message.
call function 'CRM_MESSAGE_COLLECT'
  exporting
    iv_caller_name = gc_object_name-activity_h " See include programCRM_OBJECT_NAMES_CON
    iv_ref_object  = is_activity_h_wrk-guid.
endif.
Screen with customer fields
If you want to depict customer-specific fields on a screen, follow the corresponding procedure.
Activities
1. Create an implementation.
2. Assign the BAdI definition to the implementation.
3. Navigate to one or several methods in the editor, using double-click, in order to program the methods.
4. Activate the methods.
5. Activate the implementation.
Regards,
Arjun
<b>Reward points if it helps</b>

Similar Messages

  • CRM BADI?

    How to get the values in BADI...from the GUID field provied in method in CRM BADI...?
    PLease help its urgent...

    Hi Stefan thanks..for the answer..
    But I am getting the GUID....now I want to read the details of Business partner details based on the GUID.....
    Now the problem is that...the BP is not yet created in database table..so I cant read it frm a table...can you tell any function module to read the details

  • HT4009 Ok so my problem is I put $100 on my account an it not letting me buy in app purchases an I'm ticked off to the max an idk how to fix this I bough in app the other day perfectly fine I need help bad HELP me

    Ok so my problem is I put $100 on my account an it not letting me buy in app purchases an I'm ticked off to the max an idk how to fix this I bough in app the other day perfectly fine I need help bad HELP me

    You need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • CRM BADI implimentations for BP validation .

    Hi all ,
    CRM BADI implimentations for BP validation . BUPA_FURTHER_CHECKS works only for WEB UI .
    is there a way we can implement those validations for GUI ?
    Thanks ,
    Naval Bhatt.

    Hi NB,
    Hope you had checked all the available BADIs for GUI..
    Long time back, I remember enchancing the interface to accomadate my requirements.
    Created a new method and used it for my requirement.
    Regards,
    Raghu

  • CRM IT Help Desk vs Sotuion Manager service desk

    Hello Experts!
    Can someone please tell me about CRM IT Help Desk vs Solution Manager Service Desk and if they are two independent products? I want to see if these two 2 different products? since Solution Manager Service desk is based on CRM 5.0, can I setup CRM IT Help Desk? and make SOLMAN Service Desk and CRM IT Help desk together work together?
    Please advice!
    Thanks
    Kumar

    Hey Kumar,
    There is nothing called as CRM IT HELPDESK......
    But a CRM system could function as an IT helpdesk.........It depends on your requirements as to how you are gonna use it.....
    CRM and SOLMAN are two independant products of SAP and both run on diffrent servers...
    Solman has lot of features of CRM itself....
    Solution Manager also has its own service desk... Solman is based on CRM itself technically.....
    So whatever is doable in CRM is also Doable in Solman......The vice-versa is not true.....because in Solman SAP has added some functionality  which is not present in CRM.....
    You can configure Support desk in CRM and Solman and also make them work together if it makes sense for you and your management to do so......
    Technically since both are SAP systems they can communicate via RFC calls.....
    Inspire by rewarding...
    Regards,
    Anand

  • Identify the Source System in CRM BADI

    Hi,
    I need to write the code in ORDER_SAVE BADI in CRM based on the source system. For example, When i create the quotation in PCUI i need to validate few fields. Suppose i have created quotaton in R/3 and it gets transfer to CRM and i need validate few more fields.
    How do i findout in BADI whether the source system is PCUI or R/3? I have checked the SYST table but no difference in both the case. Anyother way to findout this.
    Thanks in advance.
    Regards,
    Bala.c

    Hello Bala,
    In the ORDERADM_H structure of the CRM_ORDER_READ or in the CRMD_ORDERADM_H table you find a field called LOGICAL_SYSTEM. In that field the RFC destination of the source system (source system = where the order/transaction was created) will be stored.
    For PCUI this field will have the RFC destination of the CRM server itself.
    For R/3 it will have the RFC destination of the R/3 system.
    Hope this helps,
    Reward points if useful!
    Regards,
    Joost

  • CRM Badi or user exit needed

    I need a user exit or a badi that would fill zfields in CRM based on the data arriving from ERP.
    any idea experts? then mail me details.
    [email protected]
    Thanks.

    Narasimha,
    SMOUTIL3 is one user exit.
    This one is called after the Bdoc is generated. The user exit does not allow to modify the Bdoc contents. however depending on the contents of the BDOC custom fields can be filled. This user exit can also be used to modify Z tables
    I have used it for one scenario. Sending the documentation of it to you.
    Hope this helps.
    <b> <i> IceCube </i> </b>

  • CRM BADI URGENT?

    Hi I am using BADI BUPA_FURTHER_CHECKS...when creating a business partner (sold-to-party) in SAP CRM?
    I need to check the industry code with the attribute...and give an error message...
    But the problem is that this BADI is not getting triggered?
    Do u knw any other badi that gets trigerred...?
    PLease help its urgent...

    Hi,
       Try this BADI.  <b>BUPA_INDSEC_CHECK</b>
       Reward if it works.
    Cheers,
    Narasingam

  • Security deposit handling in crm: pls help !!

    hi,
         can anyone tell me how to handle security deposit management in sap-crm like how to view details of cash and non-cash deposits enterd though ECC/ISU system.
    Pls help me.

    Hi David
    security deposit
    You can specify a default value for the cash security deposit for each product. You can use transaction COMMPR01 to determine this default value. You can use the process framework to change this value, for example to adjust it according to the risk class. To do this, proceed as follows:
    Choose  Industry-Specific Solutions  Utilities Industry  Settings for User Interface  Transaction Processing  Processes  Define Processes  in Customizing for Customer Relationship Management.
    Create a new process definition by copying the process definition CONTRACT_START.
    Choose class CL_CRM_IU_PR_CNTR_START_SECDEP as the process class. This class contains a sample implementation.
    Copy the process profile DEFAULT and assign the new process definition here.
    Create a new user role and assign the function profile IUPROCESS here. You can select the process profile created in the previous step from the input help.
    In this implementation, the system calculates the security deposit amount as follows:
    Risk class  New security deposit value
    No default risk           80% of default value
    Low default risk         90 % of default value
    Medium default risk   100 % of default value
    High default risk         110 % of default value
    Very high default risk  120 % of default value
    For further information, see the Implementation Guide (IMG) for Customer Relationship Management on the process framework under  Industry-Specific Solutions  Utilities Industry  Settings for User Interface  Transaction Processing  Processes  Define Processes .
    Reward points if helpful to u
    Cheers
    Manohar

  • CRM BADI CRM_COND_COM_BADI only called when line created or changed

    I am trying to ensure that the BADI CRM_COND_COM_BADI is called (to adjust pricing communication structure) for all line items every time a user hits update or enter during creation of a sales order via the web.  In my testing I am finding that the BADI CRM_COND_COM_BADI only gets called during the creation of a line item or a change of a line item.
    Does anyone know how I can have BADI CRM_COND_COM_BADI called for all line items every time update or order is clicked on the web during order entry?  Is there something I can set in config to make this happen?
    Thanks,
    Sarah.

    Remo,
    Even though this thread is very old and closed, but want to share my thoughts because we faced the same problem. We enhanced the BADI 'CRM_COND_COM_BADI' and was getting called multiple times.
    As per our business scenario, it should be called for Opportunity and for a specific transaction type. So a check was placed in the BADI for the Opportunity and transaction type. This was done using FM 'CRM_ORDERADM_H_READ_OW'. This helped us to skip the complete logic to be called by the BADI enhancement.
    If you found a better solution yet do share.
    Regards,
    Shyamak

  • CRM/AET Help

    Hi,
    I need to add few zfields to the Sales Quotation, Service Quotation, Service Order  in SAP CRM ,
    I am new to CRM and i found that AET tool in CRM can be used to enhance these tcodes.
    I need the below information , can some one help me with this
    1. what are the tcodes to display Sales Quotation, Service Quotation, Service Order  in SAP CRM
    2. some documents replated to AET tool
    3. I also need to add those zfields to tables CRMD_ORDERADM_H and CRMD_ORDERADM_I , how can i do that.. is it the same way we do in ECC
    Thanks

    1. If you are using SAPGUI, all of these can be displayed with the transaction crmd_order. you need to just enter the transaction no:.
    in case you are using WebUI, you need to login using the appropriate role to be able to view the resp. orders. For eg: you need SALESPRO role to view a sales order and other sales related objects.
    you need SERVICEPRO to display service related objects
    and so on.
    2. For AET/Enhancements, a good place to start would be the CRM Wiki on WebClient UI.
    CRM Web Client UI Framework
    CRM/HowToEnhanceaWebUIComponentinSAP+CRM
    There is also video demo of AET
    Hope the above info helps.
    Thanks and Regards
    Nisha

  • Badi help required : VL02N

    Hi Friends,
    I need help on one of our scenario.
    There is a code written in the BADI "mb_document_badi" and the method name 'mb_document_update". i.e., in IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE.
    Now we are running VL02N Transaction, Enter delivery number and doing Post goods issue. But the Problem here is It is not stopping at this code.
    Is this BADI works for VL02N? If so, what could be the problem in our scenario?
    Please help me.
    Regards.
    Hari

    Hi,
    Any help on the above Issue?
    Regards
    Hari

  • CRM Actions Help?

    Hi Guru's,
    in need of help?
    CRM - Actions?
    Procedure (Work flow) / Documentation...

    I hope you are talking about action profiles.
    CRM release notes (https://services.sap.com/~sapdownload/011000358700001866642004E) says:
    The following new action profiles are available specifically for activities in Customizing:
    o ACTIVITY - for sales activities
    The action profile ACTIVITY contains the following action definitions:
    - ACTIVITY_FOLLOW_UP: creates a task for the responsible employee, for example, if a
    contract is overdue
    - ACTIVITY_PRINT: allows you to print the activity
    Enter the printer you wish to use to print the activity under Basic Functions -> Actions ->
    Change Actions and Conditions -> Define Conditions in Customizing for CRM.
    To print an activity, specify the processing method
    CRM_ACTIVITY_EXEC_SMART_FORM under Processing Types -> Set Processing. This
    method is delivered with the standard configuration.
    - ACTIVITY_REMINDER_MAIL: sends an e-mail to the responsible employee, for example, if
    a contract is overdue
    If you want the responsible employee to be sent a reminder e-mail when an activity is overdue,
    specify smart form CRM_REMINDER_MAIL_01 under Processing Types -> Set Processing.
    This smart form is delivered with the s tandard configuration.
    The action profile ACTIVITY is assigned to transaction type 0000 in the standard configuration.
    You can use, copy or adapt these profiles for your own activities.
    See also
    Further information on Actions is available in the SAP Library for CRM under Basic Functions ->
    Actions.
    Apart from this, section 3.1.1.2.1 in below mentioned doc (https://service.sap.com/~sapdownload/011000358700003452862005E) talks about action profile creation.
    Regards,
    Kaushal

  • Menu Overlays created in Photoshop aliasing badly - help

    Hello all, I'm creating a menu pages using flattened images from photoshop, once imported, if I select them in the viewer they appear good but once I apply them to a background image they alias badly. I've tried both highlight selections (simple & advanced) really no improvement. What am I missing here? I'm sure it's simple. Thanks in advance. Oh and I've set my photoshop files to 720 x 480 at 72 dpi- also tried 720x534, no improment there either.

    All overlay files look un anti-aliased because the subtitle stream does not supprt antialiasing. Take any Hollywood movie and look at the overlay highlights, they have the same problem to deal with.
    The key is to optimize your design to cut down on the jaggies. I use retangles as highlights all the time. Any rounded edges will show jaggies. Reducing opacity sometimes helps to hide it as does using advance overlays and creating a stroke around your highlight.

  • CRM Technical Help

    Can anybody send me some material or notes on CRM Technical ( ABAP point of view). As I am a ABAP er and trying to learn CRM so i need some documents on CRM Technical like  Enhancements (eg. Badi), Forms etc.
    Thanks in advance.

    Hello,
    I close this Topic because the Documents requested are available via the Topic Links to CRM Documentation.
    Regards
    Gregor Wolf
    SDN CRM Forum Moderator

Maybe you are looking for

  • Can't get it to work in IE8 or Firefox (XP machine)

    I am utterly frustrated with this.  I tried so many ways to do this. First I tried in IE8, went to options and turned the security to Medium and made everything enabled.   Turned off my Antivirus program and went back to this site and the download fa

  • Updated and can't connect to internet

    I just updated my Mac and I cannot connect to the Internet anymore.

  • I need some sort of a Timer ..

    How are you doing ... I'm making a game for my gr 12 class, Target Practice crap, very simple. I don't know how to get the target to stay up for a certain amount of time, and then dissapear at a next random spot, OR dissapear if it's clicked on ... i

  • I am new to this forum.Needed help

    Apple ipod 40GB problem was When i switch on the ipod shows apple logo after a few seconds shows www.apple.com/support/ipod then it was getting off What to do i for this problem I installed latest itune setup in my system.Wht to do next? When i conne

  • Trouble downloading bt net protect plus (incorrect...

    I am having trouble downloading bt net protectplus to my laptop. When I enter my details into the initial log in pag,e it then tells me that I am not entitled as I am only on option 1 and should upgrade - I'm on option 2!!! This happened on my home P