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
Similar Messages
-
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. -
ORA-22950: cannot Order Objects without MAP or ORDER method (line 15)
Hi
I have created a function
create type att_con.ind_field_value as object (s_owner varchar2(50), s_table varchar2(50), s_field varchar2(50));
create type att_con.ind_field_value_table as table of att_con.ind_field_value;
create or replace function fn_find_field_entries
(s_entry IN varchar2)
return ind_field_value_table
IS
found_count integer;
t_return ind_field_value_table := ind_field_value_table();
begin
for cur in (select owner, table_name, column_name
from all_tab_columns
where owner 'SYS'
and owner 'SYSTEM')
loop
execute immediate
'select count(' || cur.column_name || ') from ' || cur.owner || '.' || cur.table_name || ' where ' || cur.column_name || ' = ' || s_entry
into found_count;
if found_count 0 then
t_return.extend;
t_return(t_return.last) := (cur.owner, cur.table_name, cur.column_name);
end if;
end loop;
return t_return;
end;
and i am getting the above error when i try and run it with
select * from table(att_con.fn_find_field_entries('NDUNNE'))
anyone know what this error might mean?
thanks in advance22950, 00000, "cannot ORDER objects without MAP or ORDER method"
// *Cause: an object type must have a MAP or ORDER method defined for
// all comparisons other than equality and inequality comparisons.
// *Action: Define a MAP or ORDER method for the object type
// -
Adding a new field extension on CRM Order Item tab in the web shop order
Hi CRM E-Commerce Gurus,
I want to add a extension field on any web site product such as "zz...." in order to use this data in order's item tab. What shoul I do on J2EE Stack-.jsp method and ABAP Stack at the BADI implementations.
Could you please help me in order to add a new field extension on CRM Order Item tab in the web shop order ?
Thanks,
Kind Regards,
FahrettinHi Arshi,
We have could not find any java action class such as Maintainb2csaveorderaction in config.xml folder and also there is no available threads and clue on SDN, google etc. Therefore we are got stucked on this issue. In SAP_ISA_60 Development and Extension Guide of SAP E-Commerce there is no sample java action class code such as Maintainb2csaveorderaction but some ABAP codes are available for the extension structure.
Do you suggest any java action class such as Maintainb2csaveorderaction codes like in your B2B scenarios etc.?
ls_header is a local structure with header data
ls_extension-ref_guid = ls_header-guid.
ls_extension-alt_handle = ls_header-handle.
extension are name value pairs
ls_extension-name = u2018Z_CUSTOMER1u2019 u2018 name
ls_extension-value = ls_header-zcustomer1. u2018 value
APPEND ls_extension to extension_header_out
now adding extensions to the items
LOOP AT lt_items INTO ls_item.
ls_extension-ref_guid = ls_item-guid.
ls_extension-alt_handle = ls_item-handle.
ls_extension-name = u2018Z_CUSTOMER2u2019 u2018name
ls_extension-value = ls_item-zcustomer2. u2018value
APPEND ls_extension to extension_item_out
ENDLOOP.
ls_header is a local structure with header data
LOOP AT extension_header_in INTO ls_extension.
check the name to find the according field
IF ls_extension-name = u2018Z_CUSTOMER1u2019.
ls_header-zcustomer1 = ls_extension-value.
ENDIF.
ENDLOOP.
sort the extension table by ref_guid and handle to obtain a better access
with binary search.
SORT extension_item_in BY ref_guid, alt_handle.
LOOP AT lt_items INTO ls_item.
find the starting point for a loop over extensions
use guid and handle as one logical key to access the extension
READ TABLE extension_item_in
WITH KEY ref_guid = ls_item-guid
alt_handle = ls_item-handle
BINARY SEARCH.
IF SY-SUBRC = 0.
LOOP AT extension_item_in INTO ls_extension
FROM SY-TABIX.
check, if the entry is relevant
IF NOT ls_extension-ref_guid = ls_item-guid
OR NOT ls_extension-alt_handle = ls_item-handle.
BREAK.
ENDIF.
IF ls_extension-key = u2018Z_CUSTOMER2u2019.
ls_item-zcustomer2 = ls_extension-value.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
Thanks
Kind Regards,
Fahrettin -
Hi all!
My task is to read categories of crm order (i.e. fields category_1 ... category_4 at the order header level).
May be someone could tell me some functionality to get this data?
I'll be appreciated.
Best regards,
Alexander KirillovHi, Oliver!
Below you'll see how-to-guide which will provide a step-by-step solution.
It's 100% works like 'CRM_ORDER_READ' (both for buffered values & DB ones).
How-to guide - reading order categorization
1. Create package ZCATEGORY (Categorization)
2. Create new dictionary objects:
2.1. Structure ZMDS_CATEGORIZATION_CAT ( u201CCategory from categorizationu201D) with fields:
CAT_GUID type CRM_ERMS_CAT_GUID
CAT_HI type CRMT_ERMS_CAT_HI
IT_CAT_CA type CRMT_ERMS_CAT_CA_BUF_TAB
IT_CAT_CA_LANG type CRMT_ERMS_CAT_CA_LANG_TAB
2.2. Structure ZMDS ZMDS_CATEGORIZATION_CATS ( u201CCategories from categorizationu201D) with fields:
CATEGORY1 type ZMDS_CATEGORIZATION_CAT
CATEGORY2 type ZMDS_CATEGORIZATION_CAT
CATEGORY3 type ZMDS_CATEGORIZATION_CAT
CATEGORY4 type ZMDS_CATEGORIZATION_CAT
3. Copy CL_CRM_CATEGORY_RUN_BTIL class to new ZMD_CL_CRM_CATEGORY_RUN_BTIL class. In newly created class do following:
3.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
3.2. Change method u201CMAP_SUBJECT_TO_CATEGORYu201D to u201CPublicu201D
4. Create new class ZMD_CL_CATEGORIZATION (Categorization processing).
4.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
4.2. Define constants:
4.2.1. C_LNK_TYPE_IS_CODE Constant Public Type CRM_ERMS_CAT_LN_TYPE Default link type 'IS_CODE'
4.2.2. C_OBJ_DDIC_CRM Constant Public Type CRM_ERMS_CAT_OB_DDIC External object name 'SUBJECTCODECRM'
4.2.3. C_TREE_TYPE_CAT Constant Public Type CRM_ERMS_CAT_HI_TYPE Kind of link 'CAT'
4.3. Create static public method u201CGET_ORDER_H_CATu201D with importing parameter IV_GUID (type CRMT_OBJECT_GUID = order GUID) & exporting parameter ES_CATEGORIES (type ZMDS_CATEGORIZATION_CATS).
5. Create report ZMDR_ORDER_CAT for displaying order categorization. -
Hi forum!!
In the ERP order we assign a item of a order to a WBS element and we need to see that WBS element in CRM but that field does not appear in the CRM order!!
Because of that I think about creating an ERP Order in CRM Order because the WBS element does exist!!but the problem comes here, when I insert the value in the WBS element that value disappears when I press enter or I save the Order.
Does anyone of yours know something about that??
Any ideas??HI Cecilia,
I am also need to assign WBS element in service order item,but I can't find that filed.
Can you share with me?
Thanks
Tiffany -
Run time error while closing the CRM Order using BAPI
Hi Experts,
Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
For the custom program we will give input as the order number and execute it, this will close the order.
Here close the order means assigning it to Close status as well assign the reason code.
We have created some reason codes for closed status.
So when the program is run the Order moves from resolved status to closed status along with reason code.
But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
Please find my code which have used in the custom program
Closing the resolved SOs in the system
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
objnr = iv_guid
user_status = lc_status_closed
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining status'.
ENDIF.
Set reason code
build lt_subject
ls_subject-ref_guid = iv_guid.
ls_subject-katalogart = 'A2'.
ls_subject-codegruppe = 'ZR000003'.
ls_subject-code = 'ZR33'. " Reason code
ls_subject-mode = 'A'.
APPEND ls_subject TO lt_subject.
build lt_ossset
ls_osset-ref_guid = iv_guid.
ls_osset-subject_profile = 'ZREASON03'.
ls_osset-profile_type = 'G'.
ls_osset-subject = lt_subject.
APPEND ls_osset TO lt_osset.
build lt_service_os
ls_service_os-ref_guid = iv_guid.
ls_service_os-ref_kind = 'A'.
ls_service_os-osset = lt_osset.
APPEND ls_service_os TO lt_service_os.
build lt_input_fields
REFRESH: lt_input_fields, lt_field_names.
CLEAR : ls_input_fields, ls_field_names.
ls_field_names-fieldname = 'CODE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'CODEGRUPPE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'KATALOGART'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'SERVICE_PROFILE'.
APPEND ls_field_names TO lt_field_names.
ls_input_fields-ref_guid = iv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'SERVICE_OS'.
ls_input_fields-field_names = lt_field_names.
APPEND ls_input_fields TO lt_input_fields.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_service_os = lt_service_os
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining reason'.
ENDIF.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_header_guid
iv_update_task_local = lv_update_task_local
IMPORTING
et_saved_objects = lt_saved_objects
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc <> 0.
WRITE : 'Error at saving'.
ELSE.
WRITE : 'Successfully Closed'.
COMMIT WORK AND WAIT.
ENDIF.
Run time error is coming at COMMIT WORK AND WAIT statement.
Please let me know any corrections are required in the above program.
When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
Kindly provide your feedback.Hi Dinakar,
You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
Regards - Pawan -
CRM orders with error "Do not enter a business agreement for sold-to party"
Dear SDN'ler,
after creating orders in SAP CRM via ISA (CRM 4.0) and uploading them to R/3 all orders are created successfully in R/3 but an error message is sent back to SAP CRM in case of ALL orders.
Error message is the following:
"Do not enter a business agreement for sold-to party xyz"
Message no. CRM_BILLING011
Diagnosis
The field "FI-CA active" is not selected for the sold-to party 6000201 in the business master record. Since the business agreement is used in the component FI-CA, excluding the control of processes, it makes sense to enter a business agreement.
Procedure
Delete the entered business agreement.
==> Could someone please give me some more information about the mentioned "business agreement"? Where do I find field "FI-CA active" (in R/3 or CRM customer master data?)?
==> And how can I eliminate this error message for CRM orders in SAP CRM?
Thanks a lot.
Best Regards,
Rainer GryschkaPlease check the customising setting under following path:
SPRO --> Customer Relationship Management --> Master Data --> Business Partner -- > Business Agreement --> Define Basic Settings
Alternatively you may also check following customisation table using SM30 --> CRMC_BUAG_ACTV -
Attachments tables with GUID in SAP CRM 2007
Hi,
I have req! like from created service order after createing folloup activity.. I added 2 or 3 attchaments in activity after save the actvity.. at that time those attchments stored in preceded serviceorder under attchamnets tab...
tell me the Attachments tables with GUID in SAP CRM 2007..Plz rply ASAP.
Thanks! for the help!
Thanks,
KooitiHi Masood Imrani,
Thanks for the reply
I have req! like from created service order after createing folloup activity.. I added 2 or 3 attchaments in activity after save the actvity.. at that time those attchments stored in preceded serviceorder under attchamnets tab...
Please provide database table names. that tables contain GUID.
Thanks,
Kooiti -
Error occurred when processing Java programs (CRM ORDER READ is called)
Hi,
We are facing a problem while running a batch job.Its a batch job which reads order data from crm system by using crm order read and generates fur files on application server.
But the problem is, after executing or generating lets say 10000 records in file the batch job is automatically closed.
When we tried to analyse it from SM37 we got the error message saying,
" An error occurred while executing a Java program in the VM container"
So what could be the reason of this problem.And what is the solution.
Regards
PGThis is the error we get when we read Pricing condition or Variant Config from the ORDER.
I think you are not initalizing the order after you have the read the data.Pass the guid to ti_guis_to_init.
call function 'CRM_ORDER_INITIALIZE'
exporting
it_guids_to_init = <>
exceptions
error_occurred = 1
others = 2.
This may solve the problem.
Edited by: Chandra on Jan 30, 2009 1:30 PM -
CRM order giving the document could not be saved exception! Please help!
Hi Experts,
I am changing the status of a order using CRM_STATUS_CHANGE_EXTERN and CRM_STATUS_CHANGE_INTERN.
After this I call CRM_ORDER_INITIALIZE and the BAPI_BUSPROCESSND_SAVE.
Finally commit.
CALL FUNCTION 'CRM_ORDER_INITIALIZE'
EXPORTING
it_guids_to_init = lt_crmd_guids
iv_init_frame_log = 'X'
iv_keep_lock = 'X'
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
ls_obj_save-guid = v_header_guid.
append ls_obj_save TO lt_obj_save.
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
EXPORTING
UPDATE_TASK_LOCAL = 'X' "commented. Taking default
SAVE_FRAME_LOG = 'X'
IMPORTING
LOG_HANDLE = lv_log_handle
TABLES
OBJECTS_TO_SAVE = lt_obj_save
SAVED_OBJECTS = lt_obj_saved
RETURN = lt_return.
The function BAPI_BUSPROCESSND_SAVE is returning error: The document could not be saved in it_return. I am not getting any other details. What am I doing wrong? Please help!
Thanks & Regards
GopalHi Robert,
The SPRO settings seems to be fine.
The problem is that the order is not getting saved whenever there is backward status change. However if I see the item status via tcode "crmd_order" then it actually shows the new status. In other words status is changing but still order is not getting saved.
When I debugged the code I found that first It has successfully executed the FM CRM_STATUS_CHANGE_EXTERN and then when CRM_ORDER SAVE is called the parameter et_saved_objects is empty. I am passing header Guid in it_objects_to_save. If order is saved properly then et_saved_objects should be filled with order guid.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_save
IMPORTING
et_saved_objects = lt_saved_obj
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
On further debugging inside CRM_ORDER SAVE I found that the FM CRM_EVENT_PASS_INFO_EXE_OW returns lt_events empty. That means the given guid is not registered for saving. Why is this so?
are there objects registered for saving
call function 'CRM_EVENT_PASS_INFO_EXE_OW'
exporting
iv_exetime = gc_event_exec_time-save_order
iv_order_guid = ls_object_to_save
iv_obj_kind = gc_object_kind-orderadm_h
importing
et_event_calls = lt_events
exceptions
others = 99.
if lt_events is initial.
delete ct_objects_to_save.
continue.
endif.
The problem is when the order is not getting saved the status change is not getting transferred to BW or BI.
What could be the issue?
Thanks
Gopal
Edited by: gopalkrishna baliga on Apr 7, 2011 5:59 AM
Edited by: gopalkrishna baliga on Apr 7, 2011 6:09 AM -
Hi All,
I have created sales order by logging through contact person in B2B- ISA.Now i want to check in which tab pages the Following Information should be in CRM -GUI.
1.Contact person Details
2.Order Channel(eg:internet or telephone call etc..)
3.I want to see in which tab page of CRM-order the contact person name will be.
Thanx's in Advance.
Cheers,
Jack.Hi Jack,
Ans for question 1 & 3:- If you go to transaction CRMD_ORDER and open the order created in B2B-ISA,In the partner tab you will see the CP number and the address.This address includes the name of the CP. If you want to see the detail of the CP use the transaction /nBP and see the businesspartner of your CP no.
2.Order Channel(eg:internet or telephone call etc..)
In the tab "Purchase order data" there is a field called category which is nothing but the order channel.
Hope this will answer your question.
<b>allot points if my post helps!!</b>
Best regards,
Vikash. -
Adding functionality when saving a CRM order
Hello. I am trying to encrypt payment card numbers at the time that the orders are saved in CRM.
I believe that I can retrieve the payment card information just before the order is saved using the CRM_ISAI_BASKET_GETPAYMENT function. This function returns a structure that contains the card number.
Is there an internal table that I can access (or is there a function or BADI call) by which I can modify the payment card number? After I have encrypted the card number, I would like to modify a temporary table (if one exists) before the data is committed to the permanent tables.
I have brought up the COM_PAYPLAN package through the object browser, but I am not familiar with the functions I see listed there.
Due to implementation requirements, I cannot encrypt the card number at the time of authorization.
Thanks.
Brendan FarragherHi Brendan,
Hope you are well. I have not ventured in the CRM world yet, but I do know of somebody who is known as the CC guru in R/3 - I'm sure he could guide you with CRM as well.
Below is his contact information, shoot him an email if nobody else is able to help you.
Eric Bushman
[email protected]
Good luck in finding a solution and hope you have a good Holiday season.
Francisco -
Significance of Handle -- CRM Order
All
What is the significance of Handle in CRM Order ?
When this can be used ?
Cheers
RJHi RJ,
I am not able to get what is "Handle in CRM Order"!!!
I am aware of "Handling Indicator" in CRM sales scenario. The handling indicator provides logistics information on the product, and shows whether a product has to be handled in a particular way in the warehouse or when it is transported.
Handling indicator is displayed for a product in the sales order at item level, if a value was entered for this field in the product master record.
Please find more details in the following links:
http://help.sap.com/saphelp_crm70/helpdata/EN/47/53ce50c6c805ebe10000000a42189b/frameset.htm
http://help.sap.com/saphelp_crm70/helpdata/EN/46/5754cf01a208e7e10000000a114a6b/frameset.htm
Hope this helps!
Regards,
Chethan
Edited by: Chethan Kumar C M on Oct 7, 2009 6:23 AM -
Update Means-Of-Transport Type in a sales order
I want to Update Means-Of-Transport Type in a sales order. You can find this field (VBKD-TRATY) in Sales Order->Header->Shipping.
I couldnt find this field in BAPI_SALESORDER_CHANGE.
Is there any function module which wud update it?Means of transport will be decided at the time of shipping in delivery .
So LIKP-Traty will be the means of transport .
i dont think there is a Fm to handle this .
Let us check if someone has a solution.
regards,
vijay
Maybe you are looking for
-
Questions regarding vendor evaluation
Hello, We are currently trying to use the vendor evaluation functionnalities in MM. Do you know if it is possible to get the evaluation details ? For example, for quantity reliability, we would like to have a report giving the PO where the delivered
-
Hi all, My requirement is to send FYI notification to list of approvers. I want to do it using AME rather than Workflow.Please tell me how to achieve this. Thanks Pradeep
-
Print Without Hyperlink Character Styles
Hi, I have applied a character style to URLs in my document that look like links so that when I export to pdf, people can click the obvious URL link. However, the document will also be printed and I do not want the text to have this character style
-
IPhoto 11 "Show Extended Photo Info" item under "Photos"
In my iPhoto 11, under Photos in the menu bar, the first item is "Adjust Date and Time". I do NOT see "Show Extended Photo Info". How do I make this menu item appear?
-
Procedure for subcontracting activity in our premises by external agency
Dear all, Please provide the process in SAP for the sub contracting activity getting completed in our premises itself by a outsourcing agency. Example: Our requirement is grinding of valve body. Instead of sending the valve body to sub contract vendo