BADI on Opportunity saving

Hi all,
is there someone that can help me about a badi on opportunity saving ?
Look, i just used "CRM_OPPORT_H_BADI" definition, but this enhancement in not valid for all fields....i mean, that badi doesn't called everytime you modify a field, but only some of them.
So, do you now if there is another BADI or kind of enahncement that allow me to modify fileds before saving an opportunity ????
Thanks in advance,
Frank.

Hi
You can use the BADI Defn -- CRM_ORDER_FIELDCHECK before saving your  Opportunity  using the tranaction type.
Or you can use the BADI Defn -- ORDER_SAVE -->method prepare.
In this method use FM CRM_ORDER_READ  & pass your header Guid then you will get all the values you reqd.
Hope it will You.
Regards
Deb

Similar Messages

  • Getting an error "bad parameter" while saving

    Hi,
    I am trying to open a particular pdf in IE9 browser from my application and trying to save PDF file to my computer. I observed that Save option is disabled for that PDF file in IE9 browser. When I try to save the same file using Ctrl+Alt+S option, I am getting an error "bad parameter". I am not getting any further details on this issue. I am able to save same PDF in IE8 and mozilla browsers. Can you please help me in solving this issue.
    Please find below my environment details.
    Os: Windows 7
    Browser: IE9
    Adobe Reader Version: 11.0.03.
    PDF template is created using  Adobe PDF Creater 11.0.03.

    Two things I would try:
    update to Reader 11.0.5
    try saving the PDF without opening it in Adobe Reader (right-click on link, then Save target as...)

  • BADI for Opportunity Update

    Hi All,
    Can anyone please let me know if there is any BADI available for my requirement. Requirement is mentioned below:
    Requirement:
    When an Opportunity is created, if all the mandatory activities associated with it are completed, then i need to update the Sales Stage and also the Chances of occurance.
    Kindly let me know if you have any idea.
    Regards,
    Sneha Soni.

    You can use badi CRM_OPPORT_H_BADI for opportunity header maintainace. If you have fix corelation between sales stage and chance of success, you can define the percantage in customazing spro>crm>transactions>settings for opportunities>define sales cycles and sales stages>Assign Sales Stages to Sales Cycles. There you can define the linkage between sales stage and percentage.
    Regards.

  • BADI used when saving a prospect - CRM

    Hello Experts,
    I have recently started ABAP development in CRM and I am stuck at one place.
    I am looking for a BADI that is used when saving a prospect. I need to add a check and retrieve some info from some parameter tables and assign them to the prospect.
    For this, i need to identify the BADI i have to use.  Could you please show me where to start to find the BADI? Or do you have a transaction code from which i can search for the BADI.
    Thanks for the help
    Regards,
    Thyaga

    Hi,
    as I wrote you previously I think that the problem is the BADI you've implemented.
    I did what you require with badi CRM_BP_UIU_SAVE with a code similar to this
    if gv_access_header->alive( ) eq abap_true.
    Place your coding here which shall be executed during the save event.
        data:
        lr_relation             type ref to             cl_crm_bol_entity,
        lv_bo                   type ref to             if_bol_bo_property_access,
        zaccount_group          type                    string,
        zbp_category            type                    string,
        lr_relation_header_obj  type ref to             cl_crm_bol_entity,
        zbp_group               type                    string,
        zbp_groupc(30)          type                    c,
        zbp_guid                type                    string,
        zbp_number              type                    string,
        zbp_numberc             type                    bapibus1006_head-bpartner.
    lr_relation_header_obj ?= gv_access_header.
        if lr_relation_header_obj is bound .
          lv_bo ?= lr_relation_header_obj.
          zbp_group = lv_bo->get_property_as_string( 'BP_GROUP' ).
          zbp_category = lv_bo->get_property_as_string( 'BP_CATEGORY' ).
          zbp_guid = lv_bo->get_property_as_string( 'BP_GUID' ).
          zbp_number = lv_bo->get_property_as_string( 'BP_NUMBER' ).
        endif.
    if zbp_category = '1' .
       elseif zbp_category = '2' .
    data: lt_sales_areas  type crmt_bus_sales_area_t,
                lv_sales_areas  type line of crmt_bus_sales_area_t,
                lv_partner_guid type bu_partner_guid,
                zagente         type string.
          data: dest            type string,
                zvalore         type zvaldef,
                zvkorg          type vkorg,
                zzbukrs         type  bukrs,
                zsales_org      type crmt_sales_org,
                zzsalesorg      type crmt_r3_sales_org ,
                zzwerks         type werks_d,
                ztdatiorg       type crmt_bus_set0140,
                zaccgroup       type string,
                zaugrp          type string,
                zzaugrp         type bu_augrp.
          data: l_data          type crmt_bus_set0140,
                l_datax         type crmt_bus_set0140x .
          data: zir_mess_cont type ref to cl_crm_genil_global_mess_cont.
          data lr_core type ref to cl_crm_bol_core.
          call function 'Z_RFCDEST'
            importing
              zdest = dest.
          lv_partner_guid = zbp_guid.
    call function 'CRM_BUPA_FRG0010_GET_VALIDLIST'
            exporting
              iv_partner_guid = lv_partner_guid
            importing
              et_sales_areas  = lt_sales_areas.
          loop at lt_sales_areas into lv_sales_areas.
            zsales_org = lv_sales_areas-sales_org.
          endloop.
          if  lv_sales_areas is initial.
    gestisco messaggio di errore
            create object zir_mess_cont.
            zir_mess_cont->reset( ).
            lr_core = cl_crm_bol_core=>get_instance( ).
            lr_core->start_up( 'ALL' ).
            zir_mess_cont = lr_core->get_global_message_cont( ).
            call method zir_mess_cont->add_message
              exporting
                iv_msg_type       = 'E'
                iv_msg_id         = 'Z_BP'
                iv_msg_number     = '002'
                iv_show_only_once = abap_true.
            exit.
    in case of error, system is not saving.

  • Regarding the BADI ME_REQ_POSTED after saving the tcode ME51N

    Hi,
    Currenlty i am using the badi ME_REQ_POSTED to update the header texts in ME51N while creating the PR.
    I am getting the PR number through IM_EBAN.
    My issue is that i have written the code in the badi to pass the input of that PR number in table RSDBS to get the reservation number.
    But once the transaction ME51N got saved, then only the table RSDBS is getting updated with the generated PR number.
    Is there any way to get updates of the table RSDBS before the transaction got saved.
    Please let me know if my question is not clear.
    Thanks & Regards.
    Prabu

    Hi,
    I don't think this is possible functionally? To achieve this, you need to modify the std code.
    Regards,
    Raj

  • Badi / Exits while Saving  a PO

    Hi Experts ,
    Is there any BADI / User Exits exits while Saving a PO  from External System.
    Thanx in Advance
    pradipta

    Pradipta,
    Check BADIs:
    ME_PROCESS_PO, ME_PROCESS_PO_CUST
    Thanks

  • Bad hyperlinks when saving Pages doc as PDF

    I produce a little monthly newsletter for a local Mac club.  We do the layout in pages.  I write the article another member lays them out in Pages.  A couple others proof.
    We've been having a problem that is driving me crazy in Pages 09.  We use Print, then save as PDF, so we can get a format that everyone can read.  Almost always when we do this, links that worked fine in the Pages document convert to an address that no longer works (usually something on the creator's computer that he has placed in the document).  I'm saying almost all links (but not quite all) in the entire document end up with this same bad address in the final Adobe PDF version. 
    The only way we have found to fix this is by abandoning the entire hyperlinks system and typing out http://www.blah.blah in our text, which feels extremely early Internet and not the type of polished production we're aiming for. 
    Does anyone know what might be causing this problem or how to fix it?  I've gone in one of our documents, completely removed the link, and then replaced it.  It still has the same address to something on my colleague's computer.  It's just crazy.  This is a nasty, nasty bug.
    Thanks in advance for any clues.

    I assume that this post is related to Gene Madill's a couple of hours ago. Is that so? I'm thinking that someone in the chain of custody has a machine that has an OS corruption. Possibly a system not properly updated to the latest version of Snow Leopard.
    There have been a couple of bugs in incremental Snow Leopard updates. One at 10.6.2 and another at 10.6.7.
    Are you up to speed on these issues? Are all of you up to date and clean?
    Jerry

  • Want User Exist or BADI when PO created and saved in database

    Hello Experts,
        I want User Exists or BADI, when PO saved in database table. That is, after Successfully Created message, want user exist or BADI in 4.7 server.
    Thanks & Regards,
    Poonam.

    Hi Friend ,
    Here is the  User Exit & BADI for Purchase Order  on save .I hope it will solve your Query
    User exit  create project  in CMOD : MM06E005
    BADI in SE18 :  ME_PROCESS_PO_CUST
    For more Information please see this SDN LINK : [ME21N /  ME22N SAVE Userexit;
    Regards,
    Edited by: Loganathan girishkumar on Nov 5, 2009 4:31 AM

  • User Exit for VA21 - Opportunity Number Text

    Hi! I need to retrieve or do some checking on the Opportunity Number Header Text if this is filled or not when creating an invoice/quotation. I've already done this for the checking on VA23, I used FM read_text and it works. But for the checking on VA21, I can't retrieve the text. This is because FM read_text requires
    1. ID - TDID
    2. Language - SPRAS
    3. Name - Doc Num
    4. Object - TDOBJECT
    and for VA21 since it technically still doesn't have a document number it can't read the text.
    Is there any temporary table/structure where the text is saved, where I can retrieve the text?

    Hi,
    I think you are checking the header text in a program (Use exit/BAdi) before saving the document right?  I have also faced the same scenario for tcode ME21N and ME22N. I resolved the issue in a BAdi .
    Before saving the document the text is available for ls_name = space. i.e name = ls_name.
    And the same text is available after saving the document for name = ls_name = Document number.
    Try with this.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    client = sy-mandt
    id = l_wa_textid_hdr-tdid
    language = sy-langu
    name = ls_name
    object = l_wa_textid_hdr-tdobject
    TABLES
    lines = it_lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    Regards,
    Raju.

  • Get the long text into BADI from text editor

    hi all,
    I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
    the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
    Can anybody help how can i get the long text to the BADI.
    Regards,
    Madhavi

    Hi
    Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
    IF_LONGTEXTS_MM~GET_TEXTOBJECT
    IF_LONGTEXTS_MM~GET_TYPES
    IF_LONGTEXTS_MM~GET_TEXT
    IF_LONGTEXTS_MM~SET_TEXT
    IF_LONGTEXTS_MM~ADOPT_TEXT
    IF_LONGTEXTS_MM~DELETE_TEXT
    IF_LONGTEXTS_MM~EDIT_TEXT
    Regards
    Eduardo

  • Need code for BADI ME_PROCESS_REQ_CUST

    dear experts,
       I have the below requirement.
    I have to create a new tab for location in Purchase requistion transaction.That i Did.
    I want to insert the data from location field to EBAN-ZSTAND(new field to be created in EBAN).
    I want to save the data in EBAN when i will press save button after selecting the location code.
    please give the code suggestion for BADi ME_PROCESS_REQ_CUST for saving the data into
    the location code (EBAN-ZSTAND).
    Thanks,
    Pilot

    Hi,
    get the item data ....
         *DATA : lt_item TYPE MEREQ_ITEM,
                       ls_item liek line of it_item*
             CALL METHOD im_item->GET_DATA
               RECEIVING
                 RE_DATA = lt_item .
    you will get the data in lt_item.. table
    Thanks,
    Shailaja Ainala.

  • Bug In Builder LV2012 - VI reported BAD when building - Need a workaround ASAP

    Hello,
    I currently have a problem with building and application. The Builder report a VI to be in BAD state when saving the VI near the end of the building process. I got this problem a couple of time, and to resolve it I need to clear the Compiled Object Cash and recompile all the VI by clicking CTRL-SHIFT RUN. Save the VI's and rebuild.
    But now I'm getting this error all the time:
    I post this problem here because I didn't get success with the normal support and I need to escalate this problem as quick as possible to get proper support.
    Someone get similar problem with LabVIEW 2012?
    Dany Allard

    I will do some digging to see what I can come up with, but I'm pretty sure it won't be anymore than what you've already tried. I will say I have had some issues with builds in 2012, moreso than usual.
    Have you tried to enable debugging? I've seen that sometimes helps, although it bloats your exe. Are you using LVOOP?
    CLA, LabVIEW Versions 2010-2013

  • Calculating sales volume from items to opportunity header.

    Hi,
    For a customer we are dealing with the following challenge: We are using opportunity management with items, but no products. The total value of the items of an opportunity (NET_VALUE_MAN) is displayed on the header level of the opportunity (NETVALUEMAN).
    When we select the status "Lost"  on item level, we would expect/like the total value of the opportunity to be adjusted. example:
    Item 10: 100.000 EUR
    Item 20: 50.000 EUR
    item 30: 25.000 EUR
    Total value of opportunity = 175.000
    If we change the status of item 10 to "lost", we would like to see the value of the opportunity on header level to 75.000.
    Does anyone know how (or give a hint)  to accomplish this? Is there is a BAdI available, or is it possible to manage it via the GET/SET method for the item/header of the opportunity? Should it be standard SAP behaviour?
    Thanks in advance,
    Regards,
    Luc

    Try using system status CANC (Cancel) on the item level. I think this should deactivate pricing for this item.
    If not, you can use badi for opportunity header under spro>crm>transactions>settings for opportunities>business add-ins>business add-ins for opprtunity: header data. here you can write the logic to accomplish your need.
    Regards.

  • IPhone 5 storage completely full and can't figure out to fix the problem?

    I got the iPhone 5c in August of last year. Previously, I had owned a flip-phone and only a flip-phone, so you can imagine that it was a big change. Though I know there is so much more that it can do (and so many things I have yet to discover), I mostly appreciated the phone for its photo and Internet capabilities. Only a few weeks after I got the phone, I went to a concert and, as you can imagine, the videos took up a lot of space on my phone. I also have a bad problem with saving screenshots, so I quickly filled up space with pictures. Once I realized it was reaching an overwhelming amount (and space was getting limited), I backed-up my iPhone to iTunes on my computer and deleted around 800 pictures. It barely freed up any space. I did this once or twice until one time I tried backing it up again and it would not let me, saying that there was not enough space to do the back-up. I don't quite know how that works, but after that, I just ignored my problem. Well, then my space was dwindling down close to zero. I deleted most of my apps, though it did not free up much at all because 11.4 GB of my 13.2 GB phone is from Photos/Videos.
    My phone reached 0 bytes available in, I'm guessing, November of last year? To my surprise, I could still use some of the features on my phone. Internet, screenshotting (though I could no longer take pictures), and some of the apps (though they often would not load fully). This didn't last for long. One day, I wasn't able to open hardly any of my apps. Then it transitioned to my Internet closing out of itself every now-and-then. Well, currently (and I've been having these problems consistently for the past month or so), I can not open any apps. If I try to go to a website, it closes out of itself almost every single time. I never know if my texts go through because it never finishes the sending process (sometimes people say they get them, sometimes they don't). I cannot receive texts. I can't even try to delete my photos/videos because when I click "delete", it goes to my Home Screen (again, it closes out of itself) and when I check, the pictures/videos are still there. For the past month or so, the only thing my phone can do is call. Which, you know, defeats the purpose of an iPhone. Basically, I have gotten myself into quite a conundrum.
    Is there a solution to my problem that does not involve restoring it to factory settings?

    Thank you for your reply! I just tried importing my pictures again. iTunes gave me the same message - that the storage was too full. I looked under summary, and I don't quite exactly know what usage numbers you are looking for, but it does say it is over capacity by 190.8 MB. However, when I plugged in my phone to the computer, it started to import pictures automatically into Dropbox. I just recently got Dropbox, so I did not have it the other times I tried to import. I managed to get the pictures onto my computer and, by some miracle, was able to delete a couple hundred from my phone. It also let me delete the long videos on my phone, which I've been trying to do for months. I went to my Storage and it now says I have 6.6 GB free (which was so amazing to see that I had to take a moment). I can take pictures now. I quickly updated a few apps and the space is still good. However, there are some apps that it still will not open (as in I open it up, then one second later it closes out). These seem to be the social media apps-- Twitter, Instagram, Facebook. Should I just delete them, then re-download? That will not mess anything up, correct? So far, Safari is working, which is a major relief.
    How would I go about syncing things like contacts?

  • TEXT_ID for Item Text of Purchase Order

    Hi,
    i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
    Transaction ME23, Item / Texts / Text overview.
    I tried with
      data:
        lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
        lw_TEXT-PO_NUMBER = '4400001659'.
        lw_TEXT-PO_ITEM   = '00001'.
        lw_TEXT-TEXT_ID   = '0001'.
        lw_TEXT-TEXT_FORM = '* '.
        lw_TEXT-TEXT_LINE = 'strike'.
        append lw_text to BBP_POTEXTITEM.
    and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
    In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
    How can i find out the right TEXT_ID?

    Hello Udo,
    I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
    In my case I have to write some values in BAPI_POTEXTITEM.   However, it seems that the badi is not saving the data.  At least I cannot see the text values in ME23N, Item / Texts.
    Would you give me an advice ?
    Thank you !
    best regards,
    Diego

Maybe you are looking for