Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATA Load based on system DATE abap code

Former Member
0 Likes
506

Hi Friend would be really pleased if you can help me correct the below.

I am trying to first calculate the SYSTEM DATE IN ODS 1 please suggest to correct the code or process since niether system date is getting populated it is 00.00.0000, BUT today date is march 25,2007???

ABAP CODE#1

METHOD compute_ZSYS_DAT.

  • IMPORTING

  • request type rsrequest

  • datapackid type rsdatapid

  • SOURCE_FIELDS-ZZSYSDAT TYPE D

  • EXPORTING

  • RESULT type tys_TG_1-/BIC/ZSYS_DAT

DATA:

MONITOR_REC TYPE rsmonitor.

$$ begin of routine - insert your code only below this line -

... "insert your code here

data: ZSYS_DAT like sy-datum.

ZSYS_DAT = sy-datum.

please help if there is an setting to change or correct my system date may be my system date is wrong how to fix that.

Thanks

Poonam Roy

BI Developer Colgate Inc.

null

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
457

sy-datum should always contain the system date. If not, there is something really wrong with your system.

Regards,

RIch Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
458

sy-datum should always contain the system date. If not, there is something really wrong with your system.

Regards,

RIch Heilman

Read only

0 Likes
457

Hi , please clarify what should i do to check whether my system date is what how to check

thanks

poonam

Read only

0 Likes
457

SY-DATUM or SY-DATLO in some case will contain system date or local date when treatment is executed.

So you Cube/ODS will contain date of extraction of the record. Not date of consultation.

Regards