GR date is previous date of PO

Dear All,
My client have an requirement that they do not want to do GR before Purchase order date.That means in MIGO document date or posting date must not before the date of Purchase Order Date.How it can be done?What is the configuration?
Thanks & Regards
Dipayan Bose

always see both parts of the medal.
warehouse people want be as accurate as possible, which is even needed for reliable reports and statistics.
if the goods arrived physically on August 10, but the PO is not created yet, then you have several problems
- the stock figure in SAP does not match the physical stock
- the stock may not be used (proposed for use) if not visible in SAP
- it creates a lot trouble if this happens at a time where physical count is conducted
- you may be in trouble if it is hazardous material and an incident/accident happens with that material
if the PO is created after the fact, and you dont allow accurate receipt date, then you may have a wrong baseline date for payments to your vendor, which can result in dunning activities and even rebates may forfeit.
that a receiver enters a wrong receipt date may really be an exceptional error.
instead of stopping the receiver, you should analyze why the buyer is late with the order.

Similar Messages

  • Missing records for any date, take previous date.

    Hi ,
    I had done it thourgh PL SQL but need advice on whether this can be done through SQL and in a better way,
    Requirements,
    1. I have a table which hold daily data.
    2. I have a date range. It can be anything. For example between 1st Jan 2013 to 23rd Jun 2013.
    Now I have a table. This table have daily records. In case missing for any date it should take the previous dates data.
    Sample Data:
    {code}
    with data as
    (select '01-JAN-2013' as report_date , 45 as report_value from dual
    union all
    select '02-JAN-2013' as report_date , 49 as report_value from dual
    union all
    select '03-JAN-2013' as report_date , 51 as report_value from dual
    union all
    select '04-JAN-2013' as report_date , 54 as report_value from dual
    union all
    select '05-JAN-2013' as report_date , 55 as report_value from dual
    union all
    select '06-JAN-2013' as report_date , 59 as report_value from dual)
    select * from data;
    {code}
    Sample Output:( when date range passed as 01-Jan-2013 to 08-JAN -2013
    {code}
    01-JAN-2013    45
    02-JAN-2013    49
    03-JAN-2013    51
    04-JAN-2013    54
    05-JAN-2013    55
    06-JAN-2013    59
    07-JAN-2013    59
    08-JAN-2013    59
    {code}

    Something like this...
    WITH data AS
            (SELECT '01-JAN-2013' AS report_date, 45 AS report_value FROM DUAL
             UNION ALL
             SELECT '02-JAN-2013' AS report_date, 49 AS report_value FROM DUAL
             UNION ALL
             SELECT '03-JAN-2013' AS report_date, 51 AS report_value FROM DUAL
             UNION ALL
             SELECT '04-JAN-2013' AS report_date, 54 AS report_value FROM DUAL
             UNION ALL
             SELECT '05-JAN-2013' AS report_date, 55 AS report_value FROM DUAL
             UNION ALL
             SELECT '06-JAN-2013' AS report_date, 59 AS report_value FROM DUAL)
    SELECT NVL (TO_DATE (report_date, 'DD-MON-YYYY'), t.dt) report_date,
           NVL (report_value,
                (SELECT MAX (report_value)
                   FROM data
                  WHERE report_date = (SELECT MAX (report_date) FROM data)))
              report_value
      FROM    data
           RIGHT OUTER JOIN
              (    SELECT TO_DATE ('01-JAN-2013', 'dd-Mon-YYYY') + ROWNUM - 1 dt
                     FROM DUAL
               CONNECT BY ROWNUM <=
                               TO_DATE ('08-Jan-2013', 'dd-Mon-YYYY')
                             - TO_DATE ('01-Jan-2013', 'dd-Mon-YYYY')
                             + 1) t
           ON TO_DATE (report_date, 'DD-MON-YYYY') = dt;
    REPORT_DATE REPORT_VALUE
    1/1/2013      45
    1/2/2013      49
    1/3/2013      51
    1/4/2013      54
    1/5/2013      55
    1/6/2013      59
    1/8/2013      59
    1/7/2013      59
    Cheers,
    Manik.

  • SQL Loader Approch to fetch data from Previous Data Segment.

    CREATE TABLE T
    RECORD_ID NUMBER,
    SEG_VALUES VARCHAR2(4000)
    ==============================================================================
    LOAD DATA
    INFILE *
    TRUNCATE
    INTO TABLE T
    WHEN SEG_VALUES <> ''
    RECORD_ID RECNUM,
    SEG_VALUES POSITION(1:4000)
    BEGIN DATA
    AAASH9561000000074120081029SYS
    BBB0000001H0351
    CCC0000001 6040818 078141532A 202007083020070830 36274
    CCC0000002 12623239 526486168A 202008063020080630 4808
    CCC0000003 13326331 530229550A 202008042620080426 V4611
    CCC0000004 23554261 161340499A 202008082220080822 6868
    ==============================================================================
    CREATE TABLE T1
         FILE_ID VARCHAR2(20),
         CONT_NBR VARCHAR2(20),
         SEG_VALUES VARCHAR2(4000)
    ==============================================================================
    CREATE OR REPLACE PROCEDURE P
    AS
    l_Fileid T1.file_id%type;
    l_Contractnbr t1.CONT_NBR%Type;
    BEGIN
         FOR REC IN (SELECT SEG_VALUES FROM T ORDER BY RECORD_ID)
         LOOP
              IF SUBSTR(REC.SEG_VALUES,1,3) ='AAA' THEN
                   l_Fileid := SUBSTR(REC.SEG_VALUES,10,10);
              ELSIF SUBSTR(REC.SEG_VALUES,1,3) ='BBB' THEN
                   l_Contractnbr := SUBSTR(REC.SEG_VALUES,11,5);
              ELSIF SUBSTR(REC.SEG_VALUES,1,3) ='CCC' THEN
                   INSERT INTO T1 VALUES (l_Fileid,l_Contractnbr,REC.SEG_VALUES);               
    END IF;
         END LOOP;
         COMMIT;
    EXCEPTION
         WHEN OTHERS THEN
         RAISE_APPLICATION_ERROR (-20458,SQLERRM);
    END P;
    ==============================================================================
    Is there is any simple approch to handle the above scenario in SQL Loader Control file? if possible can you please show me?

    Handle the above scenario? What above scenario?
    Could I guess ... you betcha. Will I guess? Quite another matter.
    Please provide full version (all 3 decimal places) and a clear and concise description of what help you need.

  • How to compare Sale data with Previous data

    Hi Guys,
        Any one tell me how we will compare Sales data with Last year Sale data. Is there any T.Code or any kind of Report in the SAP. If available please suggest the same.
    Thanks & regards,
    Naveen Bhatia

    Hi Naveen,
    Did yo ucheck t-code SD01
    Regards
    Rohit.

  • How to change value date from posting date to net due date

    Hi Gurus,
    My client wants to change value date from posting date to net due date. currently posting date is considered as value date but in future client wants to change value date to net due date of documents.
    1. what configurations need to be maintained to change value date from posting date to net due date.
    2. Will these changes effect automatic payment run.
    Thanks and Regards,
    Suresh

    Hi Suresh,
    In Future
    While posting the documents you can mention the value date as due date of the documents.
    For already posted documents
    You can change the value date to net due date.
    If the value date is display mode i.e. if you are not able to change the value date in FB02 (Document Change Mode), use OB32 transaction and make value date field as eidtable (BSEG-VALUT).
    In OB32 transaction enter all the required fields like Account type, transaction type, company code and finally activate the Field can be changed check box.
    But not sure, whether we can change the value date to previous date or not?
    This would help you..
    Regards,
    Praisty
    Edited by: Praisty on Jul 28, 2009 9:56 AM

  • Issue in clearing of previous data of screen cl_gui_docking_container= free

    Hi All,
    My program displays an idoc list(screen 100). Then if user selects any row in the method
    gets the index no and details of that idoc are displayed in another screen(screen 200) .
    Then control returns to this screen again. Now if user selects any row from idoc list (screen 100) then data is displayed along with data from previous screen .
    In PBO of screen 200 : some code is :
    create object go_docking
              exporting
                dynnr     = '200'
                extension = 65
                side      = cl_gui_docking_container=>dock_at_top.
            create object go_grid_detail
              exporting
                i_parent = go_docking.
    some code
    create object go_custom_cont
              exporting
                container_name = 'DISPLAY_IDOC_CONTENT_200'.
            create object go_grid_detail
              exporting
                i_parent = go_custom_cont.
    some more code
    call method go_grid_detail->set_table_for_first_display
              exporting
                is_layout            = gs_layout
                it_toolbar_excluding = lt_exclude
              changing
                it_fieldcatalog      = fieldcatalog1
    create object go_docking
                exporting
                  dynnr     = '200'
                  extension = 65
                  side      = cl_gui_docking_container=>dock_at_bottom.
              create object go_grid_detail
                exporting
                  i_parent = go_docking.
    In PAI of 200 screen i have used :
    some code      
    free go_grid_detail.
          free go_custom_cont.
          go_docking->free( ).  free go_docking.
    After freeing all data and on call of screen 200 from screen 100 still it shows data from which was there previously on screen 200.
    How can clear all previous data . Even i have free the docking still not working .
    Kindly please help.

    Hi,
    if go_grid_detail is type ref to cl_gui_alv_grid, call go_grid_detail->free( ) before container->free( ).
    Regards,
    Clemens

  • Opening stock will be the closing stock of previous date

    Hi All,
    Good day. I am developing an ALV report that will show opening stock(LABST) as well as closing stock(Calculated) for a range of date and materials. Problem here is that from MARD table I am getting only the last opening stock, because it has no common date field with MSEG table. So, I have to calculate the opening stock as the closing stock of previous date. How can I calculate this? Is there any FM to get the opening stock ?
    Date          Material            Opening St       Closing St
    27.03.2009     2100002          91.000          191.00
    28.03.2009     2100002          191.000          123.00
    29.03.2009     2100002          123.000          103.00
    With regards,
    Tripod.
    Edited by: Tripod on Aug 23, 2011 12:13 PM

    Try not only to use MARD and MKPF/MSEG but also MARDH which contains closing stock of period preceding periods where movements happened. (ie. there is a record for May if a movement happened in June, and none for June if there was no movement in July, and no record exists for August as this is current period) - First look for MARD, MARDH records; and then only read MKPF/MSEG from last MARDH record found. (created back to 4.5A - [Material Master (Industry/Retail): Enhancements to Period Closing|http://help.sap.com/saphelp_45b/helpdata/en/35/b0e7ef87a62488e10000009b38f9b7/content.htm])
    Regards,
    Raymond

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • How can I keep all the previous datas in the same array?

    I have a problem with keeping the previous datas in my array. The problem is when the iteration loop is executed, I have one or two value(s) stored in the array. The second iteration I have either one or two values (depending on the condition) coming out, but it overwrites my previous value. I want to keep all my data in the same array as the loop is executed.PS. I have attached a simple vi along this message. If anyone can help me out with this, I really appreciate for the help.
    Regards,
    Sonny

    If you iterate several times (N > 100) then I would suggest using the Initialize Array outside of the For Loop and then use the Replace Array Subset inside the Loop to populate the array. The reason for this is because the Build Array utility has to locate a new space in memory for the newly concatenated array -- the Replace Array Element utility uses the same memory space.
    If you iterate just a few times with a small array then using the Build Array should be okay.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • I need to restore my Ipad from the iCloud, but not from the latest backup.  Can I restore from a previous date?  If so How?

    I went yesterday to the Albany, NY apple store genius bar with a sound issue on the Ipad.  After 2 hours the "genius" told me that
    they tried wiping my  Ipad clean, but not to worry that first everything was saved in the cloud.  I was told I had to reload all
    purchased Apps and would be no charge and would take some time.  Due to the late hour I said I'd do it at home.  I did not do
    it last night.  This morning I open the Ipad  to find nothing in it....no contacts,  no notes....nothing.  I rushed back to the apple
    store and was told that apparently last night a backup took place and the Icloud backed up a clean Ipad....no info.  This is a
    huge problem.  Apple personel simply said sorry that the "genius" should have known better.   Attempts to restore seems to
    only go back to the last backup which of course is blank.  Now my question is .....is it possible somehow with the cloud from a
    previous date like you can with  a PC?

    You can order recovery media here
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00810334&cc=us&lc=en&dlc=en

  • Disable all the previous dates in a calendar form

    hi guys,
    I am having a calendar form in which it displays all the previous,current,future dates and months.when i click on the particular button on the
    calendar it dispalys the date, month, and year.its working fine.But what i need is, i want to disable all the previous dates in the calendar till the current
    date.But not to disable the previous button.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class CalendarForm extends JFrame
    JButton[] btn = new JButton[49];
    int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
    int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
    JLabel lbl = new JLabel("", JLabel.CENTER);
    JTextField tf1=new JTextField();
    public CalendarForm()
    buildGUI();
    setDates();
    public void buildGUI()
    setLocation(200,350);
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    String[] header = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
    JPanel midPanel = new JPanel(new GridLayout(7,7));
    midPanel.setPreferredSize(new Dimension(350,250));
    for(int x = 0; x < btn.length; x++)
    final int selection = x;
    btn[x] = new JButton();
    btn[x].setFocusPainted(false);
    if(x>6)
    btn[x].addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    displayDatePicked(btn[selection].getActionCommand());}});
    if(x < 7)
    {btn[x].setFont(new Font("Lucida", Font.PLAIN, 8)); btn[x].setText(header[x]);}
    midPanel.add(btn[x]);
    JPanel lowPanel = new JPanel(new GridLayout(1,3));
    JButton prevBtn = new JButton("<< Previous");
    prevBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month--;setDates();}});
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month++;setDates();}});
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel,BorderLayout.CENTER);
    getContentPane().add(lowPanel,BorderLayout.SOUTH);
    pack();
    public void setDates()
    for(int x = 7; x < btn.length; x++) btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    for(int x = 6+dayOfWeek,day = 1; day <= daysInMonth; x++,day++) btn[x].setText(""+day);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - "+lbl.getText());
    public void displayDatePicked(String day)
    if(day.equals("") == false)
    // java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE d MMMM, yyyy");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,Integer.parseInt(day));
    System.out.println(tf1.getText());
    getContentPane().add(tf1,BorderLayout.NORTH);
    // JOptionPane.showMessageDialog(this,"You picked "+sdf.format(cal.getTime()));
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date"+tf1.getText());
    this.setVisible(false);
    public String getFromDate()
    return tf1.getText();
    public static void main(String[] args)
         new CalendarForm().setVisible(true);
    the above  code is to diaplay the calendar form.plzzzzzzzzzzzzzzzz help me. thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi michael,i disabled all the previous buttons in a calendar form.this is my code
    import java.awt.*;
    import java.awt.event.*;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    class CalendarForm extends JFrame {
        JButton[] btn = new JButton[49];
        int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
        int date = java.util.Calendar.getInstance().get(java.util.Calendar.DATE);
        int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
        JLabel lbl = new JLabel("", JLabel.CENTER);
        JTextField tf1 = new JTextField();
        public CalendarForm() {
            buildGUI();
            setDates();
        private String getMonthAndYearAsString() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
            return sdf.format(new Date(System.currentTimeMillis()));
        private Date getCurrentDate() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd MM yyyy");
            return new Date();
        public void buildGUI() {
            setLocation(450, 350);
            setDefaultCloseOperation(HIDE_ON_CLOSE);
            String[] header = {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"};
            JPanel midPanel = new JPanel(new GridLayout(7, 7));
            midPanel.setPreferredSize(new Dimension(350, 250));
            for (int x = 0; x < btn.length; x++) {
                final int selection = x;
                btn[x] = new JButton();
                btn[x].setFocusPainted(false);
                if (x > 6) {
                    btn[x].addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                            displayDatePicked(btn[selection].getActionCommand());
                if (x < 7) {
                    btn[x].setFont(new Font("Lucida", Font.PLAIN, 8));
                    btn[x].setText(header[x]);
                midPanel.add(btn[x]);
            JPanel lowPanel = new JPanel(new GridLayout(1, 3));
            JButton prevBtn = new JButton("<< Previous");
            prevBtn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    month--;
                    setDates();
                    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
                    java.util.Calendar cal = java.util.Calendar.getInstance();
                    cal.set(year, month, 1);
                    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
                    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
                    String currentMonth = getMonthAndYearAsString();
                    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
                    String selectedMonth = sdf.format(cal.getTime());
                    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
                    Date currentDate = getCurrentDate();
                    Date selectedDate = new Date(cal.getTimeInMillis());
                    //Comparing currentDate nad selectedDate
                    int off = currentDate.compareTo(selectedDate);
                    int currentDay = date;
                    if (currentMonth.compareTo(selectedMonth) == 0) {
                        for (int x = 7 + dayOfWeek,  day = 1; day <= btn.length; x++, day++) {
                            btn[x].setEnabled(true);
                            if (day < currentDay) {
                                int k = x - 1;
                                for (int j = 7; j <= k; j++) {
                                    btn[j].setEnabled(false);
                    } else if (off == 1) {
                        for (int x = 6 + dayOfWeek,  day = 1; day < daysInMonth; x++, day++) {
                            for (int i = 6 + dayOfWeek; day < currentDay; i++) {
                                btn.setEnabled(false);
    } else if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    month++;
    setDates();
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    String currentMonth = getMonthAndYearAsString();
    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
    String selectedMonth = sdf.format(cal.getTime());
    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
    Date currentDate = getCurrentDate();
    Date selectedDate = new Date(cal.getTimeInMillis());
    //Comparing currentDate and selectedDate
    int off = currentDate.compareTo(selectedDate);
    int currentDay = date;
    if (currentMonth.compareTo(selectedMonth) == 0) {
    for (int x = 7 + dayOfWeek, day = 1; day <= btn.length; x++, day++) {
    btn[x].setEnabled(true);
    if (day < currentDay) {
    int k = x - 1;
    for (int j = 7; j <= k; j++) {
    btn[j].setEnabled(false);
    if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    } else if (off == 1) {
    for (int x = 6 + dayOfWeek, day = 1; day < daysInMonth; x++, day++) {
    for (int i = 6 + dayOfWeek; day < currentDay; i++) {
    btn[i].setEnabled(false);
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel, BorderLayout.CENTER);
    getContentPane().add(lowPanel, BorderLayout.SOUTH);
    pack();
    public void setDates() {
    for (int x = 7; x < btn.length; x++) {
    btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - " + lbl.getText());
    int currentDay = date;
    for (int x = 6 + dayOfWeek, day = 1; day <= daysInMonth; x++, day++) {
    btn[x].setText("" + day);
    if (day < currentDay) {
    for (int j = 7; j <= x; j++) {
    btn[j].setEnabled(false);
    public void displayDatePicked(String day) {
    if (day.equals("") == false) {
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, Integer.parseInt(day));
    System.out.println(month);
    System.out.println(tf1.getText());
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date" + tf1.getText());
    // VStudentAttendanceForm class ....
    if (VStudentAttendanceForm.jcalFlag == 1) {
    VStudentAttendanceForm.jtfFromDate.setText(tf1.getText());
    if (VStudentAttendanceForm.jcalFlag == 2) {
    VStudentAttendanceForm.jtfToDate.setText(tf1.getText());
    if (ManageStudents.cal == 1) {
    ManageStudents.jTextField22.setText(tf1.getText());
    ManageStudents.FromjTextField10.setText(tf1.getText());
    if (ManageStudents.cal == 2) {
    ManageStudents.jTextField23.setText(tf1.getText());
    ManageStudents.TojTextField11.setText(tf1.getText());
    if (vAuditTrail.cal == 1) {
    vAuditTrail.jTextField3.setText(tf1.getText());
    if (vAuditTrail.cal == 2) {
    vAuditTrail.jTextField4.setText(tf1.getText());
    if (Attendance.cal == 1) {
    Attendance.jTextField7.setText(tf1.getText());
    if (Attendance.cal == 2) {
    Attendance.jTextField8.setText(tf1.getText());
    this.setVisible(false);
    public String getFromDate() {
    return tf1.getText();
    public static void main(String[] args) {
    new CalendarForm().setVisible(true);

  • Variable last date of previous month/last date of current month

    Hello Experts,
    I am facing an issue while designing a query.
    Requirement is like this.
    Report will be run on monthly basis.so on execution of report, it should prompt for month/year.
    now on report there are two columns for which I have to get data on date basis(last date of previous month and Last date of current month).
    Can anyone tell me is there any standard variable for this? what is it?
    or how to achieve this?
    Regards,
    Nirav

    Hi,
    See if this post in this forum can help you.
    Re: Last date of a month
    Regards
    Shalabh Jain

  • I have an Iphone 4 which I just updated with the latest software, which put in it in Recovery Mode. It has the picture of the plug with Itunes, I downloaded it now its saying its in Recovery Mode, how do I save all of my previous data without Restoring?

    I have an IPhone 4 which I just updated with the latest software, which put in it in Recovery Mode. It has the picture of the plug with ITunes, I downloaded it now its saying its in Recovery Mode, how do I save all of my previous data without Restoring?
    I updated the phone before backing it up on iTunes, now the update wanted me to connect the phone with iTunes and it says the phones in recovery mode and it must be restored before its used with iTunes. I go to click restore and it says it will reset it to factory default and I'll lose all my current data. I have all my sons pictures and videos along with this notes. I can't lose all of this data! Please help!

    You have to restore the iPod, no ifs, ands, or buts...
    After iOS is installed you will be asked if you what to set it up as a new iPod or if you want to restore from a backup.
    If you have a good backup you can restore that and you're good to go.
    If you don't have a good backup, then you end up with a "clean" iPod....

  • I shifted from a windows to a mac.. I want to add songs to my ipod tpuch 4th gen.. but if i try to sync with itunes it says my songs will be replaced by the new songs.. Is there any way that i can have my previous data safe??

    i shifted from a windows to a mac.. I want to add songs to my ipod tpuch 4th gen.. but if i try to sync with itunes it says my songs will be replaced by the new songs.. Is there any way that i can have my previous data safe??

    Your iPod can only be synced with one computer at a time.  If you try to sync it with a new computer/iTunes library, it will replace the contents of the iPod with whatever is in the new library. You should probably disable the autosync functionality first by going to Edit -> Preferences, clicking the Devices tab, and enabling the prevent iPods,iPhones, and iPads from automatically syncing option.
    Before doing anything else,  authorize the new computer with your iTunes Account.  In iTunes, choose Store -> Authorize This Computer and enter in the correct credentials. Either copy a backup file from your old computer to your new one or create a new backup of your iPod in iTunes before letting it sync.
    Then right->click on your iPod Touch from under the Devices section in the left hand pane of iTunes and choose Backup. You might also want to take a look at this article to see what it all included in the backup.
    iOS: How to back up
    Now onto synced content such as music, videos, photos, etc.  For iTunes purchases you can copy them back into iTunes by choosing File -> Transfer Purchases.  For all other nonpurchased iTunes content, see this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    Once the backup has been made and all other synced content such as music, videos, and photos are back in your iTunes library, restore your iPod from that backup you made earlier.  Here is more on backing up and restoring your iPod.
    iTunes: Backing up, updating, and restoring iOS software
    If you do happen to lose any purchased content, you can always redownload it from the iTunes Store again at no cost via iCloud.  See this article for information.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    B-rock

  • Updated my iphone 4 today to new operating system...said error 50 and i lost all my previous data...there is no back up to get my contacts and photos back although it did say it was backing up first before it installed the new operating system but

    updated my iphone 4 today to new operating system...said error 50 and i lost all my previous data...there is no back up to get my contacts and photos back although it did say it was backing up first before it installed the new operating system but i cant find it anywhere...so frustrated at losing everything

    http://support.apple.com/kb/TS3694#error50

Maybe you are looking for

  • Custom Size Envelope Printing In Address Book

    First off, I'm using an Epson SC 880. I want to print on 5x7 envelopes. I am able to define the custom size of 5x7, but when I attempt to print, it spits the envelope out unprinted. I'm wondering if this is a printer driver problem or a bug in Addres

  • Music player!! Help!

    Hello, as the topic says.. Im looking for an other music player for my mac in wich I can have all my songs in a list (like winamp or iTunes) and you may ask "why whould I want an other music player if I've got iTunes?" ok the answer is that I've got

  • Where are the BEx variable stored

    Hi All, I have couple of doubts. I would appreciate, if some one can through some light on these. 1. Where does all the BEx variables stored, if they are stored in BW, then in which transparent tables these are stored. 2. Where does the properties of

  • CHARM Authorization issue

    Hi , We have implemented CHARM. In our scenario we have custom partner function like SME who is part of every Change Request. The issue when they try to change the priority of the ticket to 1 or 2. and pop saying that you dont have authorization to s

  • MacBook Pro delivery

    I ordered a MacBook Pro and an iTunes card and it said they would take 3-5 days because I customised. the macbook is 17inches with 2.3ghz, 8GB of ram and solid state memory and everything else the same, and the iTunes card is the Beatles £100 gift ca