Weekly schedule line should pass to last working day of the week in SAg

HI,
In a scheduling agreement when we have weekly or monthly schedules the system displays the date in the screen as 12/2010 or 13/2010 for say a weekly schedule.
However when the data is stored in the table the delivery date is always the first working day of the week. In this case when the week is 13/2010 the data is stored in the table as 22/03/2010.
Is there any way to change this to the last working day of the week?
We have some config related to define delivery intervals in IMG--> Sales and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Define Delivery Intervals. Will this help solve my issue? If it solves what is the procedure behind this?
Request you to provide your inputs.
Thank You, Lakshmikanth

Hi,
Seems the delivery split concept is different from this requirement. Can Delivery intervals concept help us or not? IMG--> Slaes and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Control EDI Inbound Processing --> Define Delivery Intervals.
What is the procedure and assignment details for delivery intervals concept?
Thanks, Lakshmikanth

Similar Messages

  • How to create a recurrent event on the first or last work day of the month

    The lightning calendar allows selection of the first and last day of the month for recurrent events but for business I need to use the first and last WORK day of the month (Monday - Friday) to schedule particular tasks. In the calendar preferences under 'View' I can select the days that make up the work week but this does not transfer to an option in recurrent events. Is there another way to do this or is it just not available?

    Hi there,
    do know for the UlltimateBootCD4Win? This from CD bootable WinXP-BartPEedition with additional tools gives you the ability to make such things like partitioning, backup or formatting your HDD.
    It has many more applications which help you to maintain your system without booting your original OS.
    So I think that this CD will solve your partitioning issues.
    Heres a link: www.ubcd4win.com/
    Just try it and tell me your opinion.
    Nice weekend and greetings from the sunny south ;)

  • Schedule lines should be in gray mode

    Hi Gurus,
    Any idea how to make the schedule lines in gray mode.
    My client demand is when we save the sales order and
    we go to va02 schedule lines should show in gray mode to avoid
    the changes  quantity.
    Thanks in advance

    Dear Protan,
    the solution suggested above with the help of user-exit USER_EXIT_FIELD_MODIFICATION (Include MV45AFZZ) is the correct way to make the schedule lines unchangable. But please take into consideration that in the "normal" sales orders you do not need to go to the schedule line screen to change date or quantity. It is sufficient that you change the date or quantity on the item level. Then the schedule lines will be changed (created/deleted) in the background automatically.
    So, if you really want to grey out the quantity and date fields, you have to do this on all screens (Sales Overview, Procurement, Shipment etc.) also on  the item level. Then the item will be unchangable at all. Please be careful with this.
    So, you have to grey out all item date and quantity fields in all screens of the order. To do unchangable only schedule line screen is then not sufficient.
    As Manam said above, the USER_EXIT_FIELD_MODIFICATION is the only correct place to make the fields unchangable. I can only confirm this.
    I hope, this additional info was also helpful for you.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Function module for getting teh last working day of a month.

    Hi GURUS,
    this is criteria,please help me 
    if V_T001B- FRYE1 < month entered in selection screen
              Then throw the error message
                Else
    Find the previous period and its last working day from the function module
          (i..e Assume entered date as June 2 2009 then
                   Period 6 -1 = 5.
         Pass the month 05 to function module then
                   Find last working day.
                   Keep it in a variable (V_LAST_PRD_WRKDAY)
                           Proceed further.
    thanks in advance,
    Rajeev

    Hi Rajeev,
    You can use Function Module LAST_DAY_IN_PERIOD_GET.
    Ex:
          CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
            EXPORTING
              i_gjahr = p_gjahr
              i_periv = lwa_t009b-periv
              i_poper = lwa_t009b-poper
            IMPORTING
              e_date  = s_audat-high.
    Regards,
    Ravi K

  • Dynamic selective deletion of last working day in cube

    Hi experts
    I have studied this document:
    http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2013/08/06/selective-deletion-in-process-chain
    We need to delete each month at the 6th working day all records of the last working day of the previous month.
    Thereafter we will have to reload the last working day of the previous month again.
    This means there are 2 steps to do:
    1. step:
    create program as described in the link above; this z-program will be used in process chain variant.
    2. step:
    ABAP variable in infopackage which will reload the last working day of previous month.
    Do you have the correct coding samples for both steps available?
    Thanks.

    Hi Thomas,
    I just realized that you should use LT_THX_SEL instead of L_THX_SEL. I corrected your code as:
    REPORT GP00733D41Q8YF4PERY61Y1HNAP .
    TYPE-POOLS: RSDRD, RSDQ, RSSG.
    DATA:
      L_UID       TYPE RSSG_UNI_IDC25,
      L_T_MSG     TYPE RS_T_MSG,
      L_THX_SEL   TYPE RSDRD_THX_SEL.
      L_UID = '00733D41Q8YF4PERYNZWX2EY9'.
      IMPORT I_THX_SEL TO L_THX_SEL
        FROM DATABASE RSDRBATCHPARA(DE) ID L_UID.
    *  DELETE FROM DATABASE RSDRBATCHPARA(DE) ID L_UID.
      data: wa_tab type RSDRD_S_RANGE.
    data: lt_tab type RSDRD_T_RANGE.
    wa_tab-sign = 'I'.
    wa_tab-option = 'EQ'.
    wa_tab-keyfl = 'X'.
    wa_tab-low = '20140101'.
    append wa_tab to lt_tab.
    clear l_thx_sel.
    LT_THX_SEL-IOBJNM = '0CALDAY'.
    LT_THX_SEL-TRANGE[] = LT_TAB[].
    INSERT LT_THX_SEL into table L_THX_SEL.
      CALL FUNCTION 'RSDRD_SEL_DELETION'
           EXPORTING
                I_DATATARGET      = 'ZCFM_C11'
                I_THX_SEL         = L_THX_SEL
                I_AUTHORITY_CHECK = 'X'
                I_THRESHOLD            = '1.0000E-01'
                I_MODE                 = 'C'
                I_NO_LOGGING           = ''
                I_PARALLEL_DEGREE      = 0
                I_NO_COMMIT            = ''
                I_WORK_ON_PARTITIONS   = ''
                I_REBUILD_BIA           = ''
                I_WRITE_APPLICATION_LOG   = 'X'
           CHANGING
                C_T_MSG                     = L_T_MSG.
      export l_t_msg to memory id sy-repid.
      UPDATE RSDRBATCHREP
        SET  DELETEABLE = 'X'
    I hope that will be the final solution Thomas.
    Regards
    Yasemin...

  • Last Working Day Variable

    Hello Folks,
    Any idea about the Std Variable for the last working day calculation.
    I have a customised Characteristics to which I want to use this variable then what steps should I follow or by installing it through  content will it directly get attached, I mean will be available while choosing the variables for this characteristics in a query.
    Thanks,
    Suyog.

    Hi,
    Create a customer exit variable to get last working day of the month and write the following logic in ZXRSRU01:
    *Last working day of the given period(Cal Yr/Month)
    WHEN '<Customer exit variable>'.
    DATA : BEGIN OF i_holidays OCCURS 0.
            INCLUDE STRUCTURE iscal_day.
    DATA : END OF i_holidays,
          v_fdate LIKE sy-datum,
          v_ldate LIKE sy-datum.
        IF i_step = 2.
          READ TABLE i_t_var_range INTO loc_var_range
                WITH KEY vnam = '<Cal yr/month selection variabel>'.
          IF sy-subrc = 0.
              CONCATENATE loc_var_range-low
                          '01' INTO v_fdate.
    * to get last day of the given period
              CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
                EXPORTING
                  day_in            = v_fdate
                IMPORTING
                  last_day_of_month = v_ldate.
    *To get holiday list in the given period
                CALL FUNCTION 'HOLIDAY_GET'
                  EXPORTING
                    holiday_calendar = <Fact cal ID>
                    factory_calendar = <Fact cal ID>
                    date_from        = v_fdate
                    date_to          = v_ldate
                  TABLES
                    holidays         = i_holidays.
              SORT i_holidays BY date DESCENDING.
              DELETE ADJACENT DUPLICATES FROM i_holidays.
              DO.
                READ TABLE i_holidays WITH KEY date = v_ldate.
                IF sy-subrc NE 0.
                  v_ldate = v_ldate - 1.
                ELSE.
                  l_s_range-sign = 'I'.
                  l_s_range-opt = 'EQ'.
                  l_s_range-low = v_ldate.
                  APPEND l_s_range TO e_t_range.
                  CLEAR:l_s_range.
                    EXIT.
                  ENDIF.
              ENDDO.
         ENDIF.
        ENDIF.
    Assumptions:
      Running a report by entering Cal yr/month as selection value.
    hope it works...
    regards,
    Raju

  • Display data for last working day of month

    Hi
    I am trying to chart values for the last six years but only to plot the value for the last working day of the month, except for the current month where I am taking an average of the month so far. Everything I've tried has so far failed spectacularly. Has anyone resolved a similar problem?

    If I understand your dilemma correctly, you may want to create a cross-tab and then create the chart off of the cross-tab. Is the data in your tables that you want to chart on something like this:
             4/30   5/30   6/30   7/31   8/29       Sept.
    Row 1    20      30      10      25      20    (avg for month) 
    Row 2    5         10      8       15     15    (avg for month)
    etc.
    If so, 1) can you show an example of the data and 2) what kind of chart do you want to create?

  • FUNCTION MODULE TO FIND LAST WORKING DY OF THE MONTH

    FM to find the month end working day , if the month end falls on sunday or saturday or any other public holiday, it shud exclude that day and give me the last working day of that month.
    Example: Octoberr 2004 month end falls on saturday and sunday. hence the last working day of the month will be 29 october 2004.
    Pls provide me this FM , concerned points will eb awarded.
    Rgds
    Ramada

    hi,
    kindly use this FM.
    it will help u.
    data : your_cal_id like t001w-fabkl,
            max_date  like sy-datum.
    CALL FUNCTION 'LAST_FACTORYDATE_GET'
             EXPORTING
                  factory_calendar_id          = your_cal_id
             IMPORTING
                  DATE                         = max_date
             EXCEPTIONS
                  FACTORY_CALENDAR_NOT_FOUND   = 1
                  FACTORY_CALENDAR_ID_MISSING  = 2
                  CALENDAR_BUFFER_NOT_LOADABLE = 3
                  OTHERS                       = 4
    rgds
    anver
    if hlped mark points

  • Scheduling Agreement -Schedule line should not pass the requirement to MRP

    Hi Friends!
    As we all know the scheduling agreements is outline agreement with future schedule lines, with this system will  pass the requirements to MRP for the schedule line which is even after 5 years, so my requirement is  if the schedule line date is above 15 days from the current date then requirement should not pass to MRP. 
    solution which we gave is, SA initially will determine the schedule line category as  CN (which will not transfer the requirement) and  a batch job program will run daily and it will check for each schedule line if any of the schedule is with in the 15 days from the current date then it will change the schedule line category from CN to CP. 
    Now the problem is , by using Batch Job which program I have to call to change the schedule line category?????
    1. we tried BAPI_SALESORDER_CHANGE but when we are changing the CN to CP it is not performing ATP where as if we do manually it is performing.
    2. we tried BDC but here also we facing some strange problem i.e. while recording the ATP screen is not populating where it is coming while doing manual.
    Can someone let me know which one program we should call in Batch job to do this change.
    Regards
    Nath

    Hi nath,
    i also failed in changing shedule line category in userexit and in BAPI.
    in one case, i succeded in doing it with a bdc after MV45AFZZ / userexit_save just bevore the datas are reset but after the commit-work is processed.
    the other possibility is, to change the accepted amount in userexit RV03VFZZ / USEREXIT_AVAILABILITY_OUT.
    3. possibility is, to block the order with a delivery - block , same as the credit-control-block. This block can be set in MV45AFZZ or perhaps in BAPI too.
    hans

  • Schedule lines should not be maintained with out release

    schedule lines should not be maintained with out release of schedule agreement......but system accepting to maintain the schedule lines.Please say how.
    regards,
    Sridhar kumar.a

    Hello,
    I have the same problem as you. Someone know something about it?
    kanyadhara, did yo solve this problem?
    Thanks a lot

  • Without release schedule agreement schedule lines should not be maintain

    Hi experts,
           i made a schedule agreement and i have given 2 level of releases for it.. so with out releasing i maintained schedule lines in me38, then i made migo then system says the document has not been released yet. but what my query is schedule lines should not be happened with out release means it should stop here only. So how to give check for it.i have searched in system messages but nothing is there in that. So please solve this problem its urgent.

    Hello,
    I have the same problem as you. Someone know something about it?
    kanyadhara, did yo solve this problem?
    Thanks a lot

  • Schedule line should not generate until SA release

    Dear All,
    We want when we run MRP against schedule agreement then "Schedule line should not generate until SA release"
    Abhinay

    HI Abhinay Sachan ,
    Bascially when we run the MRP the system generate the Schedule Lines for that  schedule line we are doing release .....
    If you have SA for a particular materail system gives the Error or warrning message based on the setting what we made...if it is error sysetm won't allow other wise it is warrning meaasge means we can cretae the PR for the particular materail i hope i wll help you
    Regards
    Murugan J

  • Varying Maintenance Work Center Capacity by Days of the Week

    I had submiited a question a month or so ago about varying the capacity of a maintenance work center depending on the day of the week.  I got an answer and it worked.
    We've set up another work center (in staging) for the same scenario (the work center is half staffed on Fridays).  Monday through Thursday the capacity is 36 hours, Friday the capacity is 18 hours, the validity from date is 04/05/2010.  When we use CM34 to do some scheduling though, the capacity shown is 40 hours a day, Monday through Friday which is what the capacity was set up for prior to the validity from date.  It's also the same capacity as shown in the 'Standard Available Capacity' section.
    I looked back at the work center I had modified previously and it's showing the same thing.  It's like it's ignoring the validity dates.
    Any ideas?
    David Macindoe

    David,
      I know for sure that this is reflected in the standard profile for Capacity Availability check as part of release of the order (SAPSFCG013). The Availability for the week does show the capacity for the interval dates of the week and not the standard available capacity.
      I haven't checked this on CM24 and if the standard profiles don't reflect the change then the profile probably needs to be changed.I need to look into it to make sure. In the meantime if you aren't able to resolve the same, i would suggest to raise a note and see where that leads you.
    Regards
    Narasimhan

  • In SQL server, how can I pass a date and return on any specific day of the week (e.g. Sunday/Monday/Wednesday, etc.)

    In SQL server, I want to be able to have a function to return the date of any specific day of the week by passing two parameters. E.g.:
    parameter 1: a selected date (e.g. 8/3/2013)
    parameter 2: any specific day of the week (e.g. Wednesday)
    result: should be 7/31/2013 (8/3/2013 is a Sunday in the week 7/28 - 8/3, so the Wednesday should be 7/31/2013)
    then if I want to get Saturday of that week, I can simply change the second parameter to 'Saturday'
    Thanks.

    Wrong forum:
    http://www.microsoft.com

  • How to pass from method to arguments to main and get the day of the week

    Hi
    Need some help, this code below doesnt fit the requirement.
    For this program, i need to: take in day, month,year of a date as int argument, return the day of the week for the date entered in App()
    In Main: call the App() to get the day of the week to display when user enter the date in dd/mm/yyyy
    StringTokenizer is required for this program.
    - How can the arguments pass back to main by returning of month & day of the week?
    - Program cant take in int and return as string
    - Date cant display day of the week
    Code
    import java.util.*;
    public class App2 {
        private int day;
        private int month;
        private int year;
             private int inputDay;
                private int inputMonth;
                private int inputYear;
        public static String App2(String day2, String month2, String year2) { // this is wrong should pass int in
              String date = day2 + month2 + year2;
             DateFormat df = new SimpleDateFormat("dd/MM/yyyy");  
              try
              Date today = df.parse(date);               
              System.out.println("Today = " + df.format(today));
              catch(ParseException e)
              if(month2.equals("01") || month2.equals("1")){month2 = "January";}              
              else if(month2.equals("02") || month2.equals("2")){month2 = "February";}              
              else if(month2.equals("03") || month2.equals("3")){month2 = "March";}              
              else if(month2.equals("04") || month2.equals("4")){month2 = "April";}              
              else if(month2.equals("05") || month2.equals("5")){month2 = "May";}              
              else if(month2.equals("06") || month2.equals("6")){month2 = "June";}              
              else if(month2.equals("07") || month2.equals("7")){month2 = "July";}              
              else if(month2.equals("08") || month2.equals("8")){month2 = "August";}              
              else if(month2.equals("09") || month2.equals("9")){month2 = "September";}              
              else if(month2.equals("10")){month2 = "October";}              
              else if(month2.equals("11")){month2 = "November";}              
              else if(month2.equals("12")){month2 = "December";}
              return month2;
        public static void main (String [ ] args){
             Scanner sc = new Scanner(System.in);
                System.out.print("Enter the date in dd/mm/yyyy: ");
                String date = sc.nextLine();
                StringTokenizer st = new StringTokenizer(date, "/");
                String day = st.nextToken();
                String month = st.nextToken();
                String year = st.nextToken();
                App2(day, month, year);
                String test = App2(day, month, year);
                     System.out.print(test);
    }Program output: 29 Aug 2010 is a Sunday

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

Maybe you are looking for

  • Change the background color on the textbox with setToolTipText method

    Hi there, Is there anyway to change the little help text background color with the setTipToolText() method ??? Thanks a million Christian

  • Open AVI files using Adobe Acrobat

    Hello, When i open an AVI file(about 600Mb) using Adobe Acrobat it is ok, but when i want to play the file, it is very slow befor to play the file, the loading time before playing the file is long, how can solve this problem. thanks.

  • VBAP-Third party orders

    Hi I am trying to get list of orders for a period of 01/01/2007 to 11/15/2007 in VBAP table for Item category TAS for two different plants..System is giving me a short dump? Even i tried with more selection options... Is there any other table or SAP

  • IOS 5 renamed most of songs artist on devices

    I updated my iPhone 4 and my iPad first generation to iOS 5.  Now most all of my music songs and video's have been renamed to one artist instead of the individual artists on BOTH devices.  Each device named the artists to a different one.  Example...

  • ASCII in a String to Integer

    Hello I have a String in my programm witch is containing numbers an mathematical operators in ASCII-Code. I read the numbers and operators from the Keyboard before. How can I convert the ASCII-code back into numbers to do arithmetic operations with t