Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: Last 6 months from user entered date. Customer exit I_STEP=2

$
0
0

Hi Loed,

 

Thanks a lot for the response.

 

I modified my code a bit and now its working but when it goes to previous year its not showing any data. Can you tell me how i can achieve that through my code below?

 

 

My corrected code:

 

DATA: Month(2) TYPE N,

       Month1(2) TYPE N,

       day(2) type n,

       l_s_range1 TYPE rrrangesid,

       loc_var_range1 LIKE rrrangeexit,

       LV_DATA1 TYPE SY-DATUM.

 

 

 

CASE I_VNAM.

 

   WHEN 'YVAR_DATE_6MONTHS'.

 

     IF I_STEP = 2.

 

       LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE1 WHERE vnam = 'YVAR_DEL_DATE1_MANUAL'.

 

         Month = LOC_VAR_RANGE1-low+4(2).

         Month1 = Month - 3.

         Day = LOC_VAR_RANGE1-low+6(2).

 

         CONCATENATE LOC_VAR_RANGE1-low(4) Month1 day INTO LV_DATA1.

 

         l_s_range1-LOW = LV_DATA1.

         l_s_range1-HIGH = LOC_VAR_RANGE1-LOW.

         l_S_range1-SIGN = 'I'.

         l_S_range1-OPT ='BT'.

 

         Append l_s_range1 to E_T_RANGE.

 

 

       ENDLOOP.

     ENDIF.

ENDCASE.

 

 

Thanks

 

Ramarao.


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>