To find start date

Hi All,
i'm having a requirement where i have to find the start date when the end date and duration are given.
The duration can be in years or months or weeks.
Is there any function module to calculate the start date, in which ever units the duration is given?
Thanks & Regards,
Anil.

Hi,
<b>1) Number days known</b>  : Start_date = end_date - days
DAYS = 7 * NO OF WEEKS
2) For others chcek this
Date Manipulation
             RE_ADD_MONTH_TO_DATE
             CALCULATE_DATE
              ADD_TIME_TO_DATE
DATE_TO_DAY
CCM_GO_BACK_MONTHS
BKK_ADD_MONTH_TO_DATE
Give the difference in Days and Time for 2 dates
FIMA_DAYS_AND_MONTHS_AND_YEARS
Get number of days. Year, Months between two dates.
RH_GET_DATE_DAYNAME.
<b>for any Date realted FM</b>
http://72.14.207.104/search?q=cache:ZbQsSxuRZp4J:www.geocities.com/victorav15/sapr3/abapfun.htmlFunctionalModuleINABAP&hl=en&gl=in&ct=clnk&cd=1
click on date
<b>Mark Helpful Answers</b>
regards
Message was edited by: Manoj Gupta

Similar Messages

  • PPOME - New Tab & Infotype - How to find "start date" of preview period

    Hi all,
    I have successfully created own Infotype and add as new tab in PPOME.
    But now I need in my modulpool program to read field "start date" of preview period (from heading of screen in PPOME). I can't find right field. Has anybody any idea?
    Thanks a lot.
    Dusan
    Message was edited by:
            Dusan Skokanek

    Hi ramprasad74,
    According to your description, you are using Analysis Services as a data source for the report, the cube has hierarchy: Fyear, FQuarter, FPeriod, fweek, Fdate. You want to add a date parameter to the report, after you changed value of the parameter, the
    report will return the first day of FPeriod.
    To achieve your goal, we need to add a parameter to the report, then use the parameter in mdx query. For detail information, please refer to the following steps:
    In the Report Data pane, right-click on a dataset created from a SQL Server Analysis Services data source type, and then click Query. The MDX query designer opens in Design mode.
    On the toolbar, click Design to toggle to Query mode.
    On the MDX query designer toolbar, click Query Parameters symbol. The Query Parameters dialog box opens.
    In the Parameter column, click <Enter Parameter>, and then type the name of a parameter.
    In the Dimension column, choose a value from the drop-down list.
    In the Hierarchy column, choose a value from the drop-down list.
    In the Default column, from the drop-down list, select a single value.
    Click OK. 
    In query designer dialog box, type the mdx query like below:
    with member [Measures].[FirstChild]
    as
    [Date].[Fiscal].currentmember.parent.firstchild.name
    select {[Measures].[FirstChild]} on 0,
    [Date].[Fiscal].[Date].members on 1
    from
    ( SELECT ( STRTOSET(@ParameterName, CONSTRAINED) ) on 0
    from
    [Cube]
    Here are relevant threads you can reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/c7146ac3-40ea-4d53-b321-c707aebbd405/how-to-pass-date-parameter-to-mdx-query
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/fd12a865-bc90-4a65-af42-ce38a8cfa29b/pass-date-time-parameter-to-mdx-query-ssrs
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Function module to find start date and end date of fiscal year for company

    Hi,
    Is there any function module exist which will provide me start date and end date of fiscal year for company code and fiscal year provided?
    Thanks & Regards,
    Parag

    Hi,
    please check this link
    it would be very useful
    http://www.sapdevelopment.co.uk/fmodules/fms_fiscalyr.htm
    Thanks and regards
    durga.K

  • TO FIND START DATE AND END DATE OF THE MONTH

    HAI ALL,
               I want to find the start of the date for the month and end of the date for the month, for given date.
    Ex. if input is : 08-06-2007,
                                           I want to get the first and last date for this month.
    . Is there any FM .
    thanks in advance,
    senthil kumar

    Hi,
    Use the Function modue RE_LAST_DAY_OF_MONTH to get the last day
    For first day..
    DATA: V_DATE TYPE D.
    V_DATE = SY-DATUM.
    V_DATE+6(2) = '01'.
    WRITE: / 'First day is ', v_date.
    Thanks,
    Naren

  • Need start date & end date for MMYYYY

    HI ,
    I need to find start date & end date of MMYYYY.
    Is there any FM to do this??
    thanks
    Moderator comments: 1st warning.
    Pl read the rules of engagement & [Date questions not allowed|/thread/1360534 [original link is broken];
    Awarded points are unassigned & the thread is locked.
    Edited by: Suresh Datti on Aug 6, 2009 4:14 AM

    Hi Karthik,
    Try this way.
    REPORT ZTEST_NOTEPAD.
    PARAMETERS :p_month(2) type n,
                p_year(4)  type n.
    data:first_day LIKE  VTBBEWE-DVALUT,
         last_day  type datum,
         days(2)   TYPE c.
    "First date of the month
    CONCATENATE p_year p_month '01' INTO first_day.
    CALL FUNCTION 'END_OF_MONTH_DETERMINE_2'
      EXPORTING
        i_datum        = first_day
    IMPORTING
       E_TT           = days.
    "Last date of the month
    CONCATENATE p_year p_month days INTO last_day.
    WRITE:/ first_day,
          / last_day.
    Thanks
    Venkat.O

  • Open capacity -start date & end date in cprojects

    Hello,
    In cProject,system will show the open capacity for the resource but system will not show start date & end date of open capacity
    how i can find start date & end date for open capacity
    E.g. If Resource XYZ is staff from 01.11.2010 to 12.11.2010 & same resource is not allocated from 13.11.2010 to 20.11.2010
    Also Resource XYZ is staff from 21.11.2010 to 30.11.2010 on other project
    Here system will calculate open capacity but not showing date for open capacity
    Regards
    Ravindra

    Dear:
    Try my code.
    REPORT  ZPRO_GET_RESOURCE_LIST.
    TABLES DPR_PROJECT.
    SELECT-OPTIONS: S_PROID FOR DPR_PROJECT-PROJECT_ID.
    DATA: GT_DATA TYPE DPR_TT_XML_PROJECTS_TYPE.
    DATA: GS_DATA LIKE LINE OF GT_DATA.
    **Output table
    DATA: BEGIN OF ITAB OCCURS 0,
            PROJECT_ID       TYPE DPR_TV_PROJECT_ID,         "project id
            DESCRIPTION_DPO  TYPE DPR_TV_NAME,               "
            BU_PARTNER       TYPE      BU_PARTNER,           "
            FULL_NAME        TYPE BU_NAME1TX,                "
            SCHEDULED_START  TYPE  DPR_TV_SCHEDULED_START,   "
            SCHEDULED_FINISH TYPE     DPR_TV_SCHEDULED_FINISH,   "
          END OF ITAB.
    DATA: PROJECT_ID TYPE DPR_TV_PROJECT_ID OCCURS 0 WITH HEADER LINE.
    DATA: GS_ROLE TYPE DPR_TS_XML_PROJECT_ROLE_TYPE.
    DATA: DPR_TV_PROJECT_ID TYPE DPR_TV_PROJECT_ID.
    DATA: GS_ASGM TYPE DPR_TS_XML_RES_ASSGNMNT_TYPE.
    DATA: GS_RERS TYPE DPR_TS_XML_RESOURCE_TYPE.
    TYPE-POOLS SLIS.
    DATA: L_WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
          L_WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
          IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    SELECT PROJECT_ID INTO TABLE PROJECT_ID FROM DPR_PROJECT WHERE PROJECT_ID IN S_PROID.
    LOOP AT PROJECT_ID INTO DPR_TV_PROJECT_ID.
      CLEAR: GT_DATA,GT_DATA[].
      CALL FUNCTION 'DPR_GET_PROJECT_XML'
       EXPORTING
    *   IV_PROJECT_GUID         =
         IV_PROJECT_ID           = DPR_TV_PROJECT_ID
       IMPORTING
         ET_PROJECTS             = GT_DATA
    *   EV_XML                  =
       EXCEPTIONS
         PROJECT_NOT_FOUND       = 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.
      LOOP AT GT_DATA INTO GS_DATA.
        CLEAR ITAB.
        ITAB-PROJECT_ID = GS_DATA-PROJECTDATA-NUMBER.
        ITAB-DESCRIPTION_DPO = GS_DATA-PROJECTDATA-DESCRIPTION.
        LOOP AT GS_DATA-PROJECT_ROLES INTO GS_ROLE.
          ITAB-DESCRIPTION_ROL = GS_ROLE-PROJECT_ROLE_DATA-DESCRIPTION.
          LOOP AT GS_ROLE-RESOURCE_ASSIGNMENTS INTO GS_ASGM .
            LOOP AT GS_DATA-RESOURCES INTO GS_RERS WHERE BU_PARTNER = GS_ASGM-BU_PARTNER.
              ITAB-BU_PARTNER = GS_RERS-BU_PARTNER.
              ITAB-FULL_NAME = GS_RERS-FULL_NAME.
              ITAB-SCHEDULED_START = GS_ASGM-SCHEDULED_START.
              ITAB-SCHEDULED_FINISH = GS_ASGM-SCHEDULED_FINISH.
              APPEND ITAB.
            ENDLOOP.
          ENDLOOP.
        ENDLOOP.
      ENDLOOP.
    ENDLOOP.
    *Assigning Values
    L_WA_LAYOUT-ZEBRA = 'X'.
    L_WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    *** Field cat
    L_WA_FIELDCAT-FIELDNAME = 'PROJECT_ID'.
    L_WA_FIELDCAT-SELTEXT_L = 'Project Number' .
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'DESCRIPTION_DPO'.
    L_WA_FIELDCAT-SELTEXT_L = 'Project Name'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'DESCRIPTION_ROL'.
    L_WA_FIELDCAT-SELTEXT_L = 'Role'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'BU_PARTNER'.
    L_WA_FIELDCAT-SELTEXT_L = 'BP Number'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'FULL_NAME'.
    L_WA_FIELDCAT-SELTEXT_L = 'Resource Name'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'SCHEDULED_START'.
    L_WA_FIELDCAT-SELTEXT_L = 'Start Date'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'SCHEDULED_FINISH'.
    L_WA_FIELDCAT-SELTEXT_L = 'End Date'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-REPID
    *     I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       IS_LAYOUT                         = L_WA_LAYOUT
       IT_FIELDCAT                       = IT_FIELDCAT
       I_SAVE                            = 'A'
    *     IT_EVENTS                         = IT_EVENT
      TABLES
        T_OUTTAB                          = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                     = 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.

  • How to find the Contract Start date

    Hi Friends,
    with the help of the Transaction type, Item Category,reference Interest rate, how to find the Contract Start date/Billing Strat date and the Contract number.
    Regards,
    Raju.

    Hi
    naj you can find the contract start date and billing date in crmd_order Financial details data tab, start of contract and Billing and the contract no u will find after Approval of Eligibility Norms, then save go to actions create certificate of acceptance the you will get contract number
    Reward with Points
    Venkat

  • Find the latest Start date after a gap in date Field For each id

    Hi All, Can anyone help me in this, as it is so urgent ..My requirement is to get the latest start date after a gap in a month for each id and if there is no gap for that particular id minimum date for that id should be taken….Given below the scenario
    ID          StartDate
    1            2014-01-01
    1            2014-02-01
    1            2014-05-01-------After Gap Restarted
    1            2014-06-01
    1            2014-09-01---------After last gap restarted
    1            2014-10-01
    1            2014-11-01
    2            2014-01-01
    2           2014-02-01
    2            2014-03-01
    2            2014-04-01
    2            2014-05-01
    2            2014-06-01
    2            2014-07-01
    For Id 1 the start date after the latest gap is  2014-10-01 and for id=2 there is no gap so i need the minimum date  2014-01-01
    My Expected Output
    id             Startdate
    1             2014-10-01
    2             2014-01-01
    Expecting your help...Thanks in advance

    If you're using SQL Server 2012 this will work for you...
    IF OBJECT_ID('tempdb..#temp') IS NOT NULL
    DROP TABLE #temp
    GO
    CREATE TABLE #temp (
    ID INT,
    StartDate DATE
    INSERT #temp (ID, StartDate) VALUES
    (1,'2014-01-01'),
    (1,'2014-02-01'),
    (1,'2014-05-01'),
    (1,'2014-06-01'),
    (1,'2014-09-01'),
    (1,'2014-10-01'),
    (1,'2014-11-01'),
    (2,'2014-01-01'),
    (2,'2014-02-01'),
    (2,'2014-03-01'),
    (2,'2014-04-01'),
    (2,'2014-05-01'),
    (2,'2014-06-01'),
    (2,'2014-07-01')
    -- SQL 2012 and later --
    ;WITH gg AS (
    SELECT
    COALESCE(DATEDIFF(mm, LAG(t.StartDate, 1) OVER (PARTITION BY t.ID ORDER BY t.StartDate), t.StartDate), 2) AS GetGap
    FROM #temp t
    ), did AS (
    SELECT DISTINCT t.ID FROM #Temp t
    SELECT
    did.ID,
    x.StartDate
    FROM
    did
    CROSS APPLY (
    SELECT TOP 1
    gg.StartDate
    FROM gg
    WHERE did.ID = gg.ID
    AND gg.GetGap > 1
    ORDER BY gg.StartDate DESC
    ) x
    If you're on an earlier version than 2012, let me know. It's an easy rewrite but the final code isn't as efficient.
    Jason Long

  • Need a Help in finding the start Date and End Date of a week

    Dear All,
    I need a help,
    I have a date for eg,05-08-2009 (Wednesday). i need to get the week's start date and week's end date.
    Week start date in my region is SATURDAY and week end date is FRIDAY .
    So for my given input it should return start date as 01-08-2009 (Saturday )and end date as 07-08-2009 (Friday ).
    Thanks,

    Got it, Solved by making a small changes to the above code .
                    SimpleDateFormat sf = new SimpleDateFormat("dd-MMM-yy");
              Calendar cal = Calendar.getInstance(Locale.ENGLISH);
              cal.set(Calendar.DATE, cal.get(GregorianCalendar.DATE));
              cal.set(Calendar.MONTH, cal.get(GregorianCalendar.MONTH));
              cal.set(Calendar.YEAR, cal.get(GregorianCalendar.YEAR));
              if(cal.get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY) {
                cal.add(Calendar.DATE, -cal.get(Calendar.DAY_OF_WEEK));
              String NewEndDate = sf.format(cal.getTime());
              cal.add(Calendar.DATE, -7);
              String newStartDate = sf.format(cal.getTime());
              System.out.println("New Start date :" +newStartDate);
              System.out.println("New End Date   :" +NewEndDate);Sorry, Dont want to hire any one . Just want to keep my job safe . Any way thanks for your reply .

  • Error while starting data loading on InfoPackage

    Hi everybody,
    I'm new at SAP BW and I'm working in the "Step-By-Step: From Data Model to the BI Application in the web" document from SAP.
    I'm having a problem at the (Chapter 9 in the item c - Starting Data Load Immediately).
    If anyone can help me:
    Thanks,
    Thiago
    Below are the copy of the error from my SAP GUI.
    <><><><><><><><><><<><><><><><><><><><><><><><><><><><><><><><>
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          19.01.2009 14:41:22
    Short text
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    Short text of error message:
    Batch - Manager for BW Processes ***********
    Long text of error message:
    Technical information about the message:
    Message class....... "RSBATCH"
    Number.............. 000
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLRSBATCH" or "LRSBATCHU01"
    "RSBATCH_START_PROCESS"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    System environment
    SAP-Release 701
    Application server... "sun"
    Network address...... "174.16.5.194"
    Operating system..... "Windows NT"
    Release.............. "5.1"
    Hardware type........ "2x Intel 801586"
    Character length.... 8 Bits
    Pointer length....... 32 Bits
    Work process number.. 2
    Shortdump setting.... "full"
    Database server... "localhost"
    Database type..... "ADABAS D"
    Database name..... "NSP"
    Database user ID.. "SAPNSP"
    Terminal.......... "sun"
    Char.set.... "English_United State"
    SAP kernel....... 701
    created (date)... "Jul 16 2008 23:09:09"
    create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version. "SQLDBC 7.6.4.014 CL 188347 "
    Patch level. 7
    Patch text.. " "
    Database............. "MaxDB 7.6, MaxDB 7.7"
    SAP database version. 701
    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
    NT 6.0"
    Memory consumption
    Roll.... 8112
    EM...... 11498256
    Heap.... 0
    Page.... 65536
    MM Used. 6229800
    MM Free. 1085264
    User and Transaction
    Client.............. 001
    User................ "THIAGO"
    Language key........ "E"
    Transaction......... "RSA1 "
    Transactions ID..... "CD47E6DDD55EF199B4E6001B782D539C"
    Program............. "SAPLRSBATCH"
    Screen.............. "SAPLRSS1 2500"
    Screen line......... 7
    Information on where terminated
    Termination occurred in the ABAP program "SAPLRSBATCH" - in
    "RSBATCH_START_PROCESS".
    The main program was "RSAWBN_START ".
    In the source code you have the termination point in line 340
    of the (Include) program "LRSBATCHU01".
    Source Code Extract
    Line
    SourceCde
    310
    endif.
    311
    l_lnr_callstack = l_lnr_callstack - 1.
    312
    endloop.      " at l_t_callstack
    313
    endif.
    314
    315
    *---- Eintrag für RSBATCHHEADER -
    316
    l_s_rsbatchheader-batch_id    = i_batch_id.
    317
    call function 'GET_JOB_RUNTIME_INFO'
    318
    importing
    319
    jobcount        = l_s_rsbatchheader-jobcount
    320
    jobname         = l_s_rsbatchheader-jobname
    321
    exceptions
    322
    no_runtime_info = 1
    323
    others          = 2.
    324
    call function 'TH_SERVER_LIST'
    325
    tables
    326
    list           = l_t_server
    327
    exceptions
    328
    no_server_list = 1
    329
    others         = 2.
    330
    data: l_myname type msname2.
    331
    call 'C_SAPGPARAM' id 'NAME'  field 'rdisp/myname'
    332
    id 'VALUE' field l_myname.
    333
    read table l_t_server with key
    334
    name = l_myname.
    335
    if sy-subrc = 0.
    336
    l_s_rsbatchheader-host   = l_t_server-host.
    337
    l_s_rsbatchheader-server = l_myname.
    338
    refresh l_t_server.
    339
    else.
    >>>>>
    message x000.
    341
    endif.
    342
    data: l_wp_index type i.
    343
    call function 'TH_GET_OWN_WP_NO'
    344
    importing
    345
    subrc    = l_subrc
    346
    wp_index = l_wp_index
    347
    wp_pid   = l_s_rsbatchheader-wp_pid.
    348
    if l_subrc <> 0.
    349
    message x000.
    350
    endif.
    351
    l_s_rsbatchheader-wp_no           = l_wp_index.
    352
    l_s_rsbatchheader-ts_start        = l_tstamps.
    353
    l_s_rsbatchheader-uname           = sy-uname.
    354
    l_s_rsbatchheader-module_name     = l_module_name.
    355
    l_s_rsbatchheader-module_type     = l_module_type.
    356
    l_s_rsbatchheader-pc_variant      = i_pc_variant.
    357
    l_s_rsbatchheader-pc_instance     = i_pc_instance.
    358
    l_s_rsbatchheader-pc_logid        = i_pc_logid.
    359
    l_s_rsbatchheader-pc_callback     = i_pc_callback_at_end.

    Hi,
    i am also getting related this issue kindly see this below short dump description.
    Short text
        The current application triggered a termination with a short dump.
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
            Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        Short text of error message:
        Variant RSPROCESS0000000000705 does not exist
        Long text of error message:
         Diagnosis
             You selected variant 00000000705 for program RSPROCESS.
             This variant does not exist.
         System Response
         Procedure
             Correct the entry.
        Technical information about the message:
        Message class....... "DB"
    Number.............. 612
        Variable 1.......... "&0000000000705"
        Variable 2.......... "RSPROCESS"
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLRSPC_BACKEND" or "LRSPC_BACKENDU05"
    "RSPC_PROCESS_FINISH"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
    (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
       4. Details about the conditions under which the error occurred or which
       actions and input led to the error.
    System environment
        SAP-Release 701
        Application server... "CMCBIPRD"
        Network address...... "192.168.50.12"
        Operating system..... "Windows NT"
    Release.............. "6.1"
        Hardware type........ "16x AMD64 Level"
        Character length.... 16 Bits
        Pointer length....... 64 Bits
        Work process number.. 0
        Shortdump setting.... "full"
        Database server... "CMCBIPRD"
        Database type..... "MSSQL"
        Database name..... "BIP"
        Database user ID.. "bip"
        Terminal.......... "CMCBIPRD"
      Char.set.... "C"
      SAP kernel....... 701
      created (date)... "Sep 9 2012 23:43:54"
      create on........ "NT 5.2 3790 Service Pack 2 x86 MS VC++ 14.00"
      Database version. "SQL_Server_8.00 "
      Patch level. 196
      Patch text.. " "
    Database............. "MSSQL 9.00.2047 or higher"
      SAP database version. 701
      Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
       NT 6.0, Windows NT 6.1, Windows NT 6.2"
      Memory consumption
      Roll.... 16192
      EM...... 4189840
      Heap.... 0
      Page.... 16384
      MM Used. 2143680
      MM Free. 2043536
    User and Transaction
    Client.............. 001
    User................ "BWREMOTE"
        Language Key........ "E"
    Transaction......... " "
        Transactions ID..... "9C109BE2C9FBF18BBD4BE61F13CE9693"
    Program............. "SAPLRSPC_BACKEND"
    Screen.............. "SAPMSSY1 3004"
        Screen Line......... 2
        Information on caller of Remote Function Call (RFC):
    System.............. "BIP"
        Database Release.... 701
        Kernel Release...... 701
        Connection Type..... 3 (2=R/2, 3=ABAP System, E=Ext., R=Reg. Ext.)
        Call Type........... "asynchron without reply and transactional (emode 0, imode
         0)"
        Inbound TID.........." "
        Inbound Queue Name..." "
        Outbound TID........." "
        Outbound Queue Name.." "
    Information on where terminated
        Termination occurred in the ABAP program "SAPLRSPC_BACKEND" - in
    "RSPC_PROCESS_FINISH".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 75
        of the (Include) program "LRSPC_BACKENDU05".
    Source Code Extract
    Line  SourceCde
       45         l_t_info        TYPE rs_t_rscedst,
       46         l_s_info        TYPE rscedst,
       47         l_s_mon         TYPE rsmonpc,
       48         l_synchronous   TYPE rs_bool,
       49         l_sync_debug    TYPE rs_bool,
       50         l_eventp        TYPE btcevtparm,
       51         l_eventno       TYPE rspc_eventno,
       52         l_t_recipients  TYPE rsra_t_recipient,
    52 l_t_recipients  TYPE rsra_t_recipient,
    53         l_s_recipients  TYPE rsra_s_recipient,
    54         l_sms           TYPE rs_bool,
    55         l_t_text        TYPE rspc_t_text.
    56
    57   IF i_dump_at_error = rs_c_true.
    58 * ==== Dump at error? => Recursive Call catching errors ====
    59     CALL FUNCTION 'RSPC_PROCESS_FINISH'
    60       EXPORTING
    61         i_logid       = i_logid
    62         i_chain       = i_chain
    63         i_type        = i_type
    64         i_variant     = i_variant
    65         i_instance    = i_instance
    66         i_state       = i_state
    67         i_eventno     = i_eventno
    68         i_hold        = i_hold
    69         i_job_count   = i_job_count
    70         i_batchdate   = i_batchdate
    71         i_batchtime   = i_batchtime
    72       EXCEPTIONS
    73         error_message = 1.
    74     IF sy-subrc <> 0.
    >>> MESSAGE ID sy-msgid TYPE 'X' NUMBER sy-msgno
    76               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    77     ELSE.
    78       EXIT.
    79     ENDIF.
    80   ENDIF.
    81 * ==== Cleanup ====
    82   COMMIT WORK.
    83 * ==== Get Chain ====
    84   IF i_chain IS INITIAL.
    85     SELECT SINGLE chain_id FROM rspclogchain INTO l_chain
    86            WHERE log_id = i_logid.
    87   ELSE.
    88     l_chain = i_chain.
    89   ENDIF.
    90 * ==== Lock ====
    91 * ---- Lock process ----
    92   DO.
    93     CALL FUNCTION 'ENQUEUE_ERSPCPROCESS'
    94       EXPORTING
    If we do this
    Use table RSSDLINIT and in OLTPSOURCRE: enter the name of the data  source
    And in the logsys enter the name of the source system and delete the entry for that info package. what will happen is process chain will run suceesfully and short dump will not come or what kindly give the detail explanation about this RSSDLINIT.
    Regards,
    poluru

  • Planned order creation with PDS valid on only order start date and not finish date

    Hi All,
    We have requirement to allow creation of planned order manually if production version is valid on order start date and not finish date.  This is because lead time of order is longer. I refered OSS notes 385602. I could find out solution for this is implementation of OSS note 694140 to change validity mode at activity level to consider start date of first produce activity  in validity interval. Problem is even If I create order in APO by implementiong this note planned order is not transfered to ECC and it gets stuck with error production version not valid.
    Is there any way in ECC to control this? Any config or customization?
    Regards,
    Santosh

    Nilesh,
    I think there is a simple procedural skip happening in your business process. You are right when a planned order is created after MRP it would default assign it to the first available production version. 2options available for us,
    1. First use transaction MF50 and do the line loading and assign the quantites to the production versions/Production lines, so that the actual capacity planning is getting completed. This way you can have planned orders with both the production versions and matching to your actual line capacity.
    2. Use Quota arrangement concept, to automatically split the Planned orders during MRP for a percentage based on individual production versions.
    Now when backflush is performed S225 table is updated and Planned order qty also gets reduced.
    Hope this helps....
    Regards,
    Prasobh

  • I'm moving an internal hard drive from an old computer to a new computer.  How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?

    I'm moving an internal hard drive from an old computer to a new computer.  (My new compute runs Windows 8.1) How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?  Is this possible or do I have to use the procedure of copying the catalog along with the photos to a back up hard drive and then restore them on the new computer?

    The 'normal' procedure is to do a PSE organizer backup (not a copy or a backup from external tools) to an external drive, then a restore to the new location.
    The advantage is that you have a backup of both catalog and media files and you don't have all disconnected files, which would happen with external backup tools. Also, if you restore with a more recent elements version, the catalog will be automatically updated to the new format.
    The drawback in your situation is that you'll have either to overwrite all your files or restore to a custom location, creating a duplicate photo library (which supposes you have enough free space).
    It would be possible to simply use the organizer in the old PC to move the catalog to a new 'custom' folder just under your C: root drive. The catalog would be accessible once the drive will be installed in the new PC. Then you would have all files 'disconnected' due to the fact that all your media files are now on a drive with a different letter. Reconnecting a whole library is a hard job with PSE6, less so with PSE11/PSE12.
    If the idea of fiddling with the sqlite database with external sqlite manager tools is ok for you, I can describe the process more in detail. You only copy your catalog folder (as suggested above) to another location. Instead of trying the 'reconnection' way, you install the sqlite utility on the new computer. When the old drive is installed in the new computer, you simply edit a given record in the catalog database, catalog.psedb, and start the organizer with your copied catalog by simply double clicking the 'catalog.psedb' file.
    Even if the last solution is much, much quicker, I would still create a new PSE backup : you have never too much safety .

  • Function Module for getting Payroll start date and end date

    Hi Gurus,
      If I give one date then is there any function module to find the payroll period start date and enddate for that given date?
    Points will be awarded
    Thanks
    Ravi

    Hi,
      Try these FMs
    HR_PAYROLL_PERIODS_GET
    HR_BEN_PAY_GET_PAYROLL_PERIODS
    HR_PAYROLL_PERIOD_GET
    HR_P06I_GET_PAYROLL_PERIOD
    Regards,
    PRashant

  • Update non-editable field Start date which is calculated from other context

    I had created some custom date fields(model, bol entity) in component ICCMP_BTSHEAD. We are calculating Start date based on the new input value into receiving date in the other context node.
    so, for this i get the value on controller class(_IMPL). and pass the same value in the GET method of Start date.
    But, Problem is Start date is the non-editable field so SET method will not be trigger as expected. so the same i used the DO_PREPARE_OUTPUT method but it's called and update the value when we press the enter. IF directly we click on the "SAVE" button then it' trigger but value is not updating in the database.
    Please, find the below piece of code for the same. can u please anybody help me that how can i achieve this requirement.
    DATA: l_recieve_date     TYPE crmt_date_timestamp_from,
            lr_current TYPE REF TO cl_bsp_wd_mixed_node,
            lr_col      TYPE REF TO cl_bsp_wd_collection_wrapper.
      DATA: lv_date TYPE d,
             lv_time TYPE t,
             lv_date_temp TYPE sydatum.
      IF iv_first_time EQ abap_false. "avoid for first tile load
    Read the value of btreceivedate-TIMESTAMP_FROM.
        lr_col = me->ztyped_context->btreceivedate->get_collection_wrapper( ).
        IF lr_col IS BOUND.
          lr_current ?= lr_col->get_current( ).
          IF lr_current IS BOUND.
            lr_current->if_bol_bo_property_access~get_property_as_value( EXPORTING iv_attr_name = 'TIMESTAMP_FROM'
                                       IMPORTING ev_result   = l_recieve_date ).
          ENDIF.
        ENDIF.
        IF l_recieve_date IS NOT INITIAL.
          CONVERT TIME STAMP l_recieve_date TIME ZONE sy-zonlo
                    INTO DATE lv_date TIME lv_time.
    Check day is working day - if not, correct to previous working day
          IF lv_date IS NOT INITIAL.
            lv_date_temp = lv_date.
            CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
              EXPORTING
                correct_option      = '-'
                date                = lv_date
                factory_calendar_id = 'GB'
              IMPORTING
                date                = lv_date_temp
              EXCEPTIONS
                date_after_range    = 1
                date_before_range   = 2.
            IF sy-subrc IS INITIAL.
              lv_date = lv_date_temp.
            ENDIF.
          ENDIF.
          CONVERT DATE lv_date TIME lv_time
                 INTO TIME STAMP l_recieve_date TIME ZONE sy-zonlo.
        ENDIF.
        lr_col = me->ztyped_context->btstart->get_collection_wrapper( ).
        IF lr_col IS BOUND.
          lr_current ?= lr_col->get_current( ).
          IF lr_current IS BOUND.
            lr_current->if_bol_bo_property_access~set_property(
                       iv_attr_name = 'APPT_TYPE'               "#EC NOTEXT
                       iv_value     = 'ZSTWTIME0001' ).
            lr_current->if_bol_bo_property_access~set_property(
                            iv_attr_name = 'TIMESTAMP_FROM'     "#EC NOTEXT
                            iv_value     = l_recieve_date ).
          ENDIF.
        ENDIF.
      ENDIF.
    could you please help me?

    Hi,
    Thanks for your reply,
    yes, i checked the same thing also. But DO_HANDLE_DATA is called before the SET method of receiving date and in that case we are getting the old value in DO_HANDLE _DATA and  source and Target fields both are not updating.
    I checked, if, i'll change the input field then set method of input field and then EH_ON_SAVE is called directly.
    i think, if i'll do the same modification in the EH_ON_SAVE method as i did in the DO_PREPARE_OUTPUT then it can be updated but i don't want to change the EH_ON_SAVE at this moment.
    is there any other way to update the START DATE(Display mode in the screen) which is calculate from the other context node field receiving date.

  • Validation on start date and end date .

    Hi every body ,
    Hi have a problem on validation on the start date & end date problem.
    I have taken two *<h:inputText>* & one *<t:commandLink>* controls.When I am clicking on the <t:commandLink> control I want to validate that end date should greater than start date .Could any body help me out from this problem .
    Here is my code :
    <rich:dataTable id="dataTable" 
                               value="#{adminBacking.dataModel}"
                               var="item">
       <h:column>
         <f:facet name="header">
              <h:outputText value="Start Date" />
         </f:facet>
         <h:inputText size="11" id="startDate" value="#{item.startDate}" onclick="showCalendarControl(this);" />                      </h:column>
    <h:column >
         <f:facet name="header">
              <h:outputText value="End Date" />
         </f:facet>
         <h:inputText size="11" id="endDate" value="#{item.endDate}" onclick="showCalendarControl(this);" />
    </h:column>
    <h:column>
         <f:facet name="header">
              <h:outputText value="Update Row" />
         </f:facet>
         <t:commandLink id="update" action="#{adminBacking.updateEvent}"  value="Update" />     
    </h:column>
    </rich:dataTable>**Here I am taking the date by a simple date picker in the start date & end date field.
    Thanks ,
    sb

    You may find this example useful: [http://balusc.blogspot.com/2007/12/validator-for-multiple-fields.html].

Maybe you are looking for