cancel
Showing results for 
Search instead for 
Did you mean: 

Customer exit variable

Former Member
0 Kudos

Hi gurus,

Could anyone explain how to create customer-exit variables in the query level.Please give details on this..

Thanks

Chand

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Chand,

You can directly go to function module(se37) EXIT_SAPLRRS0_001 and go inside the include program ZXRSRU01. You can write your code there.

A sample code for a variable 'V******* would be like this:

when 'V*******'.

clear l_s_range.

tables: /bic/dzprpipe6, /bic/fzprpipe.

data pmaxdate type i.

data: begin of pcdate,

yyyy(4),

mm(2),

dd(2),

end of pcdate.

data: pmdate like pcdate, presult type d.

select max( sid_zcsnpshot ) into pmaxdate from /bic/dzprpipe6

inner join /bic/fzprpipe on

/bic/fzprpipe~key_zprpipe6 =

/bic/dzprpipe6~dimid where

/bic/dzprpipe6~dimid > 0 .

move pmaxdate to pmdate.

presult = pmdate.

l_s_range-low = presult.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

append l_s_range to e_t_range.

Hope this helps.

Bye

Dinesh

Former Member
0 Kudos

Hi Dinesh,

Thankx a lot for giving sample code. It solves my problem.

Answers (1)

Answers (1)

Former Member
0 Kudos