on 02-10-2009 9:56 AM
Hi All,
When i select a date in font end the selected date i have to send to back-end in mm-dd-yy format
please help me in this ....
Regards,
Shilpa
Hi,
For sample RFC implementation please go through the below thread.
for formatting the date, use the below code
SimpleDateFormat format= new SimpleDateFormat("mm-dd-yy");
String formattedDate=df.format("your input date);
mm-dd-yy is the format you want and in place of your input date give the date from your input screen.
Now, formatted date contains the result.
Hope it helps.
Thanks,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure that your formatted date in webdynpro and the date format that is in backend are same and also the seperators for date month and year...
Thanks,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shi
In the view rightclick on the container where u want to place the date field,and select apply template
From template select the form . Then from the Model node select the date attribute to which u want to update the value.
So in the out put u will be getting a filed with help to select the date There select the date and execute bapi.It is automatically converted to the back end format
Check with this
Thanks
Madhu
Hi,
When u r passing a date as a RFC parameter then both should be in same format.
Try with this code
Calendar c = Calendar.getInstance();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); // specify u r format
String formattedDate=df.format(c.getTime());
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create a simple data type of type DATE in the format which you want to send
Then map the type of the context to the type of the simple format which you created.
So once the user selcts the date at the front end it will be converted to the format which you created earlier
Regards
Padma N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do the following coding
SimpleDateFormat format =
new SimpleDateFormat("MM-dd-yy ");
format.parse(give your date format here in a string format);
This will work
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To send data to the backend from WD you need to import the Model
Bind the model to the controller and then to the view
Create respective UI elements for Input/output
bind them to the context attributes mapped from the model.
To do the above step You can use the wizards provided by Webdynpro.
Ex: Service Controller, Templates in View.
Finally execute the model.
If you need to change the date format use the Simple Date formatter http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Or you can use the dictionary types.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Format your selected date as mm-dd-yy and bind that to RFC attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.