3
Generated by Jive on 2015-09-30+02:00 1 Generic Delta Function Module using... George Laing 27 posts since 24 Jul, 2008 Generic Delta Function Module using Update Mode (I_UPDATE) 24 Mar, 2010 1:07 AM Hi BI Guru's I am working in BW 7.0 and I need to develop a Generic Extractor that is Function Module based with Delta Enabling. The data selection has to be customized based on the Update Mode (F / D / S / C). We want to have a different select if the update mode is full or delta. For delta load we want aedat GE l_r_aedat-low - Take everything from last run and for full we want to use aedat in l_r_aedat just the entered date As SAP suggests, I copied the template FM RSAX_BIW_GET_DATA (which has II_UPDMODE as one of the Import parameters: suppose to hold the Update Mode like Full or Delta) and adopted with our business requirements. Te problem is when I run RSA3 to test the extraction it goes right to function FUNCTION RSA3_GET_DATA_SIMPLE then it goes to my copyof FM RSAX_BIW_GET_DATA . ( I assume the infopackage will do the same in BI as RSA3) When it call my FM variable S_FNAME it does not pass I_UPDATE shown below, CALL FUNCTION S_FNAME EXPORTING I_REQUNR = S_S_IF_SIMPLE-REQUNR I_DSOURCE = S_S_IF_SIMPLE-DSOURCE I_MAXSIZE = S_S_IF_SIMPLE-MAXSIZE I_INITFLAG = S_S_IF_SIMPLE-INITFLAG TABLES How can I have the update mode passed to my FM ? Is there a way to change the function that is called in RSA3? Any isuggestions will be appreciated Thanks, George Edited by: George Laing on Mar 24, 2010 1:07 AM Ashish Tewari 501 posts since 6 Jun, 2006 Re: Generic Delta Function Module using Update Mode (I_UPDATE) 24 Mar, 2010 1:06 PM

Generic Delta Function Module using

Embed Size (px)

DESCRIPTION

Generic Delta Function Module using...

Citation preview

Page 1: Generic Delta Function Module using

Generated by Jive on 2015-09-30+02:001

Generic Delta Function Module using...

George Laing 27 posts since 24 Jul, 2008

Generic Delta Function Module using Update Mode (I_UPDATE) 24 Mar, 2010 1:07 AMHi BI Guru's

I am working in BW 7.0 and I need to develop a Generic Extractor that is Function Module based with Delta

Enabling.

The data selection has to be customized based on the Update Mode (F / D / S / C). We want to have a different

select if the update mode is full or delta.

For delta load we want aedat GE l_r_aedat-low - Take everything from last run

and for full we want to use aedat in l_r_aedat just the entered date

As SAP suggests, I copied the template FM RSAX_BIW_GET_DATA (which has II_UPDMODE as one of

the Import parameters: suppose to hold the Update Mode like Full or Delta) and adopted with our business

requirements. Te problem is when I run RSA3 to test the extraction it goes right to function FUNCTION

RSA3_GET_DATA_SIMPLE then it goes to my copyof FM RSAX_BIW_GET_DATA . ( I assume the

infopackage will do the same in BI as RSA3)

When it call my FM variable S_FNAME it does not pass I_UPDATE shown below, CALL FUNCTION

S_FNAME

EXPORTING

I_REQUNR = S_S_IF_SIMPLE-REQUNR

I_DSOURCE = S_S_IF_SIMPLE-DSOURCE

I_MAXSIZE = S_S_IF_SIMPLE-MAXSIZE

I_INITFLAG = S_S_IF_SIMPLE-INITFLAG

TABLES

How can I have the update mode passed to my FM ? Is there a way to change the function that is called in

RSA3?

Any isuggestions will be appreciated

Thanks,

George

Edited by: George Laing on Mar 24, 2010 1:07 AM

Ashish Tewari 501 posts since 6 Jun, 2006

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 24 Mar, 2010 1:06 PM

Page 2: Generic Delta Function Module using

Generic Delta Function Module using...

Generated by Jive on 2015-09-30+02:002

Have a look this document:

[Functional Module Based Generic Datasource Part I|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/

c062a3a8-f44c-2c10-ccb8-9b88fbdcb008]

Hope it helps...

Regards,

Ashish

George Laing 27 posts since 24 Jul, 2008

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 24 Mar, 2010 1:45 PM

Hi Ashish,

Thanks for the document, however it just describes the simple extract. I need to have the ability to use

I_UPDATE, it looks like your second document Functional Module Based Generic Datasource Part 2 may

cover this. Can you provide me with the link to this article if it is written? I tried a search but it did not come up.

Thanks

Andrei Ryazanov 105 posts since 12 Jul, 2005

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 26 Mar, 2010 1:43 PM

Hi!

You can use only pseudo delta in function module extraction.

look at :

[http://www.sdn.sap.com/irj/scn/index?rid=/library/

uuid/30aefb04-7043-2c10-8e92-941536eebc79&overridelayout=true]

[Part 2|/people/arun.varadarajan/blog/2009/07/09/generic-data-extraction-in-sap-bw-decoded--part-2]

[Function Module Source Code;

[Search SDN|http://forums.sdn.sap.com/search.jspa?threadID=&q=functionmoduledelta

+extraction&objID=c4&dateRange=all&numResults=15&rankBy=10001]

Edited by: Andrey Ryazanov on Mar 26, 2010 3:42 PM

more link added

Dennis Fuller 8 posts since 21 Apr, 2010

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 21 Apr, 2010 8:25 PM

Hi George. Hope you still around because I have a solution for you.

Page 3: Generic Delta Function Module using

Generic Delta Function Module using...

Generated by Jive on 2015-09-30+02:003

You can get a function module delta extractor to work with a function modeled after RSAX_BIW_GET_DATA

which contains the i_updmode.

1. It seems that datasource needs to be transactional.

2. Create your datasource in RSO2. Make sure you click the button for generic delta. Don't need to enter

anything in there if you don't need it in your function module.

3. After the datasource has been created, run a program with the following update statement:

UPDATE roosource

SET delta = 'E'

exmethod = 'F1'

WHERE oltpsource = 'name_of_your_datasource'.

4. Then go into your function module and rename the table parameter "e_t_data" to "e_t_" and then the name

of your extractor structure as entered in the datasource definition.

5. Go into RSA5 and reactivate your datasource.

Ahmed Zahif 4 posts since 18 Sep, 2009

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 15 Jun, 2010 3:18 PM

Hello.

I am also working on a generic FM with delta enabled. Would you be so kind and post entire example? It would

be mush easier for us to do one ourself.

I am currently working with FM RSAX_BIW_GET_DATA.

Thanks in advance.

Alexander Stettler 91 posts since 11 Mar, 2008

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 28 Oct, 2010 5:13 PM

Hi AhmedZ,

a good example for delta handling is the function module PSBW_GET_WBS_ELEMENT of the DataSource

0WBS_ELEMT_ATTR...

Regards, Alex

jeny dana 49 posts since 21 Jul, 2011

Re: Generic Delta Function Module using Update Mode (I_UPDATE) 12 Mar, 2014 5:44 AM

hi George ,

How did u solve this..i have the same situation