How to call Badi - CRM_ORDERADM_H_MERGE only on saving of service request.

Hello CRM Experts,
I am trying to change value of a field - "object_id" of table "CRMD_ORDERADM_H" while creation of a service request. I am doing this by implemeting BADI - CRM_ORDERADM_H_BADI, method - CRM_ORDERADM_H_MERGE. In this method I am creating a new number and updating it in Object_id field of orderadmh table. This badi is getting called on every button click like - NEW, SAVE, even on pressing enter in service request creation page.
But I want to execute the code written in this method only on clicking SAVE button in web ui. But I am not able to find a way to do so.
Please suggest something.
Thanks,
Pooja

Actually another way of doing this would be to create a new BTE function module instead.  You can control the timing so that the function module will only fire once upon save if you configure the correct event timing.
To find out more on how to use this do a search here on CRMV_EVENT or run that transaction code in your system and click on "read this information".
For a bigger hint you would target:
Transaction Category - BUS20001 - or specific category that you need.
Execution TIme - 78 Before Saving
Object - ORDERADM_H
Event - BEFORE_SAVE
Attribute <*>
or perhaps
Execution TIme 88
Object ORDERADM_H
Event - INIT
or even:
Execution time - immediately
Object ORDERADM_H
Event AFTER_Create
In either case the call callback would be of type C call  once per transaction
I would do an CRMV_EVENT_TRACE to figure out where to put this, but that's my best ideas.
Take care,
Stephen

Similar Messages

  • How do I upload and attach the file to Service Request

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    drangineni
    New Contributor
    Hi,
    I am trying to upload a file and add it to a Service object as an
    attachement. I greatly appreciate if you could provide any code or
    sample...
    Thanks.
    Daya
    Product: CRM OnDemand
    10-21-2006 10:58 AM
    Re: How do I upload and attach the file to Service Request...
    BigSlick
    Valued Contributor
    On Demand doesn't support adding attachments via web services. One
    solution I've seen is depending on the scenario is to create a web link
    field on an object that's based on a custom text field. Your web service
    can populate that custom field and the web link can generate a dynamic
    link to the file in On Demand's UI. However, this depends on where the
    attachment is located and if the user needs some sort of firewall access.
    Hope this helps
    -BigSlick
    10-23-2006 11:43 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Yes this still holds ture.
    Bardo

  • How to call badi.

    HI all,
    This is for BAdi.
    In this link:
    How To Define a New BAdI Within the Enhancement Framework - Part 3 of the Series
    How to call this BAdi,
    CALL BADI handle->get_vat
    *     EXPORTING im_amount = sum*
    *     IMPORTING ex_amount_vat = vat*
    *               ex_percent_vat = percent.*
    When i tried this BAdi in my editor i am getting diffrent formate. could you please tell me how to get..
    iam very thank full to you..

    Hi,
    Refer this link, has lot in it to explain you how to cal a BADI
    step by step example for creating BADI
    Thanks,
    Kartavya

  • User Exit or BADI for IW31 when Saving the Service Order

    Dear ABAPers,
            I would like to add one more line in Service order item when saving the Service order in (IW31) at runtime.Is there User Exit or BAdI.It is very Urgent Please help me.
    Thanks & Regards,
    Ashok.

    Hi
    U can go through the tansaction.
      System/ Status
      Double click on program name.
    For badis:
    Search for the Phrase:
      cl_exithandler=>get_instance.
    U will the badi definitions.
    For User exits:
      search for the phrase: CALL CUSTOMER-FUNCTION
      u will get the user exits.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • How to call an Oracle Report from a Self Service HR page.

    Hi,
    I am trying to call an Oracle Report from a Self Service HR page. I personalized the page to add a button and link the report's URL to that button; but I am having issues passing/manipulating parameters to this report.
    Is there a better approach to do this, please post your suggestions. Also If you can direct me to some usefull documentation that will be great.
    Any help will be greatly appreciated.
    Regards
    Hilal

    Tapash,
    Thanks for reponding.
    Here is the URL I am currently using :
    https://gccss.glendale.edu:8001/dev60cgi/rwcgi60?server=rep60_crp3+userid=apps/pswd@crp3+report=/u07/oracle/crp3appl/gcccus/11.5.0/reports/US/GCC_ACCRUAL_BAL_0505.rdf+desformat=html+paramform=yes+destype=cache+p_accesscode=""
    The p_accesscode is the parameter I need to pass to the Oracle report.
    Currently, when I click the button, it invokes the above URL and takes me to the parameter form of the Oracle report and when I enter the Username, it runs the report and displays the desired output. But, what I need to achieve is, to pass the current user who has logged in behind the scene and to get rid of the parameter screen totally. Is this doable ? If yes, please help me !!!
    Thanks
    Hilal

  • How to call BADI Triggering Multiple Times

    Hi ,
        I got one requirement of Duplicate check for that i implemeted one BADI  in that i called Duplicat check function Module also so when i entered first, last and email id it is giving the message as Data is saved. when i entered the same data is entered it gives the message as Account is Duplicate and it wont save at that time when i modified the data then it wants to save that means it wants to call the duplicate check badi once again but thing is it wont save again it is giving the message as duplicate so for each change the badi wants to trigger agin and again but it wont so how can i do this one pls tell me which badi is suitable
    Regards
    Ravi

    I think you can do it by using the same BADI. you can just create a static data to keep the first, last and email id. If the first, last and email id are the same skip the duplication check.
    for examples:
      Method badi.........
        STATICS static_name TYPE name VALUE 10.
        IF static_name is initial.
          static_name = im_name.
          perform duplicate_check.....
        ELSE.
          if static_name ne im_name.
            perform duplicate_check.....
          endif.
        ENDIF.
      Endmethod
    Cheers,
    Chaiphon

  • How to create mandatory (read-only) profile for Terminal Services user (HP Thin Client) on Server2003... aaarrgghhh!

    I've been tearing my hair out for a couple of days now...
    I'm trying to create a mandatory profile for users logging in from hp thin clients on a 2003 server at a school.
    I've set up a prototype user, then copied the proto user's NTUSER.DAT to NTUSER.MAN and renamed
    NTUSER.DAT to NTUSER.DAT_unused.
    At that point, logging in as the prototype user looks ok.  It was my understanding that renaming NTUSER.DAT to NTUSER.MAN would make it a mandatory profile, and the user (in this case the proto user) would be unable to change it.  However, in this
    case the user can still modify the desktop and those modifications are preserved across logins.  The NTUSER.MAN file is being updated, judging by the timestamp changes.
    What am I missing?  
    I've tried putting the NTUSER.MAN in the user's dir on the server
     (C:\Documents and Settings\ProtoUser),
    in the DefaultUser, and in AllUsers.
    Right now I'm getting a default, unmodifiable profile which I have no idea where it comes from.
    In case it matters, the original user and directory tree from which the NTUSER.MAN I'm trying to use has been deleted, but I wouldn't think that should matter.
    For example, I have the option to not show the security tab set in the group policy, but it is showing up.
    The Start menu is showing as the classic start menu, and I had it set for the "new" (2 column) one.
    I've got hide network places on the desktop set, but it's showing up.
    Is there a way to tell where a profile is coming from?
    I'm pretty confused at this point; any clarifications / tips would be much appreciated.
    Related questions:
      If both an NTUSER.DAT and an NTUSER.MAN exist, which is used?
      If no profile is found for a user in the normal place, what happens?

    Hi,
    Thank you for posting in Windows Server Forum.
    A mandatory user profile is a special type of pre-configured roaming user profile that administrators can use to specify settings for users. With mandatory user profiles, a user can modify his or her desktop, but the changes are not saved when the user
    logs off. The next time the user logs on, the mandatory user profile created by the administrator is downloaded. There are two types of mandatory profiles: normal mandatory profiles and super-mandatory profiles.
    User profiles become mandatory profiles when the administrator renames the NTuser.dat file (the registry hive) on the server to NTuser.man. The .man extension causes the user profile to be a read-only profile.
    User profiles become super-mandatory when the folder name of the profile path ends in .man; for example, \\server\share\mandatoryprofile.man\.
    More information:
    Mandatory User Profiles
    http://msdn.microsoft.com/en-us/library/windows/desktop/bb776895(v=vs.85).aspx
    Using User Profiles in Windows Server 2003
    http://technet.microsoft.com/en-us/library/cc776120(v=ws.10).aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to call Jive Search methods using REST Web Services from ADF

    Hi
    Can someone provide me an example to call JIVE Search using REST web services from Webcenter ADF.
    As we have the similar facility to call UCM Search from WebServices DataControl.
    Do we have anything similar like this for JIVE Search?
    JIVE 5.1 is deprecating SOAP style web services and so I am planning to use REST.
    Any suggestions on this is much appreciated.
    Many Thanks
    Khad

    so what exactly is the problem here?
    what is not working?

  • Display Service Request Detail screen when saving a Service Request

    I have created a weblink that creates a new service request with the Contact field already populated.
    Is it possible to stop the application from returning to the contact detail page when I save the Service Request. Ideally I would like to display the service request detail page when I save a service request.
    Thanks.

    The first button option is useful if the table to maintain is a "Customizing" type, and you need to transport easily its values. If the table is of type "Master Data" or even "Transactional data" then  the data has not to be copied between environments.
    Sample :
    T001 - Customizing => Transport requests
    MAR - Master Data => No transport
    I think that your table as no client "MANDT" fields, so the program asked for a "workbench" request and not a "Customizing" one.
    Regards

  • Having difficulty saving service request

    Hi experts,
    we have this problem in SOD and have been waiting for the response from oracle customer care for almost a month but still don;t get the answer yet. We are hoping to get some advise from you.
    what is "No valid reponse handler defined"? this is the error message we keep getting when saving the service request.
    we have modified SR type to "Status" to drive to dynamic pagelayout. when status= closed, the SR will turn to another pagelayout where all the fields will turn read-only.
    Ever since then we couldn't save SR at all.
    Can anyone please help? thanks in advance.
    sab.

    we don't see this error when SR type is not Status.
    i have spoken with Customer Care and they also couldn't figure out what went wrong. They said they need to raise a CR, but it will take 3-4 months before the next patch can apply to our environment.
    We will go-live in about 1 month time, and the slow response from Oracle is causing a lot of complaints within the organization. sigh....

  • How can I view previous soft-closed service requests on Metalink?

    Hi,
    I'm trying to find a previous service request that I lodged on Metalink that has been closed normally (soft-closed), however all I can find are currently open ones, and hard-closed ones (if I tick a box). How can I use Metalink to view these previous service requests?
    Thanks
    Adam

    I believe they automatically get hard-closed after a period of time (default 14 days unless you ask for more)? How old are the soft-closed ones? See metalink note: 166650.1 Working Effectively With Support

  • Web Service Requests... how many per page

    Can you only have 1 web service request per page within APEX. I'm guessing so, because I get an HTTP 404 error when I create two or more web service requests on a page?

    Can you have a look at the mod_plsql log file to get the error why the 404 is raised.
    thanks
    Patrick

  • How to call setdata method in POST method of BADI ME_PROCESS_PO_CUST ?

    Hi all,
    I am working on the enhancement to PO using BADI . My requirement is to update the net price of the item while saving the PO based on some conditions. i am calling setdata method to update the item netprice. But i am unable to update it? Can you please help me on how to change the item price while saving the PO?
    Thanks,
    Aravind.

    Hi all,
    Please help me. If my question was not clear, i will explain.
    Thanks,
    Aravind

  • 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

  • Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    I have friends all over Europe, does it matter what number they use to call me? Nope! All incoming calls are free for me.
    The only time you ever have to worry about which number is if you get charged for incoming domestic/international calls.
    You can tag their number (work/home/iphone) and that may show on the CallerID accordingly.
    It should show, John Doe
    underneath,    work/home/mobile
    For example:
    http://shawnblanc.net/images/img-0009-1.png

Maybe you are looking for

  • [SOLVED] Arch with kernel 3.15.1 hangs/reboots in early boot

    Hi all, Recently I bought Asrock D1800B-ITX and I installed Arch without seeing any error messages. However, when I rebooted to the installed system, the kernel hangs after printing "Booting the kernel." What should I do next to troubleshoot this? PC

  • View in browser - screen flashes white

    Although I'm fairly new to CS5, all has been going well til now. New site, whilst testing in Google Chrome and Safari, when loading between html pages, the screen flashes white. I'm using a couple of jsQuery - one is Galleria, the other is page trans

  • Problem in reloading the .lsb file

    Hi All, We are using a CIN function to interface an external C code and created the LSB file with required parameters. This was integrated to our LabVIEW code succesfully. Later during the progress of the code development, we've created an additional

  • Export in MPEG format

    How do you do this? I do not see an option for it.

  • Issue with Storage Unit Type (LETYP) in L_TO_CREATE_TR

    Hi Experts, I need help in the function module "L_TO_CREATE_TR". using in Warehouse Management(WM) module. In theis function module I am passing LETYP(Storage Unit Type) value in IT_TRITE parameter, but this is not considering my value instead of thi