Date field Length in Java Webdynpro
Hi Experts,
I have a strange case.
I created a new filed in the infotype 0175: ZZDAT like the standard field AUSGD (type DATS length 8)
I modified the ESS view and added the new fields.
The view is working perfectly, the data is transfered between the databse and the webdynpro, the only problem is, that the user can't enter the date manually, because last point after the day can't be entered: e.g.: 2010.01.01 instead of 2010.01.01.
If the user uses the search help, and selects the date form the popup calendar, then the date format is correct: 2010.01.01.
(there is a point after the DAY ) I tried to change the field length manually but still, the last point after the day can't be entered.
Can you please help me to find out what is the problem?
Thanks
N.
Unfortunatelly this doesn'T help at all.
I reimported the data element, and restarted the server, but the result is the same. I can'T enter the date manually..
To be honest, i'm fed up with this stupid java webdynpro. I hope there is a special place in hell, for the people who invented this....
Anyway, I think the only solution here is to limit the field, capabilities. I'll try to set the Date picker as the only input way... I hope this is possible... it's easy in ABAP I just hope that java can do this the same "non-somplicated" way.
If you have any idea how to do this I'll be very greatfull for any kind of help.
Bye
N.
Similar Messages
-
CR seems remember last time data field length
Hi.Everyone:
Is there anyone have a problem when I use CR 2008 to preview XML data.
If I preview a field (ex:name "abcde"), then save it .
Next time when I open template with name field change to "crystalreport"
CR template will only display first five character i.e "cryst"
So what's wong? any option controls this?
If anyone have a solution. It'll be really appreciated.
Regards
JohnnyIt seems doesn't work. "Can Gow" Option let you extend the frame size if data is more bigger than the frame. but with my case.
Even data is short than the frame . It still doesn't show up..
Anyone else have any idea? or it's because XML driver characteristic?
so now every time before I save, I have to read a XML file with all field filled with data in maximum length.
It's really bothering..
Johnny -
How to Get and Set personalization data from Iview with Java Webdynpro ?
Hi All,
I'm trying to get Iview properties from an Iview in the portal, did anyone knows how to do this?
sample caode?
Thanks,
AmitYYou can use PCD API to access iView properties
Check this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/314ae7a5-0c01-0010-c198-9c7c5e8cee46
/people/daniel.wroblewski/blog/2006/08/15/pcd-ii-creating-portal-objects -
Validation of data fields in the Excel through webdynpro java
Hi all,
I have requirement as below:
There are data fields in the Excel File which are mandatory.When we are uploading the Excel file through webdynpro java it should validate the mandatory data fields are filled or not.Can anybody please send the required code or any related links.
Thanks,
Prakash.Hi Surya,
As per my info, you need to upload the file first then only web dynpro will be able to check for the mandatory fields.
Do this, while reading the buffer from the excel, just check the size of desired columns. Hope that will help.
Best Regards
Chander Kararia -
Hi, I am trying to hardcode date field in a project with date say "21.11.2007", the rfc takes only date in java.sql form. can you please help me how can I do so. Plz help me out.
Regards
UmangI have used the following code for importing the date value to a rfc the I have checked that the code for date is fine but still I am not getting any output. I think that its the issue of the date format. Because while testing the RFC, it is not accepting date in dd-mm-yyyy format but is only accepting in the format dd.mm.yyyy or ddmmyyyy.
So I believe that it is the issue of date format. or might be possible that there would be some error in the way I am executing the RFC.
Even after setting the debugger in RFC, the the RFC is not coming into picture i.e, the project is not hitting the RFC might be because of the wrong format of date .
Could you please refer to the code and suggest something.
Rp_Get_Pernr_From_Userid is the name of RFC.
try
Rp_Get_Pernr_From_Userid_Input inp = new Rp_Get_Pernr_From_Userid_Input();
wdContext.nodeRp_Get_Pernr_From_Userid_Input().bind(inp);
wdContext.currentRp_Get_Pernr_From_Userid_InputElement().setBegda(new java.sql.Date((new java.util.Date()).getTime()));
wdContext.currentRp_Get_Pernr_From_Userid_InputElement().setUsrid(wdContext.currentContextElement().getUserid());
String dateInput = "9999.12.31";
SimpleDateFormat sdf = new SimpleDateFormat( "yyyy.MM.dd" ) ;
java.sql.Date dt = null;
try {
dt = new java.sql.Date( sdf.parse(dateInput).getTime()) ;
catch(Exception io)
io.printStackTrace();
wdContext.currentRp_Get_Pernr_From_Userid_InputElement().setEndda(dt);
wdContext.currentRp_Get_Pernr_From_Userid_InputElement().modelObject().execute();
catch (Exception e)
wdContext.currentContextElement().setTest(e.toString()); -
Error with date field when inserting records into sql server from webdynpro
Dear SDN's,
I am trying to insert the records into sql server through my webDynpro program.
I have created a date field in a dictionary with the datatype date.
In my webdynpro program to insert the date i am following the below format.
String dateString = "2006/12/10";
java.util.Date d=new java.util.Date(dateString);
java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
when i try to execute it, it gives the following error.
<b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column >>REQDT<< (DATE)</b>
Please correct me.
Your help will be appreciated.
Regards,
Sireesha.BHi,
int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
try like this.
I Think in SQL the general format to take date as input like this.
INSERT INTO X VALUES ('10/30/56')
thaks,
Lohi. -
Passing context data back to Java Webdynpro
Hi All,
I have created Java Webdynpro's with Adobe Interactive Forms in them. I use ActiveX not Native. Yesterday passing data from the AIF to Webdynpro for Java was working like this (it didn't work in Native mode) today it doesn't. Neither does pressing any buttons. I'm not sure what has been installed on my system, it could be Adobe Read 9.0. Now creating the forms using the livecycle designer in de Netweaver developer studio is also very unstable (unworkable)
My main question is: how can I pass the data from the interactive form to webdynpro for java (without using the submit button, as I want to have such buttons on my webdynpro and not in my forms.)
JeschaelJeschael,
Try creating a new project and repeat the same steps. Do you get error there as well.
Also try setting some context in WD, assign it to a Text Field of Adobe and see if you get the value.
For eg: Let's assume you created a Context called "Name" then set it
wdContext.currentContextElement.setName("Test");
Now try to assign this to Text Field, see if you get the value in Adobe form by writing this code in the initialize event of Text Field in Adobe LiveCycle Designer in JavaSript.
xfa.host.messageBox("Value is :"+TextField1.rawValue);
Chintan -
Data connection between Java Webdynpro - Flex Flash Island
Hi,
I'm developing a Java Webdynpro with connection to a Flex Flash Island. I'm using Flex 3.2.
I've already set up the connection from WDJ to Flex, by using Events and the FlashIsland.fireEvent method, this all works fine. Now I'm trying to update a value in WDJ, to be updated in Flex. This gives the following error:
Error: Error #1023: Stack overflow occurred.
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.binding::Watcher/wrapUpdate()
at mx.binding::PropertyWatcher/eventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at UWLApplication/set opentask_updated()
at MethodInfo-4234()
at Function/http://adobe.com/AS3/2006/builtin::call()
at sap.core.wd.context::WDContextListener/execute()
at sap.core.wd.context::WDContext/notifyListeners()
at sap.core.wd.context::WDContext/_set()
at sap.core.wd.context::WDContext/set()
at sap.wd.island::WDIsland/storeProperty()
at sap.wd.island::WDIsland/onUpdateProperty()
at mx.binding.utils::ChangeWatcher/wrapHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at UWLApplication/set opentask_updated()
at MethodInfo-4234()
This is especially strange, cause before I had a refresh button in which I updated my entire item collection. Now, I have added this field and suddenly I get this error !
Does anybody has any idea what this could mean? Any help would be much appreciated ...
My field in Flex:
\[Bindable\]
public var opentask_updated:Number;
<mx:Text id="opentask_updated_text" text="{opentask_updated.toString()}" />
My adaptions in WDJ:
public void getInbox( ) {
wdContext.currentInboxElement().setOpentask_updated(0);
public void wdDoInit() {
getInbox();Solved!
It appeared to be a "long" parameter and I was trying to put it in a "Number" parameter in Flex (because there is no long in Flex)
When I changed both to String, it worked! -
Info on CCM 2.0 characteristics - Fields length, data types & Desc
Dear All,
Does anybody know how or where I can get information about CCM 2.0 standard characteristics data structure?
Or maybe the table name that holds this information?
I need the following info:
1. List of all Standard CCM 2.0 Characteristics
2. Characteristics Data types (i.e Char)
3. Characteristice Field lengths
I have looked into the SAP help for CCM 2.o and the on SAP Servicemarketplace under instguides&IBC....could not find every thing I wanted.
Regards,
GraceHi Grace,
you can look in tables
/CCM/C_CHAR
/CCM/C_CHAR_ALS
/CCM/C_CHAR_ASPT
/CCM/C_CHAR_TXT
/CCM/C_CHR_ALIAS
and
/CCM/C_DTYPE
/CCM/C_DTYPE_HDR
/CCM/C_DTYPE_T
/CCM/C_DTYPE_TXT
/CCM/C_DTYPE_VL
/CCM/C_DTYPE_VLT
in CCM to get the standard charcateristics and their default settings.
Chris -
Hi ,
I am using some standard java webdynpro from ess/mss package the date format is in US format i.e mm/dd/yyyy in the iviews.
How to change this to dd/mm/yyyy.My browser I.E is already set to ENGLISH UK.
Can anyone suggest me how to change the date format to UK
except the standard ess/mss java webdynpro's Remaining applications in portal date format is in UK format.
Thanks and Regards,
devigo to your portal and go to jco maintanance there check the language that you have used to connect please.
Can you please reconfirm if your browser langauge is English UK
tools->internet options ->languages ->English (United Kingdom)(en-gb) -
Extend data source field length
Hallo experts,
I wonder, what are the influences in BW if a R/3 data source field length changes.
Example: size of VBAP customer field ZZ_TEXTis changed from 40 to 80 chars. Data are extracted via 2LIS_11_VAITM datasource.
1) After replication of new datasource, what happens, if the infosource is not updated to the new size, is the field just truncated? Is the next delta load working or is an init load necessary?
2) If fieldsize is updated in infosource and infoproviders too, what happens to the delta management?
Thanks for your ideas!1) After replication of new datasource, what happens, if the infosource is not updated to the new size, is the field just truncated? Is the next delta load working or is an init load necessary?
Ans : First of all I dont understand why you need to load text as transactional data.You could have mainitained a infoobject for customer and could have maintained text for it.This would have made your job simple.
If above is not your case and if text is transaction data then ya if you dont update the infoobject with correct length it will be truncated.
If its from now on the text is changed then you can change it now but I think it wont allow it to change as long as you delete it where ever its used.Hence you will need to reload.
2) If fieldsize is updated in infosource and infoproviders too, what happens to the delta management?
Ans : You may have to reload.
Hope this helps. -
Create data daynamic from field length
HI All
There is a way to create data dynamically if i have in parameter field length
like char10 or KUNNR or char25.
Thanks,
Joyfield-symbol: <fs_dyn_wa> TYPE ANY.
loop at lt_tab INTO ls_tab.
CREATE DATA kunnr TYPE (ls_tab-fieldname).
or if you have a fixed strucutre for the fields in the internal table, define the workarea and use the below code to push the values
MOVE ls_tab-fieldname TO ls_fieldname.
ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_dyn_wa> TO <fs_val>.
endloop.
Edited by: ssm on Jul 26, 2011 7:51 PM -
How to get length of a data field
Hi Experts,
How to get length of a data field. For example data field /BIC/0COSTCENTER length is 9. and the entry in the table is /BIC/0COSTCENTER = 1000 only. How to get the lenth of value in the table.
Any help greatly appreciated. Thanks.
Best Regards,
Suresh.Below is example code
Data: var1(10) type c value '2500',
var2 type i.
var2 = Strlen( var1 ).
write var2.
<b>Reward Points for helpful answers</b>
Satish -
How to color the mandatory fields in a Adobe WebDynpro Java form
Hi Experts,
How to color the mandatory fields in a Adobe WebDynpro Java form?
This will avoid any confusion to he end user while filling the form as he would try to type something in field which is set as Read nlybut stil the cursor appears there.
Regards,
ShobhitHi Shobhit,
you can write something like xfa.host.setFocus(<text field name>). to set the focus or
<text field name>.fillColor = "120,120,123";
<text field name>.resolveNode"ui.#textEdit").border.edge.fill.color.value="120,150.200";
to fill the color.
Refer to adobe dev centger scripting samples to learn more on these.
Hope these helps.
Thanks and Regards,
- anto. -
How to pass data from offline form to webdynpro java
Hi,
Please suggest me how to pass data from offline from to webdynpro java node?
i am using the below code to pass data from offline form(after entering values in the form) to node . i am using form upload ui element to upload offline form and after that i am providng a button to update data.But still i am not able to see data in the node.Any suggestions on this.below code is wriiten on action of the button.
wdContext.currentContextElement().setPDFSource(null);
try
if(null!=wdContext.currentContextElement().getAttributePointer("Resource"))
IWDResource fileResource = wdContext.currentContextElement().getResource();
if("PDF".equalsIgnoreCase(fileResource.getResourceType().getFileExtension()))
byte[] b = new byte[wdContext.currentContextElement().getResource().read(false).available()];
wdContext.currentContextElement().getResource().read(false).read(b) wdContext.currentContextElement().setPDFSource(b);
WDInteractiveFormHelper.transferPDFDataIntoContext (wdContext.currentContextElement().getPDFSource(), wdContext.nodeVn_TestData());
else
wdComponentAPI.getMessageManager().reportException("Please enter correct file");
else
wdComponentAPI.getMessageManager().reportException("Error while uploading file");
catch (Exception e) {
wdComponentAPI.getMessageManager().reportException
("Error in uploading the Adobe Form :"+e.getLocalizedMessage(),false);
Regards,
PavaniIf you choose the second alternative you should erase these global variables after the second form is opened
You can erase the global variable using:
erase('global_var')
Greetings,
Sim
Maybe you are looking for
-
XML File not Found for the Container BC4J.cpx
Hi, Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) : 500 Internal Server Error oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx oracle.jbo.mom.ContainerD
-
Addition of new field in the lis standard structure
I want to bring a new field which is available in the standard structre of 2lis. By bringthis, i have to fill the set up table , so that this can be brought to the PSA. Since my PSA, ODS has already got data, i don't want to run the set up table.
-
CO-PA column formula in report painter
Hi all, Sorry about previously explanation! In KE34, when define a form, we need several columns with a formula that is a combination between cells. Rows: - Row 1: Revenue (Y001) - Row 2: Total cost (Y002) - Row 3: Wages cost (Y003) - Row 4: Depreci
-
This question is for anyone who has purchased an item from iTunes. What action or actions do you take inbetween having selected the item to be purchased and having the word BUY appear on your screen for you to clic on it? I have been told to clic on
-
I know I must be missing something stupid here, but I cannot, for the life of me, get my timeline to show up. I have clicked on "view/timeline" and a checkmark is present there. I have tried clicking on the little arrow bar thingy above the slide, th