You are on page 1of 2

26/02/13

SAPTechnical.COM - Date conversions in XI / PI

Search

Hom e Qui z Ti ps Tutori a l s Functi ona l Ce rt Q's I nte rvi e w Q's Jobs Te sti m oni a l s Adve rti se Conta ct Us

Universidad de
San Andrs
ABAP QUIZ 5 NEW

udesa.edu.ar

www.morenobuenosaires.com

Excelente Nivel.
Encontr la Info y
Programas de
Posgrados Ac.

Desayuno Continental y Terraza con


Jacuzzi.Realice su Reserva On Line!

Tips Categories:
ABAPTM
ABAP-HR
ALE & IDocs
BAPI
BASIS
LSMW
SAP Script/Smart Forms
SAP Workflow
Userexits/BADIs
XI
Others

Hotel Moreno, San Telmo

Date conversions in PI/XI


By Pravesh Sharma, CSC

Contribute?

The standard function DateTrans has the capability of not only converting date in to
numeric formats and vice versa, but also can convert the month to a string representation.

What's New?

Following is the format conversion of the month value in the function.


Pattern

Increase maximum number of


SAP sessions per user
Manually push an email from SAP
Outbox using SOST
Where the history of Transaction
Codes does get stored?
Enable, disable and delete input
history
Comparing two SAP script forms
Consistency check for SAP Script
forms and styles
HTML Viewer of SAP Script texts
Uploading image without any
distortion from original image
Increasing number of display
pages in spool request
Unlocking the transport
request/task
Creating ZIP file on
UNIX/Application server
Configure Processing can be
Rejected option in a DIALOG
Work Item
Forwarding spool request to your
inbox
Converting Smart form output in
to List Display in 1 step
Including all objects of a package
in the transport request
Find standard texts used in the
smartform
Set Start Transaction after SAP
Logon
Create Pushbuttons on the
selection screen without using PF
Status
How to increase the Maximum No.
of Hits?
Remove 500 Entries Restriction
from F4 Function Module
SAP Calculator for using as F4
help

The DateTrans function not only can convert the ddMMyyyy to any other numeric format
but also can convert the month to a string representation using the patterns for month.
Following is the format conversion of the month value in the function.
Pattern

Description

MM

Represent month in numeric format like 01,02,03

MMM

Represent month in string format with a limitation on 3 character like Jan

MMMM

Represent month in a complete string format like January, February

Here is a screen shot of how a month can be converted into string representation within a
date.

12/04/2009

12-Apr-2009

Output: dd-MMM-yyyy
10/05/2009

Input: dd/MM/yyyy

May09

Output: MMMMyy
June-23-2009 Input: MMMM-dd-yyyy 23-06-2009
Output: dd/MM/yy

SAP Measuring Points

What's Hot?
Web Dynpro for ABAP Tutorials

Input: dd/MM/yyyy

www.opc-to-sap.com
Automatically create SAP measuring docs via
OPC. No programming req'd.

www.saptechnical.com/Tips/XI/Date/Conversion.htm

1/2

26/02/13

SAPTechnical.COM - Date conversions in XI / PI


Join the Mailing List
Enter name and email address below :
Name:

Email:

Subscribe

Unsubscribe

GO

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM


Home Contribute About Us Privacy Terms Of Use Disclaimer Safe Companies: Advertise on SAPTechnical.COM | Post Job Contact Us
2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.

Graphic Design by Round the Bend Wizards

www.saptechnical.com/Tips/XI/Date/Conversion.htm

2/2

You might also like