Comparing Entry Date

Hi Gurus,
I have an ODS that stores the price of products based on validity dates. For Eg:
Material                 ValidFromDate           ValidToDate           Price
ABC                      01/01/2008                10/01/2008              200
ABC                      11/01/2008                30/01/2008              300
ABC                      01/02/2008                28/02/2008              500
Now, My requirement is while executing the query, user inputs a date, from that date appropriate material price needs to be picked.
For Eg:
User Enters Input Parameter as 25/01/2008, then material ABC price is 300. Report should show price as 300.
How can i achieve this?
Thanks in advance.
Regards,
Vaishnavi.

U may create it on any of these....from or to.....
U have to create the variable and after that u have to use the enhancement RSR00001... u have to write the code in that... But i dont have much ABAP skills... Please search in SDN... u will get some info about the code...
Please go through the following threads
Customer Exit Code for variable
use a single variable value to compare with 2 characteristics
Comparing dates (Start date should not be later than End date etc ...)
Comparing a range with rang of values
code help
Khaja
Edited by: khaja on Jan 22, 2008 12:29 PM

Similar Messages

  • How to compare delivery date in schedule lines and PGI in outbound delivery

    Hi,
    I want to create a report to monitor and compare different dates in sales and delivery process.
    One of my key figure is the comparison between date confirmed to the customer, that I can find in the schedule line of the sales order, and the actual goods issue date from the outbound delivery.
    But I can't succeed in making the link between delivery and schedule lines, means between LIKP and VBEP.
    Would you have any idea?
    Thank you.

    It seems there's no exact (table) connection / link between delivery item and schedule line item.
    Those who were searching for this thing (link / connection between delivery item and schedule line) were recommended to use FM "RV_SCHEDULE_CHECK_DELIVERIES".
    This FM calculates the delivered quantity for each schedule line, so it makes link between the delivery item and schedule lines - however if you check the code it's quite sophisticated...
    (if you put a breakpoint in the FM and display a SO in VA03, you can check how the parameters have to be populated with data).
    Schedule Line and Delivery Link
    Edited by: Csaba Szommer on Aug 5, 2011 12:03 AM

  • Entry date not proper in adhoc query

    Hi,
    Entry date field in action infotype ( in the adhoc query) always returns 00.00.0000. Whereas the standard reports brings the entry date properly (This is from prelq.hiredate). How we can bring the values into this particular field.The feature 'ENTRY' returns DATYP but data is not maintained in IT41. System should bring the hiring action date (0000 start date) as the entry date. We want to use this entry date field in the adhoc query.
    Thanks in advance.
    Sreeja

    Hi Sreeja
    Please  read the following paragraph of the consulting note 508026 :
    "Exception:
    If the query is started with a key date selection, the query calls
    function module HR_LEAVING_DATE with the key date and not with the start
    and end date of the personnel action in which the key date exists. You
    can use modification note 562031 to change this system response."
    Please also make sure, that the corrections of note 561514 are contained in your system.
    I hope that this information be useful for you.
    Regards,
    Jun

  • SD Billing to FI Accounting: How to make Baseline Date equal to Entry Date?

    Hello,
    I have configured Baseline Date to be equal to Entry Date in the Payments Terms in OBB8. I have assigned this payment term to the Customer as well as the Sales Order.
    But still, when I release a Billing Document to accounting through VFX3, the Baseline Date in the Accounting Document is taken as the Document Date/Posting Date.
    What does the configuration in Payment Terms do?
    How can I get the Baseline Date to equal the Entry Date?
    Any help is greatly appreciated.
    Cheers!
    Bharath

    Just copy from the standrad delivered 0001 to some Z001 and change the date to entry date.
    For me it is working fine. Also try first individually using FB60 or FB70 to llok at the behaviuor of the system.
    reward if useful
    sarma

  • Entry date in blank for limited Contract Type

    Hello,
    I've set up the feature ENTRY with the value EINDT X for my molga, but when I run a hiring action and in infotype 16, in the field Contract Type I use a Limited contract Type, and when I run the report S_AHR_61016362 (Flexible Employee
    Data) the Entry Date Column is in blank but it does not happen when I use Unlimited Contract Type.
    Does anyone can help me?

    Hi,
    This feature provides entry date definition method to function module HR_ENTRY_DATE. In your case it reads following fields from IT0016:
    1. EINDT "Initial Entry"
    2. KONDT      "Date of Entry into Group"
    First of all check that you entered one of these fields for employees with temporary contract.
    Cheers

  • Service entry without an entry date/not linked to goods receipt/invoice?

    Dear Gurus,
    I created a service entry against line 10 of PO. When viewing the service entryu2019s u201CAccept. Datau201D tab, there is a document date and a posting date.
    When viewing the u201CHistory tab,u201D the created dated is 01/12/11...
    When viewing the POu2019s u201CPurchase Order Historyu201D tab, the Service Entry does not have an entry date Additionally, when I go to the u201CGR/IR Assgtu201D view, the service entry is at the very top of the view But the goods receipt and invoice processing document are at the bottom, grouped together, but without the service entry.
    Please help as why is it happeing like this?

    Dear Gurus,
    I m creating service PO and later on doing service entry sheet w.r.t the PO...in service entry sheet, i m entring entry date, posting date and all other relevant informations...and saving the SES and later on releasing it...
    after this, I am going to PO history tab, there i m seeing the SES number but entry date field is missing...
    May i know the reason?
    Pls help...

  • How to compare 2 dates in a JPA QL query

    hello all,
    how can i compare 2 dates in JPA QL ,?
    my idea was to convert the dates to String, and i used 'to_char',
    but i think it doesn't work in JPA QL;
    this is my query(it works in oracle but not in java) :
    Query q=em.createQuery("select sum(o.montant) from Operation o join o.codTransac t join o.codCaisse c where (t.sens='D')and (to_char(c.dateCaisse,'MM/DD/YYYY')=to_char(o.dateOp,'MM/DD/YYYY'))");
    can some one help me?
    thanks

    I don´t know if it´s the same case, but I had a similar problem and I`m posting here the way I solved it (maybe it isn´t the best solution but worked to me).
    I have to compare a date come from a web form (format dd/mm/yyyy) with a Timestamp data from DB (dd/mm/yy hh24:mi:ss).
    Solution:
    //String dateTo from web form
    //Substring here were used to get only dd/mm/yy from DB and ignore the hours
    ql.append(" SELECT o FROM Table o WHERE SUBSTRING(o.dateTime,1,8) = :end ");
    q = getEntityManager().createQuery(ql.toString());
    q.setParameter("end",convertStringToDateSimple(dateTo));
    //function used to parse the String date and return in an appropriate format expected in the above query
    public static String convertStringToDateSimple (final String source)
         final SimpleDateFormat format = new SimpleDateFormat("dd/MM/yy");
              String parsed = null;
                   try
                        parsed = format.format(format.parse(source));
                   catch (ParseException e)
                        throw new RuntimeException(e);
              return parsed;
    Edited by: user8947239 on 31/10/2011 10:58

  • How to compare 2 dates in SQL Server 2000 DB using Java?

    How do you compare 2 dates in SQL Server 2000 DB using Java?
    Let's say we have two fields: Date Reported and Target Finish Date.
    Date Reported is 09-10-2004 09:55:55: PM
    Target Finish Date is 09-12-2004 11:59:59: PM
    What i want to happen is i want to convert both dates to days and get the difference of the two.
    can SQL Server 2000 DB do this?

    it doesnt wrk.
    ok here's what i did:
    iv tested a simple code for this case.
    I created a table name tblDate which has 3 columns namely date_ID, date_From (datatype datetime), date_To (datatype datetime).
    I inserted 1 row: date_ID has the value 1, date_From has the value 10/22/2004, and date_To has the value 10/24/2004.
    i run the java code below:
    int days = 0;
              String query = "SELECT date_From, date_To cast(date_From-date_To AS int) AS Diff FROM tblZoo WHERE date_ID = '1'";
              try
                   DBConnect db = new DBConnect();
                   db.openCon();
                   ResultSet rs = db.execute(query);
                   while(rs.next())
                        days = rs.getInt("Diff");
                   db.closeCon();                         
              catch (Exception ex)
                   System.out.println("Error on Execution: " + ex);
              return days;___________
    an error occurred: Error on Execution: java.lang.nullpointerexception

  • ABAP HR: Program that will compare HR Data from System GH* and GO*

    Hi ABAP Gurus,
    Good day.
    I have a requirement wherein I need to create an HR Report Program (using logical database PNP) and RFC FM wherin I will select and then compare HR Data in GH* and GO* system.  This enhancement will be done in the GH* system. 
    Do you guys have any documentation, sample programs on how to proceed with this?   Any inputs on this will be highly appreciated.
    Thank you very much!
    Best regards.
    Brando Braganza
    Moderator message - Duplicate post locked
    Edited by: Rob Burbank on May 12, 2009 12:09 PM

    HI,
      your code works perfectly well.. I have added the PNP logical database and selection screen 100... i think you r not added this PNP logical database
    *& Report  ZTESTPRG                                                    *
    REPORT  ZTESTPRG                                .
    TABLES: PERNR.
    INFOTYPES: 0002, 0006.
    GET PERNR.
      PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
        WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA.
      ENDPROVIDE.
    Thanks
    mahesh

  • Entry date is not showing in fbl3n

    hello,
    my client wants to see the entry date in fbl3n screen. so I have done the little configuration in spro "define special fields for line item display" where i select table-bkpf and field-cpudt.
    But I am able to see the entry date only in fagll03 not in fbl3n.
    please suggest me where i am wrong and what to do next to solve it.
    thanks and regards
    konishko

    Hi
    It is really surprising that CPUDT is still not appearing.  May be that the place you have updated your customizing is relating to newGL customizing.
    Can you please check whether the entry you have added in available in T.code O7R3 and OBVU.
    If it still does not work, then delete the entry and add it again and execute FBL3N again.
    Regards

  • FAGLL03- Entry Date showing blank in the report

    Hi Gurus,
    We have observed that the field "Entry Date" in the GL report FAGLL03 is not showing entry dates of documents posted . We are using ECC6.0 and CUPDT field is already there in the report FAGLL03.
    Need advise how to achieve this? is there any sap note available for the same
    Regards,
    Vijay

    Thanks for your quick responce.
    I have one question.
    The standard layout of report FAGLL03 is having the field ENTRY DATE.
    Still is it require to maintain as special field in customization under below path? to get values(i.e. Entray Dates)  in the report.
    Path is: SPRO->Financial Accounting (New)->General Ledger Accounting (New)->Master Data->G/L Accounts->Line Items
    ->Define Special Fields for Line Item Display.
    BKPF-CUPDT-Entry Date
    Regards
    Vijay.
    Edited by: Vijaya kumar on Jun 24, 2010 7:19 AM

  • No records for 2LIS_04_P_COMP, posting date & entry date not in same month

    Hi All,
    I m unable to get records in rsa3 for my DS 2LIS_04_P_COMP if my entry date and posting date of production order is not same or not in same month.
    Please suggest.
    Niraj

    Hi,
    It depends up on your Delta relevant field either it is Changed on or Time Stamp. What is ur delta field?
    Regards,
    Suman

  • Entry Date

    HI All
    I want to display Entry Date while displaying line items. How can i do that.
    Thanks
    Gautam Anand

    Hi
    In the line item report you can change the layout. Select the change layout tab or Presse Cntl+F8 to change the layout.
    In the change layout you can select the Entry date/Posting date field. So that you can see the same. If you want the same layout to be defaulted save the layout as user defined layout after selecting the entry date.
    Regards
    Venkat

  • Employee information missing in CAT2 time entry data view

    Hi,
         We upgrade our system and when we go to time entry data view, we lost the employee information like Personnel number and cost center which displayed before upgrade.
    I checked with Tcode CAC2, nothing found. But My guess is Personnel number and Cost center will be coming default.
    Please let me know, where I can look in to it.
    Thaks
    Ral

    Hey Guys,
    You should ensure that for any configuration, the Modifiable and Influences you have a Hide entry. This way you will not be able to show the field. Kindly check the on CAC2 these both sections:
    - Modifiable
    - Influences.
    Thank you.
    Regards,
    Bentow

  • How to get the details of entry date in SQ00.

    Hello,
    Can anybody let me know the steps how to get the entry date in the report SQ00.Here when i am selecting entry date its coming as 00.00.00.(as zero).please let me know how to correct the steps with proper steps.

    Hi
    Apply the SAP NOTE 562031. This will rectify the error. I too faced similar problem which was then corrected when this Note was applied.
    Test it first an then let me know

Maybe you are looking for