Adding Days to MCAL_DAY_DT in RPD to create a Clawback Dt
I am trying to add 150 days to my existing record for Posted On Date. The datatype is Date. I am willing to perform this operation in the RPD or Answers. Any suggestions?
Just giving a quick glance, I believe the problem is this line:
endDate.add(startDate.DATE,endIncrement);If you are trying to say the endDate should be the startDate + endIncrement, the code should read:
endDate.setTime(startDate.getTime());
endDate.add(Calendar.DATE, endIncrement);DATE is a static, final field in Calendar that just tells add() which value to increment (static fields should be referenced through the class name rather than by an instance name).
Let me know if I misunderstood what you were trying to do.
Similar Messages
-
Which function is used for adding days to given month
which function is used for adding days to given month
Hi Jagrut,
Good ... Check out the following examples
<b>Get a date</b>
DATE_GET_WEEK Returns week for a date
WEEK_GET_FIRST_DAY Returns first day for a week
RP_LAST_DAY_OF_MONTHS Returns last day of month
FIRST_DAY_IN_PERIOD_GET Get first day of a period
LAST_DAY_IN_PERIOD_GET Get last day of a period
RP_LAST_DAY_OF_MONTHS Determine last day of month
<b>Date calculations</b>
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_IN_FUTURE Calculate a date N days in the future.
RP_CALC_DATE_IN_INTERVAL Add days/months to a date
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
DATE_CREATE Calculates a date from the input parameters:
Example: DATE_CREATE
CALL FUNCTION 'DATE_CREATE'
EXPORTING
anzahl_jahre = 1
anzahl_monate = 2
anzahl_tage = 3
datum_ein = '20010101'
IMPORTING
datum_aus = l_new_date.
Result:
l_new_date = 20020304
Example: MONTH_PLUS_DETERMINE
data: new_date type d.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -5 " Negative to subtract from old date, positive to add
olddate = sy-datum
IMPORTING
NEWDATE = new_date.
write: / new_date.
<b>Hollidays</b>
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
date is a holiday by checking the parameter HOLIDAY_FOUND.
Example: HOLIDAY_CHECK_AND_GET_INFO
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
Checking dates
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
Converting dates
DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
Function to return literal for month
he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
You can also try table T015M. It has the month number in it's key.
Formatting
DATUMSAUFBEREITUNG Format date as the user settings
Other
MONTH_NAMES_GET It returns all the month and names in repective language.
Good Luck and thanks
AK -
Multiple versions of RPD getting created in 11g
Hi,
I'm using OBIEE 11g. Whenever i host the rpd OBIEE by itself creates a copy of it rpdname_BI0001.rpd (and so on rpdname_BI0002.rpd....) every time i host it.Moreover, when ever i do online changes they are not reflected in my original rpd (say rpdname.rpd) however they are seen on the latest version of the rpd (rpdname_BI0010.rpd).
This behavior is unlike OBIEE 10g where the online changes always reflected on original version of RPD and moreover no versions of the rpd were created. Is this a bug or there is some configuration setting that needs to be done to avoid this problem.
Thx :)Hi user,
Login to FMW Control, then navigate to BusinessIntelligence > coreapplication > Capacity Management > Performance tab
Check if "*Disallow Online RPD Updates*" is selected which is used to disallow updates to the repository file.
Regards,
Kalyan
http://123obi.com -
Revision: 13641
Revision: 13641
Author: [email protected]
Date: 2010-01-19 15:13:20 -0800 (Tue, 19 Jan 2010)
Log Message:
Adding SMILPlugin to the AkamaiPluginSample rather than creating a new sample app.
Modified Paths:
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptProperties
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.flexProperties
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.project
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xml
osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxmlHi!
Thanks very much for your reply. Precisely what I'm hoping to do is stamp annotations--to the point that I've prototyped three whole toolbars of fixtures, sensors, and wall controls with mocked up rubber stamps, and marked up several whole buildings worth of construction plans to show the concept.
Okay--so the stamp annotation looks terrific. How do I find out more? The Acrobat 9.1 SDK (under "Plug-ins and Applications", then "Creating Annotations") says this:
Several annotation types exist, which are identified by their subtype. Each subtype can have additional properties that extend the basic ones. The subtype for text annotations (also called notes) is text. The subtype for link annotations is link. The Acrobat core API contains two built-in annotation typedefs PDTextAnnot and PDLinkAnnot. A PDTextAnnot object corresponds to a text annotation and a PDLinkAnnot object corresponds to a link annotation.
That paragraph (and the subsequent pages in that chapter) led me to think that my options were:
Text annotation
Link annotation
3D annotation
Dive into the Cos layer and create a custom annotation
Where can I find documentation on the Stamp annotation? (I do have the Stamper sample application.)
Thanks again,
John Murdoch -
Adding a photo to the selection AFTER creating a book in iphoto 09
Hi all - Just starting my first book creation on iPhoto 09... I created the book while in the smart folder I want to use the pics from... great so far... but there's just one pic which isn't in the smart folder, and when I amend it so that it does appear in the smart folder the photo selection in the book creator remain the same - e.g. my reel of pics above my book has not added the one extra pic. Have tried dragging the pic from my photo list into the book, but no joy... Any ideas?
Thanks in advance for any help - you people who know what you're doing ROCK....Oooops. It'd help if I looked in the right place. Found it in my book selections. Sorry!
-
Found a bug? Adding alot of resources to a task creates a local resource on the server.
Hi Guys,
I'm working with a client on building a Project Server 2013 environment and I came cross something that struck me as odd. I hope some of you will be able to reproduce the issue and maybe point me into the direction of a hotfix or
a report that say's it’s a known bug?
Currently the client is working with a Project Server installment 15.0.4420.1017 and I have reproduced the issue in a 15.0.4481.1005 (March 2013) environment AND on a Project Online tennent.
I have these resources, all are enterprise resources without any custom fields active (all are specific work resources):
ABC EDIT Manufacturing Technology HBO
ABC EDIT Manufacturing Technology JRACAD
ABC EDIT Manufacturing Technology JRHBO
ABC EDIT Manufacturing Technology LBO
ABC EDIT Manufacturing Technology MBO
ABC EDIT Manufacturing Technology PROM
ABC EDIT Manufacturing Technology SRACAD
ABC EDIT Manufacturing Technology STAF
Now I build a new Project using the standard Enterprise project template that comes with the product.
I start with a single task that takes me 2 months (or any duration actually). The task is set to fixed duration after this. Now I add all the 8 resources in one go using the dropdown box in the Resource names column in the Tasks summary
view. I save and publish the project. After this I check the project in and open it with Project Professional.
When looking at the Resource sheet I see that the following resource is now created as a local resource “ABC EDIT Manufacturin” and not all resource assignments are on the task anymore. The resources ending with “SRACAD” and “STAFF” don’t
appear to have any assignment anymore.
Help me out here, am I missing something? Can you reproduce the situation in your environments?
Kind regards,
ErikHi Prasanna,
I am aware of the character limit. However, that pop up doesn't show up when using the situation as described in my post. I did get the message when I added one resource at a time
and after a while it did tell me I had too much resources on that task. The web version then came with the message:
"The resource list is too long. A resource list that contains more than 256 characters cannot be edited or deleted on the To line of a message. Use the resource information dialog
box to edit long resource names."
However it did not come up in the situation as described above.
Regarding your suggestions:
1) Shorter resource names would help for only a short while. Because adding more resources to a single task will again generate the issue. For instance: if I add 30 resources to
a task, with all a character length of 10 I will run in the same issue. Best practices set aside of course, I know that adding 30 resources to a task is bad mojo.
2) Project Pro cuts the assigning of resources also, with giving the error message similar to the one above. But rather than creating a new local resource, Pro just assigns the
task to 6 out of the 8 resources I have added to the task. Which is better, if only the client worked with Project Professional...
I hope you come up with something during your tests… -
Adding a guest book to an iweb created site and problems with counter
Hi, can anyone tell me if it's possible to add a guest book to a website created on iweb? I can find the html to insert, but can't find out how to insert it on the page.
Also, I have tried adding the counter to see how many visitors I have, but it does not show up when the site is published.
Thanks very much, in advance.You might have better luck asking in the iWeb forums here:
http://discussions.apple.com/category.jspa?categoryID=188 -
Adding days to the current date
I'm trying to write a program that takes an order and prints an invoice for my intro to java class. The date of the order and the date of arrival (which is 14 days after the date of the order) are to appear on this invoice. I thought that I figured it out but I get a compile error. Here's what I have so far:
SimpleDateFormat formatDate = new SimpleDateFormat("MMMMM, dd, yyyy");
Calendar rightNow = Calendar.getInstance();
public String dateOfOrder()
return formatDate.format(rightNow);
public String dateOfArrival()
return formatDate.format(rightNow.add(DAY_OF_MONTH, 14));
}I'm writing it in JCreator and I get "cannot find symbol variable DAY_OF_MONTH" as my compile error. It compiled just fine until I added the dateOfArrival method. I keep reading through the Calendar API but I just can't understand why it won't work. What am I doing wrong?masijade. wrote:
Which class is "DAY_OF_MONTH" a part of (I know what it is, but I want you to think on it). Try adding that class name to the front of the field name, with a period between them i.e.Calendar?
I tried making the following adjustment but just got a new error.
public String dateOfArrival()
return formatDate.format(rightNow.add(Calendar.DAY_OF_MONTH, 14));
}My error this time is: 'void' type not allowed here
It seems like it is recognizing DAY_OF_MONTH now but something else is going wrong. Where am I going wrong? -
Adding Day, Month, Date,Year, Time to Menu BAR
My Menu bar now shows "Thu 9:14 PM". I want to change it to Day, Month, Year, and Time. I presume this is done by Apple>System Preferences>Language & Text>Formats>Customize, but I can't get any further, and the words "Type text and drag element to create a custm format" doesn't help. Type where? Drag from where? Drag to where?
Drag an element from the list below into eg the Short box and add text eg : instead of /. But I don't think this will give you what you want - go instead to Date & Time Preferences/Clock, and select Show the Date. But it won't give you the year.
-
Adding a date and a time to create one channel in a data plugin
I would like to preface this question with the fact that I am new to VBS programming. What I want to do is create a plugin. Most of it is done but I am having a problem with adding two times to make one. I have a text file that stores the date and time separated by a tab. This file format was design for excel. When I bring it in both the date and time are in different channels and I can't figure out a way to add the two and either replace one of them or even place it into a separate variable. Below is an example.
Chan(1) contains the date, Chan (2) contains the time. This statement that places the data into the channel is:
Set StandChannels(0).Values(k) = Chan(1).Values(i)
I have tried:
Set StandChannels(0).Values(k) = Chan(1).Values(i)+Chan(2).Values(i)
error: Object doesn't support this property or method
or
Chan(1).Values(i) = Chan(1).Values(i)+Chan(2).Values(i)
error: Object doesn't support this property or method
I have tried many other iterations and have not had any success. This seems to be an easy task I am probably missing something simple.
Solved!
Go to Solution.Chris and Brad,
Sorry I didn't respond sooner. I tried the suggestion on the code and it made sense seeing it but I could not get it to work within the code. I am enclosing the code and the file. I would like to explain that the plugin is currently design to accept two different file versions. I have sent you the newer file version. I received an initial plugin from a coworker that I believe came from NI and which accounts for the frame work and I modified it a great deal to get it to this point. I appreciate your help; it has been somewhat frustrating not completely understanding the different types of channels, how to access the information needed, and finding examples of what I wanted done.
Elias
Attachments:
MSN#19 Mon, Oct 18, 2010 1-29 PM_NI Version.log 11 KB
log_data_plugin_101510.txt 48 KB -
PL/SQL Function: Adding Days to Date
I have a function that adds a given number of days to a date, and excludes Saturday, Sunday, or Monday if needed with parameters. The problem is when the given date is a Friday, you need to add one day, and you exclude Saturday and Sunday i.e. DAYSBETWEEN('30-SEP-11',1,1,1,0) or DAYSBETWEEN('30-SEP-11',1,1,1,1).
Where am I going wrong here and what needs to be fixed?
create or replace
FUNCTION daysbetween(
DAYIN IN DATE ,
ADDNUM IN NUMBER ,
EXSAT IN NUMBER ,
EXSUN IN NUMBER ,
EXMON IN NUMBER )
RETURN DATE
IS
dtestart DATE;
dteend Date;
intcount NUMBER;
BEGIN
WITH all_dates AS
(SELECT LEVEL AS days_to_add ,
dayin ,
dayin + LEVEL AS new_dt ,
addnum ,
exsat ,
exsun ,
exmon
FROM dual
CONNECT BY LEVEL <= addnum * 2
exclusions AS
(SELECT ROW_NUMBER() OVER ( ORDER BY new_dt) ordering ,
addnum ,
new_dt ,
TO_CHAR ( new_dt, 'DY' )
FROM all_dates
WHERE 1 =1
AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exsat, 1, 'SAT', 'XXX')
AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exsun, 1, 'SUN', 'XXX')
AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exmon, 1, 'MON', 'XXX')
SELECT MAX( new_dt ) INTO dteend FROM exclusions WHERE ordering <= addnum;
RETURN dteend;
END daysbetween;You could do something in SQL like this perhaps...
SQL> ed
Wrote file afiedt.buf
1 with x as (select rownum as days_to_add from dual connect by rownum <= 31)
2 ,y as (select sysdate as dt from dual)
3 --
4 -- end of test data
5 --
6 select dt, days_to_add
7 ,case when to_char(new_dt,'fmDAY') IN ('SATURDAY','SUNDAY') then new_dt + 2
8 else new_dt
9 end as new_dt
10 from (
11 select dt
12 ,days_to_add
13 ,dt
14 +floor(days_to_add/5)*7
15 +mod(days_to_add,5) as new_dt
16 from x,y
17* )
SQL> /
DT DAYS_TO_ADD NEW_DT
05-OCT-2011 16:33:27 1 06-OCT-2011 16:33:27
05-OCT-2011 16:33:27 2 07-OCT-2011 16:33:27
05-OCT-2011 16:33:27 3 10-OCT-2011 16:33:27
05-OCT-2011 16:33:27 4 11-OCT-2011 16:33:27
05-OCT-2011 16:33:27 5 12-OCT-2011 16:33:27
05-OCT-2011 16:33:27 6 13-OCT-2011 16:33:27
05-OCT-2011 16:33:27 7 14-OCT-2011 16:33:27
05-OCT-2011 16:33:27 8 17-OCT-2011 16:33:27
05-OCT-2011 16:33:27 9 18-OCT-2011 16:33:27
05-OCT-2011 16:33:27 10 19-OCT-2011 16:33:27
05-OCT-2011 16:33:27 11 20-OCT-2011 16:33:27
05-OCT-2011 16:33:27 12 21-OCT-2011 16:33:27
05-OCT-2011 16:33:27 13 24-OCT-2011 16:33:27
05-OCT-2011 16:33:27 14 25-OCT-2011 16:33:27
05-OCT-2011 16:33:27 15 26-OCT-2011 16:33:27
05-OCT-2011 16:33:27 16 27-OCT-2011 16:33:27
05-OCT-2011 16:33:27 17 28-OCT-2011 16:33:27
05-OCT-2011 16:33:27 18 31-OCT-2011 16:33:27
05-OCT-2011 16:33:27 19 01-NOV-2011 16:33:27
05-OCT-2011 16:33:27 20 02-NOV-2011 16:33:27
05-OCT-2011 16:33:27 21 03-NOV-2011 16:33:27
05-OCT-2011 16:33:27 22 04-NOV-2011 16:33:27
05-OCT-2011 16:33:27 23 07-NOV-2011 16:33:27
05-OCT-2011 16:33:27 24 08-NOV-2011 16:33:27
05-OCT-2011 16:33:27 25 09-NOV-2011 16:33:27
05-OCT-2011 16:33:27 26 10-NOV-2011 16:33:27
05-OCT-2011 16:33:27 27 11-NOV-2011 16:33:27
05-OCT-2011 16:33:27 28 14-NOV-2011 16:33:27
05-OCT-2011 16:33:27 29 15-NOV-2011 16:33:27
05-OCT-2011 16:33:27 30 16-NOV-2011 16:33:27
05-OCT-2011 16:33:27 31 17-NOV-2011 16:33:27
31 rows selected. -
Adding a field from a catalogue in 'create shopping cart' display screen
Hi all,
I am new to SRM and i am faced with the following situation:
I need to add a field called 'supplier part number' to the 'create shopping cart' screen from the MDM catalogue. Once the entries for the field 'supplier part number' are fetched from MDM catalog, they must be displayed corresponding to every line line item displayed under 'item overview'. Currently the entry for 'supplier part number' for a given item is displayed in the 'detailed display' tab observed after clicking on the line item under consideration. But, I need to add this field to the items list under 'item overview' rather than restricting it to detailed display tab alone.
in my case the webdynpro component associated with adding item details from MDM catalogue is '/SAPSRM/WDC_UI_SC_DOTC_BD' and the view is 'v_sc_dotc_basic'. I am not able to locate the method/section of code that is responsible for fetching the entries in the field 'supplier part number' from MDM CATALOG to the item overview screen.
can you please give me any leads like - where i could possibly do the changes in the webdynpro component and any other details that can help me add the 'supplier part number' field to details under items overview tab.
Regards,
Abhinay.Hello,
Have you tried to add this field using the Catalog UI configuration tool?
The URL for the tool should be something like
http://adress:port/webdynpro/dispatcher/sap.com/tcmdmsrmcat~uisearch/MDM_SRM_UI_App?x -
XQuery function : Adding day to current date
I have a requirement to add 1 day to the current date during the Xquery transformation.
Does anyone know if there is any xquery function that does that?
From this link,
http://download.oracle.com/docs/cd/E13214_01/wli/docs92/xref/xqdtopref.html#wp1162860
it seems like there is a function, op: add-yearMonthDuration-to-dateTime, that serve this purpose, but I don't find it in OSB console IDE nor OEPE.You can use the below expression for adding 1 day (24 hrs) to a given current date:
fn:current-dateTime() + xdt:dayTimeDuration("PT24H")
Thanks,
Patrick -
Dear all
Using form6i and run in c\s
is it possible to add days of date.. example the format of date is 02-mar-07
in text item i enter 3 then the date will become 05-mar-07. it depends what number will be entered in textitem and it will add to the days of date..
|Another example is: date format is 29-mar-07.. i entered 4 in textitem the date will become 02-apr-07 ...
Could anyone help me to do this or is there any ideas must simplest than this that can add a days of a date plz help me need in school requirements...Say, you have two items
b_day.txt_refdate - the refernce date.
b_day.txt_inc - the number which should b added.
b_day.txt_result - to store the result.
in WHEN-VALIDATE-ITEM of b_day.txt_inc, write
begin
b_day.txt_result := to_date(b_day.txt_refdate + b_day.txt_inc,'dd-mon-rrrr');
end; -
.rpd file creating autometically in 11g
Hi Experts,
When ever I have changed the BI Server Repository in em, it will automatically create a another repository like
SampleAppLite_BI0002 in the repository folder. How it is to be avoided.
Thanks,
Balaa...Hi,
Check this...Its about changing rpd in 11g..May help you if you had done any mistake...http://www.cetanasoftware.com/blog/?p=113
Regards,
Srikanth
Maybe you are looking for
-
Error loading csv file from application server
Hi all, While uploading a csv file from the application server to psa we are getting the following error, Error 2 while splitting CSV data record Message no. RSDS_ACCESS011 Diagnosis Error 2 occurred while splitting the CSV data record 1 1 = Could no
-
Windows Vista Locks out when plugging in Nano 3g with iTunes 8.0
When I plug in my ipod Nano 3g after updating to iTunes 8.0...it locks out my Windows Vista and terminates Windows session. System automatically restarts and will not restart if the iPod remains connected. 5 r's of troubleshooting do not help...I get
-
Down payment to recipient 28000437 0 area 01 amount 575.50 not cleared in
IN CJ88 Down payment to recipient 28000437 0 area 01 amount 575.50 not cleared Message no. AW605 Diagnosis All downpayments were not cleared for the asset under construction for the receiver 28000437 0 in area 01. An amount of 575.5
-
IDOC order of columns not same as the data source
Hi, I am from non SAP background. We are using Informatica to pull data from SAP ECC using the Business Content for Integration by pulling data from IDOCS. Here is my problem: 1) We identified a particular data source (0FI_GL_4) for full mode data pu
-
Hi, One of my custommer asked me if it was possible to create a subscription that would send him alert email as an hourly summary instead of sending an email every time an alert is created. My first guess is "it's not possible" (at least out of the b