Standard Date Fn

Hi All,
Are there any standard Date functions to calculate like 90 days, 60 days & 30 days of present day? And also to find the previous month of the present month & Month in Character format. If it is there please let me know.
Thanks & Regards
Rajendra

hi,
<u>Are there any standard Date functions to calculate like 90 days, 60 days & 30 days of present day?</u>
data: wa_date like sy-datum.
data: month(2),     
year(4).
call function 'RP_CALC_DATE_IN_INTERVAL'
exportingdate = sy-datum
days = 90
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
write wa_date.
<u>Month in Character format. If it is there please let me know.</u>
DATA: DATE_CHAR(20).
DATA: DATE TYPE SY-DATUM.
DATA: MONTH_NAME LIKE T247-LTX.
DATE = SY-DATUM.
SELECT SINGLE LTX FROM T247
INTO MONTH_NAME
WHERE SPRAS = SY-LANGU
AND MNR = SY-DATUM+4(2).
CONCATENATE SY-DATUM+6(2) MONTH_NAME SY-DATUM(4)
INTO DATE_CHAR SEPARATED BY SPACE.
WRITE: / DATE_CHAR.
or use this FM
CACS_DATE_GET_YEAR_MONTH
: To get the number of the month
MONTH_NAMES_GET:
To get month description
Rgds
Anver

Similar Messages

  • Standard Data Source for FMGLFLEXT Table

    Hello Friends,
    The standard data source for the Financials New Legder is 0FI_GL_10 General Ledger: Leading Ledger Balances, which fetches the data from the FAGLFLEXT Table using the Extract Structure FAGL_EXTSTRUCT_LEAD. However there has been a migration of the FAGL table to FMGL table. And now the FAGLFLEXT is no longer populated with any FI postings data. And the new table which is getting the update is the FMGLFLEXT Table. GL Migration from FAGL to FMGL is a standard procedure. However I am not finding any Standard Data Source to fetch the data from the FMGLFLEXT Table.
    Can anybody let me know if there is any standard datasource for this or should we create a custom data source to fetch the data from FMGLFLEXT using the FMGL_EXTSTRUCT_LEAD Extract Structure.
    Appreciate help in this regard.
    VB

    Hello Sasi and Kirun,
    Thanks for your reply,
    The requirement is resolved by the following:
    If you want to use your own totals table (in this scenario FMGLFLEXT) as your basis, you first have to create the corresponding extraction structure using transaction FAGLBW01. In this way, all fields of the totals table are transferred into the extraction structure. Further In the OLTP system, call up transaction FAGLBW03 and Configure the DataSource and save your settings.
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    Regards,
    VB

  • What is a Standard Data Source for table T006A?

    Dear Experts,
    As a part of one requirement I need to pull the data from Table T006A which is available in BW as well.
    I did many search on forums before posting the same but didnt get clear idea.
    I am aware how Units are being updated withing BW but I need to pull the text for all Units within BW.
    Do we have any standard Data Source which pulls the data from T006A table?
    Thanks in Advance,
    Nilesh

    Dear Raf Boudewijns,
    Requirement is to load the Unit texts(available in table T006A) into one custom InfoObject.
    I know this table is already pulled within BW and frequently being updated but didnt get any Standard Data Source which fetches the data from T006A table.
    I can create a new Generic Data Source within BW itself based on table T006A. But would like to use Standard Data Source if its available else will have to create a new generic Data Source.
    Thanks,
    Nilesh

  • Need changes in standard data element

    Hi gurus,
    I want to change in one of SAP standard data element for adding search help into it.
    for this fields there is no user exit or any enhancement is present.
    I have taken access key from our basis guy after putting access key i am unable to change the data element i mean access key is correct but i am unable to edit data element.
    so can anybody tell me how can i change in this data element.
    note : I have access key.
    Regards
    Ankit

    Hi,
    What data element you are about to change, you should take extra care before changing standard data elements as it may be used in many places.
    Do a Where-Used list to determine nothing else will be affected because of this change.
    Regards
    Karthik D

  • Single Standard data source which extracts material master and vendor master data

    Hi all,
    I have a client requirement where user wants to view material master and vendor master in a single report. Is there any standard data source which extracts both the data together..
    Thanks!
    Arvind

    Hi,
    Two are different master info objects and can't get them from one data source.
    think about multi provider or  info set on two master data objects to club them.
    Info object - 0MATERIAL and  data source - 0MATERIAL_ATTR
    Info object - 0VEDNOR and data source - 0VENDOR_ATTR
    Thanks

  • Standard data sources for Delivery and Purchase order quantity.

    Hi gurus ,
    Are there any standard data sources available for Delivery and Purchase Order quantity in Purchasing area .
    Thanks in advance .

    Hi,
    If you are looking for SD Scenario: Check this : https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002719062002E
    Happy Tony

  • Confirmation on Date = Standard Date migration

    Our 1st test upgrade from 11.0.3 to 11.5.9 is underway and I'm trying to understand the "Convert flexfield Data and DateTime value sets" step. This step deals with the Date format to Standard Date format in relation to Flexfields and/or Concurrent Pgm Parameters.
    First off there appears to be two reasons for this:
    1. Standard Date allows for individual personalization re: Display/entry format for date
    2. Date format becomes obsolete in version 12 (of Apps)
    The report used to list candidate Flexfields, Parameters and Value Sets lists 137 reports and 23 different Value Sets.
    The documentation (11.5.9 Upgrade Manual, Category 4, Applications Technology, System Administration, Step 4) suggests that replacement Value Sets would be seeded and that custom Value Sets need to be cloned to utilize the new format. But, I only find one "Standard" Value Set (Standard Date).
    Questions:
    1. Should there be "seeded standard date value sets" ? Or, do we just clone the 23 identified ?
    2. How are people dealing with existing Value Sets with a maximum size of 9 ? Standard Date format will NOT the size to be modified.
    3. How confident can I be that Oracle has modified their programs to accept the new format as a passed parameter ?
    TIA
    Ken

    The view only contains header data. I am looking at the component details.
    Please help!

  • Standard Data Collection Failing with Error ORA-04054: database link  does not exist.

    Hi Gurus,
    When I am running Standard Data Collection in ASCP(APS) instance R12.1.3, its failing with error : ORA-04054: database link  does not exist.
    There is no such Database link exits which is showing in above error.
    Also the database link name in the above error is not profile values in the database.
    I think, concurrent might be fetching this database link name  from some tables related to plan.
    I am not having much knowledge about how this ASCP/APS works.
    Need your help to resolve this issue.
    Thanks,

    Hi,
    ASCP Collections looks at the dblink from instances definitions from.
    1. Responsibility: Advanced Planning Administrator
    2. Navigation: Admin > Instances
    You may review the note in support.oracle.com - Understanding DB Links Setup for APS Applications - ASCP and ATP Functionality (Doc ID 813231.1)

  • How to change the standard data type in xi

    Hi,
    presently we have SCM.i want to change the standard data type i.e" Replinishment order notification ".i want to change the length of the field .
    but there is no edit option for that data type.
    i even modified Software component version( http//sap.com/xi/scmbasis/global)with objects are original objects and objects are modifible(tick the check box)
    thanks in advance.
    atmakur

    Hi Atmakur,
      <i>i even modified Software component version( http//sap.com/xi/scmbasis/global)with objects are original objects and objects are modifible(tick the check box)</i>
        After doing this have you activated the change list? If not please do it and refresh it..and try to open..it will work..
    Regards,
    Prasanthi.

  • Modifying Standard Data Source

    Hi All,
               I am using standard data sources in CRM (0crm_oppt_i and 0crm_oppt_h).I need to modify these standard DS by adding some field in Extract structure.Can any one please provide me detailed step by step approach for doing this.If there is any code to be written can anyone send a skeleton of that code .Please provide detailed approach as I am new to this BW aspect.Thanks in advance.
    Regards
    Souresh

    Hi sarkar
    yes you have to write an ABAP code to fill the data in the newly added field in the extract structure.
    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they’ll be in hide mode. If you don’t remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.
    Go to CMOD.
    1. To  Save&#61664; give Description &#61664; create&#61664;create new project—give the project name
    2. Select the radio button Enhancement Assignment and give the Enhancement name you want and press Enter.
    3. If the Enhancement is already assigned to some other project it will display the same message saying it is already assigned it some other project.
    Click on&#61664;4. If the Enhancement is not assigned to any project save.
    5. Give RSR00001 (For Variable Exits)
    6. Activate the Project.
    7.  and click on the components button.&#61664;Now go to Display
    8. Now Double click on EXIT_SAPLRRS0_001. In that you can see an include ZXRSRU01.
    9. Double click on that include, it will say program name ZX…… are reserved for includes of exit Functions groups.
    10. Just Press Enter.
    11. It’ll Pop-Up a window  Create Object.&#61664;saying Include ZX…. Does not exits
    modify according to your requirements.
    Hope it will help u.
    Thanks & Regards
    KK

  • Can you please provide an example of test case using "Standard Data Output Cascade Mode"?

    Hi,
    I have tried creating a test to check  the "Standard Data Output Cascade Mode". In Vivado 15.1, Ultrascale,  it is working when I have data_width=1. However, if I modify the data_width to greater than 1, then I am not seeing the proper value for .CASCADE_ORDER_B.  Is this expected?
    The RTL is top.v. The addr_width=16, data_width=4. The synthesized vm netlist, test_syn.vm. It contains  8 BRAMS but the .CASCADE_ORDER_B parameter setting in the vm netlist is:
    .CASCADE_ORDER_B("FIRST"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("LAST"),

    Hi 
    The parameter "CASCADE_ORDER_B" specifies the order of the cascaded block RAMs from the bottom to the top of the chain
    for port B.
    So the attribute value FIRST represents the bottom BRAM with respect to cascading. You can cross these attributes by opening synthesized design and observing the property of each BRAM.
    Thanks,
    Vinay

  • STANDARD DATA SOURCE 2LIS_11_VAHDR NOT GETING DATA

    RESPECTED GURUS
    I AM A NEW BI USER. I AM TRYING TO EXTRACT DATA FROM 2LIS_11_VAHDR WHICH IS A STANDARD DATASOURCE THROUGH RSA3, BUT I AM GETTING A MESSAGE "0 RECORD FOUND" BUT THERE ARE PLENTY OF DATA. I WAS TRIED WITH THE OTHER STANDARD DATA SOURCES AND GETTING THE SAME MESSAGE" ZERO RECORD FOUND".PLS GUIDE ME HOW I WOULD I GET DATA.
    REGARDS
    ABHAY MAHODAYA

    Hi Abhay,
    The data source which you are trying to use is comes under logistics. To take the logistics data from R/3 to BW set up table needs to be filled up. To fill the set up table follow the below mentioned procedures.
    First Delete the set up table to avoid data duplication:
    Go to T.Code: SBIW -> Settings for Application Specific data sources (PI) -> Logistics -> Managing Extract structures -> Initialization -> Delete the contents of the setup table
    Fill the set up table:
    Go to T.Code: SBIW -> Settings for Application Specific data sources (PI) -> Logistics -> Managing Extract structures -> Initialization -> Filling in the setup table -> Application specific set up of statistical data
    Choose the relevant node to perform the set up based on your requirement.
    Remember while filling the set up table no entry sould get posted in the relevant tables. So while you do this in production system, you may have to request for user locking for the relevant T.Codes.
    All the best.
    Regards,
    Sarath.

  • Tables listed in Result set field selction tab against Standard Data Objects in MDO configuration

    On what basis are the tables gettting filled in the Result set field selction tab against Standard Data Objects in MDO configuration.
    Only the handler class is specified before it gets filled.
    Vivek.
    Tags edited by: Michael Appleby

    Hi Vivek,
    I would also recommend providing the version of the product either in the body of your discussion or in the tags (or both, preferred).  If you are installing it on SMP 2.3 or some other platform, please add that as well.  I have updated your tags and assigned the correct Category.  Since there are so many different technologies in SAP for Mobile, tags and Categories help the helpers find your post and help you find a solution.
    Thanks, Mike

  • FND_DATE to Standard Date in DFF

    Hi All,
    I have to fix a dff ,changing one of it's segment's value set from FND_DATE to Some values set having Format set as 'Standard Date'.
    DFF is using ATTRIBUTE2 ( varchar2) column as one of it's segment.
    Current :
    +++++++
    column values set
    ATTRIBUTE2 FND_DATE
    Target:
    +++++
    ATTRIBUTE2 XX_STD_DATE
    I have done this . Now FND_DATE has max size 9 , but XX_STD_DATE has max size 11.
    Attribute2 is big enough to accommodate both these.
    What will happen to my legacy data.
    Is there anything other than this i will have to do which will take care of my legacy data having 9 chars , or do i need to take other value set if so please tell me.
    Thanks in advance.

    Hi,
    Run an update script to update legacy data to convert from the old to new date format at the time you freeze the new version of your DFF. If you don't do this you'll get error message trying to (re) save existing records.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • UDF(user defined function) for standard date transformate function,

    Hi All,
    Hope you are doing good !!!
    I have a requirement where i need to write an UDF(user defined function). Please help me in writing the code for below logic-
    I am getting my Input as 111213 where 11 denotes HH 12 denotes mm 13 denotes ss. I need ti insert : between hh:mm:ss
    Please help me achieving a code for below logic
    I have used standard date transformate function, there i am getting spaces as separator in my input resulting an errors i am sending without spaces.
    Regards,
    Vijay Kumar.

    Hello,
    I am getting my Input as 111213 where 11 denotes HH 12 denotes mm 13 denotes ss. I need ti insert : between hh:mm:ss
    Please help me achieving a code for below logic
    I have used standard date transformate function, there i am getting spaces as separator in my input resulting an errors i am sending without spaces.
    What do you mean by spaces? Can you try the mapping below?
    inputDate -> replaceString -> dateTrans(inputDateFormat: HHmmss outputDateFormat: HH:mm:ss) -> target
    Constant: -> /
    Constant:-> /
    Hope this helps,
    Mark

  • Not able to Find  Some BOM Related  Standard Data Sources in  PP.

    Dear Gurus,
         I am not able to find the Standard Data Sources for Loading the Master Data for the Following Standard Info Objects
    1. 0BOM
    2. 0COMPONENT
    3. 0HG_LV_ITEM
         I have activated the objects in BW side, but not able to find the data sources to Get the Data from.Kindly help me out regarding this issue.
    with regards
    vikram..

    At least, for BOM i have no found any datasource and any time  i had to implemented myself.

Maybe you are looking for

  • Error says: Warning: Cannot modify header information

    I keep receiving an error message after my form is sent (the form still send the information I need just wont re-direct to the next page) It redirects to a page that says: Warning: Cannot modify header information - headers already sent by (output st

  • Songs skips after latest itunes update

    Hello guys, I've just updated Itunes at the beginning of March and after that start noticing weird things going on with my Ipod classic. The other day I wanted to repeat a song  played and clicked back to return to it, the screen showed that this son

  • Oracle Database not starting ORA-01034: ORACLE not available and ORA-27101

    Dear Sir, today i have restarted the database server (11gR2) after that database service is not starting, the error message is ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or

  • Illustrator CS6 Pattern Creation Question

    PLeAsE, can anyone at Adobe (or anyone) say that the new Pattern Creation tool allows for use of symbols?  I use them all the time for repeats and are a HUGE help when it comes to changes. Please, will Pattern Creation utilize this?  Just yes/no- Tha

  • SD Card an External HD automatically self ejecting?

    I have a 21'' iMac 2.5GHz running 10.8.2.  Recently, I have been experiencing some issues with my external HD, a Seagate free agent drive, disconnecing during time machine backups.  I assumed this was either cable issues or the drive was beginning to