cancel
Showing results for 
Search instead for 
Did you mean: 

Generic Datasource - How to Use open cursor and Fetch next for three tables ?

rogerio_vazdesouza2
Participant
0 Kudos

Hi Gurus,

I need create a datasource by module function

to cross and load data from three Tables.

How does Open cursor and fech next in which case where

I need to use loop in a table to read the too ?

Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

ravi_chandra3
Active Contributor
0 Kudos

Hi

Once try with the inner join like

select matnr~mara  maktx~makt ....... ( use inner join....)

Pls once try with the above logic and let me know.

rogerio_vazdesouza2
Participant
0 Kudos

Hi Ravi,

Thank you,

I did as you said and it worked.

Now in that case,

I have two fields one creation date other date modification.

How do I use them to create a delta ?

Thank You !!!

rogerio_vazdesouza2
Participant
0 Kudos

the model below not this respecting filters:

open cursor with hold s_cursor for

       select dbp~insobject    dbp~partner

              dbp~zzcod_territ dbp~zznom_territ

              dbp~zzcod_surc   dbp~zznon_surc

              dbp~zzcod_corr   dbp~zznon_corr

              dbp~zzproduto    dbp~zzriskfr

              dbp~zzriskto     dbp~zzcontract

              dbp~zzpmtfr_apol dbp~erdat

              dbp~aedat        dbp~zzpmtfr_end

              dbc~bcon_id      dbc~bcon_item_id

              db~insobjectext  db~insobjecttyp

              from dimaiobpar as dbp

              inner join dimaiobbcon   as dbc

                      on dbp~insobject eq dbc~insobject

              inner join dimaiob       as db

                      on dbc~insobject eq db~insobject

              where dbp~insobject = l_r_insobject-low and

                         ( dbp~erdat >= l_r_erdat-low and

                           dbp~erdat <  sy-datum )    or

                         ( dbp~aedat >= l_r_erdat-low and

                           dbp~aedat <  sy-datum ).

ravi_chandra3
Active Contributor
0 Kudos

Hi

For delta u need to write the extra code, pls search in google u wil find it .

Regards,

RaviChandra.

Answers (1)

Answers (1)

Former Member
0 Kudos