Lead to Opportunity Approach using BADI

Hi Gurus,
I am working on Lead to Opportunity conversion requirement based on few conditions.
Condition 1: Lead status is HOT
Condition 2: If Channel Partner exists in Partner tab.
If above two conditions are met, we are triggering Opportunity from lead as followup and changing the lead status to close, lead reason to close to oppotunity.
Is this requirement able to implement through BADI? I am thinking of using ORDER_SAVE BADI and call another BADI or BAPI to create opportunity if above two consitions are met.Is it possible to implement above functionality?
Please guide me...Thanks in advance.
Cheers,
Ajay

Yes I agree with you...But using Copy Control user has to perform the opportunity creation manually...I need automatic creation of Opportunity from Lead based on few conditions.
With Conditions...I don't think we can change the status and reason in Lead..If possible Can you explain the process?
I am thinking of three approaches:
1) Workflow
2) Actions - Ruled out as per my knowledge
3) Calling BADI or BAPI from ORDER_SAVE BADI.
If you have any experience, plese guide me.
Thanks,
Ajay K

Similar Messages

  • Lead to Opportunity

    Dear Friends,
    I would like to trigger a opportunity from a lead if the status of the lead become " WON"
    Is there any standard Action provided by SAP where i can use it in lead and trigger it automatically.
    Is there any work flow from Lead to Opportunity which does not use actions and based on the events which are triggered based on user status.
    How do i go about this requirement
    Thanks,
    Satish Kumar

    Thanks for your reply and the help.
    I have removed the action type and definition and created it again.
    &CRM Lead.User Status& = E0003CRMLEAD (CRMLEAD is the Status profile used for the lead transaction type)
    is it Right?
    But at the time of creating the lead the system gives an error "The necessary processing parameter PROCESS_TYPE is missing" and the action looks Red In color.
    I checked the parameter maintained in transaction - Crmc_action_def
    Structure - CRMD_ORDERADM_H
    Field - PROCESS_TYPE
    the initial value is ZOPT.
    and the properties ( import & mandatory) tick mark.
    I feel i have done some error in parameter definition only.
    While defining T.code ( CRMC ACTION CONF) start Conditions what should I configure at the parameter?
    I have done this
    Object type - BO Object Type
    BUS2000108                       CRM Lead
    (Properties- Import and Mandatory ) Tick.
    Could you please check whether i have defined the correct conditions and kindly revert if there are any changes required.
    Does the BADI COPY_DOCUMENT requires an English Language as i have changed the same and it is showing as language German?
    Package            CRM_ACTION_IMPL
    Language           DE German
    Regards,
    Satish
    Thanks,
    Satish
    Kindly throw some light on this.
    Thanks,
    Satish

  • Authorization Issue in Visibility of Lead  and Opportunity Documents

    HI,
    I have 4 sales Org in my Project.
    When an user from Sales Org 1 is searching a lead he was able to see all the leads
    when I tried to change Lead or opportunity of other sales org with my user id, system says that "You have no authorization to execute action Change " the reason is "The authorization check for object CRM_ORD_OE has sent back the return code 12. The activity executed was Change. Return code 12:
    I understand it as the system can't find necessary authorization .  In my project they want to restrict  the document visibility to other users.  How can i restrict by which i can see only my documents.
    With Regards,
    Selvam T

    To see only your transactions use auth. object CRM_ORD_OP.

  • BPC 7.5 NW on BW 7.3 - Short Dump when using BADI

    Hello all,
    When migrating from MS bpc to Netweaver we've had to move some logic from script to BADI.
    (Runlogic not supported)
    However we now get shortdumps in when calling the BADI'
    It works in BW 7.0 but now that we are on BW7.3 the error appears and shordumps occur.
    During the upgrade SAP have updated the Class CL_UJR_WRITE_BACK to include a method  "GET_DELTA"
    That's where we have the problem. No OSS notes for it yet.
    The problem shortsumps as follows:
    Short Dump Log.
    Category               ABAP Programming Error
    ABAP Program           CL_UJR_WRITE_BACK=============CP
    Application Component  CPM-BPC
    "ASSIGN_TYPE_CONFLICT" " "
    "CL_UJR_WRITE_BACK=============CP" bzw.
    "CL_UJR_WRITE_BACK=============CM00U"
    "GET_DELTA"
    Error occurs at line statement
    ASSIGN COMPONENT uj00_cs_fieldname-keyfigure OF STRUCTURE <ls_data> TO <l_value>.
    Any help out there?
    Please.........
    Thanks
    Paul

    Hi Paul,
    First of all, there is a How To Guide for RUNLOGIC implementation. It uses BAdI approach as well, but doesn't call WRITE_BACK that can change from version to version.
    Second, you should be able to see that method GET_DELTA is being called under
    IF D_CALC_DELTA eq abap_true and df_bw_delta eq abap_false.
    D_CALC_DELTA is set to TRUE only in Method WRITE_BACK_INT; I hope you aren't using that one.
    DF_BW_DELTA is taken from DM Package parameters. Can you check what you have there or put just a break-point in PACKAGE_LOGIC_1 to see what value those 2 variables have?
    Hope this helps,
    Gersh

  • Sap workflow ws10001011 - convert lead into opportunity

    Hi
    There is a workflow
    There is a workflow ws10001011 which converts leads into opportunties in CRM
    Can you plss tell me step by step directions to activate this workflow.
    Also will a standard workflow work for - standard lead and standard opportunity transactions or if I have z lead and opportunity transaction type-will it work?
    Thanks
    Tarang which converts leads into opportunties in CRM
    Can you plss tell me step by step directions to activate this workflow.
    Also will a standard workflow work for - standard lead and standard opportunity transactions or if I have z lead and opportunity transaction type-will it work?
    Thanks
    Tarang

    Hi,
    Second alternative of using workflow would be better to convert Lead into Opportunity , once LEAD is HOT and Error free.
    This workflow is standard functionality offered by SAP for requirement of converting LEAD into Opportunity.
    Hope this helps,
    PD

  • Error out from MB01 and MIGO when using BADI "INSPECTIONLOT_UPDATE"

    Hi all:
    We are currently implementing Quality Level with Dynamic Modification Rule using SAP Quality Management module.
    We are trying to change stage level by modifying the field PRSTUFENAE of the table QDQL (Material Quality Level) using BADI: INSPECTIONLOT_UPDATE, new logic is successful for a goods receipt with a single lot if we use COMMIT WORK within BADI, but an error occurs from MB01 and MIGO when we are receiving multiple lots in same goods receipt.
    Have anyone else got across something similar?
    Thank you in advance,
    Regards
    Daniel Guillen

    Hi Paul,
    First of all, there is a How To Guide for RUNLOGIC implementation. It uses BAdI approach as well, but doesn't call WRITE_BACK that can change from version to version.
    Second, you should be able to see that method GET_DELTA is being called under
    IF D_CALC_DELTA eq abap_true and df_bw_delta eq abap_false.
    D_CALC_DELTA is set to TRUE only in Method WRITE_BACK_INT; I hope you aren't using that one.
    DF_BW_DELTA is taken from DM Package parameters. Can you check what you have there or put just a break-point in PACKAGE_LOGIC_1 to see what value those 2 variables have?
    Hope this helps,
    Gersh

  • ESS Leave Custom fields, how to update them using BADIs

    Hi There,
    We are trying to use custom fields provided in ESS leave application, and we want to update them using BADI. As these information is not available on the screen while requesting leave request.
    I did look at PT_ABS_REQ BADI and seems i can use Post_Vio_BLOP .. but its unable to update table PTREQ_ATTABSDATA .
    Can you please suggest what can be best approach here.
    Thanks a lot.
    Rgds,

    Sudhir wrote:>
    > I did look at PT_ABS_REQ BADI and seems i can use Post_Vio_BLOP .. but its unable to update table PTREQ_ATTABSDATA .
    Did you look at using the Implict Enhancement Options available at the beginning & end of the POST_VIA_BLOP Method? Or even better, enhance the Class CL_PT_ARQ_REQ_EXIT & replace the IF_EX_PT_ABS_REQ~POST_VIA_BLOP Method with an Overwrite Exit?
    ~Suresh

  • Item not copied from Lead to opportunity (SAP CRM)

    Hi guys,
    I think that the object of tread is explicative
    But i explain my problem: when i save a lead, with a certain status (yet customized), i want to the system create with follow up document an opportunity from my lead.
    If i create a lead without product the system create an opportunity very well, but if i insert a product on my lead the systema don't create an opportunity, i see that in activity tab the event raise up but the opportunity is not create.
    i have cusomized the action for process type and for category of item but it doesn't work.
    Anybody can help me?
    Thanks in advance.
    Regards,
    Luca

    Check:
    1. if you have set proper copy control between lead and opportunity transaction type under spro>crm>transactions>basic settings>copy control for business transactions>Define Copying Control for Transaction Types (you may wana try first without checkmark "Complete reference")
    2. if you have set proper copy control for ITEMS between lead and opportunity ITEM types under spro>crm>transactions>basic settings>copy control for business transactions>Define Copying Control for Item Categories (first set checkmark just for "Copy PO data")
    3. if you have set any copy control for ITEMS between lead and opportunity ITEM types under spro>crm>transactions>basic settings>copy control for business transactions>Define Item Category Determination when Copying (I suggest you first try without setting any entries in this customazing for your item types)
    4. what method are you using for follow-up (I ussualy use COPY_DOCUMENT method)
    Regards.

  • Anyone used BADI ALERT_EXIT_LOCAL_PPF?

    Anyone used BADI ALERT_EXIT_LOCAL_PPF, or an impementation of it. My understanding is that there is a method called get_alert_data whch is called just before the Sales Order save. My question is how can I get the sales order info back from the buffer?. I can't use the FM CRM_ORDER_READ because the order has not been saved as yet.
    Regards
    Blue

    Hi
    I tried it in debugging and it worked. Please use the below mentioned approach.
    Include LMIGOHG2 method PAI  create an implicit enhancement here and than pass delivery note in GOHEAD-LFSNR
    Nabheet

  • [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI

    Hi Everybody,
    Right now, could you kindly please tell me how to i use customer exit but using BADI, particularly for BADI : RSU5_SAPI_BADI.
    <b>I just wanna use the customer exit on variable (variable user-exit).</b>
    So far i've tried these steps (might you correct me/advise):
    1. tcode : SE18
    2. Enter the Badi Name : RSU5_SAPI_BADI
    3. (Toolbar) enhancement implementation -> Create
    4.  ... (After that i don't know what i've to do ..)
    Could you tell me step-by-step to make it ?
    Such as what i should fill-in for Implementation Name and any parameter should i fill in there and how to debug it ???
    Many-many thanks all for the attention.
    Hopefully i can make it :).
    Kind regards,
    Niel.

    Check out this link:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7</a>

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • Display error message in WEBUI using BADI - ORDER_SAVE-CHECK_BEFORE_SAVE

    Hi,
    I am trying to display error message using BADI - ORDER_SAVE (Method-CHECK_BEFORE_SAVE) based on certain conditions when the document is saved from WEB UI.
    I have written it like below:
    If (some conditions).
    Message E000 with 'Error in SAVE' RAISING DO_NOT_SAVE.
    endif.
    I mentioned my message class everything in class, and it is fine.
    However, it is not displaying my error message. It is displaying standard information message saying "Document Could not be saved'.
    Could you please help me out, how can I display my custom message.
    Thanks,
    Sandeep

    Hi Sandeep,
    U can use FM to raise a message from order save badi.
    Inside the if condition, u can raise do_not_save.
    If (some conditions)
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDERADM_H'
              iv_ref_object  = iv_guid
              iv_ref_kind    = 'A'
              iv_msgno       = '000'
              iv_msgid       = 'zcrm'
              iv_msgty       = 'A'
              iv_msgv1       = c_text1
              iv_msgv2       = c_text2
              iv_msgv3       = c_text3
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
          IF sy-subrc NE 0.
          ENDIF.
          RAISE do_not_save.
    ENDIF.

  • Restrict creation of appraisals for inactive employees using BADI

    Please could someone guide or assist me.
    When we use Tx APPCREATE to create an appraisal for an employee, it allows us to create an appraisal for an inactive employee. When we drop down the appraisee field (search for the appraisee), we can view & select employees that are inactive.
    I would like to exclude the inactive employees from the appraisee list.
    I have tried to use BADI HRHAP00_TMPL_RESTR, and created an implementation, but it doesn't seem to be called when i created the appraisal, i have tried debugging it to see if i get out to this badi, but no luck.
    Any help in this regards will be greatly appreciated.
    Regards,
    Chantal

    Hi Chantal
    As far as I know, you are using the right BADI for your requirement. Can you plz. try creating appraisal documents through PHAP_CREATE_PA or PHAP_PREPARE instead of APPCREATE Tcode.
    BTW, have you incorporated the BADI (filter) to your appriasal template?
    Hope this helps
    Best Regards
    Reddy

  • What are most commonly used BADIs for Opportunities and BPs?

    Dear all,
    What are mostly used BADI's for Oppotunity Management and Business Partner Maintenance, and what is the use of those BADIs.
    what is the use of BAPI's in CRM, suggest me BAPI names and their usage
    Your suggestions will be highly appreciated
    Best wishes
    Raghu ram

    Hi Hari,
    the variable which has to be created depends on the business requirement and differs based on the report requirement.
    for more informatrion on variables you can refer to following docs,
    characteristics variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db08a555411d189660000e829fbbd/frameset.htm
    text variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
    formula variables
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0b1555411d189660000e829fbbd/frameset.htm
    http://help.sap.com/erp2005_ehp_02/helpdata/en/5c/8db0a4555411d189660000e829fbbd/frameset.htm
    :->
    NM

Maybe you are looking for

  • Additional Columns in Transaction CATS_DA Display

    I need to create and fill additional columns in the ALV display.  Does SAP provide a process for easily doing this?  For example:  I need to display the short text for the absence/attendance type (field AWART).

  • IPhoto and mosaic screen saver in OSX

    I use the mosaic screen saver, which pulls photos from iPhoto. Recently, I've been getting blank pictures in the mosaic-I have not deleted any photos recently. Is there a way to rebuild the pictures that the mosaic screen saver uses? I've got iPhoto

  • Choose app from dialog box

    I've written a script that uses the GUI to update existing version of software. At one point a dialog box opens and asks to choose the software file I'm wanting to update. Sometimes it will select the file, sometimes it won't. tell process "UpdateIns

  • Cannot start dual G5 after shutting down

    I have not been able to find a solution in the discussions, so I thought to post. My dual 2GHz G5 (late 2003) was wroking fine. Suddenly the screen froze and I no longer had mouse or keyboard access. I pressed the start button for 10 seconds to shut

  • Lightroom 6 student standalone available?

    lightroom 6 student standalone available?