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.

Similar Messages

  • 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

  • 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

  • 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

  • How to check CRL validity Period before doing CA Migration ?

    Hi ALL,
    I am performing a CA migration so for doing that my first step is to
    Check that CRLs have a validity period that extends past expected migration duration
    So can any one please let me know how can I check the CRLS validity period ??
    If not, publish CRLs - ensure that published CRLs have a duration that is reasonably longer than the estimated duration of the migration.
    So can any one please let me know how can I should ensure that published CRLs have a duration that is reasonably longer than the estimated duration of the migration ??

    Why even try to determine what is remaining in the existing CRLs. Publish a new base/delta CRL period that will last the duration. For example, if you think it will take five days, then change the validity period for both the base and delta CRL to five days,
    publish a new set of CRLs, and do the migration.
    certutil -setreg CA\CRLPeriodUnits 5
    certutil -setreg CA\CRLPeriod "Days"
    certutil -setreg CA\CRLDeltaPeriodUnits 5
    certutil -setreg CA\CRLDeltaPeriod "Days"
    Restart ADCS
    Copy *.crl \\webserver\Share
    Just remember to change it back to your previous intervals
    after the migration.
    Brian

  • How to check the validity period of saprouter ?

    Dear all,
    As per sap note 1178684, we can check the validity period of the saprouter by executing "sapgenpse get_my_name -n validity"
    I am wondering how to run that command in as/400 ?
    Please advise. I am not familiar with as/400 OS.
    Thanks
    Regards,
    Kent

    Hi Kent,
    please proceed as described on the http://www.easymarketplace.de/snc-iseries-setup.php
    logon with sidadm (or sidofr):
    (depending on the user, that is running the SAPRouter)
    CD DIR('/usr/sap/saprouter')
    ADDLIBLE LIB(SAPROUTER)    ??? or whereever the stuff is ...
    RMVENVVAR ENVVAR('SECUDIR')
    ADDENVVAR ENVVAR('SECUDIR') VALUE('/usr/sap/saprouter')
    RMVENVVAR ENVVAR('SNC_LIB')
    ADDENVVAR ENVVAR('SNC_LIB') VALUE('/usr/sap/saprouter/sapcrypto')
    CALL PGM(SAPGENPSE) PARM('get_my_name')
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • MIGO/GR w/ PO and Validity Period Specific Pricing

    We have a business requirement to maintain validity period specific pricing on our outline agreements (Scheduling Agreements/Contracts).  The question is can receiving be controlled to pick the correct price based on delivery date and not when the goods are actually received?
    Example:
    Part A
    4/10/2014 to 4/20/2014 - $4.00
    4/21/2014 to 4/30/2014 - $5.00
    Scenario #1- Contract--> Release PO
    This scenario is working correctly due the release purchase order pricing is referenced based on when the purchase order is created.
    Scenario #2-Scheduling Agreement-->Delivery Schedule
    During the prototype, when setting up a validity perios specific price as above, the price is only taken into account at the start of the validity period.
    If the delivery schedule line says 4/18, but it's not received until 4/22, SAP will pull the 2nd validity period price instead of the 1st period.  Is there a way to ensure that the correct validity period gets pulled?

    I think its possible, though i did not check for Scheduling agreement but it works for PO
    Can you please explore Vendor master>Purchasing Data> Pricing Date Control field options
    It should help
    Thanks
    DD

  • Goods Receipt (MIGO) outside PO and/or Contract Validity Period ?

    Hi Gurus,
    Within our PO process, I created a PO which references a contract. Both have a Validy Period Start and End set up in customizing and filled in. But my problem is that I can still enter a Goods Receipt in MIGO to that PO, after validity has ended. I've set up in customizing the system message 06-041 as Error, and I've put in Screen Layout the checkbox 'GR message' for both PO and Contract.
    Is there a way to block the GR threw IMG outside of the Validity Period ?
    Thx in advance,
    N.H.

    Hi,
    The validity period for any outline agreement, can stop you from creating release orders or schedule lines , if OA is expired.
    Ex: Its very much logical, on the very last day of validity end date, u will create release orders.
    In this case you will receive your goods, only after the Validity end period.
    So there is no such control, for stopping the GR to be made.
    One can only stop Release orders from getting created,outside the validity period, not the GRs.
    Check for  Any user exit, that may help
    Regards
    Krishna U

  • Change in validity period of Scheduling agreement

    Dear all,
    I extended validity period of existing Scheduling agreement,
    But In MD04 it is not creating Schedule lines.
    Regards,
    Nitin Patil.

    hi,
    you shd also check the validity period of the source list maintained for this schedule agreement..
    Regards
    Priyanka.P

  • Catalog validity period in SRM-MDM

    Hi
    I am using SRM-MDM v 7.1.
    In the subtable 'Catalogs' you can create a catalog name and specify the validity dates of that catalog:
    You can then assign a Catalog ID to each item in the main Catalog items table.
    The problem is that there does not appear to be a way to create a Named Search around the validity dates of the Catalog.
    I know there are various other ways I can achieve the hiding of expired items but it seems strange that the standard product does not make use of the validity dates in the Catalog subtable.
    I just wanted to check that I am not missing something with the use of the Catalog subtable.
    Many thanks
    James

    I've done some research and it appears that in the Free-From search I can write an Expression Search and then save this as my Named Search.
    Can anyone tell me how to write an expression for Validity Period End Date is lower than today?
    Thanks
    James
    IS_LOWER (Supplier Catalog Name. Validity Period - End Date)

  • Validity period for Mediclaim on ESS

    Hi All,
    I am facing following problem in case of Claims:
    For medical claim in table V_T7INAA i have maintained 1 year.
    When i execute PC00_M40_REMS report here i am getting correct validity period for mediclaim from 01.04.2010 to 31.03.2011
    but when employee log into ESS validity period is appearing as 01.04.2010 to 31.03.2012
    I have checked all the settings in R/3. I do not understand from wher this 31.03.2012 date is coming cause ESS will fetch data from R/3 and in R/3 everything seems to be correct.
    Thanks & Regards,
    Neha

    Hi,
    Wel no we have not implemented any exit. we using standard settings only.
    I am clueless from wher its picking up these changed dates. Cause on R/3 dates are appearing perfectly fine.
    Neha Desai

  • Valid period date of Cost Element

    hi,
    i have problem in cost element.actually my fiscal year is Jan.1.2011 to Dec31.2011.i create some cost element in 01012011 to31122011 (valid period )this period is system allow to enter the transaction.but i create some cost elements in 01.09.2011 to 31.12.2011(valid period) this period is not allowed.system showing error message.ie cost element valid period extented.
    finally my question is How to Change the Cost Element Valid period from 01.09.2011 to 01.01.2011.?can you help me this problem.
    thanking you.,
    Regards,
    P.Pratap

    It will allow!  I just tried it.  Make sure you have the validity from to (in the initial screen of KA01) as I stated below - 01/01/2011 to 31/08/2011.  Also, check in table CSKB what are the validity periods for your cost element(s).

  • Purchase Info record conditions Validity Period

    Hi,
    In the Inforecord ME12/ME13 the conditions are displayed with validity period which are shown in ascending order.
    Example
    23.10.2008 to 31.10.2008
    01.11.2008 to 30.06.2009
    01.07.2009 to 31.10.2009
    01.11.2009 to 31.12.9999
    The required display or change is in the decending order in Inforecord Conditions
    01.11.2009 to 31.12.9999
    01.07.2009 to 31.10.2009
    01.11.2008 to 30.06.2009
    23.10.2008 to 31.10.2008
    What are the setting required to get the output as above in the decending order?
    Regards,
    Vengat

    Hi,
    SAP  Standard for the infor record is the Ascending Order
    The old validity period will be displayed and in the end the  latest validity period is displayed
    Go to the  program  SAPMM06I
    with the help of ABAP Technical just check whether it is possible to change
    I think it is not possible .
    Please check
    Regards
    Ganesh

  • Validity period mitigating control

    Hi,
    I checked this forum but didn't find any helpful thread for my question. We are using GRC version 5.3. Is there any SAP report or tables available that would show history of mitigating controls per user? In running the Compliance Calibrator for a user, SOD issues were present that we didn't expect because we thought existing mitigating controls were applied and that we were  regularly monitoring this user for the associated risks. We thought that the problem might be that the validity period might have expired, but our corporate security group currently doesn't even show the mitigating control for the user. I wanted to look at the history of the mitigating control for the user to see if I could validate their claim.
    Thanks,
    John

    Hi,
    First of all, there's a special forum for GRC: "Governance, Risk and Compliance".
    Check under RAR-> configuration tab:
    Default expiration time for mitigating controls (in days) 
    When assigning a mitigating control to a risk, you must specify the validity period of the controlIf the End Date is left blank, the value in this option is used to calculate the end date of the validity period; the default value is 365 (days)
    Check also under CUP->configuration->mitigation.
    You'll be able to find the documentation for this configuration parameters in the corresponding Config Guide.
    Regarding Mitigation controls per user, I guess you can just check RAR -> Mitigation tab.
    Cheers,
    Diego.

  • Reg:Tax code validity period

    Hi All
    For the condition type jmop for the key combination tax code i'm not getting the validity period
    I have checked the
    1. condition type jmop (val dt from & Val dt To)
    2.access secequence
    In Fv11 i'm not getting it
    Plz guide me

    > 1. How to check tax code validity period?
    No tax code doesn't have any validity period
    But when we maintain condition record for tax calculation that condition record has validity period which we maintain in FV11
    > 2. Is condition records mandatory for calculation of taxes.
    If you are working with TAXINN which is condition record based tax procedure maintenance of Condition record is mandatory
    With formula based TAXINJ procedure no need to maintain,
    For more on this Topic read
    http://wiki.sdn.sap.com/wiki/display/ERPLO/DifferencebetweenTAXINJandTAXINN
    If this is mandatory , then how tax calculated for non material master items?
    It all depends what access sequence you have assigned to your tax condition type
    Lets take an example for Excise duty which is determined at material level
    Ex1 >Condition type for Basic Excise duty is JMOP here we assign access sequence JTAX
    Now to maintain condition record for JMOP you will find material,vendor.Plant (all defined in access sequence JTAX)
    Ex 2>Now Say service tax condition type JSER (or what ever) which is not dependent on Material (as even Po without material master can have service tax)
    So for service tax condition type we assign access sequence as MWST
    which is defined only at country level
    You can find all these settings under T.code OBYZ
    I hope it clarifies your doubt at least to some extent
    Revert back for any further clarification

Maybe you are looking for