Function module to get any date format in DD.MM.YYYY
Hi Experts,
i want a FM which can convert any type of date format user entered on selection screen in DD.MM.YYYY
date format entered by user can be any of below format
DD/MM/YYYY
MM/DD/YYYYY
DD/MMM/YYYY
MM.DD.YYYY
YYYY/MM/DD
i want date format in DD.MM.YYYY
Also is there any FM which can tell us that day of today date is 25th or not .
Read forum rules of engagement before posting.
Basic date posts are not permitted.
Similar Messages
-
Is there any function module to convert the date format
Dear ABAPers,
Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
Thanks & Regards,
Ashok.hi,
create custom function module or copy the below code in the report ..and use it
the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
""Local interface:
*" IMPORTING
*" VALUE(DATE) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FORMATTED_DATE)
*" EXCEPTIONS
*" INVALID_DATE
TABLES: TTDTG.
DATA: BEGIN OF T_DATE,
YYYY(4) TYPE C,
MM(2) TYPE C,
DD(2) TYPE C,
END OF T_DATE.
DATA: DAY(3) TYPE N.
DATA: VARNAME LIKE TTDTG-VARNAME.
IF DATE IS INITIAL.
CLEAR FORMATTED_DATE.
EXIT.
ENDIF.
check document date format
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
DATE = DATE
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1.
IF SY-SUBRC NE 0.
RAISE INVALID_DATE.
ENDIF.
MOVE DATE TO T_DATE.
CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
WRITE T_DATE-DD TO DAY.
CONCATENATE DAY ',' INTO DAY.
CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
SEPARATED BY SPACE.
ENDFUNCTION.
the output is :--Convert a DATE field into a full format date eg. March 23, 2000
Regards,
Prabhudas -
Function module to change the date format
hi guys
is there any function module to change the date format
from 08/28/2007(mm/dd/yyyy)
to August 28, 2007.
regards
vamsihi vamsi.,
Use CONVERSION_EXIT_SDATE_OUTPUT to get the month name,
but it will give short form of the month name.
if you want <b>long description of the month</b>,
use this peice of code.
PARAMETERS: V_DATUM(07) TYPE C. "(example input:12-2007)
DATA: V_MON(2) TYPE C,
V_YEAR(4) TYPE C,
V_MONTHNAME(10) TYPE C,
V_FULLDATE(30) type c.
WRITE V_DATUM+0(2) TO V_MON.
SELECT SINGLE LTX FROM T247 INTO V_MONTHNAME
WHERE SPRAS = SY-LANGU
AND MNR = V_MON.
CONCATENATE V_MONTHNAME v_datum+3(4)
INTO V_FULLDATE SEPARATED BY SPACE. "(example output : December 2007)
write: v_fulldate.
<i><b>Reawrd points if useful</b></i>
Chandra -
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
Function module to get md04 data
I need function module to get below data of the material as per the mrp area.
Thanks,
KiranHello Kiran and Kumar
As I have explained in the following thread, BAPI_MATERIAL_STOCK_REQ_LIST should be used instead of MD_STOCK_REQUIREMENTS_LIST_API.
Material shortage report after mrp run.
BR
Caetano -
Function Module to get Last date of previous year
Is there any function module to get the Last date of the previous year. e.g, if i give date as 03/02/2009 the output should be 31/12/2008.
pls use below 2 FM's
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -1
olddate = curent_date
IMPORTING
newdate = w_prevdate.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = w_prevdate
IMPORTING
last_day_of_month = w_lastdayprevmonth
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2. -
How do I get the date format of MM/DD/YYYY to be recognized in Numbers?
I recently switched from Windows and Excel. All the bank details that I export from my bank have dates formatted as mm/dd/yyyy. Excel has no issues dealing with this but Numbers will not recognize the cell contents as a date. Any help?
I have similar problems with data copied & pasted from a banking web page into Numbers. I always first check to see that the cells are formatted as date & time, but that doesn't always fix the problem. The problem usually ends up being spaces before and/or after the numbers in a cell.
-
Is there any function module to get the data from st06?
Hi,
I'm new to this forum.
I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
I would like to call it from external program in order to view part of the data available in st06.
Thanks,
Erez Gordon.have a look at function group SMON.
Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM -
Function module to get order data from delivery
hi ,
is there any function module to which i can pass the delivery number and get the order number (s) and other data .
basically i want the order currency.
pls help.
<removed by moderator>
Edited by: Mike Pokraka on Aug 21, 2008 9:44 AMHi Surendra,
If your requirement is just to retreive the Order number for a given delivery then you can go with following:
Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
You can also do the same by using VBFA table.
Also have a look to the following thread:
Re: Getting sales order number against Delivery Number
Hope this will help.
Regards,
Nitin. -
Function module to get due date by terms of payment
Hi,
Is there any function module which can give me the due date when I pass
1) Terms of payment
2) Baseline date
Read the terms of payment and use the properties of the terms of payment ( Like Fixed date ) to get to the due date.
Thanks in advance.,
RajHi,
I had the same problem, as J_1A_SD_CI_DUEDATE_GET does not work when FI document is not created yet.
This is the way I used and it works:
CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'
EXPORTING
i_bldat = sy-datum "if baseline is filled, value here is ignored
i_budat = sy-datum
i_cpudt = sy-datum
i_zfbdt = vbdkr-zfbdt "baseline due date
i_zterm = vbdkr-zterm "payment terms
IMPORTING
e_zbd1t = lv_zbd1t
e_zbd2t = lv_zbd2t
e_zbd3t = lv_zbd3t
e_zfbdt = lv_zfbdt
EXCEPTIONS
terms_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ELSE.
CALL FUNCTION 'J_1B_FI_NETDUE'
EXPORTING
zfbdt = lv_zfbdt
zbd1t = lv_zbd1t
zbd2t = lv_zbd2t
zbd3t = lv_zbd3t
IMPORTING
duedate = z_duedate.
ENDIF.
Hope it helps.
Regards,
Fernando -
Function Module for getting J1IEX Data
Dear All,
Is there any F.M available for getting details whatever is posted in J1IEX, like ED, Ecess, HEcess etc.
regards,
paras
Point Assured.Hi,
I'm not sure what you mean with 'textmodule' but try with function module READ_TEXT.
Regards,
Eduardo -
Function Module to get the data like in LS26
Hi Gurus,
We are designing a new program and we need to get information about the "available stock", "putaway stock" and "pick quantity" for some storage types. So this is exactly what the LS26 shows.
Do you know any Function Module that can extract or calculate this information?
I would really appreciate any suggestion.
Thank you in advance
Edited by: Abel Raya on Jul 4, 2011 11:39 AMI don't think there is a function module exists. But you can get the details from table LQUA for item details and LEIN for header records.
-
Function module to get posting date from posting year and posting period
Hi all,
I need a function module which will return posting date when posting period and fiscal year is passed to it..
Thanks and regards,
Puja.Hi puja
try this FM
this will solve ur problem
G_POSTING_DATE_OF_PERIOD_GET
G_POSTING_DATE_OF_YEAR_GET
FCJ_CHECK_POSTING_DATE
Cheers
Snehi Chouhan -
Function module to get the configuration of Individual objects
Hi all,
Is there is any std function module to get the data of individual object configuration.
In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
Pl through some light on this.
Regards
A.Sureshbabu.Hi,
You can get the item configuration using FM CRM_CONFIG_READ_OW.
This is used to read the product configurations for IPC calls.
Just pass the configured item guid and it will return the configuration data.
Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
Regards,
Arun Kumar
Edited by: Arun Kumar on May 12, 2010 10:20 AM -
Fun. Module to get MSEG data based on EBELN and EBELP
I need to get records from MSEG by passing EBELN and EBELP.
I have written SELECT query.
I am getting the data, but it is taking much time in Production.
Is there any Function module to get MSEG data based on EBELN and EBELP.
ThanksHi ,
You can select from table EKBE based on purchase order number and Item number .
Please reward if useful.
Maybe you are looking for
-
I've just recently setup mail on a new computer and I am running into a problem. I'm sending a JPG file - saved in PhotoShop - to a coworker on a PC. They are getting an error that states "No Preview Available." Then when they save it and try to open
-
Text moved when pdf is optimized
I am having a problem with text moving so that some letters overlap and others are spaced far apart when I optimize a pdf using Acrobat XI Pro on a Macbook Pro. The text is Times New Roman font. What can I do to fix this?
-
Update from OS X 10.4.11 to Leopard? or Snow Leopard?
I have an iMac with OS X 10.4.11 software. I need to upgrade to 10.5 or higher. Will I be able to jump right to Snow Leopard, or do I need to have Leopard first?
-
Weblogic Test Browser is not able to handle miltiple windows. When javascript is used to open a new window, the test browser passes the control to the default browser of the machine but the session object is lost. Can we expect support for Multiple b
-
Unable to start DAC server OBIA 7.9.6
Hi All We tried starting the dac server on AIX using startserver_aix.sh. when the script is run, it hangs after throwing this message.. Jun 4, 2009 10:43:56 PM com.siebel.etl.etlmanager.EtlExecutionManager createQueue INFO: The ETL Execution Engine i