Select condition

Hi Friends,
In Select query, how to give the condition for 
special procurement type MARC-SOBSL starting with 4.
useful points will be rewarded.

Hi Friend,
       You can give the condition as:
                 Select * from MARC into itab
                         Where SOBSL = '4%'.
Here 4% implies that  all the records starting with 4.
'%' means all.
Hope this helps you.
Regards,
Chandra Sekhar

Similar Messages

  • View with selection conditions with system fields.

    Hi Experts,
    I have a view. Now i want to control the data that is selected using 'Selection Conditions'.
    here i want to use system field SY-DATUM.
    My requirement is  i want to control the output like
    Valid_From_Date GE SY-DATUM and
    Valid_To_Date     LE  SY-DATUM
    which means that i would be showing only active users in this view.
    How can i go about this? System is not allowing system fields in comparision value.
    Any help on this is highly appreciated. Thanks.
    regards,
    Simha

    Hi,
    I am getting a warning first 'enter constant as comparision value'
    when i trying to activate the view i am getting the below error.
    A join condition on a field of the system table SY (or SYST) was defined.
    This is not permitted for database views because the system table is not known to the database
    Have tried to activate the view you created?
    How to go about this?
    Regards,
    Simha

  • Selection condition in maintenance view

    I have one table with data related to 5 systems.
    MSF, RET, SER, BOB, SAV, LED.
    I need t o create views with related data for each system. But system BOB contains data related to MSF and RET, So instead of creating view for that i have to add MSF related data to MSF view and RET related data to RET view from BOB system. These all are from one table only.Can you please suggest me the selection condition for that in maintenance view.
    Thanks.

    thanks

  • Adhoc Query : Error during selection; check the selection conditions

    Hi
    We have a report set-up and which we want to run using our adhoc query report tcode S_PH0_48000513
    The report, has a few different selection criteria in it to look at all action IT screen data in the system for ee's in specific personnel areas. There is also a criteria to allow us to paste in specific employee numbers we are interested in. The issue I am facing is that over about 3000 ids, the system automatically returns me a message when I click on the Output button to run the report which states:
    Error during selection; check the selection conditions
    Message no. PAIS206
    I am not sure why this is happening. The selection criteria are fine and the other day I ran the report and I experienced no issues. The report ran successfully. Now though, if I try and paste in all the ids I am interested in (about 8000) I get this message straightaway.
    Can anything be done to overcome this issue?
    Any advice would be much appreciated.
    Nicola

    Hi
    The message in full is:
    Error during selection; check the selection conditions
    Message no. PAIS206
    Diagnosis
    A runtime error occurred during dynamic selection.
    System response
    The runtime error will be caught; no short dump will be created. This error should not occur as a rule. However, very large select statements may trigger the runtime error SAPSQL_STMNT_TOO_LARGE or DBIF_RSQL_INVALID_RSQL. There is no way to prevent this happening. In this case, the error can only be caught.
    Procedure
    Check the selection conditions to see whether the error was caused because the option "Import from text file" included too many objects in the "Multiple selection" dialog. If this is so, you must limit the number of individual values.

  • Not able to put data selection condition in data selection tab of infopakag

    I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
    when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
    when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
    I have checked in transfer structure as well , the fields are marked for selection.
    Please advice .
    Please tell me what could be the reason for this problem

    Ashutosh,
    As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
    When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
    Hope this helps...
    *******Assign Points if it helps********
    Thanks,
    Gattu

  • How to create a "Selection Conditions" table similar to that found in se11?

    Hi,
    My team is trying to develop a SAP data migration tool (DMT) using ABAP.
    One of the functionalities in the DMT is to validate the data imported to the staging area tables against some reference tables (e.g. SAP tables).
    To do this, I would need to have a "Selection Conditions" table similar to that found in se11 (se11--> Display "View" --> Select "Selection Conditions" tab). This table would allow me to specify my 'referencing' conditions (e.g. Table = "ZMYTAB", Field = "ZMYFLD", OPERATOR = "EQ", Comparison Value = "ZMYTAB2", AND/OR = "").
    Are there any ready-made codes out there for such a "Selection Conditions" table? Or did SAP provide a built-in object for such a table?
    Any help would be greatly appreciated. Thanks!

    personnally I do use the standard FMs for dynamic selections
    see FM FREE_SELECTIONS_DIALOG
    Look at this sample code:
    http://sap.ittoolbox.com/code/archives.asp?i=10&d=2919&a=s

  • Selection condition in the infopackage for initializing delta

    How does the selection condition in the infopackage help in initializing delta?

    Hi,
    You can enter multiple single valus for any field in the infopackage. Just select the row for material type and then click on the insert duplicate button ( + sign ) which is at the bottom letf hand side in the 'Data Selection' tab within the infopackage. You will usually find this 'insert duplicate' icon next to the 'Check' push button.
    You can insert as many rows as you want for material type by select the material type rown and clicking on this icon. You can then enter the three values in the three rows for material type.
    Regards,
    Shilpa

  • Routine in DTP. Selection conditions not visible

    Hello,
    I am under BW7.0
    I am filtering data with a routine in a DTP. The routine is reading a custom table that user maintain. It contains a date range.
    This works, the correct data is selected.
    My problem is that in the request the 'Selection Conditions' field is empty and consequently, I cannot delete in the cube the same selections.
    This was working under BW3.5..
    Many Thanks,
    Alex-

    Hello,
    Here is the code. It is working as I expect. And debugging gives me the correct start and end date. But this is not reflected in the request 'Selection conditions'.
    TYPES:
    BEGIN OF BCSZP_TYPE,
    JJJJPER TYPE ZCBCSZP-ZEITPUNKT,
    RELEV   TYPE ZCBCSZP-RELEVANT,
    END OF BCSZP_TYPE.
    DATA: BCSZP_TAB TYPE STANDARD TABLE OF BCSZP_TYPE,
          BCSZP_WA TYPE BCSZP_TYPE,
          start_date type sy-datum,
          end_date type sy-datum.
      SELECT ZEITPUNKT
             RELEVANT
        FROM ZCBCSZP
        INTO TABLE BCSZP_TAB
       WHERE ZEITPUNKT <> ''.
      READ TABLE BCSZP_TAB INTO BCSZP_WA
      WITH KEY RELEV = 'X'.
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          I_GJAHR        = BCSZP_WA-JJJJPER(4)
          I_PERIV        = 'K6'
          I_POPER        = BCSZP_WA-JJJJPER+4(3)
        IMPORTING
          E_DATE         = start_date
        EXCEPTIONS
          INPUT_FALSE    = 1
          T009_NOTFOUND  = 2
          T009B_NOTFOUND = 3
          OTHERS         = 4.
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          I_GJAHR        = BCSZP_WA-JJJJPER(4)
          I_PERIV        = 'K6'
          I_POPER        = BCSZP_WA-JJJJPER+4(3)
        IMPORTING
          E_DATE         = end_date
        EXCEPTIONS
          INPUT_FALSE    = 1
          T009_NOTFOUND  = 2
          T009B_NOTFOUND = 3
          OTHERS         = 4.
      read table l_t_range with key
           fieldname = 'FKDAT'.
      l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = start_date.
      l_t_range-high = end_date.
      if l_idx <> 0.
        modify l_t_range index l_idx.
      else.
        append l_t_range.
      endif.
      p_subrc = 0.

  • Problem with process order resource selection condition

    I face a problem while trying to release process order as i am getting an error as "Resource XXXX assigned to operation 20 does not meet resource selection condition".What may be the reason for this.how to check and rectify...
    Please help.

    hi,
    I think you have been using a work center in place of resouce.
    Actually
    Resource catagory = 0008 is assign to Application C (Recipe) & only use in Recipe Creation.
    Work Center catagory = 0005 is assign to Application N & R( Routine & Refernce operation set) & only use in Routine Creation.
    Parminder

  • Variant Configuration: Selection Conditions in BOM

    Hi Experts,
    I am trying to insert more than one selection condition in the BOM. But the system only takes one of this conditions.
    For example I want to have two objects dependencies:
    Selection Condition 1: Engine = 2
    Selection Condition 2: Colour = 'Red'
    instead of
    Selection Condition xy: Engine = 2 and Colour = 'Red'
    Is it possible to use more than one and how can I handle with this. Or is that not possible
    The  system doesn't take the two conditions at the moment...
    What can I do to solve this?
    Thank for your answers,
    Marc

    Hi,
    yes I am talking about object dependency. Especially about selection conditions.
    I want to select the required BOM positions out of the super BOM.
    For that, I have to define this dependencys. But as I mentioned before, only one of the two dependencys gets read and the wrong BOM positions comes out of the explosion.
    Have you any other ideas how to handle with this?
    Thanks a lot.
    Marc

  • Exception on a select condition in a Function Module

    Abap Experts,
    I have function module. The selection conditions fails sometimes. Even if it fails I want to carry out the remaining part of the function module.
    Wondering how to create a exception on a selection condition.
    Any suggestions appreciated.
    Many thanks in advance.
    BWer

    Don't clear your problem.
    Your function module is created by you?
    if so, you can check the select result of select, like this:
    SELECT XXXX
      FROM XXX
    WHERE ....
    IF SY-SUBRC = 0.
    SELECT SUCCESS
    ELSE.
    SELECT FAILED
    ENDIF.
    Does it what you want?  if not, please explain more details about your problem.

  • Select conditions in variable - BPS SEM

    Hello experts,
    I have a question:
    when I go in BPS0, Display area, Variables, double click on a variable and there is a flag on Input Allowed by User --> if I make double click on user name, the value that I see is the only value that this user can use for this variable?
    I have a variable in this conditions, the variable is Sales Organization, and the user indicates to me that can't use a Planning Function with a Sales Organization, that it is no present in the possible values of the user name.
    I must only add the new value? Why I have two fields in Selection Conditions?..I have a field called Sales Organization and the other one called To.
    Excuse me, but I don't know BPS.
    Thanks in advance,
    Vito

    Hello Vito,
    it depends on the setting in the second flag "Input allowed by user"
    if this second flag is not checked - you habe to specify all the values for the users in the little list.
    if this second flag is checked - the users can choose whatever they want.
    the "to" field is used for interval definition, usually the BPS does not like intervals, so it would be better to make up a list with single values.
    regards
    Cornelia

  • Deleting Request from cube based on Selection Condition

    HI All,
    I have a scenario where i have three selection condition while i update from ODS to CUBE . I keep getting differnet versions of the file so the latest version should replace the old version , to do this i tired using the option
    Delte Request from Info Cube after Update in the Data Tagets tab
    And the Radio button Overlapping is checked  . ( This is not working )
    The three selection conditions in Info Pacake are
    Reduest id from ODS : 11111
    Cal Month                 : 20072
    File Type                   : B
    The selecion condition for the second Version in Info Pacake of the same file that should replace the first file in cube is
    Reduest id from ODS : 22222  ( The request id is RID in the ODS for second file )
    Cal Month                 : 20072
    File Type                   : B
    so can any one let me know how can i achvie this ........

    Hi Abraham,
       You select the variable deletion conditions when you schedule the InfoPackage that is going to load the new data. On the Data Targets tab page in the Automatic Deletion of Similar/Same Requests from InfoCube column, you click on the pushbutton to go to the Deletion of Requests from the InfoCube After Update dialog box.
    Here you determine under which conditions existing requests are deleted from the InfoCube:
    ·        You can include update modes, InfoSources, DataSources, and source systems for requests.
    Example
    Requests are deleted when the appropriate deletion conditions are met if existing requests and new ones were loaded from the same DataSource.
    ·        You can determine whether the selections for the new request need to be the same as or more comprehensive than the selections of the request that is to be deleted, or whether the selections for the new request need to completely or partially overlap the selections of the request that is to be deleted.
    ·        You can specify deletion restrictions according to date. This means that, when the deletion conditions are met, only those requests that were loaded within a specific time period are actually deleted.
    Example
    If you choose Data for the Request from the Last Seven Days, only those requests are deleted that have been loaded in the last seven days.
    ·        You can specify situations in which a request is not to be deleted, even if the appropriate deletion conditions are in place.
    Example
    If, under Exceptions, you choose the Today is …the Last Day of a Month, existing requests are not deleted, if the new request is loaded on the last day of a month.
    ·        Another option for determining deletion conditions is creating a user routine for the InfoPackage and the InfoCube.  In this routine you can exclude requests from a deletion process or include additional requests for deletion.
    Check conditions again, it will work, if selection and data source is same.
    Hope it Helps
    Srini

  • Authority Check for a selection condition/Range

    I am relatively new to ABAP and still learning.
    I am trying to create an authorisation check as part of a custom badi implementation.
    i have amended the code, but i am just trying to figure out how to take the selection condition table to get the specific value to check.
    i know the parameter - p_tplnr
    this code is pulled back into the Badi..
    * Import selection result
      IMPORT sel_tab = lt_nodes selcond = t_selcond          
        FROM MEMORY ID 'DIACL_SELECTION_NEW'.
    the table is t_selcond . so i do a loop round table into structure based upon this parameter.
    it could have single or multiple objects, and i am just unsure which object needs to be auth checked....
    my code...
    *--- Defect # 96 - Add Authorisation Check to filter out all Functional Locations.
      DATA: s_selcond TYPE rsparams.
      DATA: tplnr     TYPE diacl_lbk_sel_ds-tplnr.
    *--- Read table where selection name is Functional Location
      LOOP AT t_selcond INTO s_selcond
      WHERE   selname = 'P_TPLNR'.
        IF sy-subrc = 0.
    *--- Check the authorisation object for functional location
          AUTHORITY-CHECK OBJECT 'P_TPLNR'
          ID 'TPLNR' FIELD tplnr
          ID 'ACTVT' FIELD '03'.
        ENDIF.
      ENDLOOP.
    My question is how do i Authority Check the values within s_selcond when it could have single or multiple entries and could have conditions to include/exclude and have selection options?

    Hi ,
    LOOP AT t_selcond INTO s_selcond
      WHERE   selname = 'P_TPLNR'.
    endloop.
    -----------------This code can be replaced by
    READ TABLE T_SELCOND INTO S_SELCOND WITH KEY SELNAME = 'P_TPLNR'. "binary search after sort ..
    CHECK SY-SUBRC EQ 0
    auth-check  object...
    some basic code to get an idea ...
    tables /BIC/SPLANTGRP.
    select-options: so_basin for /bic/splantgrp-/bic/plantgrp no-display.
    so_basin-low = '1'. append so_basin.
    so_basin-low = '2'. append so_basin.
    so_basin-low = '3'. append so_basin.
    so_basin-low = '4'. append so_basin.
    loop at so_basin.
      write:/ so_basin-low.
    endloop.
    read table so_basin with key low = '4'.
    if sy-subrc eq 0 .
      write:/ 'found hit', so_basin-low.
    else.
      write:/ 'found NO hit'.
    endif.
    read table so_basin with key low = '5'.
    if sy-subrc eq 0 .
      write:/ 'found hit', so_basin-low.
    else.
      write:/ 'found NO hit'.
    endif.
    vijay

  • Selection Condition In Infopackage

    Hello,
      Is there a way to use a single infopackage by passing different selection conditions thru' abap routine, for delta init.  We require this as we have to extract data based on the logged-in user.
      Any help is highly appreciated.
    Thank you very much,
    Raj

    Hi Ronald,
    I am coming back with further infn after a long time as i was strucked with other development area, actually our client requirement is Data has to be loaded on company wise .. means the respective responsible person only carryon loading person as per his profile(Authorisation)load has to be happen...this is one requirement,
    one more is (whether in this scenario can we go for Delta)
    we enhanced the Dtasource with new field in R/3 and when we are trying to make it selction condition in infopackage we are not getting filtering as per that ..
    could u or anyone who knows through a light on this..
    Thanks in advance
    BRB

  • Selections conditions at the Infopackage

    Hi,
    My Requirement is to load data for the selection conditions of Current month+12 periods and Current Month-24 periods for the Calmonth characteristic by writing a routine at the infopackage level.
    Is there any standared function module for caluclating the year and period using the system date.
    If I use 'DATE_TO_PERIOD_CONVERT' then this would give me the year and period but that needs my fiscal variant.
    Could some pne help me with this.
    Regards,
    Vamsi

    Hi Ajay,
    Could you please tell me whether this code works out for +12 months..
    Data : today like sy-datum,
          current_month(6)  type C,
           I_MONTH    TYPE I,
          I_YEAR     TYPE I.
         data: l_year like T009B-BDATJ,
          l_period like T009B-POPER.
    data: l_fiscperlow like l_t_range-low.
    data: l_fiscperhigh like l_t_range-high.
      today         = sy-datum.
      current_month = today+0(6).
      l_year        = today+0(4).
      l_period      = today+4(2).
    l_fiscperlow = current_month.
        Add 1 to l_year.
            concatenate l_year l_period+1(2) into l_fiscperhigh.
          l_t_range-low = l_fiscperlow.
          l_t_range-high = l_fiscperhigh.
          l_t_range-option = 'BT'.
          l_t_range-sign = 'I'.
    Regards,
    Vamsi

Maybe you are looking for