Soma de dias em Data do Documento
Boa tarde a todos!
Estou com o seguinte problema:
Possuo um campo definido pelo usuário no qual desejo adicionar a seguinte consulta formatada:
SELECT +10
O problema ocorre quando essa conta supera 30 / 31 dias! No SQL, funciona normalmente, e o mês é alterado.
Já no SAP B1, é retornado um erro, como se não fosse possível adicionar mais dias ao mês.
Não sei onde estou errando.
Agradeço desde já!
Lucas Dias
Fábio,
Consegui de uma forma ainda mais fácil:
SELECT $[ODLN.TaxDate.Date]+10
A parte ".date" funciona como um CONVERT() .
No caso, eu precisava adicionar em um campo definido pelo usuário, a Data do Documento de Marketing + a quantidade de dias da primeira linha da prestação, na condição de pagamento indicada na aba 'Contabilidade'. Consegui da seguinte forma:
SELECT $[ODLN.TaxDate.Date]
+
(SELECT TOP 1 CASE WHEN OCTG.InstNum = '0' THEN 0 ELSE
CASE WHEN OCTG.InstNum IS NULL THEN 0 ELSE CTG1.InstDays END END as 'QTDDIASPREST'
FROM OCTG
LEFT JOIN CTG1 ON OCTG.GroupNum = CTG1.CTGCode
WHERE OCTG.GroupNum = $[ODLN.Groupnum])
A segunda parte já estava funcionando, mas eu não estava conseguindo adicionar. Agora está ok!
Obrigado pela ajuda!
Lucas Dias
Similar Messages
-
Input is 10 digit date (dd/mm/yyyy) some times instead of date they will se
Hi Experts,
requirement is
input is 10 digit date (dd/mm/yyyy) some times instead of date they will send as space(10 digit). it should not fail in PI.
kindly help me on this.
regards
EltonHI,
I have given like
if input equals to constant(space)
then constant(space)----
> here you have to pass constant date / system date
else
input
input -> constant(10 space) -> equals ->if ->
then -> constant(date) ->target
else -> input->target filed
thanks, -
Some help on sample data for BPC
Hi
I am trying to create a demo BPC apps( NW 7.5 ) for my self learning exercise.Can some one please help me with sample master data and sample transaction data for consolidation apps ?
I am trying to load some good qualities of data ,so that some meaningful exercise can be done.Any help in this regard will be highly appreciated.I am not looking for how to load the data.
Thanks in advance
RajeshHi Rajesh
Have you run the program UJS_ACTIVATE_CONTENT to create the ApShell Appset?
Additionally you can download the starter kits which should include some basic data to start you off.
I hope this helps
Kind Regards
Daniel -
Sender make some changes to the data
Hi,
Could anybody please answer to this question. In file to idoc scenario, the data has been sent from sender(file) to receiver(R/3) . If the customer wants to make some modifications in the data is it possible to update the receiver system.How can it be achieved.
regards
Pavanhi,
depends on what you post (on the kind of document):
if the customer sends you sales orders via file - IDOC
then you can just open the sales order in R3 and update it...
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Some apps "use cellular data" will not remain turned off
some apps "use cellular data" will not remain turned off
No matter how often I go to settings>cellular and turn off the apps, as soon as I close that screen they automatically turn back on.
I prefer not to delete the apps and reload them as I will loose the data in them when they are removed.
Thanks for the help.First thing and easiest thing to try is a device reset:
Device Reset (won't affect settings/data/music/apps/etc)
1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally. -
I cannot access files I uploaded from an old computer. The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address and username?
Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
Apple's iWork suite (Pages, Numbers, and Keynote.)
Open Office (Office 2007-like suite compatible with OS X.)
NeoOffice (similar to Open Office.)
LibreOffice (a new direction for the Open Office suite.) -
Some of the Master Data Attributes DataSources not visible in RSA5
Hi Experts,
After installation of R/3 ECC 5, some of the master data attributes datasources are not visible in RSA5.
Do i need to do any other settings to get them.
Awaiting response....
Thanks in advance.....
RafiHi Prakash,
Thanks for quick response. I have checked those tables. i found that i have same datasources as it is in RSA5.
For example: i have 0SALE_DIST_TEXT in both RSA5 and ROOSOURCE, how i can have the attributes for the same.
also i don't have attributes datasource for Customer Group1...5, Material Group1...5, sales office etc.,
Anticipating your response,
Thanks
Rafi -
Bought the new iphone and tried to restore it to my old iphone settings. It synced some of the old data onto it, but then it froze and continues to. It says to restore it and erase everything, but I'm afraid to lose my contacts. Will the contacts be lost or will they be there when I sync it back up?
Hello timotim56,
This can be achieved by removing the device via iCloud.com
iCloud: Remove your device
http://support.apple.com/kb/PH2702
Cheers,
Allen -
An error occurred importing the file, although some of the file data may ha
I am trying to update some xml. I login to admin module and click on Import Exchange File. When I try to import an xml I get this error:
An error occurred importing the file, although some of the file data may have been processed. ==> com.waveset.util.IOException: ==> java.sql.SQLException: ORA-01407: cannot update ("WAVESET_V60_QA"."OBJECT"."XML") to NULL
I have checked database permission and the user has proper permission.
Any idea why I would get this error?
Thank you in advance
DevalHi,
source account must have values. If not, check your import format.
Regards -
Some Get Info File Data Not Showing Up On Ext Hard Drives
I've stored all my videos on my external firewire harddrives. I notice some of the file information in the Get Info window on these videos is missing after they are transferred to the external harddrive. Last Opened, Dimensions and Duration are blank. If I play the video these fields remain blank. However the same file on my internal harddrive shows this data.
Anyway to get this information to appear in these files on my external hard drives?
KelvinWhat volume format are your external hard drives?
For example, if they're formatted as Windows FAT32 rather than Mac OS Extended (HFS+), it's possible that that type of extended Finder information isn't supported or can't be preserved when copying the file to the drive.
Hope this helps.... -
I have just upgraded to iOS7 and when I open my apps some have data saved and some (Eden, Survivalcraft) do not. My son is distraught that all his hard work has gone so does anyone know why this would be and how do I fix it please?
Nevermind. Problem solved. They were there. I just couldn't see them.
-
Iphoto changes the date on some events to a date in the future
I went into my iphoto and noticed some events had been changed to a date in the future. It seems to do it on random events. It also grouped all of my videos into one event dated the end of May. Does anyone know what causes this and how to prevent it?
Make a temporary, duplicate copy of your library and apply the three fixes in order as necessary.
Fix #1
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your HD/User/Home()/ Library/Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your HD/User/Home()/Library /Caches/com.apple.iPhoto folder.
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
Fix #2
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Select the options identified in the screenshot.
Fix #3
Using iPhoto Library Manager to Rebuild Your iPhoto Library
Download iPhoto Library Manager and launch.
Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
In the next window name the new library and select the location you want it to be placed.
Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
OT -
Need some hints for evaluating data from Central Performance History
Hi Experts,
I am pretty new to all the BI-stuff and hopefully someone can provide some hints. I got the requirement to read data (CPU usage/peaks) from central performance history of "system a" into "bi system" to generate overviews/charts/etc
Now I guess there might be a standard report/info cubes and stuff which will help to solve this.
I would really appreciate if someone could throw me a few keywords about this topic.
Thanks in advance!Hi David,
Thanks, I hadn't looked at the note.
Section 2 - history of all connected systems showed me what to do to collect the data. I had seen that in the setup but not understood the implications of it fully. The note explained it much clearly than the SAP help.
Thanks again,
Gareth -
How to display values after doing some business logic in data action
hi guys i got the same problem but iam unable to display the values..in my display page when iam trying to do some business logic in my data action class..
can u guys help me out
iam pasting my code which iam working here
my struts-config.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="DataForm" type="oracle.adf.controller.struts.forms.BindingContainerActionForm"/>
</form-beans>
<action-mappings>
<action path="/inputform" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/inputform.uix">
<set-property property="modelReference" value="inputformUIModel"/>
<forward name="success" path="/inputAction.do"/>
</action>
<action path="/inputAction" className="oracle.adf.controller.struts.actions.DataActionMapping" type="order.view.InputAction" name="DataForm">
<set-property property="modelReference" value="displaypageUIModel"/>
<forward name="success" path="/displaypage.do"/>
</action>
<action path="/displaypage" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/displaypage.uix">
<set-property property="modelReference" value="displaypageUIModel"/>
</action>
</action-mappings>
<message-resources parameter="order.view.ApplicationResources"/>
</struts-config>
my input form uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40"
expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0" method="post">
<contents>
<messageTextInput model="${bindings.password}" text="username"/>
<messageTextInput model="${bindings.username}" text="password"/>
<submitButton text="submit" event="success" destination="inputAction.do"/>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
my display uix
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40"
expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<messageStyledText model="${bindings.password}" prompt="Prompt 0"/>
<messageStyledText model="${bindings.username}" prompt="Prompt 1"/>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
my model bean
package order.model;
public class TestBean
private String username;
private String password;
public TestBean()
public String getUsername()
return username;
public void setUsername(String username)
this.username=username;
System.out.println("the username after actions class:"+username);
public String getPassword()
return password;
public void setPassword(String password)
this.password=password;
my data Action class
package order.view;
import oracle.adf.controller.struts.actions.DataAction;
import oracle.adf.controller.struts.actions.DataActionContext;
import oracle.jbo.uicli.binding.JUCtrlActionBinding;
import oracle.jbo.uicli.binding.JUCtrlAttrsBinding;
import order.model.TestBean;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
public class InputAction extends DataAction
* Delegate to the Struts page lifecycle implementation
* {@link StrutsJspLifecycle#findForward findForward}
* @param actionContext the lifecycle context for the DataAction
* @throws Exception
protected void findForward(DataActionContext actionContext) throws Exception
// TODO: Override this oracle.adf.controller.struts.actions.DataAction method
//super.findForward(actionContext);
TestBean testbean=new TestBean();
System.out.println("this is action form"+actionContext.getActionForm());
String username=(String)((JUCtrlAttrsBinding)actionContext.getBindingContainer().findCtrlBinding("username")).getInputValue();
System.out.println("this is username"+username);
String username1=username+"hye wats up";
testbean.setUsername(username1);
ActionForward forward=actionContext.getActionForward();
ActionMapping mapping =actionContext.getActionMapping();
System.out.println("this is mapping"+mapping);
mapping.findForward("success");
// To handle an event named "yourname" add a method:
// public void onYourname(DataActionContext ctx)
// To override a method of the lifecycle, go to
// the main menu "Tools/Override Methods...".
check this out iam unable to display in my display page so help me out if any one canNo, in this case, I'm using standard JSP with ADF and struts validator.
If I don't use struts validator and there are errors (such as putting a string into a number which produces a jbo-25009), the list value will be retained.
When using the validator, it appears that it is NOT retained.
I've written some code to attempt to set the list element back, which "looks like" it's working right now.
There's still a problem with the second scenario:
1. user clicks checkbox and hits [submit]
2. get's error - you have to enter 5 address items
3. User wants to backout, so he unchecks the box and resubmits
4. The box redisplays as "checked"
SO, at that point, I thought... can't I use YOUR EXAMPLE on how to handle a checkbox.
I place some code in the reset method of the form to perform this:
map.put("AddressChangeFlag", (String) "" );
(that is, I've detected via the request that this flag is null), so I'm trying to make sure it retains it!
I do that and it runs into a problem during the processUpdateModel aT:
BindingContainerValidationForm updateForm= (BindingContainerValidationForm) actionContext.getActionForm();
//Get the binding for our particular column JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get("AddressChangeFlag");
call, with an error:
JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=java.lang.String
java.lang.String
The value for updateForm.get("AddressChangeFlag") is "", which I'm assuming means the form field is no longer in the request object??
I'm lost at this point, and have been working on it for more than 1 day.
Thanks for responding though, and I await feedback ;) -
Need some logic for displaying data from Internal Table
Hi Guys,
I have a Internal Table with multiple entries.
My ITAB looks like below.
PN VBELN MATNR MATKX
1 111 P-101 XXX
2 121 P-102 XYZ
2 112 P-103 ABC
3 134 P-104 DEF
3 124 P-105 EFG
Now my requirement is I need to display the out put as follows through ALV or normal display.
<Header> <Date>
<Time>
PN = 1
VBELN MATNR MATKX
111 P-101 XXX
<Footer>
Some gap (May be a line to differentiate)
<Header > <Date>
<Time>
PN = 2
VBELN MATNR MATKX
121 P-102 XYZ
112 P-102 ABC
<Footer>
Some gap (May be a line to differentiate)
<Header > <Date>
<Time>
PN = 3
VBELN MATNR MATKX
134 P-104 DEF
124 P-105 EFG
<Footer>
Thanks in Advance.
Prasad.HI,
Use:
Data: W_PNlike PN.
LOOP AT ITAB.
If Itab-PN ne W_PN.
<Header> <Date>
<Time>
PN = 1.
VBELN MATNR MATKX >>>>>>>>>>>>>>>First Line enter
ELSE.
VBELN MATNR MATKX > line Next entry
ENDIF.
W_PN = ITAB-PN.
AT-END PN.
<Footer>
ENDAT.
ENDLOOP.
Hope this resolve your issue.
Regards,
Gurpreet
Maybe you are looking for
-
My 851W only allows a single wireless connection at a time
1st device associates fine. 2nd device gets message - You are either out or range of credentials incorrect. If I shut down the wireless adapter in the 1st device the 2nd immediately associates. Re-enable adapter in 1st device and now it cannot
-
ClassDefNotFound Exception when calling PL/SQL Web Service
Hi to all J2EE'ers. I'm trying to construct a sample PLSQL Web Service. I'm using a 10g R1 Database Server, Apache HTTP Server from the 10g Companion CD, and OC4J 9.0.4 (I think it's called "standalone" OC4J), all on Linux (Suse 9.1). I set up a simp
-
Im a student and I do not own a credit card, I find out if i can use debit card instead of credit card to purchase apps.If the answer is yes can you explain how please. Thank you
-
Everyone having problems with choppy QuickTime video on computers running Vista with NVIDIA motherboards needs to view the following link and then ask Apple and NVIDIA to work together to fix this problem. I see this same problem posted on this discu
-
I need to rotate video 90 degrees and make it look right.
I'm editing a video for a friend - they shot some video vertically (they didn't realize it doesn't work for video as it does for still photos). I tried rotating the picture but it's distorted (Stretched). Are there settings I can use to rotate pictur