CRM Service Contracts : no record with 0CRM_SRV_CONTRACT_H
Hi,
I need to extract the Service Contracts from CRM to BW. I use the DataSource 0CRM_SRV_CONTRACT_H, the InfoSource 0CRM_SERVICE_CONTRACT_H, the ODS 0CRM_CONH and the InfoCube 0CSRV_C02.
When I try to extract data from my DataSource to the ODS, I get 0 record...
Is this anything special to do with this extractor?
Thanks
Aube
Hi again,
I am also facing the a similar problem while extracting data from
0CRM_SALES_CONTR_I datasource in my quality and production system.
rsa3 extracts record but the job is canceled when done using a infopackage.
When i go to the job log i get the following message.
Job started
Step 001 started (program SBIE0001, variant &0000000000078, user ID UED_010_RFC)
Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
DATASOURCE = 0CRM_SALES_CONTR_I
Current Values for Selected Profile Parameters *
abap/heap_area_nondia......... 2000000000 *
abap/heap_area_total.......... 2000000000 *
abap/heaplimit................ 40000000 *
zcsa/installed_languages...... DEHL *
zcsa/system_language.......... E *
ztta/max_memreq_MB............ 2047 *
ztta/roll_area................ 6500000 *
ztta/roll_extension........... 2000000000 *
IDOC: Info IDoc 2, IDoc No. 12092, Duration 00:00:00
IDoc: Start = 21.03.2007 06:09:47, End = 21.03.2007 06:09:47
Error occurred when processing Java programs
Job also cancelled due to process termination. See the system log
Job cancelled
this dataload is working fine the development system.
also we have given SAP_ALL Authorisation in the source.
any pointers!
Similar Messages
-
Middleware Replication-ISU Installation Facts into CRM Service Contract
Hi All,
I would like to share an update which I have followed for one of my implementation project.
Following document will help you, if you want to replicate some of the data from ISU to CRM Service contract custom fields, which is not the standard replication practice.
[Middleware Replication-ISU Installation Facts into CRM Service Contract|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30e51278-00f0-2d10-89a9-ee3d76447650]
Appreciate your feedback.
Cheers,
SurajHi Fritz,
As requested following are the code samples-
For ISU System BAdI "ECRM_CRM_DOWNLOAD" as below:
X_CONTRACTPOS TYPE ECRM_CRMCONTRACT_DATA_POS Item Data (Enhanced)
XY_CONTRACTPOS TYPE ECRM_CRMCONTRACTPOS Transfer Structure: Contract Status from CRM to IS-U
XY_CONTRACTPOSX TYPE ECRM_CRMCONTRACTPOSX Transfer Structure: Contract Status from CRM to IS-U
TXY_CONTRACTCONF TYPE ECRM_CRMCONTRACTCONF_TAB Configuration Container
TXY_CONTRACT_STATUS_DATES TYPE ECRM_CRMCONTRACT_STATUS_DAT_T Status and Date Tab
METHOD if_ex_ecrm_crm_download~crm_download_fill_data_new.
*...Local data declaration
DATA : l_c_string1 TYPE string1,
ls_contractconf TYPE ecrm_crmcontractconf.
IF x_contractpos-partner IS NOT INITIAL AND
x_contractpos-everh-anlage IS NOT INITIAL.
SELECT SINGLE string1
FROM ettifn
INTO l_c_string1
WHERE anlage = x_contractpos-everh-anlage.
IF sy-subrc EQ 0.
MOVE : x_contractpos-partner TO ls_contractconf-partner,
x_contractpos-everh-contractpos TO ls_contractconf-ref_guid,
'OPERAND' TO ls_contractconf-attr_name,
l_c_string1 TO ls_contractconf-value.
CALL METHOD me->fill_container
EXPORTING
ip_contractconf = ls_contractconf
ip_value = ls_contractconf-value
ip_name = 'Operand'
CHANGING
li_contractconf = txy_contractconf.
ENDIF.
ENDIF.
ENDMETHOD.
VALUE( IP_CONTRACTCONF ) TYPE ECRM_CRMCONTRACTCONF Configuration Container
VALUE( IP_VALUE ) TYPE TEXT70 Error message text - long text of the error
VALUE( IP_NAME ) TYPE CU_CHARC Characteristic Name
VALUE( LI_CONTRACTCONF ) TYPE ECRM_CRMCONTRACTCONF_TAB Configuration Container
METHOD fill_container.
DATA : l_c_contractconf TYPE ecrm_crmcontractconf.
FIELD-SYMBOLS : <contractconf> TYPE ecrm_crmcontractconf.
l_c_contractconf = ip_contractconf.
READ TABLE li_contractconf ASSIGNING <contractconf> WITH KEY ref_guid = ip_contractconf-ref_guid
attr_name = ip_name.
IF sy-subrc EQ 0.
<contractconf>-value = ip_value.
ELSE.
l_c_contractconf-value = ip_value.
l_c_contractconf-attr_name = ip_name.
INSERT l_c_contractconf INTO TABLE li_contractconf.
ENDIF.
ENDMETHOD.
For CRM system BAdI "ECRM_DOWNLOAD" as below:
IP_MTR_TYPE TYPE /NPC/MTRTYPE Meter Type
IP_REF_GUID TYPE CRMT_OBJECT_GUID GUID of a CRM Order Object
CP_CS_TRANS_MSG TYPE BAD_BUS_TRANSN_MESSAGE Transaction Messaging BDoc
METHOD fill_container.
DATA: li_flds_upt_orderadm_i TYPE TABLE OF smog_sfldn.
FIELD-SYMBOLS : <orderadm_i> TYPE bad_orderadm_i_mess.
READ TABLE cp_cs_trans_msg-orderadm_i ASSIGNING <orderadm_i> WITH KEY guid = ip_ref_guid.
IF sy-subrc EQ 0.
APPEND 'ZZ_METER_TYPE' TO li_flds_upt_orderadm_i.
CALL FUNCTION 'SMO_SNDBITS_SETX'
EXPORTING
structurename = 'BAD_ORDERADM_I_MESS'
ddic = 'X'
TABLES
sfields = li_flds_upt_orderadm_i
CHANGING
sndbits = <orderadm_i>-sendbits
EXCEPTIONS
structure_not_found = 1
wrong_fieldname = 2
OTHERS = 3.
<orderadm_i>-zz_meter_type = ip_mtr_type.
ENDIF.
IS_CONTRACT_DATA TYPE ECRM_ISU_CONTRACT_DATA2
CS_BUS_TRANS_MSG TYPE BAD_BUS_TRANSN_MESSAGE Transaction Messaging Business Document
METHOD if_ex_ecrm_download~ecrm_download_fill_data.
DATA : ls_contractconf TYPE ecrm_isu_contractconf2,
ls_orderadm_i TYPE bad_orderadm_i_mess.
LOOP AT is_contract_data-t_contractconf INTO ls_contractconf.
READ TABLE cs_bus_trans_msg-orderadm_i INTO ls_orderadm_i WITH KEY guid = ls_contractconf-ref_guid.
IF sy-subrc EQ 0.
MOVE : ls_contractconf-value TO ls_orderadm_i-zz_meter_type.
CALL METHOD me->fill_container
EXPORTING
ip_mtr_type = ls_orderadm_i-zz_meter_type
ip_ref_guid = ls_orderadm_i-guid
CHANGING
cp_cs_trans_msg = cs_bus_trans_msg.
ENDIF.
ENDLOOP.
ENDMETHOD.
ENDMETHOD.
Cheers,
Suraj -
Replicating ISU Installation Facts into CRM Service Contract
Hi All,
Is the Replicating ISU Installation Facts into CRM Service Contract is standard way of working or we need to use some other approach?
Cheers,
SurajNick:
Installation Facts change in ISU does not correspond to any replication object in CRM. It is a task performed in a standalone environment. If you are talking about an integrated CR&B environment, there are several factors that one should consider while changing installation facts. For example, your client has to decide on which system to be the system of record for Contracts. If you consider CRM as the s-o-r for Contracts, may be you should advise them to initiate the corresponding CRM process to change installation facts from within CRM. We consider the configurable attribute on a product in CR&B as corresponding parameter of installation fact. Hence, you have to recommend a Contract Change which in turn will let you change the configurable attributes on a proudct for a given Contract. When this changed contract triggers the middleware and MDT, you can handle the installation facts. It is also worth advising your client the new features released by SAP in EhP1 of CRM around building rules on product configuration using BRR+ (in case you are using CRM 7.0 EhP1).
Ramana -
How to link Sales Order with Service Contract and then with Install Base?
Hi Friends,
1) I would like to know the integeration process from sales order to Service Contract and then with Install Base.
2) I couldn't see anything enabled in Service Tab in Order Lines, its grayed out. Is there any set up/profile option to get it enabled?
3) How can we create AR invoice from Service Contract?
Please let me know if anyone has idea on this.
Thanks in Adavance,
VaraDear Sid,
Thanks for your promt response.
Let me explain you what I did.
1) I have booked a Bill Only sales order which has one order line, mentioned it as Service Item and provided the same details in Service Tab in Order lines. Now Line status is "Fulfilled"
2) Then Submitted Workflow Back Ground Process for OM Order Lines and it has created an AR Invoice and closed the line
3) And then submitted "Service Contracts Order Capture Integration Program" from SErvice Contracts Responsibility and it completed normal.
4) Now I went in to Launch Contracts Window and queried with the sales order but couldn't see any contract created
5) Then I went in to Reprocess Order Window and found this order shows an error message as "Referenced Product not present in the Installed Base", then I tried to reprocessed it, but the same error message again.
Here I have few doubts:
1) Are the AR invoice and Service Contract Billing Invoices same?
2) In above scenario AR Invoice has been created, I would like to do the billing from SErvice Contracts and need to create an Invoice in AR? how can I do that?
because as you explained in one of my questions earlier, A Single Invoice can be created for the whole duration of the contract. I want to do that and trying for the same.
3) Regarding the above error message, how can I resolve it and create the service contract against that Order?
Thank you so much for your helpful answers.
Regards,
Vara -
BOM explosion in CRM Service Contract
Hello
We want have a BOM explosion working in CRM for service contracts
Here are the details :
We have replicated the materials from ECC to CRM. We are not maintaining any BOMu2019s in ECC.
The idea is that we maintain the BOM Structure in CRM only, as we donu2019t want to have the Items as a billable item in a position, only for information purposes (or later on for metering)
We have maintained the product category for the header product in CRM so we are able to maintain depended components
(Relationship type SCDEC S Dependent Components (DC) )
Not we are able to assign dependent component to the header material
Item category groups:
We understand that the standard item category groups that should be used are ERLA for the header product and LUMF for the Item product.
In order to support the same functionality for the given item category group , maintained at the product level in ECC we copied the same setting for the item category group from the standard to
our settings.
Standart
Tx type Item Cat Group item category structure scope
TA ERLA TAQ A single level Explosion of Structured Product
TA LUMF TAP A single level Explosion of Structured Product
So we have copied TAQ to ZTAQ and TAP to ZTAP.
ZS01 is a copy of SC (service contract)
Tx type Item Cat Group item category structure scope
ZS01 ZLEI ZTAQ A single level Explosion of Structured Product
ZS01 LEIS ZTAP A single level Explosion of Structured Product
But when we use a header product in the service contract, we cannot see the BOM is exploding.
We have also created some products in CRM with exactly the same Item Category groups as the standard and when we create a standard order (TA) in CRM, the BOM is NOT exploding.
Questions:
Is it possible to have the BOM setup only in CRM, like we try to do it?
Is it possible to use our own item category groups in CRM more is the functionality only working with ERLA and LUMF?
Is it possible to use the BOM Explosion in Service contracts as well ?
What steps are we missing to get the BOM explosion in CRM ?
Thank you for your help
FrankHi,
I did work on single level BOM explosion in a couple of projects. As per SAP note 549341 - FAQ: BOMs in the sales order, it is very much possible to explode multi-level BOMs.
Check this note and item category BOM explosion options.
<b>Do not forget to reward if it helps,</b>
Regards,
Paul Kondaveeti -
Hi Gurus,
Is there any FM or table which gives me the guid, while providing the service contract name or so ?
Regards,
ShahHi Shah,
The contracts are saved in CRMD_ORDERADM_H as I mentioned and you can read them from the table..
The function module which is used generally for reading the information (items,dates, anything you can think of..) related to the contracts is CRM_ORDER_READ..
You can read the information by inputting the Header or Item Guids..
Hope it helps
Please reward points if it helps by selecting a star.. -
Plant Replication CRM Service Contracts & Orders - ECC Debit Memo Requests
Dear experts
we are struggling with the assignment of a plant in SAP ECC Debit Memo Request Line Items created from SAP CRM documents - the Plant field on the Shipping tab stays empty. This refers to Service Products.
We use CRM 7.0 (however, same problem exists in 2007) with ECC 6.0 with the following main relevant settings:
- Service Products do not have a Plant assigned in their Distribution Chain data
- Table CRMC_SEORG_R3MNP contains a correct mapping of service organizations to plants
- Table OFIC_PLANT_SVC does not contain relevant settings, as we assume this table as not relevant in this scenario
This is the end status after some trial&error sessions - we did not find a successful combination of settings amongst the above.
Thanks in advance & kind regards
ChristianShould it be a problem related to the leading zeros?
-
How to map service contract data from ecc to crm
Hi Experts,
Please help me,how to map service contract data from ecc to crm system.
is there any perticular process.please let me know.
thanks in advance..Hi Srinivasulu,
Create the service contract type of ECC and also item categories under it in ECC in CRM. Map the number ranges.
Check the Partners mapping from R/3 to CRM and that will be all.
I tried but in CRM in the transaction type internal number range is mandatory. So, if you create service contract in ECC with one number it will replicate to CRM but with different number. But you can see ECC number under the transaction history in CRM.
Good Luck.
Sharath. -
Service contract ITEM extractor
Hello,
I found the following extractors:
0CRM_SRV_CONTRACT_H: CRM Service - Contract Header Data
0CRM_SALES_CONTR_I: Sales Contract Item
The first one gives the SERVICE contract header data, whereas the second one gives the SALES contract item data.
Now, I'm a little bit confused: Should there not be a Service contract item data extractor and a Sales contract header extractor as well?
Are the service and sales contract in fact the same techincally?
Regards,
RikardHI Rikard,
the datasource 0CRM_SALES_CONTR_I also provices Service Contract items , you can check the standard DSO
0CRM_CNT1 - Service Contracts (Item Data) which gets data from 0CRM_SALES_CONTR_I ,
Note that 0CRM_CNT2 - Sales Contracts (Quantity and Value) also gets the data from the same datasource
You check the ABAP logic in the start rotuine for both DSO s to understand how the data is differentiated using the
Object type
But there is no seperate datasource for Sales Contract header
Regards,
Sathya -
we have a senario , where we create a service contract for a particular Item Number to a customer and we need to buy the a same contract from another Company
we are creating service contract using va41 with order type WV for a material type DIEN and Item category LIES. But if we want trigger purchase req for that particular Item then we need to change the item catergory to BANS (with customer info -drop shipment )
When i tried using Item Category BANS the order type WV is not taking accepting
Is there any other way to solve this issue by automatic triggering the purchase req when a service contract is createdHi Shiva,
As such the system cannot show you how many times the contract was renewed. It can only show you that the renewal date is approaching and you need to renew it. There is a specific reason behind the fact that the sytem need not renew the contract automatically. The system does not know whether a particular contract needs to be renewed or not. This has to be manually informed to the system.By not making the renewal automatic the ystem is actually giving you the flexibility that you can either close the contract or renew it.
Now if you want to know how many times a particular contract was renewed then you will have to do it thru queries only because no regular report is available.
Nagesh -
Web Service to Create a Document Info Record with attachments (e.g. PDF)
Hello guys,
we are looking forward to create a Web Service that should be able to create a Document Info Record on SAP ERP Application Server. As we don't have installed the SAP Standard Web Services on our SAP ERP ECC 6.0 system we will manually create a Web Service with the help of the standard BAPI_DOCUMENT_CREATE2.
The current problem is that the Web Service based on the Standard BAPI can not upload Files (PDF or Word files) from the Users Client PC to the Application Server.
Is there a possibility to Create a Web Service that can handle files and create DIRs on application server?
Thanks a lot!!
Regards,
ChristianHello Natallia,
Well, in this case you don't really need the CV01N transaction. This represents the user interface (UI), and you only need an interface (that is, an API), which in SAP is represented by a BAPI
I'm not familiar with CRM, but I assume that at some point when saving a Service Contract, you have a BAdI, where you can check the status and insert some custom code.
So, all you have to do is call BAPI_DOCUMENT_CREATE or BAPI_DOCUMENT_CREATE2 (if available on your installed version), with the required attributes (this can be master data, classification, custom data...). After this function is called successfully, you should receive the document key (DOKAR, DOKNR, DOKVR, and DOKTL). Which you can also save in the Attachments tab.
Hope this helps,
Tudor -
Issue While Terminating a Service Contract with future date
Hi CRM Gurus,
We are in Oracle EBusiness Suite version R12 (12.1.3) and implementing service contracts for a client.
Please help us with the following issue that we are facing while terminating a service contract line with future date (end of the month).
Example :
A Contract 123 with 10 months of duration (Start Date:01-JUL-2013 and End Date: 30-APR-2014) has a service line 1.0 with unit price as $50 for a period of 10 months .The billing schedule is set for 10 months with each month for $50.
The create main billing is run for the month of Jul 2013 and Aug 2013 and is sent to AR.Now we want to terminate the contract line with 30-Sep-2013 as termination date without any credit back to the customer so that we want to charge for month of Sep as well for $50.
When we give 30-Sep-2013 as termination date and terminate the line, the billing schedule refreshes with $50 for Jul1-Jul 31 and $50 for Aug1-Aug31 and $48.39 for Sep1-Sep 29 instead of 30-Sep which is the termination date that we see on the line.
The requirement is that we want to have the billing for $50 even for the month of Sep,but the system only calculates for $48.39(which is 1 day minus) for the month of Sep. When we give Oct 1 as termination date ,then we get the schedule dates and amounts correctly i.e. 01-Sep to 30-Sep for $50.
How do we achieve to bill for $50 when we put 30-Sep-2013 as termination date ? I see that the regular termination process does not consider timestamp while providing the termination date.
Is this a bug or is there a patch for this or is there a workaround for this other than providing 01-Oct as termination date ?Please help.
Regards,
Sandeep GorlaUpdate the Ar Interface Table with value 50$ for that record, before the Invoice gets created.
-
Error during Replication of Service Contracts from CRM to ECC
Hi,
I'm encountering a problem when replicating a Service Contract from CRM (I'm using SAP CRM 2007) to ECC.
I insert a first Item which is not relevant for pricing (let say, product 123)
I Insert a second Item relevant for pricing, with reference to the previous one (let say, product 456)
I release the Items and I save the contract
When I try to go in edit mode in the Contract, an error appears:
An error has occured in the system DE1CLNT200 while copying the document
Message no. CRM_ORDER_MISC 020
Diagnosis
Errors have occured while transferring the document into another system. Remove the error messages from the enclosed log.
Transmission log
u2022 SALES_HEADER_IN has been processed successfully (Notification S V4 233)
u2022 Material 0 does not exist in plant ZX01 / country CH (Notification E V1 391)
u2022 Error in SALES_ITEM_IN 000101 (Notification E V4 248)
u2022 Sales document was not changed (Notification E V4 219)
It seems that the program does not recognize the product (the error message says "Material 0", not "Material 456") ...
Any idea?
Thanks in advance,
AndreaShould it be a problem related to the leading zeros?
-
Service Contracts with billing plan not updating debit memo request in ECC
For service contracts with billing plan, we cancel the line items and set the user status at header to "cancelled" and also set the cancellation date (under Cancellation Tab) at the header as well as item level which delete all items in the DMR in ECC (which are not yet billed). When we do this, it works perfect for most of the time and in some cases DMR items are not updated in ECC and it is billing. When I checked in CRM, the billing plan items are updated based on the cancellation date.
Experts appreciate your help on this issue.
Thanks,
George.This is resolved by the note 1008663
-
BOM IN CRM Only for Service Contract
Hello
We want have a BOM explosion working in CRM for service contracts
Here are the details :
We have replicated the materials from ECC to CRM. We are not maintaining any BOMu2019s in ECC.
The idea is that we maintain the BOM Structure in CRM only, as we donu2019t want to have the Items as a billable item in a position, only for information purposes (or later on for metering)
We have maintained the product category for the header product in CRM so we are able to maintain depended components
(Relationship type SCDEC S Dependent Components (DC) )
Not we are able to assign dependent component to the header material
Item category groups:
We understand that the standard item category groups that should be used are ERLA for the header product and LUMF for the Item product.
In order to support the same functionality for the given item category group , maintained at the product level in ECC we copied the same setting for the item category group from the standard to
our settings.
Standart
Tx type Item Cat Group item category structure scope
TA ERLA TAQ A single level Explosion of Structured Product
TA LUMF TAP A single level Explosion of Structured Product
So we have copied TAQ to ZTAQ and TAP to ZTAP.
ZS01 is a copy of SC (service contract)
Tx type Item Cat Group item category structure scope
ZS01 ZLEI ZTAQ A single level Explosion of Structured Product
ZS01 LEIS ZTAP A single level Explosion of Structured Product
But when we use a header product in the service contract, we cannot see the BOM is exploding.
We have also created some products in CRM with exactly the same Item Category groups as the standard and when we create a standard order (TA) in CRM, the BOM is NOT exploding.
Questions:
Is it possible to have the BOM setup only in CRM, like we try to do it?
Is it possible to use our own item category groups in CRM more is the functionality only working with ERLA and LUMF?
Is it possible to use the BOM Explosion in Service contracts as well ?
What steps are we missing to get the BOM explosion in CRM ?
Thank you for your help
Frank
Edited by: Frank Foerstner Foerstner on Dec 9, 2011 12:34 PMThanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
break-point.
*DATA : i_ce_goodsmovement TYPE REFERENCE
ALM_ME_CUSTOMER_ENHANCEMENT.
DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
*DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
CALL METHOD lr_badi_goods_movement->create
EXPORTING
ce_goodsmovement = ce_goodsmovement
IMPORTING
user_data = ls_user_data
custom_user_data = ls_ce_user_data
goods_movement = goods_movement
changing
return = return[].
CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
TABLES
return = return.
endmethod.
Please help me to get the data in this method. How do I call this.
Maybe you are looking for
-
i live in indonesia, and siri seems to not be able to locate anything, why is that? but through gps maps, it works fine. and when i tell siri to call anyone on my contacts, it says its not able to, but when i first bought it, it was fine. why was t
-
For scrolling, I don't know how to put the UI scroll bar for scrolling a movie clip. And for buttons, I need a script that can open a specific folder in a new window when I press on it.
-
Maintain "Remarks" field in Material Receiving Notes
Hi All, Can we maintain the "Remarks" field in Material Receiving Notes? Kindly advise. Thanks in advance. rob
-
How would I go about installing the BT Homehub myself? I/We have been **bleep**ed over about 5 times now by BT and we're considering switching already. (If you can consider switching, having BT taking your internet line 2 weeks before a technican is
-
Hi all, I have a problem !! Here is the situation: I installed the example application thats come with sso. when I go to http://ka21m/jsp/papp.jsp the application redirect me to the login screen. When I login I get send to http://ka21m/jsp/ssosignon.