Restrict data in R/3 side

HI,
We have 6 years of historical data in R/3 side, from that we have to take 2 years of  data. How to take the historical data for 2 years(
Thanks
Sudha

Hi Sudha,
You can go for a generic data source based on a function module, where you can write code for extracting data depending on the requirement. By doing this, you have two advantages...
1. In future if you need to do extraction for differen time periods you can use this.
2. You dont have to disturb the existing process.
***Assign Points if helpful ****
Rgds
Kalyan

Similar Messages

  • Restricting data entry to a particular language in the form

    Hi,
    I created a multilingual form in which all the fields of the form are in a particular language . Now am trying to restrict data entry in the form to that language at the client side only . Say if it is a form in french, can we restrict the data entry to french only .  The approach i was trying to implement was adding a script against the change event of all data fields and see if the characters lie in the range of  the language unicode character set . But have not been successful in it yet . Can anybody help me find some way or provide any sample for it ?
    Thanks

    Hello, I'm German
    Probably you can restrict the characters used for text entry, so for example ü is allowed in the German form but not in French.
    But you will NEVER be able to restrict the users staying only writing French in French forms 100%.
    1) You sometimes, not often, do encounter letters that are not typical for the language. (Though it can appear in any kind of word, it's quite regular for names.)
    2) Let's say I fill the French form. I encounter a problem when I type in the word "Müller". This word wouldn't be French at all. The text will be delted and probably given an error message. Well... I learn out of this error message. Next time I'll type Mueller. ^^
    (I knew several pages were people were restricted to talk English by forbidding letters that were not used in English very often... That didn't stop us violating that rule. The only error that really bugged us wasn't the restriction in not using letters that don't exist in English but the "please don't swear or insult so." error that kept appearing for ex. when we used the German word for "that" (= "dass"). They just didn't like the last 3 letters.)
    3) Many countries have the same or include other countries unicodes. For example English could be written in the German form or in the French form.
    4) You can't get out the syslanguage as far as I know. This would be a great hint which language the person is using.
    5) I don't think you can use the spellcheck in any way... great violation against spellchecking could also be a hint for another language.
    I know a quite big internetcommunity which did try to accomplish the same as you do. After about 2 years and a lot of experiments they stopped their efforts and were content by popping up the random error-messages warning that you don't have to insult, just like those other communities mentioned above. ^^ (Though they tried to restrict the insulting parts to the language used that didn't work out. Too many people knew how to insult in other languages ;D or which words were similar to insults.)
    People just never do what they are supposed to do and are quite nasty finding workarounds...
    My advice to you would be:
    Don't make the effort.
    Sorry for not being able to provide you with a solution, but the opposite.
    Lisa

  • Sample code in Update Rule to restrict data selection?

    We used to restrict data selection in InfoPackage data selection, e.g., for company code range when loading data from a source system (e.g. EBP which is similar to R3), but somehow the company code range we set in InfoPackage data selection not working and we found actually it occurs on the source system side when running RSA3 on EBP side and input the company code range in RSA3 selection section, but still it extracts data beyond the company code range.  We don't understand why EBP data selection doesn't work, then we consider in update rule on BW to set the company code range.  We know in update rule, we can select Start Routine, formula, or routine to set the company code range.  But we would be appreciated if experts here can recommend which one is the most efficient to load data fast for data load performance reason and would be appreicated if you can let us know the sample code!
    Thanks in advance!

    hi Hari,
    I copy the whole code of the start routine below:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    Includes to update generic objects
    INCLUDE rsbctgn_top .
    INCLUDE rsbctgn_update_rules .
    INCLUDE rsbctbbp_generic_objects.
      The following section is prepared for you if you compound
      the business partner 0BPARTNER with the
      Source System 0BBP_SYS_BP or if you compound the organizational
      Unit 0ORGUNIT with the source System 0BBP_SYS_BP
    TYPE-POOLS: RRSV.
    Data: L_HLP_CHAVL_CMP       TYPE RSCHAVL.
    DATA:
           L_S_DEP       TYPE RRSV_S_DEP,
           L_T_DEP       TYPE RRSV_T_DEP.
      End of compound
    DATA: l_s_errorlog        TYPE rssm_s_errorlog_int,
          l_hlp_chavl         TYPE rschavl.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS0BBP_CONF_TD_1.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    delete data_package where 0comp_code < 'X300' OR 0comp_code > 'X6ZZ'.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

  • How to restrict data in reports for different users...

    i created a monthly_sales report on XYZ_SALES_FACT table
    i have to give restriction on reports based on the users.
    i.e. user_1 will access only NORTH region sales info on monthly_sales report
    user_2 will access only SOUTH region sales info on monthly_sales report etc.
    Note: my client is not agreeing to create multiple reports based on the user/region.
    how i have to give user restriction on report based on the users?

    Hi,
    You can create a VPD policy and then create a login trigger and pass SSO client_indentifier or database session_user (use if/then/else to protect both)
    You can check here for the VPD/login trigger.
    Disco Config Guide
    http://download.oracle.com/docs/html/B13918_03/security2.htm#sthref1002
    OTN articles
    http://www.oracle.com/technology/obe/10gr2_db_vmware/security/vpd/vpd.htm
    http://www.oracle.com/technology/oramag/oracle/04-mar/o24tech_security.html
    You can also use secure views, mandatory conditions in the EUL, etc.
    Some other related forums entries:
    Re: Using VPD with Oracle Discoverer without SSO
    Re: Restrict Data for a user without VPD
    May want to search, likely many others on the subject.
    Should give you a good place to start.
    Regards,
    Steve.

  • Problem with 'restrict data' option in Web Analysis' Analysis Tool

    I feel like i'm in the twilight zone.
    We have made a report in web analysis, withh essbase as a source, and works fine.
    We want to restrict data for customers that generate more than 1,000,000 revenue, for example
    So, we go to Analysis tools, restrict data. The dialog window opens
    We hit 'Select Column...' and nothing happens. No Column is shown, thus being unable to complete the dialog.
    Should we enable something in essbase to allow this? We are newbies, but we think this should be pretty straightforward.
    We have also tried to do that with the Analysis tools administrator, with the same result.
    We are using Web Analysis 9.3.1.
    Any feedback will be appreciated.
    Thank you
    Edited by: hectorsosar on 22/06/2009 02:31 PM

    It got fixed by removing a filter from a dimension, and placing that dimension as a page.
    Thanks,
    Hector

  • Restriction data entry for input ready query

    Dear All,
    I have an input ready query with two structures for rows and columns.
    However, I have set one of columns' structure's member as "data can be changed with planning functions", i'm able to enter data for that column. When i execute save function, entered valus are being disapperaed.(not benig written to the cube)
    But i want to restrict data entrance for that column. (Like display functionality in BPS)
    I know i can protect fields with excel functionality, but we are using web environment.
    How can i resolve mentioned issue?
    Thanks
    Alkan

    Hi Bindu,
    Thanks for your quich answer.
    In web environment, i think i need to use WEB API.
    Do i need to write java script? Or is there any particular class to manage the properties of the cells?
    BR
    Alkan

  • Restrict date field in vf01 to system date .

    hi gurus,
    my requirement is to restrict date field in vf01 to system date .
    i have changed the 011 routine in vtfa .
    do I need any extra effort
    debajyoti

    Hi debajyothi
    First of all which date field you want to restrict to systems date can you be more specific debajyothi
    But In VOV8 , there is a pricing  date field  , if you customize it as per your requirement , like if you keep it blank then it will be systems date , or billing date , delivery date etc this can be one input if it is related to pricing
    Even as you said in copy controls if you change the sub- routine then it will work
    Regards
    Srinath

  • Restrict Data Package Size

    hi all,
    I have created a generic data source which is extracting data using the FM.
    I wana restrict my data by packet size. how can i do this?
    my FM is
    FUNCTION zstock_requirement.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_DSOURCE) TYPE  RSISOURCE OPTIONAL
    *"     VALUE(I_REQUNR) TYPE  RSREQUNR
    *"     VALUE(I_MAXSIZE) TYPE  RSMAXSIZE DEFAULT 1000
    *"     VALUE(I_INITFLAG) TYPE  RSINITFLG OPTIONAL
    *"     VALUE(I_UPDMODE) TYPE  RSUPDMODE OPTIONAL
    *"     VALUE(I_DATAPAKID) TYPE  RSDATAPID DEFAULT 50000
    *"     VALUE(I_READ_ONLY) TYPE  SBIW_BOOL DEFAULT SBIW_C_FALSE
    *"  TABLES
    *"      I_T_SELECT TYPE  SBIWA_T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SBIWA_T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  MDEZ OPTIONAL
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
      DATA : lt_mdezx TYPE TABLE OF mdez,
              la_mdezx LIKE LINE OF lt_mdezx.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE i_dsource.
          WHEN 'ZSTOCK_REQUIREMENT1'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE e009(r3). ENDIF.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF s_counter_datapakid = 0.
          SELECT matnr FROM mara INTO TABLE i_matnr
                            WHERE mtart IN ('ZFIN','ZRAW','ZSMI').
          If not i_matnr is initial.
          SELECT matnr werks FROM marc INTO TABLE i_input FOR ALL ENTRIES IN i_matnr
                                           WHERE matnr = i_matnr-matnr.
           endif.
            CLEAR wa_input.
            LOOP AT i_input INTO wa_input.
              CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
                EXPORTING
       PLSCN                          =
                  matnr                          =  wa_input-matnr
                  werks                          =  wa_input-werks
       BERID                          =
       ERGBZ                          =
       AFIBZ                          =
       INPER                          =
       DISPLAY_LIST_MDPSX             =
       DISPLAY_LIST_MDEZX             =
       DISPLAY_LIST_MDSUX             =
       NOBUF                          =
    IMPORTING
       E_MT61D                        =
       E_MDKP                         =
       E_CM61M                        =
       E_MDSTA                        =
               TABLES
       MDPSX                          =
                 mdezx                          =   lt_mdezx
       MDSUX                          =
               EXCEPTIONS
                 material_plant_not_found       = 1
                 plant_not_found                = 2
                 OTHERS                         = 3.
              IF sy-subrc <> 0.
                MESSAGE i000(abc) WITH 'information'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
              LOOP AT lt_mdezx INTO la_mdezx.
                APPEND la_mdezx TO e_t_data.
              ENDLOOP.
            ENDLOOP.
          ENDIF.
          s_counter_datapakid = s_counter_datapakid + 1.
        ENDIF.              "Initialization mode or data extraction ?
      ENDFUNCTION.

    Hi,
    One thing why u want to restrict data package. Anyway if it is delta enbaled u will make it as a initial load then delta load.
    Its very complex to implement datapackage as well as cursor and fetch statement in function module.
    Thanks,
    Debasish

  • Data coming in receiver side by using proxy to jdbc scenario

    Hi experts ,
    I have scenario Proxy (client proxy) to JDBC (IVR system) Asynchronous method,
    I execute se38 its working fine and go SXMB_MONI here also success flag  in development server  same way I checking PI side also SXMB_MONI everything fine  but data not coming IVR side if write select query
    In runtime workbench the Communication channel status id green  and Message processing completed successfully
    My question is when I writing select query like select * from table name ,Why data not coming  receiver side ?   execute  query here IVR side also mention  query status is successfully ,but IVR side  data not coming, I have access right in receiver side
    Please provide valuable inputs.
    Thanks
    INASH NALLA

    Refer the following link for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    Also, in the reciever JDBC adapter you dont write a SQL query anywhere but it is the target MT structure and corresponding mapping,which generates the query.
    Refer the blog:
    http://www.riyaz.net/blog/jdbc-adapter-configuration/technology/ 1200/

  • Restrict Date Range

    Hi All,
        I have a select-option for Date.I need to restrict dates within a month??
    How can i do that??

    Hi ,
    Same problem i also faced , so you will follow below code you will get the solution definately .
    SELECT-OPTIONS : S_CALP   FOR RFPDO1-SZISABRZ NO-EXTENSION obligatory , "date
    DATA:
          v_text        TYPE STRING,
          v_from_month  TYPE STRING,
          v_to_month    TYPE STRING,
          V_LEAP TYPE I .     "leap year variable
    From/To date validation
      CLEAR : v_days .
      CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
        EXPORTING
          I_DATE_FROM = CALC_PERIOD_FROM  "date low
          I_DATE_TO   = CALC_PERIOD_TO  "date high
        IMPORTING
          E_DAYS      = v_days.
    From/To date validation
      clear : v_text , v_to_month , V_YEAR ,V_LEAP.
      v_text = CALC_PERIOD_FROM .
      v_from_month = v_text+4(2).
      clear : v_text .
      v_text = CALC_PERIOD_TO .
      v_to_month   = v_text+4(2).
      V_YEAR = v_text+0(4).
    IF NOT V_YEAR IS INITIAL .   "logic for leap year .
      V_LEAP = V_YEAR MOD 4 .
    ENDIF .
    ****logic for  months validation
      IF NOT v_from_month = v_to_month .
          RETURN-MESSAGE = 'From/To Month should be same !'.
          APPEND RETURN.
          EXIT.
    ENDIF .
      IF ( v_to_month = '01' OR
           v_to_month = '03' OR
           v_to_month = '05' OR
           v_to_month = '07' OR
           v_to_month = '08' OR
           v_to_month = '10' OR
           v_to_month = '12' ) .
        IF NOT v_days EQ 30 .
          RETURN-MESSAGE = ' Please Enter Valid Date !'.
          APPEND RETURN.
          EXIT.
        ENDIF .
      ELSEIF  ( v_to_month = '04' OR
                v_to_month = '06' OR
                v_to_month = '09' OR
                v_to_month = '11' ) .
        IF NOT v_days EQ 29 .
          RETURN-MESSAGE = 'Please Enter Valid Date !'.
          APPEND RETURN.
          EXIT.
        ENDIF .
      ELSEIF v_to_month = '02' .
        IF V_LEAP = 0 .
          IF NOT v_days EQ 28 .
            RETURN-MESSAGE = 'Please Enter Valid Date !'.
            APPEND RETURN.
            EXIT.
          ENDIF .
        ELSE .
          IF NOT v_days EQ 27 .
            RETURN-MESSAGE = 'Please Enter Valid Date!'.
            APPEND RETURN.
            EXIT.
          ENDIF .
        ENDIF .
      ENDIF .
    Regards ,
    Nilesh Jain .

  • APEX - how to restrict data

    Hi,
    I am a new bee and looking for a way to restrict data (in a report) based on user type...
    as an example, I have a billing table with customer, product and sales rep details...
    I want my sales reps to see only details where they were involved in the sales... where as, sales manager should be able to see the details associated to the sales reps who report to him/her...
    Thanks in advance

    Hi,
    This might help you
    Re: Authorization to particular group of users
    Br,Jari

  • Restrict data in extractor

    Hi,
    We want to restrict data within an extractor. For example: in the 0PERSON_ATTR extractor, we want to extract data only for a certain company and we have several companies in our HR instance. We tried using authorizations on the remote batch id but it did not work. The company code is not one of the selection fields in the extractor.

    Use a start routine. Set the update to be a flexible update of master data and then write a start routine where you can say delete all records where company is not EQ to that one company that you want to extract for.

  • "[Oracle][ODBC]Restricted data type attribute violation

    Hi,
    I have a program that use the database object,TQuery in Borland C++ Builder 5 to access information on an Oracle8i table. The program was working fine until I updated the Oracle8i ODBC driver from 8.1.5 to 8.1.6.
    I am getting the error :
    "[Oracle][ODBC]Restricted data type attribute violation."
    I can't see what I have done wrong with the SQL statement in the query as it is only a select * from table statement. Can anyone help me with this ? Thank in advance.
    C.M.

    I think I had found what is causing the problem. It looks like the latest Oracle ODBC driver doesn't like any table that
    consists of any 2 fields of type NUMBER but with 1 of them having
    NOT NULL. >example : >Name Null? Type>-------- --------
    ----------------- NO1 NUMBER>NO2 NOT NULL NUMBER>I think this is
    a bug. >null
    I am not sure what you mean by the statement
    "the latest Oracle ODBC driver doesn't like any table that
    consists of any 2 fields of type NUMBER but with 1 of them having
    NOT NULL"
    Do you mean there cannot be two not null number columns in a
    table witht he latest Oracle ODBC driver.
    I am running into the same problem as you did. I am getting a
    restricted type violation, and have isolated the column and it is
    a number(x,y). I have the the Oracle Client 8.01.06.00 driver
    and I have PowerBuilder8.0 as the GUI.
    Any help would be much appreciated,
    Thanks in advance,
    Khanh

  • Restrict Data Input in an Input Schedule for a particular number of days in a Month

    Hi All,
    I want to restrict data save in Input Schedule for any particular number of days in a month. BRAD will select number of days for the that particular month and data input for that duration should be disabled.
    Duration will be dynamic and will be decided by BRAD.
    Basically this is a requirement of BPF, but I have thought of doing in this manner.
    Regards,
    Mayank

    Hi Vadim
    I saw your this solution:
    Dim epm As New FPMXLClient.EPMAddInAutomation
    Dim blnMySave As Boolean
    Public Function BEFORE_SAVE() As Boolean
    If blnMySave Then
        BEFORE_SAVE = True
    Else
        MsgBox "Please use button on the worksheet!"
        BEFORE_SAVE = False
    End If
    End Function
    It seems as if this may help me, but can you please guide me how to trigger this function for a change of value in any particular cell, in an input form.

  • Whether we can able to save the data in the portal side or not?

    Hi All,
        Could anyone please tell me, whether we can able to save the data in the portal side or not, if possible can you please explain the procedure.
    Thanks in advance,
    Siva.

    If you are familiar with java then you can use the usual jdbc / odbc driver to connect. Do search the forums, this has already been discussed many times before, if you encounter a road block do post back.....
    You can also refer to this blog, though it talks about CE 7.1 the concepts remain the same, the configuration screens might differ - Connecting an Application to an External Database in SAP NW CE 7.1
    Did some searhing for you refer these also
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c&overridelayout=true
    How can I set the data binding between Web Dynpro & Database table
    Connect to External Oracle Database
    Urgent : Hoe to connect to a ORACLE database throught WEBDYNPRO JAVA <-- good one
    Thanks,
    GLM
    Edited by: GLM on Aug 18, 2009 11:38 AM
    Edited by: GLM on Aug 18, 2009 11:41 AM

Maybe you are looking for

  • BADI enhancement for Enjoy PO Tcodes at "header level".

    I could successfully add an item level tab to MEXXN PO tcodes. Somebody help me with the ME_GUI_PO_CUST and ME_PROCESS_PO implementations to add a customer field , say ZZ_ETYP in a separate header level tab "Expense type". Do I need to add subscreen2

  • How to call stored procedure from postgresql to jsp

    i'm using a jdeveloper.. and i'm a newbie of jsp.. i just wanna know how to call a stored procedure in jsp?... This is my function in postgres and i don't know how to call it in jsp... SELECT * from SP_1('2006-01-11') as ( company_code char(5), branc

  • Open File dialog box in photoshop CS3 with cintiq 12wx

    Hello all, I can't be the only one with this problem. Whenever I open a file in CS3 on my Cintiq 12WX, the file open dialogue appears on my primary monitor instead of my cintiq. No matter what I do, it always appears there. Every other dialog box app

  • Anyone having problems with activating Lightroom with Adobe CC?

    I'm new to Adobe CC and I'm having some troubles with activating my Lightroom with Adobe CC. I payed for Lightroom and Photoshop CC and I didn't have any problems the last month, but since the new month has begun, I cant seem to figure out how to act

  • IPad 3 if cellular is weaker than iPhone 4s (AT&T )?

    Is there a problem with my IPad 3 if cellular is weaker than iPhone 4s (AT&T )? When signal is weak iPhone works when iPad will not - normal or defect w/ iPad?