Restricting entry values for "document date"

We need to restrict BKPF's "document date" whereever it is entered.
This may not be a programming question per se, but programmers usually know at least as much as users do on the front end of SAP.
Users must not be allowed to enter invalid document dates (e.g. something with a year of 1204), which they currently CAN do.  Is there a way to restrict this field in the table???
Here is a slice of teh data right out of the table so you can see the culprit T-codes.  This must not happen:
Type     Doc. Date     TCode
SD     01/02/1201     
BL     01/02/1201     
SD     01/02/1201     
BL     01/02/1201     
SD     01/02/1201     
BL     01/02/1201     
SB     02/02/0211     FB50
BL     02/02/0211     FB50
BL     12/23/1022     MIGO
WE     12/23/1022     MIGO_GR
BL     05/02/1011     FB60
BL     05/02/1011     FB08
KR     05/02/1011     FB60
KR     05/02/1011     FB08
SB     05/13/0211     FB50
BL     05/13/0211     FB50
Thanks!

Hello,
As Gabriel has mentioned you can apply this check by implementing an FI Validation(Trxn. GGB0). This will take care of the trxn. when the a/c'ing doc is created manually e.g., FB* tcodes.
As you must be aware that an a/c'ing doc is created whenever a debit/credit transaction happens inside the system, e.g, GI/GR, Asset a/c'ing. For e.g., the MIGO trxns you've provided in your list.
In these cases the a/c'ing doc is generated automatically & the validation you've defined wont work! You've to implement the validation(via a BAdI, Customer Exit etc) in the respective transaction which can be cumbersome
Hope you get the basic idea.
BR,
Suhas
PS: Please don't try to modify the date on the a/c'ing doc directly via SQL statements!

Similar Messages

  • Info about Element entry values for an element

    Hi
    Im trying to get info on something. Im supposed to get entry values for a certain Sc med element.
    Now i know that the entry values reside in pay_element_entry_values_f.
    The values i need are for the input EE Contr
    Now when i query the pay_element_entry_values_f table I see that the screen entry value for the input EE Contr is null.
    But when i use the screens to look at the value in the EE Contr and ER Contr i see values in double quotes in red like "377.22".
    The Pay value is null which is why i see null in the pay_element_entry_values_f screen entry value column.
    I wanna know how i can pull that value(in red double quotes) in an sql query.I mean do we know which table these seemingly default values are stored in?
    Ive already tried using record history and other things to get it.but the tables i see are null.
    Any help in getting this info is much appreciated.
    Thanks
    J

    This value can be obtained from pay_input_values_f and the data u see in " " in red color is due to the Hot default flag checked.
    Reagrds,
    Prashanth
    Edited by: user574397 on 6 Apr, 2010 5:53 PM

  • Storing multipl values for meta data in DOCUMENT_META_DATA

    Hi,
    We currently have 3 content types in our system: news, announcements, and events.
    They are currently stored in 3 different tables. We want to make this content
    available via the various CM (select) and PZ tags (contentquery, contentselector).
    I'd like to avoid writing my own doc provider (file:///D:/bea7/weblogic700/wlp/docs70/dev/conmgmt.htm#999019)
    and instead would like to begin to publish document data directly to the reference
    implementation tables (DOCUMENT and DOCUMENT_METADATA).
    It seems like I should be able to do that with one exception. It doesn't seem
    like we can store multiple values for meta data attributes. If you take the out
    of the box p13n example, a lot of the data is tagged with 'genre' = Something
    (i.e. Rock, Hip-hop, etc). Then content queries use this genre to personalize
    pages.
    What if I have a band that has multiple genres? What if I want to tag my band
    as Rock and Hip-hop? And then also want that band to appear on both a Rock lovers
    and a Hip hop groupies page? Is this possible with the default implementation?
    I know when I tried entering multiple 'genre' meta data values for a same document
    ID, it gave me a PK constraint violation. Any other trick around this?
    Thanks,
    Will Young
    ps. using weblogic 7...

    Yes Subler http://code.google.com/p/subler/ does support adding the HD tag.
    On the Mac I wouldn't use anything but Subler for tagging, best UI, best metadata lookup, best underlying libraries for mp4 files (I'm biased on the libraries part).
    Cheers Ed.

  • Set Default Value for a Date Navigator

    Hi all
    Is it possible to set a default value for a date navigator.I mean with out picking the date from the Navigator, on load of the view itself i need a particualr date to be displayed (say 12/31/2000).
    Thanks in advance

    Hi,
      create a value attribute of type date bind to the input field and in wdInit()of view controller write this code..
      wdContext.currentContextElement().setValueAttrName(new Date(Calendar.getInstance().getTimeInMillis()));
    means ...
    u r setting the date entered into some context ....
    type of that attribute must be of date and for initial value write the above code ..if it is under node element create nodeelement bind it to context and write the code accordingly..
    Message was edited by: Yashpal Gupta

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • Warning: Could not find the customization level value for document

    Hi All,
    I am trying to upload the translation for one of the page at responsibility level.
    I am getting following warning when running the below command.
    java oracle.jrad.tools.trans.imp.XLIFFImporter $APPL_TOP/xmci/12.0.0/fr-CA/Translated/ARIACCTDETAILSPAGE.xlf -username apps -password apps -dbconnection "$AD_APPS_JDBC_URL"
    Warning: Could not find the customization level value for document "/oracle/apps/ar/irec/accountDetails/webui/customizations/responsibility/51688/ARIACCTDETAILSPAGE".
    The same is working fine if the translation is for some attribute at site or function level.
    Did anyone faced this kind of issue.
    Thanks,
    Anoop

    Anoop,
    I am sure you would have verified the responsibility id in the target instance is 51688(may be source instance your resp id is 51688 and in target it is different).
    Have a look at this below notes, it might help.
    1077267.1 - Unable To Move Resp Level OA Personalization From 1 Env To Another
    848851.1 - Attempting To Upload XML File Generates Error: Could not find the customization level value for document
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Changing MAXSIZE value for a data file.

    Hello, I was wondering if it is possible to change the MAXSIZE value for a data file from UNLIMITED to a specified value, like 4M.
    Thank you,
    David

    This is trhe command that actually did what I wanted:
    ALTER DATABASE DATAFILE 'D:\DBDATA\TESTPTIX02.ORA' AUTOEXTEND ON MAXSIZE 3840M;
    Thank you all for tour time and help. Have a safe and happ Christmas and new years.
    David

  • To date for document date field in setup initialization

    Hello All,
    We are filling setup table for 2LIS_02_SCL and we are giving the restriction on document date in transaction oli3bw. Since there is a very large amount of data, we are restricting the start document date by 18.06.2009.
    We would like to run regular deltas after initialization. So should we enter an end date ?
    Can we enter 31.12.9999 as the end date ?
    Please suggest  the end date for the document date selection.
    Thanks and Regards,
    Radhika

    There is no need to setup an end date on your InfoPackages because once you create and schedule the delta job for this extractor in LBWE, it will capture the deltas for you no matter the dates on the purchasing document.
    When doing your initialization on BW, don't put any selections. Just do an Init w/o Data Transfer and then do concurrent Full Repair extracts using the same selection criteria you did for the setup jobs. You'll get improved throughput by doing this, especially if you execute multiple InfoPackages, with different selection criteria, in parallel.
    Once you have your delta job scheduled, you can then execute a delta InfoPackage.

  • How to restrict Option values for a particular metadata in profile checkin

    How to restrict Option values (drop down) for a particular metadata in profile checkin-
    Metadata field Color is having options dropdown values (stored in table/views)-
    Display name - Blue, Value=1
    Display name - Red, Value=2
    Display name - Yellow, Value=3
    Display name - Green, Value=4
    Display name - Black, Value=5
    For a particular profile checkin form, for the metadata field Color I want the dropdown value consist of only top three options
    Display name - Blue, Value=1
    Display name - Red, Value=2
    Display name - Yellow, Value=3
    But this should be done on profile level only, should not impact the standrad checkin form and other profile checkin forms.
    Please help me if any one having any suggestion to implement the above secnario
    Thanks,
    Sumit

    Hi,
    Into the rule containing the Color metadata, you can restrict the values of the list.
    In "Has restricted list and pane", list the values 1, 2 and 3 (new line for each value) :
    1
    2
    3
    Romain.

  • Variable for Document Date in Customer Receivable Aging

    Hi all,
    This is regarding u201CCustomer Receivable Aging u2013 Detailsu201D in SBOne.
    In the print layout, I found 3 types of date in system variables i.e.
    1) system variable 184 = Due Date
    2) system variable 185 = Posting Date
    3) system variable 187 = The is vary by u201Cage byu201D Date (either document date, posting  date or due date)
    Regardless the date chosen for aging, we would like to display both Invoice (Document) Date and Due Date permanently on the layout.
    Does anyone know what is the system variable for invoice/document date in this layout. Thanks for help in advance.
    Regards,
    Eric Tan

    Sorry this is no right answer. I had test it variable 65 doesn't work.
    I found that the System variable 187 will be either document date, posting date or due date based on the aging date selection in Receivable Details Aging Report
    Any other advise.How to check the all the variable in Receivable Detals Aging Report.
    Thanks.

  • How to restrict the values for selection in the search help..

    hi,
    i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
    i used the standard search help it holds some 15 values for selection...
    when i click on the  search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
    waiting for ur reply...
    Uday.
    Edited by: uday13 on May 31, 2010 9:17 AM

    Hello,
    Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             bukrs TYPE bukrs,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      PERFORM f4_bukrs_help USING p_bukrs.
    *&      Form  f4_bukrs_help
    FORM f4_bukrs_help USING p_bukrs.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             v_belnr TYPE belnr.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'Z_F4' "program name
          dynumb                               = '1000' "screen number
        TABLES
          dynpfields                           = tb_dynpfields
      IF sy-subrc NE 0.
      ENDIF.
    READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        v_belnr = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BURKS' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BUKRS' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " f4_bukrs_help
    Hope this helps you.
    Regards,
    Tarun

  • CN41 report with out values for project dates

    Hi Experts
    The following field values are captured in Table PROJ.
    a. Finish Date PROJ-PLSEZ
    b. Forecast Start PROJ-SPROG
    c. Forecast Finish PROJ-EPROG
    But the report CN41/CN41N does not show values for these fields.
    Can anybody give clue to get this report with values for the above fields.
    Warm regards
    ramSiva

    HI,
    if you want the top  - of - page to be displayed
    even when we scroll down
    then use this
    try to give heading as text elements by giving some spaces
    TOP-OF-PAGE.
      PERFORM display_header.  RESERVE 10 LINES.
    form
      SET LEFT SCROLL-BOUNDARY COLUMN 84.
      FORMAT COLOR COL_BACKGROUND INTENSIFIED ON.
      WRITE:/01(252) text-h01 CENTERED.
      WRITE:/01(252) text-h06 CENTERED.
      SKIP.
    endform
    as it is working fine in my report
    reward points if helpful,
    regards,
    venkatesh

  • Hide all members' value for specify date from CUBE level

    Hi There,<o:p></o:p>
    With my current CUBE data available for yesterday, but 2-5 % data also get loaded through ETL for today as it's live data feed and process all data
    at CUBE level.<o:p></o:p>
    Now problem here till yesterday all data are okay and that make send to end user, but chunk of data for today (2-5 %) don’t make any sense…. now question
    here is any way I can hide value for all members for today which is (2-5 %) only, that way data visible from CUBE level only till yesterday.<o:p></o:p>
    Exactly what I mean if anyone connect to my CUBE they can only see data till yesterday (day-1), but not for today.<o:p></o:p>
    Regards,<o:p></o:p>
    Nagen<o:p></o:p>
    Thanks, Nagen

    Hi,
    two possibilities:
    1) Create a security implementation, so that the users are allowed to see the data until yesterday. Dimension Security on your Date Dimension)
    2) Scope the Dimension Member for future Dates to NULL
    Kr Jürgen

  • How to Restrict F4 values for Std Field

    Hi ,
    I need to restrict the F4 values of a standard field from a standard t-code.
    Example:
           In standard t-code : XD01 .
           If i press F4 on company code field , i shows all the company codes exists from table , like : 1000 , 2000 , 3000 ...etc..,
          But, My requirement is : I want the restrict the values .     
          Say , I need to show only 1000 & 3000 company codes when he press F4 on company code field on XD01 or XK01 ,
         where  ever the Comapny Code field (BUKRS) is used.
         Answers will be rewarded

    Hi Lakshman,
    Me to aware of search help exit...
    If i do for search help level , it affects only 1 field of 1 transaction.
    Say Example: If i have search help exit for BUKRS field in XD01 t-code , it will not affect in t-code XK01 , since Xk01 BUKRS
    field uses some other Search help...
    I need to know , if we set once for BUKRS field .. will it affect on all T-Codes..
    Is there any way to do it
    Edited by: Surendar on May 6, 2010 2:38 PM

  • Will master data propose values for transaction data where not maintained

    Hi Friends,
    If we haven't maintain certain chracteristic values in the Transaction record, the same maintaind in the master data......in the report does the system propose the value from Master data. If propose is there any settings do we have to maintaion in the BW System to act such like that.
    For Example in the below Transaction record...........
    Customer*  Documenent No Sales Office Amount
    ABC               1234                     Mumbai           10000
    XYZ                5 678                                             5000
    Sales office haven't mainatined by the user for the record 5678.. Sales office is attribute for the Customer, In the Customer master evry customer mainatined with their sales offcie.Will it automaticcy propose from Master data.
    Thanks & Regards
    Anand

    Hi
    This can be done in a Individual routine.
    First check if the "result" is empty. Else do a look up on Master data table of Customer.
    Sample code :
    Select customer and sales_off from Master data table of customer into itab in start routine.
    In individual routine,
    if result is initial.
    read itab into xtab with key customer.
    result = xtab-sales office.
    endif.

Maybe you are looking for

  • Message ID is disabled in Communication Channel

    Hi, Scenario is JDBC to idoc/file. In commmunication channel monitoring it says   1/17/11 2:38:22 PM 0da4686f-f398-425d-2793-c608667865dd Polling interval started. Length: 60.0 seconds   1/17/11 2:38:22 PM 0da4686f-f398-425d-2793-c608667865dd Process

  • Need to find 4.1 for 2nd gen Touch

    I'm posting this for a friend who is stuck on Tiger and cannot upgrade to iTunes 10, which apparently is required to run IOS 4.2. For whatever reason, she had not upgraded her IOS since version 2.something. Now the only option available to her when s

  • Loss of pointer

    I have a 21.5" iMac with mavericks,a wireless keyboard and trackpad,during normal use I am experiencing loss of pointer and a locked screen.The only way Iknow is to switch off using the rear power button,switch on and wait for a reboot. I have tried

  • Why won't my computer extract the Premiere and Photoshop files?

    Every time I try to do so , I get the same error message where it asks me to check my memory and access privileges. I have done both and asked tech support but keep getting the same error message. How can I fix this?

  • ABAP query output

    hi all Is it possible to give a page break in ABAP query output. I want my new order number to be printed on a new page. Any pointers will be appreciated. Thanks.