Fm for Validity Dates.

Hi Gurus,
I need Discount Condition Start Validity Date and Discount Condition End Validity Date along with condition details.
I have tried  RV_INVOICE_DOCUMENT_READ &
FM RV_PRICE_PRINT_HEAD is returning all the pricing conditions in the invoice in TKOMV, but I couldn't find the Validity Dates in TKOMV.
please help me to sort out my problem.
I have closed my previous [Thread|http://forums.sdn.sap.com/thread.jspa?threadID=2139454]
Thanks & regards.

Hi,
try use COND_VALIDITY_FOR_SINGLE_DATE, may help u
Thanks & regards.

Similar Messages

  • FM for validating date coming from a file

    HI All,
    I have to validate date that needs to be validated before passing it to DB.
    Is der any FM for same
    I tried CONVERT_DATE_TO_INTERNAL.
    But it accepts date only in one specified format.

    hi,
    try this
    Use Function module DATE_CHECK_PLAUSIBILITY to validate a date.
    1)If you given a invalidate date then it will ask you to enter a valid date.
    2)After changing it to correct value, you can click on SAVE button or if you want to continue with the invalid date then click on USE INVALID VALUE button.
    Try with this code.
    PARAMETER P_DATE TYPE SYDATUM.
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
    EXPORTING
    date = P_DATE
    EXCEPTIONS
    PLAUSIBILITY_CHECK_FAILED = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE E000(ZI) WITH 'INPUT DATE IS INVALID DATE'.
    ENDIF.
    Regards,
    RItesh J

  • Need a Better Regular Expression for Validating Dates

    I have data coming from file with date in the format DD-MON-YY.
    I have created the following regular expression:
    '^([0-2]{1}[0-9]{1}|[3]{1}[0-1]{1})-(JAN|FEB|MAR|A PR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC|Jan|Feb|Mar|Apr |May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-[[:digit:]]{2}$'
    However, it doesn't catch dates like 31-APR, 29-FEB. Can someone make changes to it to make it foolproof
    WITH temp AS
    (SELECT '29-FEB-07' AS COL1 FROM DUAL
    UNION ALL
    SELECT '31-APR-08' FROM DUAL
    UNION ALL
    SELECT '32-JAN-08' FROM DUAL
    UNION ALL
    SELECT '29-MAR-08' FROM DUAL
    UNION ALL
    SELECT '31-JAN-08' FROM DUAL)
    SELECT COL1,
    CASE WHEN REGEXP_LIKE(COL1,'^([0-2]{1}[0-9]{1}|[3]{1}[0-1]{1} )-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)- [[ :digit:]]{2}$')
    THEN 'VALID'
    ELSE 'INVALID'
    END
    FROM TEMP;

    Hi,
    Please check this function.
    The function works for the dates in the format 'DD-MON-YYYY','DD/MON/YYYY'.
    create or replace function date_validation_f(v_date varchar2) return varchar2 is
    v_ip_date     date;
    v_ip_date_ch  varchar2(20);
    v_ip_year  number;
    v_ip_month char(3);
    v_ip_day   number;
    v_return   varchar2(10);
    v_leap_year_check number :=0 ;
    type v_month_name_typ      is varray (12) of char(3);
    type v_month_last_day_typ  is varray (12) of number(2);
    v_month_name     v_month_name_typ    :=v_month_name_typ('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');
    v_month_last_day v_month_last_day_typ:=v_month_last_day_typ(31,28,31,30,31,30,31,31,30,31,30,31);
    begin
    --Assuming that input date is in the format DD-MON-YYYY or DD/MON/YYYY
    v_return := 'invalid';
    v_ip_date := to_date(v_date);
    v_ip_date_ch := to_char(v_ip_date,'DD-MON-YYYY');
    dbms_output.put_line('v_ip_date_ch := '||v_ip_date_ch);
    v_ip_month   := substr(v_ip_date_ch,4,3);
    dbms_output.put_line('v_ip_month := '||v_ip_month);
    v_ip_day    := substr(v_ip_date_ch,1,2);
    dbms_output.put_line('v_ip_year := '||v_ip_year);
    v_ip_year     := to_number(substr(v_ip_date_ch,8,4));
    dbms_output.put_line('v_ip_day := '||v_ip_day);
    -- Ckecking for leap year
    if MOD(v_ip_year,4)=0 then
      if MOD(v_ip_year,100)=0 then
        if MOD(v_ip_year,400)=0 then
           v_leap_year_check:=1;
        end if;
      else
           v_leap_year_check:=1;
      end if;
    end if;
    if v_leap_year_check = 1 then
       v_month_last_day(2):=29;
    end if;
    for i in 1..12
    loop
    if v_month_name(i)=upper(v_ip_month) then
         if v_ip_day between 1 and v_month_last_day(i) then
            v_return := 'valid';
            exit;
        else
            v_return := 'invalid';
            exit;
        end if;
    end if;
    end loop;
    dbms_output.put_line('v_return := '||v_return );
    return v_return;
    exception
    when others then
    return v_return;
    dbms_output.put_line(SQLERRM);
    end;you can use this function in SELECT statement.
    Edited by: Sreekanth Munagala on Nov 13, 2008 11:25 PM

  • User Exit for Validity Date for VA41 Tcode

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then  a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to'  9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits  mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started  when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks and Regards
    K Srinivas

    Hi,
    One idea. Go to VTAA (copy between sales docs) and create a new VOFM where you manage the copy control. Set a warning/error message in the new VOFM (in your range number), and try it.
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Dec 10, 2008 3:58 PM

  • Regarding Function module for validating Date

    Hi ,
    Cananybody tell me that is there any function mdoule for validating the BGDDA and ENDDA.

    dear ,
    See if you are using it in the input parameter then you dont need to validate .
    Beacuse selection option has that option .
    secondlly if you are checking internally then is could be done simplly by if condition
    regds ankit

  • Syntax for validating data..

    Hi friends
    I have one internal table with material no.,i want o check wheather that data is there in standard table or not..
    how to check..?
    and after checking if that particular material is not there i have to move the data in other internal table..
    plz give me one example also..

    For material MARA is the master table.
    Check the table before selecting the data.
    whether the material avilable or not?
    tables : mara.
    selection-screen begin................
    parameter p_matnr like mara-matnr.
    selection-screen end of..................
    if p_matnr is not initial.
    at selection-screen on p_matnr.
    select single * from mara into mara where matnr = p_matnr.
    if sy-subrc <> 0.
    Raise the message.
    endif.
    endif.
    Hope it will help you.
    Regards,
    Madan.
    Edited by: Madan kurapati on May 19, 2008 11:36 AM

  • Can I exit from paintComponent?  ...or... how can I check for invalid data?

    I'm writing a calendar applet for a programming class and I've nearly completed it but I'm stuck at checking for valid data.
    What seems to be happening is that paintComponent() is being called before actionPerformed.
    In actionPerformed (when they click the button), it checks to make sure they entered a valid month (1 to 12). If the didn't it dispalys a message, but if they did it calls repaint().
    But even if repaint() isn't called, Java still seems to call it before actionPerformed and I get exceptions.
    So I tried checking inside of paintComponent() by using a simple if(...) return; but that doesn't seem to do anything... it just keeps going through with the method.
    So -- Once the user presses my button I want to make sure the data is valid before repainting the screen. How can I do this?

    I validate it in actionPerformed which is called by
    the action listener... that is what you meant right?
    The problem is that it seems paintComponent() is being
    called before I can validate the data with
    actionPerformed(). I need to stop paintComponent()
    from always being calledMVC. (Model, View, Controller)
    Initially the internal value of the data (the model) should be valid (or null with a check in the paintComponent method)
    paintComponent (the view part) shows the state of the valid data.
    You press the button.
    actionPerformed is called (the controller).
    It checks the value and, if valid, writes it to the data (model), then updates the view.
    At no point will the view have to render invalid data, because the model is only updated after actionPerformed checks the value.
    The pattern may be applied with different classes performing the three roles, or different methods in the same class (sometimes it's easier that way for simple cases).
    Pete

  • Regarding validating data using excel add-in

    hi
    i am new to essbase, please any help me regarding the steps to be followed for
    validating data that is loaded in to a cube using excel add-in

    There are no standard steps.
    If you wish to just cross check the data which has been loaded in cube ,then Identify the level 0 combination of members in data source from where cube is picking up data (Oracle,flat file ..etc) and retrieve the same combination through excel addin and compare the data.
    hope this will help !

  • Power View in SharePoint Server - The data extension type for a data source is not valid

    Hi All,
    All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
    "The current action cannot be completed. The data extension type for a data source
    'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
    I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
    a Power View report.
    Please help me to resolve the error.
    Thanks

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • Table for Valid To date field in C203 Tcode

    Let me know the table name for "Valid To Date" field in C203 transaction.
    Thanks,
    Angavai.E

    Hi Angavai,
    Check with table PLMW.
    Regards,
    Raghu

  • Regd : How to find Validity date for a user in central user system

    Hi Experts;
    I want to get the list of users with profile SAP_ALL  with following details like validity ,user type ,user name ,user id..
    I can get through SUIM for each individual systems.Its very difficult to login to each system ,generate the report.So I prefered to go for Central system
    But if I use central user system I have no option to find validity and user type for the system ( SUIM - > Cross system application )
    I have also tried to the table USRO2 ( which gives only the list of users in the central system )
    So is there any possible ways to find the Users with profile SAP _ALL with validity date in the central user system. So that I can easily generate it as one report instead of logging to each and every system
    Regards
    Sanjeev.S

    Hi Ruchit
    Thanks for your reply. I want to find the validity date of all users having SAP_ALL
    profile of all child system connected through central user system .So it is possible
    to do that in Centrals System by executing the report?
    If I execute that report in Central user system will it give the details of all child
    system connected to central system
    I think it will give only the result of Central system and not the child system connected to Central system.Please clarify me.
    I can execute the report by logging to each child system ,but it takes very long hours for me since there are many system in my landscape.
    Awaiting for your reply.'
    Thanks
    Sanjeev.S

  • How to set up start and end dates for validity of contract account in FICAx

    Hi,
      Can anyone tell me where can I set up the validitiy period for the contract account in FICA. In contract creation, I could just see the contract validity start date. I also need to know the validity end date. Please let me know the solution asap.
    Points will be awarded for all the useful answers.
    Thanks
    Santosh

    Yes, you're right, you would then need to develop a lot of user exits to prevent the re-use of the contract account after the validity date.
    I'm think in a strange solution, it could work but you'll need to test it. if a contract account is marked for deletion (Field FKKVKP-LOEVM equal to 'X') no further action can be made over it, When you create you contract account you can schedule a change using as validity date (Field BUS000FLDS-VALDT ins the change contract account screen) to the end date of you contract account and set this deletion flag. then you run FPP2A to activate the schedule changes, before you get to the end date the flag is not set, when you get to the end date FPP2A will activate the flag and the contract account becomes not usefull.
    If you do this, you have be careful because all the postings to the contract account won't be possible, it means that if there are payment to be made, interests to be calculated, etc... nothing will be posted.
    Cheers,

  • Changing validity date using BAPI_PROFITCENTER_CHANGE for a profit center.

    Hi Friends
    I need your help to know if we can use BAPI_PROFITCENTER_CHANGE to change the validity period of a profit center.I am using this BAPI in a LSMW program.
    The changes I want to make are something like changing the validity dates from
    1) 01/01/2006 - 12/12/9999 to 01/01/2007 - 12/12/9999
    2) 01/01/2006 - 12/12/9999 to 01/01/2005 - 12/12/9999
    3) 01/01/2006 - 12/12/9999 to 01/01/2006 - 12/12/2010
    or should I use BAPI_PROFITCENTER_CREATE?
    -Thanks
         Mitesh

    change document in profit center change
    Bapi - BAPI_ASSET_ACQUISITION_POST
    need a function module for profit center
    Please give me reward points...

  • How can I set an validity date for a given vendor?

    Hello,
    we are currently trying to set a "validity date" for vendors.
    Basically, our vendors need to be audited, and are "accepted" for a period of time, beyond which we'd need to re-audit them.
    What we'd like the system to do is block use of the vendor if this date was exceeded.
    Anyone has an idea on the way to achieve this?
    PS: We know that there is a way to do this at the material level, we instead wish to manage it centrally for the vendor
    Tx

    Hello Nisha,
    before doing business with a new vendor for services, our QA group needs to go thru a serie of verifications. We check various things such as insurance, certification,...
    Once "approved", the vendor can be utilised by the plant for a certain period of time, after which a "re-audit" is necessary.
    What I'd like to implement is a field where the QA group would enter this date, after which the vendor would be automatically blocked for usage.
    This would then trigger the "re-audit" followed by the release from QA (who'd re-modify the date with the new one), and so on.
    The vendor is not necessarily used for supply chain. Sometimes, it could be for services , maintenance, or other.
    Tx for the ideas.

  • Maintain Validity Date for Documents

    Hi
    Any Idea how can we put and maintain Validity Dates for any Document uploaded in DMS Server.
    Validity Dates here means (Documents cannot be used if validty is over)
    I could not find any option in CV01*   T-Codes.
    Regards

    Dear Prasant,
    You can also do this solution also if you find it OK.
    1. Create a Class with "Validaty Date" as characteristics. Assign this Charac to class. Assign this class to doc Type. This charac should not be editable to any one except creator.
    2. Create a program with BAPI " Set Status" ( Check the name). which will run in background to check the validity date of Document. If the validity date is reached the BAPI will change the status to "S" as stated by Chritoph.
    This will help user to manually tracked which documents have exceded the validity date. You can also genegrate report and mail it to particular user that what documents have been set to Status "S".
    Hope I have provided a valid solution as I have tried similar kind of functionality with changing a characteristics with Date.
    With warm Regards
    Mangesh Pande

Maybe you are looking for

  • Deploying seam application on weblogic 10.3.2 application server.

    Hi All, I deployed jsf1.2.war file into weblogic. Now when I tried to run seam application getting below errors Apr 6, 2010 11:00:29 AM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Sun's JavaServer Faces implementation

  • Error while loading shared libraries after installing cleartype fonts.

    Hi there.! Since the default fonts of Arch looked quite ugly on my LCD, I read the Fonts wiki and installed cleartype packages from AUR.But now, when I try switching to runlevel 5 (I use GDM by the way), it throws up following error: /usr/sbin/gdm-bi

  • LDAP binding

    Hi, I have been trying to bind to an LDAP server with JNDI methods, but there is no way to get it work. When I try to execute the search I get the exception "Error code 49, invalid credentials". The main code is this: Hashtable env = new Hashtable();

  • ALV - Desactivate Check box on a specific line

    Hello all, I need your help for desactivate my checkbox on ALV GRID on specific line. See on the screen shot on the link : http://www.casimages.com/img.php?i=101006040322252671.jpg See the implementation of my ALV and my Catalog : g_container type sc

  • Supported rcpthosts with JavaMail

    Hello How can I found out which rcpthosts does JavaMail support? I cannot send emails to yahoo thru JavaMail as I normally send them to other domains, but is this because yahoo is not supported by the JavaMail api, or is it because I need to write sp