How to check validity period

Hi All,
i have a requirement, while creating sales order i want to check creation date with some date range (this will come from some ztable). whether the creation date is in the range or not.
Can you help on this..
Regards.,
Raj.,

Hi,
Use user exit 'MV45AFZB', form routine "USEREXIT_CHECK_VBAK".  If you want to validate the date at the time of saving
the document use the exit "MV45AFZZ", form routine "USEREXIT_SAVE_DOCUMENT_PREPARE".  Do the validation based
on the value of structure field VBAK-ERDAT.
Regards
Vinod

Similar Messages

  • How to change validity period of cost centre or activity type

    Hi
    How to change validity period for an Activity type or Cost centre?
    Can we change the validity period once created?
    regards
    Prakash

    Please note this can be done.
    Go to Edit Cost Center
    Goto Edit, Analysis Period.
    Create a new validity period say today until 3112999
    Change the data you want and save.
    When you go into the CC again it will show two validity periods.

  • BP: How to hide "Validity Period" on screen Create a new Business Partner

    Hi,
    On screen Create a new Business Partner, I want to hide field Validity Period
    -> Please tell me how to do in Customizing
    Thanks and Best regards
    Ms.Minh

    Hi,
    For each BP role, you can control the field status in configuration under BP-Role Settings. Please check whether validity period is available for field configuration or not.
    Regards
    Prasad AV

  • How to define validity period for tax codes

    In Fv12 the validity period is in display mode , how to change the validity period ? Will affect the tax codes or  the changes remain for condition records.

    Hi
    You can use t-code FTXP,
    Check the menu option in the main transaction menu for tax rate periods
    Regards
    Sach!n

  • How to give validity period for tax codes

    In fv12 menu the validity period in display mode how to change and give validity period for a tax code

    in fv12 you can change the validity period and for the new validity period maintain another record in fv12
    Validity from and  to by changing the old validity period upto when that is applicable

  • How to give valid period for tcodes

    Hi all,
             i have a question how to give a valid period for tcodes.
    Thanks&regards,
    rani.

    You can't.
    You can set validity dates for roles - you do this in the roles section of the user master record
    If you need a t-code to be locked for <b>everyone</b> for certain periods then you can look into a custom prog that uses tx SM01, though it usually is not a worthwhile control to mitigate the particular risk.

  • Pricing How to shorten validity period of conditon record throgh LSMW ?

    Friends:
    We have to shorten validity period of conditon record.  We have records expiring in 2015. We have new pricing which i am planning to load through LSMW but before i load new prices i need to clean up reocrds expiring in 2015 through LSMW. Does any know how to clean up these records or shorten this records ?
    Vanbills

    Hi Vanbills,
    You need not do anything to shorten the pricing validity dates.
    Just upload your new prices using LSMW.  System will automatically shorten the validity dates.
    Example :
    Existing Pricing record     -  PR00 - 100 USD  - from 01.01.2008 to 31.12.2015
    if you are creating a new pricing record today - PR00 - 120 USD - from 01.05.2009 to 31.12.2010
    system will automatically shorten the previous record.
    It means your existing record will become - PR00 - 100 USD - from 01.01.2008 to 30.04.2009 and
    new record will be                                     PR00 - 120 USD -  from 01.05.2009 to 31.12.2010
    Hence just upload new prices....forget about shortening the old dates.
    Regards
    Krishnam Raju

  • How to check validity of data reference

    Hello everybody,
    in my application I use a help class to buffer data objects.
    This class contains one attribute which is an internal table ( columns: DATAID and DATAREF )
    I use this databuffer to transport data between different classes.
    Now I did the following mistake:
    First I call the method 'METH_CHECK'. As import parameter I pass a reference to my databuffer class.
    In method 'METH_CHECK' I call a function module 'FUNC_1' passing my reference to my databuffer class.
    In 'FUNC_1'  I declare a local variable 'lv_value'.
    Then I use the statement 'GET REFERENCE OF lv_value' and save this reference into my databuffer class.
    After processing functions / methods I´m back at the point where 'METH_CHECK' was called.
    When I check my databuffer class, I´ve got one entry in it.
    The reference I saved while processing 'FUNC_1' . But the referenced data has already be freed ( remember, it was a local variable ).
    In the debugger I see the column where I save the references to data objects.
    The field value has changed from a valid reference to i.e. 'FREED ITAB: 5'...
    OK, I know what is wrong... No problem in my application, but I want to clean
    this entry... How can I check this...
    I can not check like
      LOOP AT me->buffer INTO wa_buffer.
        IF wa_buffer-data IS INITIAL.
          DELETE...
        ENDIF.
      ENDLOOP.
    or
      LOOP AT me->buffer INTO wa_buffer.
        IF wa_buffer-data CP 'FREED'.
          DELETE....
        ENDIF.
      ENDLOOP.
    How can I notice an invalid reference at this point?
    Thank you very much,
    Oliver Seifer

    Hello Oliver,
    Another approach might be to avoid any dependency to the caller at all.
    Regards
      Klaus
    data:
        buffer_Reference  type ref to data.
    field-symbols:
       <buffer_Data> type data.
    create data buffer_Reference like i_Value.
    assign buffer_Reference to <buffer_Data>.
    <buffer_Data> = i_Value.

  • How to check validation for a input field?

    For example, I need to check the validation of a field, if OK, then the field will be inputted, otherwise, there will rise a message, how can I implement that?
    Thanks and best regards,
    Anders

    Hi Andres,
    U can write a code in Request Processing--DO_VALIDATE_INPUT
    DATA: LR_BTADMINH       TYPE REF TO   CL_CRM_BOL_ENTITY.
      LR_BTADMINH  ?= ME->TYPED_CONTEXT->BTADMINH->COLLECTION_WRAPPER->GET_CURRENT( ).
        LV_ZZAFLD000057 = LR_ENTITY->GET_PROPERTY_AS_STRING( 'ZZAFLD000057' ).
    IF  LV_ZZAFLD000057 IS INITIAL.
    DATA: L7_MSG_SERVICE TYPE REF TO CL_BSP_WD_MESSAGE_SERVICE,
              LVSP_MSG_V1  TYPE STRING VALUE 'Spare in Progress'.
        L7_MSG_SERVICE = ME->VIEW_MANAGER->GET_MESSAGE_SERVICE( ).
        L7_MSG_SERVICE->ADD_MESSAGE(
            IV_MSG_TYPE       = 'E'
            IV_MSG_ID         = 'ZBSP'
            IV_MSG_NUMBER     = '008'
            IV_MSG_V1         = LVSP_MSG_V1 ).
    ENDIF.
    Regards,
    Lokesh.

  • How To check validity of XML File

    can any one tell me how to find whether an XML file is valid or not before beginning to parse the XML file
    Thanks in advance

    Xerces will do that for qou, if you activate validation (and, of course, a DTD is specified in the file). Read the documentation of Xerces at xml.apache.org

  • How to check Valid Email in sqlserver2008R2

    Hi ,
         I was created one application using Asp.Net, Sqlser2008 R2 , Actually I have one table named "tblRegisterUser" and have column names are id, email in Sqlserver2008 R2.
    id             Email
    1        [email protected]
    2        [email protected]
    3        [email protected]
    then When I creating [email protected] then click submit button then I need to display [email protected], [email protected](simillar id created from table) in popup . This is just Warning message. because i need to duplicate Email id.
    Please help me If any one knows this bug.

    If you want to allo only emails with @live.com, then you can try as below:
    Idea is to create a check constraint ....you can also specify more email domains as required too.
    create table Test_San
    id int,
    email varchar(200) NOT NULL CHECK ((email like '%live.com'))-- Or (email like '%gmail.com'))
    insert into Test_San select 1,'[email protected]'
    insert into Test_San select 1,'[email protected]'
    insert into Test_San select 1,'[email protected]'
    Select * From Test_San
    Drop table Test_San
    EDIT: I would suggest you can do these validation at your presentation/application layer at .NET code side which is more appropriate.

  • SEM - checking validity periods in FOX.

    Hi,
    I need to include a check function before data is written into the cube.
    EXIT function is not meeting my needs.
    So, I need to check this using FOX.
    Has any one done this before?
    Users enter CAL QUARTER & VALID FROM & VALID TO dates & I need to check if VALID DATES are falling in the same quarter or not.
    Info objects that we are dealing with are 0CALQUARTER, 0CRM_VALIDF & 0CRM_VALIDT.
    if users enter 3/2005 & 7/1/2005 & 9/30/2005, no message.
    if users enter 3/2005 & 8/1/2005 & 12/31/2005, message needed to change valid to date.
    if users enter 3/2005 & 6/1/2005 & 7/31/2005, message needed to change valid from date.
    Appreciate any help.

    Marc,
    thanks for your reply & it's good to see you back on SDN.
    We are still on 3.x version which is not allowing me to use (SUBSTR) function.
    I've developed similar code & just posting the same incase if it helps any one working on 3.x versions. (Ofcourse, credit goes to you as you helped me to develop part of the code 6 months back, if I remember correctly)
    now, a major debate is going on among our users.
    FOX code is raising messages & at the same time, layout is taking incorrect entries as well & freezing the row with no option of changing the incorrect entry(meaning, users can't change the incorrect entry rather they have to delete & re-enter again).
    Is the way it works? Is there any way of avoiding this? Is there any way of changing directly "VALID DATES" right after the error message?
    Attribue Char relationship gives an option of changing the incorrect attribute.
    Can we not do something in this case to change the Dates?
    Appreciate any help.
    Mary,
    Can we use concatenation in FOX?
    <Code>
    DATA CM TYPE 0CALMONTH.
    DATA CM_END TYPE 0CALMONTH.
    DATA CQ TYPE 0CALQUARTER.
    DATA CQ_TEMP TYPE 0CALQUARTER.
    DATA DATE_S TYPE D.
    DATA DATE_E TYPE D.
    DATA ACT_S TYPE 0CRM_VALIDF.
    DATA ACT_E TYPE 0CRM_VALIDT.
    DATA MAT TYPE 0MATERIAL.
    FOREACH MAT, CQ, ACT_S, ACT_E.
    DO.
    IF CQ = '20001'.
    IF ACT_S < DATE_S.
    MESSAGE E001 (ZTEST_SEM) WITH ACT_S CQ_TEMP MAT .
    ELSEIF ACT_S > DATE_E.
    MESSAGE E001 (ZTEST_SEM) WITH ACT_S CQ_TEMP MAT .
    ENDIF.
    EXIT.
    ELSE.
    CQ = TMVL( CQ, -1 ).
    CM = TMVL( CM, +3 ).
    CM_END = TMVL( CM, +2).
    DATE_S = C2DATE(CM,S).
    DATE_E = C2DATE(CM_END,E).
    ENDIF.
    ENDDO.
    ENDIF.
    ENDFOR.

  • Validity period in catalog

    Hai,
    In CSV file I currently use the User Defined Characteristic ValPeriod with Component StartDate and EndDate, Both use Basic Type Code TimeStamp and when uploading the process was successful.
    How to make use of both characteristics as the validity date in the shopping cart?
    Currently we are using:
    -     SRM EBP 5.0
    -     CCM 2.0
    -     CSV 2.0
    Thanks,
    Feri.

    Hello Feri,
    You can check validity period when item is published to search engine and item is transferred from Search Engine.
    There are BADI which you should code the validity logic.
    + /CCM/CTLG_ENRICHMENT
    + /CCM/CSE_ENRICHMENT
    Regards,
    Masa

  • Update info records - Validity period

    Hi,
    I am using the following FM to create / update info records.
    ME_INITIALIZE_INFORECORD
    ME_DIRECT_INPUT_INFORECORD
    ME_POST_INFORECORD
    I need to update the validity period aswell. It is not available in the above FM's.
    Need to update DATBI and DATAB with new validity periods.
    The table KONH, KONP and A017 get updated.
    Could you please tell me how to update validity periods.
    Thanks for the help!

    Hi,
    Use FMs :
    ME_DB_UPDATE_INFORECORDS       Updating info records in database                                    
    ME_UPDATE_INFORECORD           Update program for purchasing info record                            
    ME_UPDATE_INFORECORD_COND      Update price in info record during maintenance from condition transac
    ME_UPDATE_INFORECORD_PD        Update info records from purchasing documents                        
    Regards,
    Hemant

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

Maybe you are looking for

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone, I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application. I am wondering why java complains ab

  • Flash quiz game

    Hi I'm making a flash quiz game like instructed in this tutorial. http://www.tu-world.com/flash/flash_tutorial_08.php After anwsering, it goes to the next frame, really simple. How is it possible that a anwser would be 50% correct? Write actionscript

  • Moving iPhoto 4 to iPhoto 6 (iBook to MacBook)

    What is the best way to migrate pictures from iPhoto4 on my iBook to iPhoto6 on my new Macbook? I would also like to move my original albums over at the same time. Thanks!

  • Problem printing Smarform from document_print.htm in HAP_DOCUMENT

    Hello experts! This ismy issue I copied the BSP HAP_DOCUMENT to ZHAP_DOCUMENT The buton print has a javascript like this function NewWindowPrint() {   WindowPrint =   window.open("document_print.htm", "Print", "dependent=yes resizable=yes toolbar=yes

  • Starting web server in Solaris10

    Hi Experts I am setting up nagios monitoring tool in solaris 10 my question is is there any default web server is installed in solaris 10 like linux is having apache .I saw apache folder in /usr directory if it is there could you please tell me how t