HOW TO CHANGED MM/DD/YYYY Format to 02-nov-06
hi friends i have a query regarding date format in program somebodyhas written the logic as follows.
CONCATENATE SY-DATUM TEXT-T01 SY-UNAME INTO V_TEXT.
here sy-datum format is MM/DD/YYYY.Now my requirement is 02-Nov-06.
any one can suggest me how to do and send the sample code.
Thanks,
Maheedhar.T
make use of this FM
<b>CONVERSION_EXIT_IDATE_OUTPUT</b>
Test for function group SCA1
Function module CONVERSION_EXIT_IDATE_OUTPUT
Upper/lower case
Runtime: 168,586 Microseconds
Import parameters Value
INPUT 20061212
Export parameters Value
OUTPUT 12DEC2006
regards
Prabhu
Similar Messages
-
How to changes MM/DD/YYYY Format t o 2-Nov-06
I write a statement like
CONCATENATE SY-DATUM TEXT-T01 SY-UNAME INTO V_TEXT.
Now my requirement is 2-Nov-06 in stead of sy-datum.
sy-datum is in the form of MM/DD/YYYY.
any one cam suggest me how to change it.
Thanks,
Maheedhar.TJust give the input as 11/10/2006
and check the output ..
REPORT zex6 .
PARAMETERS: V_DATUM(11) TYPE C.
DATA: V_MON(3) TYPE C,
V_DAT(2) TYPE C,
V_YEAR(4) TYPE C,
V_MONTHNAME(3) TYPE C,
V_FULLDATE(30) TYPE C.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = V_DATUM
IMPORTING
DATE_INTERNAL = V_DATUM
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT'
EXPORTING
input = v_datum
IMPORTING
OUTPUT = v_datum.
* write:/ v_datum.
WRITE V_DATUM+0(2) TO V_MON.
WRITE V_DATUM+2(2) TO V_DAT.
WRITE V_DATUM+4(4) TO V_YEAR.
SELECT SINGLE KTX FROM T247 INTO V_MONTHNAME
WHERE SPRAS = SY-LANGU
AND MNR = V_MON.
CONCATENATE V_DAT '-' V_MONTHNAME '-' v_YEAR
INTO V_FULLDATE ." SEPARATED BY SPACE.
WRITE:/ V_FULLDATE.
regards,
Vijay -
How to change date and time format
Hi experts,
Can i know how to change the date and time format?
I want the date format to be dd-mmm-yyyy and time format to be hh:mm:ss
These date and time is in my sapscript form.
I make use of PERFORM function in sapscript.
This is the code in my print program.
FORM get_actlog_QA TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA: object TYPE string, "
qaname LIKE JCDS-USNAM, "NAME for engineering process, QA Manager
qadate LIKE JCDS-UDATE, "DATE changed in engineering process, QA Manager
qatime LIKE JCDS-UTIME. "TIME changed in engineering process, QA Manager
DATA: lt_jcds type standard table of jcds,
wa_jcds like line of lt_jcds,
new_date(10) type c.
READ TABLE in_tab INDEX 1.
MOVE in_tab-value TO object.
select * into CORRESPONDING FIELDS OF TABLE lt_jcds
from jcds WHERE objnr = object
AND ( stat = 'E0005' )
AND inact = ''.
Loop at lt_jcds into wa_jcds.
qaname = wa_jcds-USNAM.
qadate = wa_jcds-UDATE.
qatime = wa_jcds-UTIME.
READ TABLE out_tab INDEX 1.
MOVE qaname TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
READ TABLE out_tab INDEX 2.
MOVE qadate TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
READ TABLE out_tab INDEX 3.
MOVE qatime TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
endloop.
clear wa_jcds.
ENDFORM.
This is my PERFORM in sapscript.
/: DEFINE &V_QANAME& = ''.
/: DEFINE &V_QADATE& = ''.
/: DEFINE &V_QATIME& = ''.
/: PERFORM GET_ACTLOG_QA IN PROGRAM ZFIR002
/: USING &VIQMEL-OBJNR&
/: CHANGING &V_QANAME&
/: CHANGING &V_QADATE&
/: CHANGING &V_QATIME&
/: ENDPERFORM.
Sapscript
Prepared by : &V_QANAME& ,, &V_QADATE& ,, &V_QATIME&
The output now is
Prepared by: Name 20080312 115536
I want to change the date format to 12-MAR-2008
and the time format to 11:55:36
Can anyone please suggest on how to solve this?
Thank you.Hi,
Before assigning the QADATE value you can write the logic to display 20080312 as 12-MAR-2008 taking the offset values .
Like
qadate = wa_jcds-UDATE.
qatime = wa_jcds-UTIME.
lw_year = qadate(4).
lw_month = qadate+4(2).
lw_date = qadate+6(2).
case lw_month.
when 1.
when 2.
concatenate lw_date '-FEB-' lw_year into qadate.
when 3.
concatenate lw_date '-MAR-' lw_year into qadate.
endcase.
READ TABLE out_tab INDEX 2.
MOVE qadate TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
And you can also change the timeformat also .
then assign that value to qatime .Then
READ TABLE out_tab INDEX 3.
MOVE qatime TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
I think this helps you.
Regards,
Rajitha. -
How to get mm-dd-yyyy format in ssis
My destination is Oracle and i want the date to be in the below format while migrating data.
mm-dd-yyyy
SFHConsistent "MM/DD/YYYY"
format
(DT_DBTIMESTAMP)(SUBSTRING([date string], 7, 4) + "-" SUBSTRING([date string], 1, 2) + "-"
+ SUBSTRING([date string], 4, 2))
Refer the below link for more help on string conversions.
http://toddmcdermid.blogspot.ca/2008/11/converting-strings-to-dates-in-derived.html
Mudassar -
How to change the automatic character format in Message Editor?
Hi experts,
We use PI 7.31, AAE adapter in our scenario. When we use the message monitor in Adapter Engine, we choose one message and open it in Message editor, we can see the message payload with AUTO Character Format: Windows-1252.
The problem is we have some CN characters and they cannot display in correct formats.
So, is there any way to change the AUTO Character format?
The other question is, can we see the message after mapping in java message monitor?
Thanks.
KevinHi,
The Quantity field which is used in sales order has a standard Data Type:QUAN
with Decimal Places:3 so u cant change the settings in standard data element CRMT_SCHEDLIN_QUAN
If u want the quantity field without decimals then u need to create a Z data element.
Regards,
PePe -
How To change the Date display format to dd.mm.yyyy format
Hello friends
I am expected to display the date fields in my BEx reports in the standard dd/mm/yy format. However, I find that it is getting displayed in mm/dd/yyyy form.
This is creating a bit of a confusion for the client.
Hence can someone please let me know, if I can make any change to the way the date is displayed in the reports.
Looking for a prompt reply
Thanks in advance
regards
Zubin KurianHi Zubin,
There are some corrections in that coding.
year = year+2(2).
CONCATENATE day month year INTO l_date SEPERATED BY u2018/u2019.
Regards,
Yokesh. -
How to change the date time format in jsp
Hello Sir,
I am trying to convert the date from one format into another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a ");
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent request.
Regards
venki.Hello Sir,
I am trying to convert the date from one format into
another format.
In SQLServer one fields type as datetime.
when i tried to display it in jsp with String
variable it shown like below,
2006-08-16 09:11:23.0
how to format this value as
Wed, Aug 16, 2006 09:11 AM
my code is
java.text.SimpleDateFormat fmt= new
java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a
fmt.format(string value fetch from dtabase field);
Plz provide me the solution asap. very urgent
request.
Regards
venki.Have a look in to the below code
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatTest
public static void main( String[] cmdArgs )
throws Exception
SimpleDateFormat sdfInput =
new SimpleDateFormat( "yyyy-MM-dd" );
SimpleDateFormat sdfOutput =
new SimpleDateFormat ( "EEE, d MMM yyyy hh:mm aaa" ); //Change the patterns in to what ever u need
String textDate = "2001-01-04";
Date date = sdfInput.parse( textDate );
System.out.println( sdfOutput.format( date ) );
i will suggest u to look in to the API doc you will come to know lot many things. -
How to change date picker display format?
Default display format is 01-JAN-09 for date picker.
How can I change it to
Jan 21, 2009
Thank you.If you need use your format for all data pickers in your application you can set it via:
Go to
Shared components ->Definition->Globalization (Tab) -> Application Date Format SET to Mon DD,YYYY
and in the item Display as set "Data Picker (use ppplication format mask)"
If you need set format to some data picker you have to go to your data picker item and Display as set "Data Picker (use item format mask)"
and
Go to Source region in this item and set Format mask field Mon DD,YYYY -
How to change numbers in a formatted field
We are using Adobe Output Designer, we have a numeric field that prints out 50% of that numeric field based on the formatting that we put in that field. We want the printed numbers to print as currency. Currently is prints:
296.9
671
117.275
etc.
How can we get it to print:
296.90
671.00
117.28
Thanks!go to Format the field
In the Data field attribute section
change the picture field to be ZZ,ZZ9.99. This should apply a currency format to your values -
How to change the calyearmonth data format in psa
Hi all,
my requirement is to load data to dso from csv file it contains 0calmonth characteristic and carparc keyfigure
and i have created a transactional datasource
and when i am loading the data in csv file my data format is 201101 but in psa it is taking 110120
can u tell me how to correct this one.
when i activate the request to active data table it is showing transfered records are 12 and added records are 1 can u tell me how to correct this.
Thanks & Regards,
NaveenHi Naveen,
You don't need to change the original infoobject but you can do this changes in DataSource. In your datasource goto field mapping tab and first of all you can map the date field to 0calmonth and on the same line you will have the option to choose the format.
There you can go for internal format or External format as per requirement at the same time you have the option to provide conversion EXIT name.
Regards,
Durgesh. -
How to change the MQTT messages format?
Hello,
the KURA MQTT cloud client publishes messages respecting the following formula:
#account-name/#client-id/#API-ID/topic
I want to send MQTT messages with my own format, I dont want to send the account name and the client id in the MQTT message
how can I do that?
I already tried to change the configuration in the KURA web interface -> MQTTData transport and I have deleted the content of "lwt.topic" but without success.
Thanks in advance for your help!The following link is an iot-based Greenhouse Application Prototype:
https://github.com/kartben/kura-greenhouse-demo/blob/master/org.eclipse.iot.greenhouse.publisher/src/main/java/org/eclipse/iot/greenhouse/publisher/GreenhousePublisher.java
Here, you can see the proper usage of DataService and DataServiceListener to communicate with the Message Broker.
For, further reading, go through the following links:
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataService.html
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataServiceListener.html
Thanks -
How to change MM/DD/YYYY to DD/MM/YYYY
hi i have a requirement.
CONCATENATE SY-DATUM TEXT-T01 SY-UNAME INTO V_TEXT.
here sy-datum is in the format of MM/DD/YYYY now i have to replace sy-datum with DD/MM/YYYY.
Thanks,
Maheedhar.TGive the input as 11/10/2006
execute the code .
REPORT zex3 .
PARAMETERS: V_DATUM(11) TYPE C.
DATA: V_MON(3) TYPE C,
V_DAT(2) TYPE C,
V_YEAR(4) TYPE C,
V_FULLDATE(10) TYPE C.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = V_DATUM
IMPORTING
DATE_INTERNAL = V_DATUM
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE V_DATUM+4(2) TO V_MON.
WRITE V_DATUM+6(2) TO V_DAT.
WRITE V_DATUM+0(4) TO V_YEAR.
CONCATENATE V_DAT '/' V_MON '/' v_YEAR
INTO V_FULLDATE ." SEPARATED BY SPACE.
WRITE:/ V_FULLDATE.
Regards,
Vijay -
XI Http adapter receiver issue, how to change the target payload format
Dear all,
In my project, I need to call a servlet program using Http/xml.
The message format accepted by the server program is like this:
request:
<?xml version="1.0" encoding="GBK"?>
<PACKET type="REQUEST" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO></QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</PACKET>
response:
<?xml version="1.0" encoding="GB2312"?>
<PACKET type="RESPONSE" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
<RESPONSE_CODE>1</RESPONSE_CODE>
<ERROR_CODE>0000</ERROR_CODE>
<ERROR_MESSAGE>xxx</ERROR_MESSAGE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>01PICC057106001156421487812453</QUERY_SEQUENCE_NO>
</BASE_PART.
</BODY>
<PACKET>
My first question is if I can use the servie by SAP PI http adapter?
If yes, and how to design the data type? The <HEAD> <BODY> are on the same level...
Commonly, I only can set the data type like this:
<?xml version="1.0" encoding="UTF-8"?>
<MT_HTTP_IN>
<HEAD>
<REQUEST_TYPE>1</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>123</QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</MT_HTTP_IN>
The problem is how to remove the <MT_HTTP_IN> then insert the tab <PACKET type="REQUEST" version="1.0" >? I wonder if I need use JAVA mapping? and could u give me a related samples?
Thanks a lot!Dear Xun Liu,
If you need <PACKET type="REQUEST" version="1.0" >, then you need to create attributes 'type' and 'version' under node <PACKET>. At mapping level you can pass constant values for those attibutes.
Regards,
JP. -
(CS4) How to change text in character format?
Hello scripters,
I need help for a problem with "FindChangeByList":
I want to change text with special elements (and more than one element),
for example: color:black AND italic AND subscript
(or elevated, capital, small caps)
and change it in a character format that i have defineted before
(lets call it for example "01-xyz").
As i understand it, i can make it with the "FindChangeByList-sript" and GREP
But what must stand here "?"
grep {find what:"?"} {change to:"?"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double spaces and replace with single spaces.
Can anybody help me, please?
Yours OlienteSorry,
only now i get to try the element i got with the new script (at the end of the FindChangeList).
But i must have make a mistake:
text {findWhat:appliedFont:"Minion Pro", fontStyle:"Italic"} {changeTo:appliedFont:"Minion Pro", fontStyle:"Bold"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
It says
Fehler Nummer 25 (Mistake nr 25)
and than show me the line i have written.
It is the same with all elements.
Can someone help me?
Yours Oliente -
How to change the variable value format in Ip workbooks
Dear Experts,
How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
DATA ZDIVISION TYPE /BI0/OIPROFIT_CTR.
DATA ZDIVISION1 TYPE /BI0/OIPROFIT_CTR.
WHEN 'ZPRCTR_VAR1'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZPRCTR_VAR1'.
zdivision = loc_var_range-low.
MOVE l_s_range-low to zdivision.
ENDLOOP.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = zdivision
IMPORTING
OUTPUT = zdivision1.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
MOVE zdivision1 TO l_s_range-low.
APPEND l_s_range TO e_t_range.
Thanks,
GnanaHi Gnana,
you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
So imagine that your planning function has only one variable, the command sequence looks like
CMD 1 EXECUTE_PLANNING_FU
PLANNING_FUNCION_NAME 1 YOUR_FUNCTION
DATA_PROVIDER_FILTER 1 DATA_PROVIDER_1
VAR_NAME_1 1 YOUR_VARIABLE
and now you delete row with VAR_VALUE_1 and in result area you use for example
$A$1:$C$1
Now, cell A1 = VAR_VALUE_1
cell B1 = 1
cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
And now, when you execute planning function you're passing cell C1 as value of your variable.
Hope it helps.
Enrique
Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM
Maybe you are looking for
-
For a long time I've been syncing notes between my iPhone 3G and my MacBook with no problem. Today I find that the past few syncs have not really worked; a handful of new notes created on the iPhone do not appear in Mail notes on the MacBook. Convers
-
REP-0159 when run_product from oracle database
Hi, I can`t open report from oracle database. I have this products (Windows NT 4): Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production Report Builder 6.0.8.8.3 ORACLE Server R
-
VSS on cisco 4507R+E with sup8-E
Hi folks, I need to configure VSS on cisco 4507R+E switch with SUP8-E,but the problem is that as per the latest relase notes VSS is not supported on sup8-E. http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/release/note/OL_32143-01.html
-
Lost iPhone 4, how find out IMEI-number
Hello, i lost my iPhone, how i can find out IMEI number with out phone, may be in iTunes, or else
-
lorsque j'ouvre itunes: erreur - 42110 s'affiche