Generic Data Source Based On Function Module (Delta capable)
Hi,
My requirement is to develop a Generic Extractor based on Function Module (Delta capable). As I already found many threads explaining this concept, but most of them discussing FM RSAX_BIW_GET_DATA_SIMPLE with Extraction Method F2. There is another FM RSAX_BIW_GET_DATA which, one can use to build delta enabled extractor.
Although I do have some doubts:
what is the E_T_SOURCE_STRUCTURE_NAME ?
read table i_t_select into l_s_select with key fieldnm = 'PGMID'. Use of this code ?
Templet only showing
case i_updmode.
when 'F'.
when others.
if 1 = 2. message e011(r3). endif.
log_write 'E' "message type
'R3' "message class
'011' "message number
i_updmode "message variable 1
' '. "message variable 2
raise error_passed_to_mess_handler.
endcase.
i.upmode as F, D(delta) is not included, do i need to include this?
Can someone help to solve this. Appropriate points will be allotted to helpful suggestions.
Edited by: Debjit_Singha_86 on Jul 23, 2011 8:35 AM
Try using following piece of code;
READ TABLE g_t_select INTO l_s_select
WITH KEY fieldnm = 'Date Field for Delta'.
IF sy-subrc EQ 0.
SELECT SINGLE *
FROM ROOSGENDLM
WHERE oltpsource EQ 'DataSource Nameu2019
AND slogsys EQ lw_slogsys.
IF sy-subrc EQ 0.
lw_date = roosgendlm-deltaid+0(8).
lw_time = roosgendlm-deltaid+8(6).
ENDIF. " IF SY-SUBRC EQ 0.
ENDIF.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT * FROM TABLE
WHERE CPUDT GE lw_date AND
CPUTIME GE lw_time.
ENDIF.
Table R00SGEMDLM stores the date and time data was last extracted from a data source.
Alternatively, you can also try using the i_updmode.
When 'F'.
SELECT * FROM TABLE (without any where clause on last change date)
When 'D'
SELECT * FROM TABLE
WHERE CPUDT GE lw_date AND
CPUTIME GE lw_time.
These are just suggestions. Try these out, I hope it helps.
Regards,
Gaurav
Similar Messages
-
Problem with R/3 Data Source based on Function module in SAP BI
Hi,
We have a data source based on functional module. When we load data from R/3 to BI we face the following error.
" No end-confirmation arrived in the Warehouse from the source system."
We are getting data but due to no end confirmation from the source system, the load become timed-out and status becomes "RED". When we change the status to be "GREEN" and proceed tha load further, load is fine.
Please suggest us a suitable solution.
Thanks in Advance,
GeethaHi Geetha Devi Ramalingam.
I faced the same problem since yesterday. I just resolve the issue.
So here is my solution :
try this code :
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.
if you add your
bold
IF sy-subrc <> 0.
CLOSE CURSOR s_cursor.
RAISE no_more_data.
ENDIF.
bold
than the sy-subrc may be equal and than your CLOSE CURSOR s_cursor. will have no effect
it work for me hope it will for u
Hard luck!
Salah
Edited by: idrissi salaheddine on Jan 19, 2012 12:24 PM -
Error in generic data source by using Function Module
Hi Guru's,
I'm wokring generic extraction with Function module.When i'm saving my data sources iam getting errors stating that
UNITS FIELD "WAERS" FOR FIELD "WKGBTR" OF DATA SOURCE XXX
UNITS FIELD "OWAER" FOR FIELD "WOGBTR" OF DATA SOURCE XXX
Thanks in advance..........
Regards,
Vijay
Edited by: vijay m on Feb 1, 2008 5:03 PMKhaja,
Units field WAERS for field WKGBTR of DataSource xxx
is hidden
Units field OWAER for field WOGBTR of DataSource ZBWVIEW is hidden
This is the msg which i got........ -
Data source enhancement thru function module
Folks,
I am trying to figure relation between data source enhancement, package, function module etc?
I see a function module where enhancement is done. when I go and try to see master data exit EXIT_SAPLRSAP_0002 ... I see include but I do not see reference of function module in this include?
All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap* - include inside and function module attached?
Can somebody give very simple connection for all these components?
Thanks,
-SMHi,
All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap - include inside and* function module attached?
Please note that for enhancing certain standard objects for meet customer needs, SAP provides different customer exits where we can code as per our requirements.
These customer exits starting with EXIT********* will be grouped by Enhancements e.g. RSAP0001
Thanks for your response. In RS02 it is clear that we can mention function module name for data source - that is good for generic extraction. But what do we do when we are enhancing SAP extractor?
When you want to enhance SAP extractors, you go for customer exits.
EXIT_SAPLRSAP_001 for Transactional datasources
EXIT_SAPLRSAP_002 for Master datasources
EXIT_SAPLRSAP_003 for Text datasources
EXIT_SAPLRSAP_004 for Hierarchy datasources
in se37 screen in table tab - sometime we see extract structure - that will establish which functional being called for which data source, but in my case - I do not see anything in table tab?
If your datasource is function module based, then the function module which is mentioned in RSO2 for your datasource would surely have e_t_data in tables tab with its associated type.
Only if the datasource is standard one and is processed by function module e.g. 2lis_18_i0notif which is processed by MCEX_BW_LO_API function module, these would not have associated type mentioned for them. To get their structure, you can go to RSA5/ RSA6 -
Generic Data source based on Infoset
Hi,
I have a Generic data source based on Infoset. i need hostorical data from this data source, when i extract it is given me only current data. Infoset based on PNPCE logical database, in the Infoset query (ECC6) when i select "All" it gives all data, but when i extract with RSA3 with perticular personal number it just give me 1 record,
Please help me to fix this problem.
Thanksi think you mean to get data relevant to a date. have you setup the begda/enda as selection parameters in the generic datasource? that would be the only aside from a custom program to first fetch the data and then send it to bi.
with the dates, you can pull it with the relevant date range setup in the infopackage -
Generic data extractor using a function module
Hi All,
I want to create a generic data extractor using a function module within the BW system. i.e. the extractor will run in BW and and store the data in a cube( in BW). No R/3 is invloved. I proceeded as follows:
1. Created a structure through se11.
2. Created a function module. But while defining "E_T_DATA" in the "Tables" section of the function module, I am getting the error "TABLES parameters are obsolete". I defined as follows:
E_T_DATA TYPE ZBW_EXTRACT
ZBW_EXTRACT is the name of the structure.
What should i do in this case ?
Thanks,
SatyaHello Satya,
The message "TABLES parameters are obsolete" is just a warning and not an error. The structure of the interface is strict (defined by SAP). You should opt to proceed even if you receive the warning.
Hope this clarifies. -
Data source Enhancement with Function Module
Hi all!
I have a requirement like I have to enhance my Generic Data source.
Let me make it clear!
I have 10 field in R/3 which I am able to get into extract structure using Generic Data Source on the corresponding Table.
I have another field on my extract structure, say ZEXMFLD1 which is updated by a function module ZZ_FUNC_MODULE_SAMPLE.
I came to know that Data source Enhancement can be done, but don't know how.
Request your guidance in this. Can u please let me know how I can achieve this?
Thanks,
SriHi Sri,
You can enhance generic datasources also.
For that you have to use below function modules based on your datasource type.
EXIT_SAPLRSAP_001 - Transactiona data
EXIT_SAPLRSAP_002 - Master
EXIT_SAPLRSAP_003 - text
EXIT_SAPLRSAP_004 - Hier
First check in CMOD(TCODE) whether component RSAP0001 is assigned to any project. If it is not assigned to any project(fresh system), assign it to a project by creating it.
Ex. ZBW. If it is already assigned, go SE37.
For transaction data go to function module EXIT_SAPLRSAP_001(Trans data) and start your logic.
CASE i_datasource.
WHEN 'your data source name'.
call you Function module - CALL 'ZZ_FUNC_MODULE_SAMPLE'.
pass the imported value from above FM to c_t_data.
close case with ENDCASE.
Let me know if you need more info.
- Kalyan. -
How to create a generic data extractor using standard function module
Hi,
I have to generate report based on Function module(standard FM),client know only Fm Name n they have given FM Name n asked reports based on that, so can any one give me steps to create DS based on that.
Thanks,
Swapnacheck this blog
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
and this pdf:
Generik extraction: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
Generic delta:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Edited by: Aduri on Dec 17, 2007 4:04 PM -
Delta field for generic data source based on view EKBE
Hello,
I am creating a generic datasource based on table EKBE. Can anyone please tell me what field should I use for delta. Is it BUDAT(Posting Date in the Document) or CPUDT(Day On Which Accounting Document Was Entered).
Thanks for the help.
PraveenHello Ajeet Singh,
Thank you very much for the reply.
I will go ahead with CPUDT.
BUDAT is the date which can be changed. I can change the date in system and chances are it will not pick in delta.
CPUDT is the date on which document was created/changed.
Thanks,
Praveen -
Simulation Vs Real in Generic Data Source
Hi ,
I have got a generic data source based on Function Module. In the FM it is actually updating some mapping tables. I would like to update those tables only when extractor is actually executed using Infopackage or using DTP(Direct access). But don't want to update other tables when data source is executed using RSA3 simulation mode.
Is there a way to find whether data source is run in simulation or real in the Function Module?
I found 0REQUID is getting value as TEST when executing data source in simulation (RSA3), but I can't hard code just this in my function module as this can be changed to any thing in future.
Regards,
RameshThanks Vikram for your promt reply.
Lets wait for other experts comments on this and will see if there is any work around. -
Generic Data source on Function module
Hi All,
We are working on generic data source based on a function module for the first time and we do not know how to start with.
Our requirement is to fetch mode of communication field from SRM. We have identified a function module in SRM which does this job. But when we try to create a generic data source on this function module it is throwing an error.
Are the import parameters for a general function module and function module for a BI generic data source different?
If so could someone please guide us in creating the function module so that we can create a generic data source on top of it.
The function module should serve the same purpose as the function module BAPI_BUPA_ADDRESS_GETDETAIL.
Thanks,
ShravaniShivani,
My suggestion would be creating Z-program to store the values in a custom table and use this for extraction.
Further if still want to use the FM itself, post the error details you are getting.. or try to analyse the FM and find the base table so that you can directly use in extraction.
Hope this helps,
anil -
Error while creating Generic data source using FM
Hi Experts,
I try to create a generic data source using the Function Module via the transaction RSO2. I got the following error messages.
" Das Einheitenfeld CURR des Feldes ZPKZA1 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
" Das Einheitenfeld CURR des Feldes ZPKZA2 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
" Das Einheitenfeld CURR des Feldes ZPKZA10 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
"The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide".
for all 10 fields of type CURR.
How shall i handle this issue..........any suggestions please........
thanks in advance
cheers
sailekhaHi,
Are your CURR fields refereded to a currency field of your structure?? Maybe the problem is that the field containing the currency is refered to other table/structure and it has to be one of your structure fields.
Hope this helps,
Regards,
Carlos. -
Need Info on RDA-enabled data source based on FM
Hi,
I need Info on RDA-enabled data source based on Function Module.
How to implement it?
Thanks & Regards,
Rashmi.Hi Rashmi
Check this link
http://help.sap.com/saphelp_nw70/helpdata/EN/52/777e403566c65de10000000a155106/frameset.htm
[under tab Tranferring Transaction Data from Source Systems (RDA)]
http://help.sap.com/saphelp_nw70/helpdata/EN/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
Regards
Jagadish -
3 generic data sources or only one function module
Hi all,
I have 3 custom tables
1. ZCOUNTRY (giving the link between code entity and country)
1. ZCURR (giving the link between code entity and currency)
1. ZYTPE (giving the link between code entity and type entity)
I shall fill an info object which has as fields code entity, country,currency and type entity.
I have 2 solutions i suppose:
1. Create 3 generic data sources based on the 3 tables.
2. Create a generic data source by using the function module.The function module will populate an extract extracture from data from these 3 tables.
What is the best solution?What is the advantage of the chosen solution?
Thks a lot.Hi,
Generic Extractors are based on View/Table or Fn Module or Infoset Query i.e all the extractors created via RSO2. The extractors you create for the customers would generally be generic extractors only. SAP has some other extractors like your LIS, LO Cockpit which are based on different extraction method.
Generic extractors are of 3 types:
1. Based on table/view
2. Based on Infoset Query
3. Based on Function module
The first 2 are straight forward extraction where you would either use a standard SAP or custom table/view or Infoset query to extract data.
However if you have to get data from more than 1 table and also incorporate some logic then you would use a fn module extractor. It is like a program where you would code using ABAP and have all your logic incorporated.
Check this blog for more info on fn module extractor:
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Raj -
Generic data source delta settings
HI
i have to create delta for Generic data source based on 2 fields like "created on" and "changed on" fields.
how to set this
try avoid numeric point & Whit out using function module
and what is the safety interwell (Please use simple words)Hai Sudha,
Safety inteval is nothing but for ex you have updated your data from R/3 to bw at 11 am If client want the data in between 11.1min to 11.4min the records which are going to present in between the 1 min to 4 min that records only can updated if and ony if your data source is going to make as an generic delta.
bye.
Maybe you are looking for
-
"XML page cannot be displayed" error
Using XML output on a table with more than a few rows falls over with a "XML page cannot be displayed" error. Sometimes only the error is displayed, sometimes some rows are displayed with this error at the end of the page (eg the DEMO_STATES table) C
-
HT1349 i did the update to my i pad and it said error 1604 now it wont charge so i cant turn it on
hi i plugged in my i pod the other day to my computer and im running xp with the original ipad it did the update now it wont charge error 1604
-
I am relatively new to XML / JAXP technologies and was wondering if there is a syntax available that would permit retrieving a node by specifying the ancestory of the node? For example, if I had the following XML: <?xml ?> <person name="Daffy"> <addr
-
Error when using the admin photo mass upload service
I created a who's who iview and then I wanted to dispaly the photos of the asociates in the user details iview. I used the photos upload task provided. I created the task, then when I run it I get an error (when looking in the log file) error : Contr
-
Problem using new ABAP editor in GUI 7.20
Hi Guys, I need some help. I am running SAP GUI 7.20 on Windows 7 professional. When I open the new ABAP editor from SE38 it does not open the mouse pointer keeps rotating for ever. I tried changing the setting to ABAP Editor old. It did work this ti