Steps to create a generic datasource from SAP CRM
Dear Forum,
Could you please provide me with the steps to create a generic datasource from SAP CRM
Thanks for you time and efforts
Regards,
Hi,
Initially create a view or identify the table to create generic extractions, remaining process is same in all data bases such as CRM........
GENERIC EXTARCTIONS:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/generic%2bextraction
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
Generic Delta:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Assign points if these are useful.
Rgs,
I.R.K
Similar Messages
-
How to create a generic datasource from function module?
Dear experts,
I have created a generic datasource from function module. For this extrator, I created a function module and a structure.
I have now some difficulties to continue:
In this function module, i get data from different transparent tables. Then i put these data into an internal table.
I just don't know what is the relatioin between the structure i defined and this internal table.
I should make "iTab structure AA" in the source code?
ThanksHi..
check this
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " XXXX " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
.Create a function group .
. Structure ZTXXXX
Create function module (i.e. ZTESTXXX) .
. Create the data source using transaction (RSO2).
. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter .
Test the datasource in R/3 using transaction RSA3.
Transfer the data source to BW System and replicate it in the BW-System.
Message was edited by:
shiv -
Steps to enhance a datasource from SAP CRM
Dear Forum,
Could you please provide me with some document to enhance a datasource from SAP CRM. Is it any different from enhancement of datasource from ECC datasources,
Thanks and regards,Hi,
please look this:
Business Intelligence How-to Guides for SAP NetWeaver 2004 [original link is broken]
or here: How-to Guides for SAP NetWeaver Business Warehouse 7.0 [original link is broken]
Creating a datasource for generic extraction
regards
CSM Reddy -
Error creating a generic datasource
Hi Experts,
I am trying to create a generic datasource from table T549Q. I get following error message.
Extraction from 'pool tables and cluster tables is not permitted'. Any workaround for this issue?. I appreciate your feedback on this issue.
Thanks,
Varun.You should use the FM Extraction to extract data from cluster table.
See the below link
Generic DS
Regs
Gopi
Assign points if it helps... -
Creating a Generic Datasource using Function Module
Hi Guru's
We are tryin to create a Generic datasource using function module, we have found few old how to guides for doing the same but it is not effective and need to be altered. Can anyone suggest me the latest step by step procedure to create the above, also if you have the how to guide kindly paste the link as it will be a great help at this point.
Thanks in advance
Regards
LiquidHi,
Please goto the Following links :-
PDF
1) http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c062a3a8-f44c-2c10-ccb8-9b88fbdcb008?quicklink=index&overridelayout=true
2) http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
SAP Forum
3) Re: DataSouce based on FM
4) http://forums.sdn.sap.com/post!reply.jspa?messageID=10050614
5) https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
6) Re: Generic datasource with functional module
7) Generic Extractor (FM based) - Delta Enabled
Regards
Obaid -
Problem in creating a generic datasource with infoset
Dear Expert,
I have to create a generic datasource with infoset. I linked the infoset with a test program below. In the program, I have one selection option, which is s_order. After creating an infoset and a datasource, this selection option 'SELECT_S_ORDER' is added to my extract structure. However, after try filtering with this SELECT_S_ORDER, it doesn't filter data at all. Why? I want to filter data with my s_order.
REPORT ZBI_DS_TEST.
tables: vbak.
* DATA
field-symbols: <vbak> type vbak.
data: t_vbak type table of vbak,
w_vbak type vbak,
t_vbak2 type table of vbak,
w_vbak2 type vbak.
* SELECT-OPTIONS
selection-screen begin of block b1 with frame title text-001.
select-options: s_order for vbak-vbeln.
selection-screen end of block b1.
start-of-selection.
* <Query_head>
perform sub_select_data.
loop at t_vbak into w_vbak2.
move-corresponding w_vbak2 to vbak.
* <Query_body>
endloop.
*& Form sub_select_data
* Select data
FORM sub_select_data .
select *
into table t_vbak
from vbak
where vtweg = 'IP'.
ENDFORM. " sub_select_dataWhat do you mean by linking program with infoset?
Do you get the field in your RSA3 Tcode? -
Generic Datasource on SAP Infoset CFM_POSITIONS
Hi All,
I've created a generic datasource based on ECC infoset CFM_POSITIONS (actually ZCFM_POSITIONS after implementing OSS NOTE 1051893). In this infoset, that is build on top of Logical Database FTI_TR_POSITIONS a lot of variables are created standard.
When I try to test my generic datasource I need to fill a lot of variables and after executing I get a new pop-up screen 'Generated Query' where I still need to fill some other variables.
After doing that I get some data out of the datasource (RSA3).
When I try to execute the extractor in BW, I get error messages and the 'generated query' screen doesn't pop up. (Error occurred in the data selection)
Is there anybody who has allready implemented a generic datasource on top of this infoset/logical database and who is getting data into BI?
Thanks for your help.Hi Raf,
Thanks for you reply.
I removed the extra selections as explained in the note, but still the extra selection page pops up (in the extractor checker) that can not be used during BW extraction.
Even though SAP especially created a note on this one (removing the extra selections) for generic datasources , it still doesn't seem to be possible to create a working extractor on top of it
I will try the solution you proposed to use a custom abap based on the logical database, but this will be time consuming I fear...
Thanks again for your help. -
Problem with Generic datasource from function
I developed generic datasource from function module.
But I have problem with the select options.
First one is order number OBJECT_ID type char 10. When I input Object_ID = 45755 , no data selected.
When input 0000045755, one data record selected.
But I called functiion CONVERSION_EXIT_ALPHA_INPUT to conevet the input data. And I found 45755 was converted to 0000045755, but no record selected.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'OBJECT_ID'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_OBJECT_ID.
APPEND L_R_OBJECT_ID.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-high
IMPORTING
OUTPUT = L_R_OBJECT_ID-high
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-low
IMPORTING
OUTPUT = L_R_OBJECT_ID-low
ENDLOOP.
Another problem is CREATED_AT, which type is DEC 15, how could I handle it ? input is yyyymmdd, I tried to add '000000', but can't select any data.
Thanks for any help.code is :
FUNCTION ZACTIVITY_PLAN_PARTNER.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZACTIVITY_PLAN_PARTNER OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
Example: DataSource for table SFLIGHT
TABLES: CRMD_ORDERADM_H.
Auxiliary Selection criteria structure
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
DATA: BEGIN OF ACTIVITY,
OBJECT_ID type CRMT_OBJECT_ID_DB,
PROCESS_TYPE type CRMT_PROCESS_TYPE_DB,
OBJECT_TYPE type CRMT_SUBOBJECT_CATEGORY_DB,
CREATED_BY type CRMT_CREATED_BY,
CREATED_AT type CRMT_CREATED_AT,
END OF ACTIVITY.
DATA: ZACTIVITY LIKE TABLE OF ACTIVITY WITH HEADER LINE,
Zorder LIKE TABLE OF ZORDER_S WITH HEADER LINE,
d_start type c length 15,
d_end type c length 15
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
counter
S_COUNTER_DATAPAKID LIKE SY-TABIX,
cursor
S_CURSOR TYPE CURSOR.
Select ranges
RANGES: L_R_OBJECT_ID FOR CRMD_ORDERADM_H-OBJECT_ID,
L_R_CREATED_AT FOR CRMD_ORDERADM_H-CREATED_AT,
L_R_date for ZACTIVITY_PLAN_PARTNER-ZPLAN_DAT.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZACTIVITY_PLAN_PARTNER'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE. "Initialization mode or data extraction ?
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'OBJECT_ID'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_OBJECT_ID.
APPEND L_R_OBJECT_ID.
ENDLOOP.
if L_R_OBJECT_ID-option is initial.
L_R_OBJECT_ID-option = 'EQ'.
L_R_OBJECT_ID-sign ='I'.
endif.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-high
IMPORTING
OUTPUT = L_R_OBJECT_ID-high
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-low
IMPORTING
OUTPUT = L_R_OBJECT_ID-low
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CREATED_AT'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_CREATED_AT.
APPEND L_R_CREATED_AT.
ENDLOOP.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT OBJECT_ID FROM CRMD_ORDERADM_H
WHERE OBJECT_ID IN L_R_OBJECT_ID
AND CREATED_AT IN L_R_CREATED_AT and
PROCESS_TYPE EQ 'Z220'.
ENDIF. "First data package ?
Fetch records into interface table.
named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION. -
Creating an RDI file from SAP script
Hello All,
I would like to create an RDI file from SAP Script.
Please can anyone let me know how do we do it programmatically.
I am aware of the option of setting RDI parameter to 'X'.
However my requirement is to allow user to have a print preview option and simulatenously create RDI file .
Thanks and Regards
AmrutaSee:
http://discussions.apple.com/message.jspa?messageID=11535851#11535851 -
How to create the generic extractors in sap R/3?,pabitra
Hi,
How to create the generic extractors in sap R/3?
Though it comes under cross application and the types of generic extractors are functional module ,db view,infoset query etc.Do u think the g.e can be built of one of the is types.plz tell correctly
Advance thanks
regards
pabitraHi,
this is for DB view ,
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
this is for infoset query,
http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb43b2455611d189710000e8322d00/frameset.htm
Good day,
regards
Arun -
Create a registry key from SAP
Hi all,
I am trying to create a registry key from SAP. The code i am using is as follows.
data: h_gui type ole2_object.
data: GuiXT_active type I.
data: root type I value 1.
*// Connect to desktop object
Create Object h_gui 'SAPINFO'.
Call Method OF h_gui 'RegCreateKeyEx' = GuiXT_active
Exporting
#1 = root
#2 = 'SOFTWARE\SAP\SAPGUI FRONT\SAP FRONTEND SERVER\CUSTOMIZE'
#3 = 'GUIXT'.
But the key is not getting created, Am i missing something? Please help.
Regards,
Hari.Java applets run in a "sandbox" so to speak... so you
can't do this :)
If you really really want to, you can purchase a
license from Verisign, sign your applet and then (try
to) turn off all of the security restrictions in your
applet and then do whatever you want...I believe you can also change the permissions file - on each client. -
Creating BADI for datasource enhancement in CRM.
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Prasad Reddy,
This are the available badis and exits for this t.code:
Enhancement/ Business Add-in Description
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD
BADI_MATERIAL_CHECK Enhanced checks for material master table
BADI_GTIN_VARIANT
BADI_EAN_SYSTEMATIC
o.of Exits: 3
o.of BADis: 11
Find the Exact exits and badis for ur requirement.
How to fine the exact badi:
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any
transaction
Rgds,
P.Naganjana Reddy
if you follow this 7 steps, you will find a suitable BADI. -
Regarding Extracting Data from SAP CRM
Hi,
1) What are steps to extract data fron SAP CRM? I heared that we get different types of errors while extracting data from SAP CRm to BW when compared to BW
2) From which tables BW system is getting data when we extract data from SAP CRM Lead management, Opportunities, Activities and CIC?
Can anybody please let me know the answers for these ..........
Thanks in Advance,
Sowji
[email protected]Hi Sowjanya,
Pls ch this link:
regarding bw crm extraction
CRM extraction
CRM Extraction
http://help.sap.com/saphelp_nw2004s/helpdata/en/be/92fb3b28904f73e10000000a114084/frameset.htm
http://help.sap.com/bp_biv335/BI_EN/html/BW/SalesAnalysis.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f2910623-0c01-0010-de8f-d1926988a986
http://help.sap.com/bp_biv135/html/bw.htm
http://help.sap.com/bp_biv135/html/BW/SalesAnalysis.htm
http://help.sap.com/bp_biv235/BI_EN/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
http://help.sap.com/bp_biv235/BI_EN/index.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
http://help.sap.com/bp_biv235/BI_EN/html/BW/CRMAnalytics.htm
http://help.sap.com/saphelp_crm50/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
Steps:
1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
2) Activate the Business Content DataSources (tcode RSA5).
Select/enter the application component and choose Execute (F8).
To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
All BW-Adapter metadata is considered when versions are compared:
Header information (Table SMOXHEAD)
Mapping information (Table SMOXRELP)
Global selection conditions (Table SMOXGSEL)
Attribute key fields (Table SMOXAFLD)
Datasources used in CRM-BW extraction are:
0crm_sales_act_1,
0BBP_STSMA_TEXT
0CRMFOCST_TEXT
0CRM_ACCPLN_ATTR
0CRM_ACCPLN_TEXT
0CRM_BILL_BLCK_TEXT
0CRM_CANC_PARTY_TEX
0CRM_CANRSN_TEXT
0CRM_CATEGORY_ATTR
0CRM_CATEGORY_TEXT
0CRM_CLASS_TEXT
0CRM_DECOTP_TEXT
0CRM_DECO_TEXT
0CRM_DIRECT_TXT
0CRM_ECROPT_TEXT
0CRM_FINCLASS_TEXT
0CRM_ITM_OBJ_TYPE_T
0CRM_ITM_TYPE_TEXT
0CRM_JRGUID_TEXT
0CRM_OBJ_TYPE_TEXT
0CRM_OPGUID_TEXT
There many more!
Check the datasources in rsa6 of crm system under CRM node. Documentation is available in SAP help.
*pls search SDN For more info*
*pls assign points if info is useful*
Regards
CSM reddy -
How to Create Customer Contact data in SAP CRM
Hi All,
Would want to create Customer Contact data in SAP CRM, could please guide me step by step that how can i create the customer contact data in SAP CRM?
Regards
AvinavHello Avinav,
In CRM 6.0 and 7.0 GUI is no more used, you can use WEB UI and login using SALESPRO role to create a contact.
1. Logon to CRM web UI
2. Choose Create Contact from the Navigation bar
3. Enter all the data - Title, first name, last name, account id,
street, stree2, street3, street4, street5, city, postal code, email,
mobile no and website.
4. Press the Save key.
Hope it will help! Please award points in case this helps!
Best Regards
Lata -
Run BW datasource in SAP CRM to get a flat file
Hi all,
we need to extract data from SAP CRM into an Oracle DB.
Because we need to send data according to a delta procedure, we would produce the file running BW CRM datasources (eg. 0CRM_SRV_PROCESS_H). We do not have a BW in the system landscape currently.
Could you please suggest how could we to run the BW datasource just as an interface to create the file?
many thanks in advance,
S.People often don't know that they own a BI (BW) system. It's delivered as default with NetWeaver (basis 7.0). Another way to know is to check if RSA1 transaction exists. You may have to configure a few things.
If you don't have it, you may run the extractor via RSA3 for test, and run the associated function module from a custom program, and save result anywhere you want.
Maybe you are looking for
-
Not able to get correct BIP report output in case of more than 6000 records
Hi, When we are trying to generate the BIP report in siebel 8.1.1, for the list of records whose count exceeds 6000 records, we are gettin a error as "Error <?> invoking method "<?>" for Business Service "<?>"(SBL-OMS-00203) W have done all the optim
-
Satellite Pro M10 will not boot again and comes up with the error message
My Toshiba Satellite Pro M10 notebook will not boot again and comes up with the error message "load error" when I push the power button. The problem arised after installation of "symantec system works" and trying to restart windows XP professional to
-
Why won't my iPad charge?
I have not been able to find this problem on any forum anywhere. After the 5.1.1 OS update my iPad quit charging or syncing. There is clearly a problem with the connector port. I thought it was eventually going to run out of battery and that would b
-
Every time I get a new email the phone beeps, even though the option "E-mail alert tone" in the meeting profile I am using is set to "off". Thanks in advance
-
Confused about schema..
I'm currently working on a project using VB 2010 Express and Oracle 11g XE. On my Oracle My SQL Developer, I am currently logged on as 'user X' and I created three tables. All of which are just listed on the 'tables' tree. Does it mean that 'user X'