How can I add 1 day to requeste delivery date
When a sales order or e-commerce order is created we want the requested delivery date to be 1 day later if the order is entered before a specific time. If it is entered after the specific time it should be 2 days later. Of course this date must be checked against transport zone assignment and factory calendar.
In R/3 we could set the + 1 day in IMG for the sales transaction header, we probably can do it here to, but I do not understand how.
I do appreciate any help.
I have fixed the one day forward but not the expired time for two days. Does anyone know how I can manipulate it in a date rule??
When the time has passed 2PM it should be 2 days in stead of 1 day.
Similar Messages
-
How Can i add "DateDiff(day, T0.DueDate" as a column in this query?
How Can i add "DateDiff(day, T0.DueDate" as a column in this query?
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > [%1]) AND T0.RefDate <= [%1] AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
As you mentioned not possible to assign the dynamic column in the query.
will give you example for generate a dynamic column name in SQL query, using this example you can achieve your requirement.
DECLARE @cols AS NVARCHAR(MAX),
@query AS NVARCHAR(MAX)
select @cols = STUFF((SELECT distinct ',' + QUOTENAME(C.Name)
from [History]
FOR XML PATH(''), TYPE
).value('.', 'NVARCHAR(MAX)')
,1,1,'')
set @query = 'SELECT [Date],' + @cols +'
from
select [Date], Name, Value
from [History]
) x
pivot
max(value)
for Name in (' + @cols + ')
) p '
execute(@query) -
How can I add [# of days] to a date?
edit:: Nevermind, I found the answer. I'm using AS 2.0
Answer: new Date(year, month, date+#) where # is the # of days to add.
Helpful link: http://blog.flexexamples.com/2007/08/24/date-math-for-lazy-people/ (AS 2.0 & 3.0)
Original question:
The title is horrible, couldn't think of how to word it.
Anyway, I want to know how I can take a date, add a few days to it, then display the resulting date.
For example, today's date is 8/20/2010. I want to be able to add 10 days to this and then display the result in a label or other output.
The label would then read 8/30/2010. If I wanted to add 15 days to today's date, the label would read 9/4/2010.
Any help is appreciated, thanks!Another way of adding values to a date object is to set up constants, and this will make life easier if you do Date math frequently, or are adding to a date which is unknown until runtime (i.e., not neccessarily today's date).
private var todayDate:Date = new Date();
//One day, in milliseconds:
private const oneDay:Number = 1000 * 60 * 60 * 24;
private function addDaysToTheDate():void {
//The number of days you wish to add:
var daysToAdd:Number = oneDay * 10;
//Add the days to today's date:
var answer:Date = new Date(todayDate.time + daysToAdd);
Alert.show(answer.toDateString()); -
How can I add a line item to delivery?
Hi all,
How can I add a line item in a delivery without using BDC?
Regards!
CurtisHi,
I have tried
BAPI_OUTB_DELIVERY_CHANGE
and this only allows you to change existing lines not add lines.
Since its outboud delivery that I'm interested in I will not look at the inbound that you suggested.
Any other suggestions would be appreciated.
Regards!
Curtis -
Hi,
I have built a vacation leave holiday system for SharePoint Foundation 2010 using SharePoint Designer workflows and Javascript. Everything works perfectly but I'm struggling to design a solution for users to specify half day requests that span over dates
greater than 1 day, i.e. my half day solution works but only when the start and end date are the same. How would I change the user interface to allow users to choose which day they want the half day to be requested when the vacation leave holiday request is
from, say, 6th - 10th Jan 2014?
Thanks.Hi ,
I have a test on my machine with a custom approval workflow and it can work normally .Here are the detailed steps :
1.
Open the site in SharePoint Designer .Create a workflow to associate with the document library .Set the workflow to start when an item is created and when an item is changed
.Also allow the workflow to start manually .
2.
Choose ‘Collect Data from a user’ .
3.
Click on the data and give a name to the Task created .
4.
Define the custom form field name as ‘Approve ?’ .Set the information type as Choice .
5.
Set the choices as ‘Approve’ and ’Reject’ .Display as Checkboxes .Uncheck the ‘Allow fill-in values’ and ‘Allow blank values’
.Click finish to save .
6.
Click on users and add the users who will approve the documents .
7.
Keep the output to variable as collect .
8.
Add a new step .Choose ‘If any value equals value ’ .Set the any value ‘Data source’ as workflow variables and parameters .Set the ‘Field
from source’ as Variable: collect .
9.
Set the value behind ‘equals ’ as ‘Approve’ .
10.
Add a new action ‘Update list item ’ .Set the item as current item .Add the field Approval status as Approved .
11.
Add an Else-if branch to update the Approval status as Rejected .
12.
Publish the workflow and test in your site .
Thanks,
Entan Ming -
How can I Add and save new row in data table?
Hello All,
I want to add new row in the jsf page with data and save it.
I have data table with rows from database..
<h:form id="test">
<h:dataTable id="hh" value="#{MyBean.dataList}" var="list">
<h:column>
<h:outputText value="#{list.name}"/>
</h:column>
<h:column>
<h:outputText value="#{list.lastName}"/>
</h:column>
<h:column>
<h:outputText value="#{list.phone}"/>
</h:column>
</h:dataTable>
<h:commandButton id="sd" action="#{MyBean.addNewRow" value="Add Row" />
<h:commandButton id="save" action="#{MyBean.updateList" value="Save Data />
</h:form>
{code}
i understand action with save to database, but still I could not find right way to add new row from jsf page.....
I want add new row, add new name, lastname, and save it....
Edited by: armen on Feb 20, 2009 12:39 AMThanks, but your example consist from too many parts and I could not join all components for understatnding all proccess.
-
Add one day to the current date
Hi all,
A stupid question...
How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days:
something like:
select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY')
from dual
Thanksselect sysdate+1 "add one day" from dual;
-
How can I add an event to my calendar that occurs every third day?
Do you happen to have a Mac? If so, and if you use iCloud to sync your calendars, you can do that on your Mac and your iPad will understand. But you cannot create such a repitition (or something like the third Tuesday of each month) on your iPad.
In Calendar on your Mac, you would create the event, choose "Custom ..." as the repitition frequency, then choose "Days" and choose every 3 days. -
How can I add the date at the top of the screen along with the day and time display?
Hello,
How can I add the date at the top of the screen along with the day and time display?
Thanks so much!Open System Preferences>Date & Time:
Ciao. -
How can i add a request.
when i am importing a request i am enable to find the request number in the import queue i tried refreshes many time i need to import it but i couldn't how can i add a request.
Hi,
Goto stms_import ->extras>other requests-->add. Then give the transport request in the popup window. then click the ok button. then u can import the transport request.
With regards
Sudha -
How can i add fields to a cube which is in production support
hi,
how can i add fiels to a cube which is in production support.Hi Maruthi
You need to add new fields to cube in Development system and then transport it to production after testing.
Edit cube in RSA1. Add the new infoobjects from right hand directory to left hand pane and assign these new infoobjects to suitable dimensions. Save and activate the infocube. Now go to change update rules for this infocube and do proper mapping of these infoobjects.
Save & activate the update rules.
RSA1-> Transport connection-> select cube, update rules and related objects and create transport request.
After testing is done, give the transport request number to your Basis person and he will do the transports for you.
Regards
Pradip -
How can I add file attachment to my form and get the attachment by email?
I'm using this code and it works fine, but I don't get the attachment file in the email. How can I add this to my code?
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
$(document).ready(function() {
$("#form1").validate({
rules: {
first: "required",// simple rule, converted to {required:true}
email: {// compound rule
required: true,
email: true
last: {
last: true
comment: {
required: true
messages: {
comment: "Please enter a comment."
// ]]></script>
<script type="text/javascript">// <![CDATA[
function validate ()
if (document.form1.first.value == "")
alert("Please enter your First Name");
document.form1.first.focus();
document.form1.first.style.border="1px solid red";
return false;
else if (document.form1.last.value == "")
alert("Please enter your Last Name");
document.form1.last.focus();
document.form1.last.style.border="1px solid red";
return false;
else if (document.form1.emailaddress.value == "")
alert("Please enter your Email Address");
document.form1.emailaddress.focus();
document.form1.emailaddress.style.border="1px solid red";
return false;
function has_focus() {
if(document.form1.first.value == "")
document.form1.first.focus();
document.form1.style.first.border="1px solid green";
function set_focus(x)
document.getElementById(x).style.border="1px solid #80CA75";
function clear_focus(x)
document.getElementById(x).style.border="1px solid #DBDFE6";
// ]]></script>
</head>
<body>
<p><span style="color: #666666; text-align: center; font-size: 13px;">Please complete this form if you have any technical issue.</span></p>
<form id="form1" action="http://www.southsun.com/php/tech_issue.php" enctype="multipart/form-data" method="post">
<table style="width: 850px; font-size: 15px; padding-left: 20px; text-align: center;" border="0">
<tbody>
<tr>
<td style="text-align: left; padding-bottom: 20px;" colspan="2">
<h2><span style="color: #666666;">Please complete this form if you have any technical issue.</span></h2>
</td>
</tr>
<tr style="padding-top: 40px;">
<td style="text-align: left;"><span style="color: #abaf6f;"><strong>First Name</strong>:*</span><input id="first1" name="first" type="text" /> <br /><br /> <span style="color: #abaf6f;"><strong>Last Name</strong>:*</span><input id="last1" name="last" type="text" /><br /><br /> <span style="color: #abaf6f; padding-right: 33px;"><strong>Email</strong>:</span><span style="color: #abaf6f;">*</span><input id="email1" name="email" type="text" /><br /><br /> <span style="color: #abaf6f;"><strong>Shipping Method:</strong><br /></span> <input name="shippingmethod" type="radio" value="prioritymail" /> Priority Mail <input name="shippingmethod" type="radio" value="store" /> In Store Pick up <br /> <input name="shippingmethod" type="radio" value="ground" /> Ground <input name="shippingmethod" type="radio" value="3day" /> 3 Day Select<br /><br /> <span style="color: #abaf6f;"><strong>Payment Method:</strong><br /></span> <input name="paymentmethod" type="radio" value="paypal" /> Paypal Method <input name="paymentmethod" type="radio" value="creditcard" /> Credit Card<br /> <strong><br /> <span style="color: #abaf6f;">If getting an error message, please explain the error:</span></strong><span style="color: #abaf6f;"> <br /></span> <textarea id="errormessage" cols="20" rows="2" name="errormessage"></textarea><br /><br /></td>
<td style="border-left: 1px solid grey; padding-left: 40px; text-align: left;"><span style="color: #abaf6f;"><strong>If using Paypal, Were you redirected successfully?</strong><br /></span> <input name="paypalredirect" type="radio" value="yes" /> Yes <input name="paypalredirect" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>If using Credit Card, Did you get an error?</strong><br /></span> <input name="carderror" type="radio" value="yes" /> Yes <input name="carderror" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>What happened after clicking place order? </strong><br /></span> <textarea id="placeorder1" cols="20" rows="2" name="placeorder"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Comments</strong>: <br /></span> <textarea id="comments1" cols="20" rows="2" name="strcomments"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Attach PrintScreen</strong>: <br /></span> <input name="strresume" type="file" />
<div style="height: 50px;"> </div>
</td>
</tr>
<tr>
<td style="padding-top: 20px;" colspan="2">( * ) indicates required fields</td>
</tr>
<tr>
<td style="text-align: center; padding-top: 20px;" colspan="2"><input class="button" name="submit" type="submit" value="Submit" /> <input class="button" name="reset" type="reset" value="Reset" /></td>
</tr>
</tbody>
</table>
</form>
</body></html>
PHP
<?php
echo $savestring;
//--------------------------paramaters--------------------------
// Subject of email sent to you.
$subject = 'prueba con uploads';
// Your email address. This is where the form information will be sent.
$emailadd = '[email protected]';
// Where to redirect after form is processed.
$url = 'http://www.pch-graphicdesign.com';
// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
$req = '0';
$target_path = "http://www.pch-graphicdesign.com/php/uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
$text = "Results from form:\n\n";
$space = ' ';
$line = '
foreach ($_POST as $key => $value)
if ($req == '1')
if ($value == '')
{echo "$key is empty";die;}
$j = strlen($key);
if ($j >= 20)
{echo "Name of form element $key cannot be longer than 20 characters";die;}
$j = 20 - $j;
for ($i = 1; $i <= $j; $i++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>Sending a file as an attachment to an email involves setting the correct MIME type and headers. There's a brief tutorial here: http://webcheatsheet.com/php/send_email_text_html_attachment.php.
Also, you need to use the same name as in your form. In the script you have shown here, the name of the file field is strresume, but your processing script uses this: $_FILES['uploadedfile']['name']. It should be this: $_FILES['strresume']['name'] -
How can i add one month to a date variable ?
Unlike the week which always 7 days, month may change from 28 to
31, so how can i add one month to a date variable ? Thanks in
advance.Adding 365 won't always work because of leap years.
You could use the following SQL statement:
SELECT
TO_DATE(
TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
(TO_CHAR(TO_DATE(SYSDATE), 'YYYY') + 1)) NEXT_YEAR
FROM
dual
NEXT_YEAR
08-JAN-03Or you could create your own function. You would use this
exactly like add_months:
CREATE OR REPLACE FUNCTION add_years
(v_date DATE, num_years NUMBER)
RETURN DATE AS
v_year DATE;
BEGIN
v_year := TO_DATE(
TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
(TO_CHAR(TO_DATE(SYSDATE), 'YYYY')
+ num_years));
RETURN v_year;
END;
SELECT
add_years(SYSDATE, 1) new_year
FROM
dual
NEW_YEAR
08-JAN-03
SELECT
add_years(SYSDATE, -1) new_year
FROM
dual
NEW_YEAR
08-JAN-01 -
hi how can i add search help .
when i am giving a parameter of type BSART it takes the in built search help
but i want only those values to appear in F4 help which have diff values in category but i want only with catogory "F".
thanks in advance
naval bhattHi,
You have a Function module <b>HELP_VALUES_BSART</b>
or
You need to use AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD>.in this one use the Function module F4IF_INT_TABLE_VALUE_REQUEST.
Look at the below linkhttp://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Regards
Sudheer -
How can I add a group within Contacts
How can I add a group within my Contacts list?
This has been a highly requested iOS feature for years. Nothing like that is available yet without third party apps.
Maybe you are looking for
-
What is the latest firmware for my ipod classic 80GB (MB147)
Hi all, I have not got access to iTunes. I want to find out if there are software updates for my iPod classic. The "About" area reveals the following information: Serial number - not really relevant Model - MB147 Version - 1.1.2 PC This is the 80GB
-
Is it possible to access the http web interface over the fa1 management interface?
Hello All, I am remotely connected into a Cat 4500 + Supervisor V module via console cable and point to point connection from laptop to fa1 management interface on SupV. SupV module is running IOS 15.0(2)SG8. I am not able to physically chan
-
Adding Standalone Database to Group using Fail Safe fails
Background: Oracle: 10.2.0.4 OFS: 3.4.1 Have installed Oracle Fail Safe correctly without errors. Ran Verify Standalone Database get this result: 27 10:00:04 > FS-10345: Verification of standalone database MYDB completed successfully 28 10:00:04 FS-1
-
Why i can't erase the hd in disk utility
i'm using os x lion and can't erase my hd using disk utility, what i need to do is create a bootcamp partition but the system won't let me unless i first erase my hd, recover using time machine and then try again the bootcamp partition, any help? thx
-
Photoshop and premiere elements 13 update
When I try to update photoshop elements 13, the program tells me that the product is not original. I bought and paid regularly by Adobe photoshop and premiere. No solution? Thank you for your help. Paolo