cancel
Showing results for 
Search instead for 
Did you mean: 

Start Routine

Former Member
0 Kudos

Hi Friends

How can I write start routine with the following code.

Data : v_date Type AD_TSTAMP,

Y_Date type SY-Datum,

v_day(2) type n,

v_mon(2) type n,

v_year(4) type n.

V_date = COMM_STRUCTURE-TCTTIMSTMP.

v_day = v_date+6(2).

v_mon = v_date+4(2).

v_year = v_date(4).

concatenate v_year v_mon v_day into Y_date.

RESULT = Y_date.

Regards,

Chama.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandranGanesan
Active Contributor
0 Kudos

Hello,

It should be in the Update Routine and not in the start routine.

When I gave this code also I mentioned it to use in Update routine, since you are not filtering the entire data package with the date you are obtaining, instead reading the time stamp field of each record and converting that to the required format.

[Thanks|http://chandranonline.blogspot.com/] [Chandran|http://chandranonline.blogspot.com/]

Former Member
0 Kudos

Hi Chandran

But at the same time I need obtain 0calmonth and 0cal year, 0calweek as well.

Regards,

Chama.