Error handling in CRM One Order Object

We have done some enhancements in the CRM One Order Object standard process. We need to raise some custom error messages under certain error conditions from our code. For that, we are using the standard function module CRM_MESSAGE_COLLECT. The caller_name that we currently pass to it is a standard object (CONFIG) maintained in CRMC_OBJECTS table.
Now, we also want to delete "our" error messages (and not the ones coming from the standard process) when a certain state has been reached. I found function module CRM_MESSAGES_DELETE which could be used for this purpose. But, the problem is that if we pass object 'CONFIG' to it, it would delete all the messages (even the ones that were not raised by our code) belonging to that object.
I also tried passing a key (a random string) to CRM_MESSAGE_COLLECT's import parameter IV_LOGICAL_KEY and then using the same key while calling CRM_MESSAGES_DELETE but it did not work.
One possible solution I see is that we add a custom object to CRMC_OBJECTS and then use that as a handle to "our" error messages. But I don't know what is the standard way of maintaing data in this table. It doesn't have a maintenance view for it and neither could I find any links to it in IMG.
Can anyone help with a solution?
Thanks in advance.

Yes creating a new Object may not be a solution for you as it might have some downstream impact.
Reading your problem again, if you want to delete only the custom messages, why don't you pass the message-id and message number you want to delete to the function module - CRM_MESSAGES_DELETE. I assume, since these messages are custom, so you might get a Z-message id along with the message number.
Regards,
Shyamak

Similar Messages

  • R3 to CRM - pass value from Handling unit in R3 to CRM One Order

    Hi all,
    Scenario is that CRM (v7.0) One Order gets replicated in R3. Delivery and Handling unit documents are created in R3.
    From handling unit, I need to pass Customer packaging material (VEKPVB-VHILM_KU - can be seen at the item level, additional data tab) back to CRM One Order. Is there any way to do this?
    Thanks
    Vinoth

    <-I guess maybe the root of my question is how to reference a text box in a report through Javascript or basic HTML?->
    Reference the item in JavaScript with like this
    var parentWindow = window.opener;
    parentWindow.document.getElementById(itemId).value = someValue;
    You can set the id of the item in your report by utilizing the sixth parameter of the apex_item.text function, which is defined in the documentation as:
    APEX_ITEM.TEXT(
    p_idx IN NUMBER,
    p_value IN VARCHAR2 DEFAULT NULL,
    p_size IN NUMBER DEFAULT NULL,
    p_maxlength IN NUMBER DEFAULT NULL,
    p_attributes IN VARCHAR2 DEFAULT NULL,
    p_item_id IN VARCHAR2 DEFAULT NULL,
    p_item_label IN VARCHAR2 DEFAULT NULL)

  • One-order object / one-order framework

    Hi all,
    What exactly is a one-order object or one-order framework?
    Does it refer to a single concept or group of concepts?
    Consider the following:
    1. customizing your own document or transaction types.
    2. entire sales cycle for e.g. opportunity -> quotation -> contract -> order
    3. life-cycle status of a single document type say, order: create -> confirm -> delivery (in ECC) -> billing
    Which of the above concepts come under one-order object or framework?
    Or is it a different concept all-together?

    Hi Bappaditya,
    One-order concept or framework is nothing but what you have defined.
    Actually One-Order framework is using the One-Order like Sales/Service Orders etc..and the flow hw an Order takes ..in ur business scenario.
    The path you defined opportunity -> quotation -> contract -> order is nothing but the processing of one-order at various stages of the business.
    Each one in this paths refers to one order and also a business object in CRM and has its own business processing logic and definition.
    Its not at all a altogether different concept...
    its exactly what ur  referring..
    Oppurtunity will have the status or process flow like : Newly created->opened->Won/Lost/Cancelled..
    Once its processing is done
    Suppose its Won.., then Quotation process flow starts like : New->Open->Approvals->Released/Rejected.
    Suppose its Released..then either Contract or Sales Order flow starts :
    Order->Newly Created->Approved/rejected->completed.
    This whole flow is a Sales cycle which is quite the same day-day sales cycle ...jus imagine a sales situation and co relate.
    This entire flow is called One-Order flow or framework and this defines the flow in whch an Order flows.....
    Siva

  • Reading an error messages in one order

    HI All,
         How can we read the ERRor Messages in the one order (i.e CRMD_ORder) transaction. Is there any function module which gives all the errors when we pass the Object Number/ Guid.
    Thanks
    Naresh

    Hi Naresh,
    Try the following function module passing parameters as indicated:
    CRM_MESSAGES_SEARCH
      IV_REF_OBJECT = GUID of the oneorder object
      IV_REF_KIND = A (for header) or B (for item)
      IV_ONLY_ERRORS_ON_OBJECT = abap_true
    This will return the message log handle and message number in et_msg_info. Then, to get the message details, you can use the handle and message number and call the following FM:
    CRM_MESSAGES_GET_LONGTEXT
    IS_MSGH = (fill this structure with handle and number found above)
    The message details will be fetched in the exporting parameters.
    Regards,
    Shiromani

  • What is One Order framework ?

    Hi All,
           Can someone please explain me what is a OneOrder framework ????
    Also, any documents on the same would be highly appreciated.
    Email :- ashish . walke @ gmail . com
    Regards,
    Ashish

    Hi Ashish,
    The One Order Framework is defined as the Framwork to handle all the CRM One Order Documents. Basically CRM One Order Documents are Sales Orders, Service Orders, Activities, etc. They all have a common structure to handle the data. They are basically grouped into
    Header Part
      - Items
      - Items ....
    So the header and item relationship is 1..n There are set of API's which handles the Create, Change and delete scenarios of the One Order Documents. They are CRM_ORDER_READ,CRM_ORDER_MAINTAIN,CRM_ORDER_DELETE,etc The Function Group is CRM_ORDER_API.
    Have  a look at the forum threads. It will give you more information about the One Order Framework.
    Hope this will clear your idea.
    Thanks,
    Samantak.

  • Error:Assign handling Unit from one Process order to another process order

    Hi Experts,
    I am facing different issues in assigning handling unit from one process order to another.
    Business process:
    1. Two similar Process Orders are existing in the system
    2. Delivery is created for first process order using LP10 for one or more components
    3. TO is created in foreground using VL06P
    4. TO is confirmed by providing in stock available Handling Unit (HU) / storage Unit details Using LT12
    5. Customized transaction is used to reassign newly created HU (created in previous step) from first process order to second process order. As a result many steps are performed in background for delinking the HU from first process order to second process order (including creation of different TOs)
    I am facing different issues in the process:
    1. Sometimes while confirming the TO in step 4: error is received as "Reservation item 0065 with material 4013959300300 does not exist" OR "Reservation item with material does not exist"
    2. If the TO is confirmed in step 4. I am facing error in step 5 as "Warehouse number  does not exist (new selection required)"
    Both these errors are standard errors and I could not find much information on them in SCN also.
    If anyone can throw light on any of them then it would be great.
    Please let me know if any additional information is required.
    Thanks
    Harsh Aggarwal

    Hi Manish
    Thanks for your response. Actually, the customized program is used only in fifth step and not till TO confirmation so that error is not related to Customized program. However, in some cases I am able to do the confirmation but the error is received in 5th step i.e. Warehouse number  does not exist (new selection required)"
    Any further guidance you can provide. I will ask ABAP to check the customized program but the error seems to be a standard error.

  • Errors CRM Service Order - ECC CO posting

    We have created a SAP CRM Service Order ( Copy of SRVO) transaction in CRM 7.0, on release of the service order we are getting the following error .
    An error occurred in system ZDEY240 during account assignment
    Message no. CRM_ORDER_MISC 060
    Diagnosis
    Errors occurred when assigning an account assignment object to a business transaction. To view the error message, see the accompanying log file.
    Transfer Log
    u2022     Errors in prerequisite object Transaction 8000000187 (Notification E IAOM 026)
    u2022     Profit center for CRM integration not found (Notification E KECRMPCA 001)
    u2022     Error occurred during determination of profit center (Notification E IAOM 039)
    u2022     Error occurred during creation of internal order (Notification E IAOM 018)
    If any one has a good idea on how to resolve this please let us know.
    Posted by Piyush Gandhi
    Mobile : 7176505770

    Hi Chetan
    Greetings
    Thanks for your email.
    Ref is made to the issue.
    I am aware of the CRM - ECC CO integration configuration , we have performed all the settings, I was refering to the error log in particular
    Which States:
    An error occurred in system ZDEY240 during account assignment
    Message no. CRM_ORDER_MISC 060
    Diagnosis
    Errors occurred when assigning an account assignment object to a business transaction. To view the error message, see the accompanying log file.
    Transfer Log
    u2022     Errors in prerequisite object Transaction 8000000187 (Notification E IAOM 026)
    u2022     Profit center for CRM integration not found (Notification E KECRMPCA 001)
    u2022     Error occurred during determination of profit center (Notification E IAOM 039)
    u2022     Error occurred during creation of internal order (Notification E IAOM 018)
    If you noticed there are serval log associated with this error , If any one know exactly what would be the reson which caused this error logs. We have checked all profit center , ecc service materials , Org Data config and found to be OK. Still the error persists.
    Need help to resolve this error.
    Regards
    Thanks
    Piyush Gandhi

  • Error Message"ERP adapter is called" for CRM sales order replicate to ERP

    Hi All:
    In our implemenation project, we use CRM7.0 stanard sales order type TA for sales order creation. And we did all the right configuration for sales order at CRM side. CRM sales order can be saved correctly.
    But this CRM sales order couldn't be replicate into ERP, as in Middleware the corresponding BDoc message is yellow light and Error messsage show "ERP adapter is called".
    Is anyone have same issue before, please kindly advise how to handling this issue and prossibile solution?
    Best regards:
    Kai

    Hi Kai,
    Is there any queue entry on transactions : SMQ1/SMQ2 with SYSFAIL status. If so, what is the error message it is showing?
    Are you able to process the order further? Or getting an error message like "Document being distributed" or something?
    Good luck,
    Aaru

  • Error Handling for Background/Update Tasks (Transfer Order creation) - How?

    Hi,
    I have a standard process for creating a Transfer Order and 2 user-exits that I have implemented.
    The user exits are used to transfer information during Transfer Order creation.
    However, the user-exits also check data in table TVARV and other. As such, error handling needs to be implemented, since the T.O. might or might not go through, depending on data validation and related.
    However, the user-exits are implemented during creation, which is an update task that runs in the background. This makes it impossible to output any information or error messages.
    What else can be done in regards to outputting a message, since the user will need to see some sort of message that the process failed, that the T.O. didnu2019t confirm?  Can an SAP inbox message be created and how?
    Please help.
    Thank You,
    John

    Hi,
         Please check the following link for all the function modules and user exits on TOs.
    http://help.sap.com/saphelp_erp2005/helpdata/EN/c6/f83a294afa11d182b90000e829fbfe/content.htm
    Reward points if it was helpful.
    Regards
    Abhishek
    Edited by: Abhishek Raj on May 29, 2008 10:20 AM

  • Any report or Table to see the list of orders  with errors  in SAP CRM?

    Hello All,
    Can anyone help me in getting  a table or report  to find the list of orders with errors in SAP CRM?.
    Let me know if you need any additional information.Thanks in advance.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 26, 2010 11:59 AM

    Hello Chait,
    I got the solution  by this report CRM_ORDER_CHECK_STATUS.
    Anyhow thanks very much for your inputs.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 30, 2010 8:48 AM

  • Purchase Order Response Error : "Enter at least one item"

    Hi there,
    While trying to confirm a PO response in SRM 7 I am getting the following error:
    "Enter at least one item"
    But when I do a check on the PO response it says:
    Purchase order response - 0030000035 is correct 
    Any ideas what could cause this error?
    Thanks for the help
    Lynton

    Hi there,
    I have no idea what you are asking with the limit po?
    Lynton

  • Error log 'At least one entry could not be found in object buffer' in SLG1

    Hi Experts,
    We are getting error log 'At least one entry could not be found in object buffer' in SLG1 transaction.
    Unable to trace the source of error. Could you please help us identifying the same.
    Regards,
    Santosh Kacham

    Hello,
    the reason could be the use of order_save badi, mostly there is a wrong + faulty implementation which causes this error. Please check first if any own coding part is involved, when creating documents / tickets.
    Thanks + regarsd
    Rene

  • Meaning of field GUID of a CRM Order object in Datasource 0CRM_CONTACT_OUT

    Dear Sirs,
    The standard datasource Customer Contact: Outbound (0CRM_CONTACT_OUT) delivers a field Guid of a CRM Order object (0CRM_0HGUID).
    What does this field acctually give you?
    Is it a GUID of a acctual order created in CRM for the given BP (in a given marketing element, targetggroup)
    best regards,
    Jørgen

    if you search in the SAP Help you find technical information of the extractor with table & field name of each extracted field... copying the link won't work as it's not completely "shown", but this is what's I found:
    Field in Extract Structure
    Description of Field in the Extract Structure
    Table of Origin
    Field in Table of Origin
    PARTNER
    Business partner number
    CRMD_IM_ML_ITEM
    PARTNER_GUID
    CAMPAIGN_ELEMENT
    Project planning: 16 character GUID for tasks
    CRM_IM_ML_HEAD
    ELEMENT_GUID
    EXTERNAL_ID
    Project planning: external ID for an element
    CGPL
    PROJECT or TASK
    CHANNEL
    CRM marketing planning – communication channel
    CRMD_IM_ML_ITEM
    CHANNEL
    SURVEYID
    CRM surveys: survey ID
    CRM_MKTPL_ATTR
    OBJECTIVE
    SURVEYVERSION
    CRM surveys: survey version
    CRM_MKTPL_ATTR
    OBJECTIVE
    TARGETGRP_GUID
    CRM marketing: GUID for a target group
    CRMD_IM_ML_ITEM
    TARGETGRP_GUID
    ORDER_GUID
    GUID of a CRM order object
    CRMD_IM_ML_ITEM
    ORDER_GUID
    OBJECT_TYPE
    Business transaction category
    Function module: CRM_ORDER_READ
    PROCESS_TYPE
    Business transaction type
    Function module: CRM_ORDER_READ
    ELM_ITEM_GUID
    CRM marketing:
    line GUID for a BP
    list item
    CRMD_IM_ML_ITEM
    ELM_ITEM_GUID
    CREATED_AT
    Transaction was created at this time
    CRMD_IM_ML_ITEM
    CREATED_AT
    CHANGED_AT
    Time of last change to the transaction
    CRMD_IM_ML_ITEM
    CHANGED_AT
    SUM_ACCESS
    Number of times link accessed
    CRMD_IM_ML_ITEM
    SUM_ACCESS
    SUM_REPLIES
    Number of e-mail answers
    CRMD_IM_ML_ITEM
    SUM_REPLIES

  • How to obtain GUID of a CRM Order Object

    Hello, I want to retrieve an external reference number of a CRM Order. First I should obtain the GUID of a CRM Order Object(component type CRMT_OBJECT_GUID). My problem is, which FM should I use?
    Thanks.

    Hello sasi,
    thanx for your help, with which I go a step further. What I need is to obtain a service order GUID(at last the external reference number) according to a notification number in SAP Support Desk. In CRM_JCDS, CRM_JEST I got a lot of infos but not the notification number, so that I could not establish a relationship between them. And I'm not quite clear what you mean by FM STATUS_TEXT_EDIT(why I should edit the status text)? Can you explain more?
    Greetings.
    Nuno.

  • One Order Concept in CRM

    Hi experts
       Can you  Please send me good document on   ONE ORDER concept in CRM.
    Thanks
    ram

    Hi ,
       One Order framework  is  a  architectural  prowess / flexibility  of  txn CRMD_ORDER ,,,which  enable  the user to create  variety of  Business Transactions ( Sales doc, Service order , opportunity, lead , Activity , campaign & many  more )   with  only  one  txn  CRMD_ORDER .....isnt it amazing ????
      This  is  called  ONE ORDER framework ...  Hope   this  is  self  explanatory ....
      Dont forget  to  reward  me if  satisfied...
    Regards
    ABAP Techie

Maybe you are looking for

  • Getting list of classes?

    Hello all, I was just wondering if there is any way to get a list of all the known classes in a certain package? I know I can get a list of the packages themselves, but not sure about how to go about getting the actual classes. Thanks for the help! -

  • Delete language template in use Cisco ISE

    Hi I have a problem updating my ise, there is a faulty language template in use as I can see in the log files, its not a system template so I want to proceed to delete it, but I can't because its still in use by a sponsor or a user, the problem is th

  • Not able to install 11.2.0.3 on OEL 6.3 x86_64

    Hi, I originally hijacked another forum thread that was vaguely similar toy what I seem to be experiencing. A kind forum moderator has split my post away and put a more descriptive title to it, to let it stand on its own. (... and moved it from the O

  • Need clarification on the Recycling Program

    Hi everyone, I just need some clarification on the iPod Recycling Program, as I have never done it before. I'm want to use the Recycling Program to get a discount on the iPod Touch 5g. Now my question is, and it's probably a stupid question, but if I

  • With apple pay, how do i delete the receipts from my phone

    how do i delete receipts from my phone after using apple pay