We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-abap] Update Current Week In Tvarc Table

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from fjemon on Sep 16 at 3:53 AM
Update current week in tvarc table:

Current week is not part of any variable in tvarvc so I'm trying to update this with a report. Something is wrong as it's not adding anything to the table. Can you have a look, please.

REPORT Z_GET_CURRENT_WEEK.

DATA:
zlv_week TYPE KWEEK,
it_tvarvc TYPE TABLE OF tvarvc WITH HEADER LINE.

CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
date = syst-datum
IMPORTING
week = zlv_week.

Select *
INTO TABLE it_tvarvc
FROM TVARVC
WHERE name = 'Z_THISWEEK'
AND type = 'P'
AND numb = '0000'
AND low = zlv_week.

IF syst-subrc <> 0.
MESSAGE 'Error in Updating TVARVC Table'(003) TYPE 'E'.
ELSE.
UPDATE tvarvc from it_tvarvc.
ENDIF.

Thanks/MF
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
fjemon  

IT/IS Professional/Admin/Staff
 
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language