Ranges select

Hi
I have table of ranges in my function module , that difine like :
sign(1)   TYPE c 
option(2) TYPE c
low       TYPE PERNR_D
high      TYPE PERNR_D
I use " IN" cluse in my select from  pa0003.
data : Range_Emp_Wa    type zrange_emp,
          Pernr_Table           type table of  pa0003.
loop at range_emp into range_emp_wa.
    clear lv_prnr_range.
    lv_prnr_range-sign = range_emp_wa-sign.
    lv_prnr_range-option = range_emp_wa-option.
    lv_prnr_range-low = range_emp_wa-low.
    lv_prnr_range-high = range_emp_wa-high.
    append lv_prnr_range .
  endloop.
    *select * from pa0003*
    into table pernr_table
    where pernr in lv_prnr_range.
when I enter more than one line i dosent work.
any help pls.

Hi,
Write the Query like this....
RANGES: R_PERNR FOR PA0003-PERNR.
data : Range_Emp_Wa type zrange_emp,
Pernr_Table type table of pa0003.
loop at range_emp into range_emp_wa.
clear R_PERNR .
R_PERNR -sign = range_emp_wa-sign.
R_PERNR -option = range_emp_wa-option.
R_PERNR -low = range_emp_wa-low.
R_PERNR -high = range_emp_wa-high.
append R_PERNR .
endloop.
select * from pa0003
into table pernr_table
where pernr in lv_prnr_range.
The only thing is you need to declare the ranges.......
Just copy and paste this code it will work....
Thanks,
Chidanand

Similar Messages

  • How to make two Range Selection at the same time?

    In a single clip, at the same time, in two locations, I would like to have Range Selection.  Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.

    success1975 wrote:
    In a single clip, at the same time, in two locations, I would like to have Range Selection. 
    You can mark multiple range selections in a clip by clicking and dragging with the Command key down – or marking in and out points with  Shift+Command.
    I don't know what you mean when you say "at the same time".
    Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.
    Forward slash plays betweeen the in and out. The only way I know to play them one after the other "immediatelly" is to edit the two selections to the timeline.
    Russ

  • HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

    HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
    how can we add range selection in screen painter.
    regards.

    Hi,
       create two input fields and a push button like select option in the screeen.
    Try checking this logic
    <b>Program:</b>
    <b>ranges</b> ra_matnr for mara-matnr.
    <b>Layout field name declaration:</b>
    Give the low field name as ra_range-low
      and high field name as ra_range-high.
    extension for pushbutton.--exten(function code)
    next -- function code for the enter key.
    PBO
    module status_3000.
    PAI
    module user_command_3000.
    <b>module user_command_3000.</b>
    if sy-ucomm = exten.
      call screen 400. (screen which shows extension values can be kept).
    elseif sy-ucomm = Next.
    if ra_matnr-low is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    if ra_matnr-high is not initial.
        ra_matnr-SIGN = 'I'.
        ra_matnr-OPTION = 'EQ'.
        APPEND ra_matnr.
        clear ra_matnr.
    endif.
    endif.
    endmodule.
    module status_3000.
    read table ra_matnr  index 1 into ra_matnr .
    set pf-status '3000'.
    set title '3000'.
    endmodule
    Br,
    Laxmi.

  • Set range selection on a clip using "X" not working!

    So I just downloaded FCPX this afternoon and am trying to select a range on a clip in the Event Browser to then drag that selection down to the Timeline.  On a 20 second clip, I press the "I" at 7 seconds in, then I press "O" at 14 seconds.  That's the part of the clip I want.  So then the FCPX Online User Guide tells me to do this:
    In the Event Browser or the Timeline, move the skimmer (or the playhead) over a clip and press X.
    Final Cut Pro sets the range selection start and end points at the clip start and end points.
    Note:  To use this X key method with connected clips or clips in a connected storyline, move the pointer directly over the clip and press X.
    BUT, when I press X, it discards my "I" and "O" points and puts the yellow selection box around the entire clip again!  It's very frustrating.  Please help me, what am I doing wrong, or is this a bug?  I'm up against a deadline and this is preventing me from moving forward because it won't "store" or remember, I don't know what to call it, my in and out points and the yellow bounded selection range on the clip!
    Thank you!
    Paul

    Huh?  Tom, thank you, but I'm not supposed to use the manual?  I desperately need a User Guide.  Is there one? And you did not explain what X does then, or what I am supposed to do?  If the X does not do what that manual says, then how do I set the In and Out points on the clip?
    Confused,
    Paul

  • Multiple Range Selection for field Material in CS14

    Hi friends ,
    Is it possible to make multiple range selection for material field in tcode CS14 [used to compare primary and secondary BOM] i have made it ZCS14.
    if i make matnr2 to matnr2-low
    but my doubt is it feasible solution
    please through some light on this
    regards
    soorya

    Dear Soorya,
    What's your requirement? is that to compare the Alternative BOM's for multiple materials at the same time?
    If it's going to be for comparing one more alternative for the same material,then it's a good report.
    As per to my knowledge if the report is going to be for a list of materials Alternative BOM's means I dont
    think whether it will be a fast(time wise) report.
    Check & revert back.
    Regards
    Mangalraj.S

  • Date Range Selection in Query Templates

    Hi,
    Can someone please tell me how to use <b>Date Range Selection</b> Tab details in SQL Query and TAG Query (Using Examples).
    Thanks in advance
    Muzammil P.T

    >>>>>>>>>>
    Re: Date Range Selection in Query Templates   
    Posted: Feb 15, 2007 6:43 AM    in response to: Muzammil Ahamed       Reply      E-mail this post 
    Hi Muzammil,
    In data range section you can have multiple options like setting start datetime and end datetime.. And you can set the shift (or) time period and also the format of the time periods.
    Primarily we use the start date and end date querying to fetch data between two time labels. I can explain this one with example..
    You have batch production table with columns Production Time, Batch Id, Production Qty. Then you want all the details between the 02/02/2007 to 05/02/2007.
    Solution :
    1.Map 02/02/2007 with Start date.
    2.Map 05/02/2007 with end dare.
    Now these two become the variables [SD] and [ED].
    Now you have mentioned the date range, but you need to mention for which column these things to be applied. For that
    3.In Query tab enter Production Time column name in Date column at the bottom.
    Now you have written query like Select * from batch prodcution where production time > 02/02/2007 and production time < 05/02/2007.
    4. Even those values you mapped (SD and ED) you can change from the front page through Java script.
    Like wise you have so many other advantages also.
    If you have any other specific doubt let me know.
    Thanks,
    Rajesh.
    PS : Please ward points if answer is useful. <<<<<<<<
    Message was edited by:
            David Dreyer

  • Color range selection + layer styles

    Hello--
    Help me if you can!
    I have had it on good authority (my photoshop instructor) that color range selection hasn't been working correctly for some time.
    I'm using CS2, version 9.0.2 on an IMac os X version 10.5.8.
    I am often working with multiple layers that are not similar at all.  When I have one layer active and do a color selection, it may also select the color range on inactive layers.  Then, if I do a fill, for example, it may affect areas on other layers that were inadvertantly color selected.  I know there are ways to ask photoshop to perform a function on all layers, but I don't see this as an option or setting with color range selection.  I had started to assume it was sort of like crop, which affects all layers, but when I asked, my teacher says it should only be selecting/affecting the layer that is active. 
    I found I can deal with this by 'closing the eyes' (making non-visible) the other layers...but that is a hassle and sometimes hides exactly what I need to see.
    Then noticed, just lately, that when I use a layer style, it is no longer showing up on my layer palette.  Maybe I don't understand correctly, but I thought any layer style addition would show up on the palette under the name of that layer.  If I happen to remember that a particular layer used a layer style, I can still click on the layer styles icon and alter it, but it isn't displaying on the layer palette any more--so I cannot toggle or discard the effect simply, and it is hard to know why a layer looks the way it does without that information.
    Could be I'm corrupted and need to deinstall/reinstall?  Is there something I'm missing about these functions , or something I accidentally changed?  I would really appreciate any help or information.

    Yes your instructor is wrong, it always selects visible pixels, and always has. You can however create a selection before you go into Color Range, and it will only work within that selection though.
    If you want Color Range to work in precisely the same way as it always did in the old versions you need to make sure that you ..
    • Highlight a non masked layer and
    • Uncheck the somewhat bizarrely entitled "Localised Color Clusters" checkbox
    The changes to Color Range happened a few versions ago, to my memory it was with CS4 .  The main improvement was that they made it more powerful with the capability to produce better more refined selections. They also unfortunately made the daft mistake of making the command work DIFFERENTLY depending on whether you have a masked or a non masked layer selected. This is not very logical really because it just causes confusion, and doesn't really achieve anything constructive in my opinion. No one who knows what they are doing wants to modify an existing mask using Color Range.

  • How to do range selection for connected clips?

    How to do range selection for connected clips? Whenever I press I or O, it only selects the primary storyline. I want select a portion of the connected clip and trim it.

    If you're using the 10.1.x, and if you set the playhead, so that the circle is over the connected clilp (you don't even need a range selection OR have the clip selected) you can type Option - [ to trim from the beginning of the clip to the playhead; you can type Option - ] to trim from the playhead to the end; or if you do set a Range selection, you can type Option - \ (backslash) to trim both ends off the clip preserving the range selection.
    If that circle isn't over the connected clip you require (perhaps you have a stack of clips) then you will need to click on the clip you need to have selected for the trim operation.

  • About Date Range Selection in Contributor Recognition Program- List

    Hello SCN,
    Happy that we have a classified date range selection like Year wise, Contest period wise and also with date range in the Top Contributors list. However earlier we had a luxury to see the point classified as  "All Time Contribution".  I personally feel to get back this option as well in the list.
    Dear SDNers share your suggestion on this.
    Thanks,
    SaNv....

    Hi,
    If you want the user to select the date directly rather than entering, you need not to have a dropdown menu in WAD. Directly go to the query which you have selected for the object in WAD, there create a variable with calendar. Put it mandatory, so that the user selection of the date will be mandatory. The variable will be automatically be available when you execute the template inn the browser.
    Assign points if this helps u.
    Regards,
    Koundinya.

  • How do I set the default tool. It's on range selection and I want it to be the select tool.

    Final Cut Pro X. How do I set the default tool? It's on range selection and I want it to be the select tool.

    Type the letter "a" or select it from the drop-down...

  • Display of 2 rows of data for 2 different date range selection

    Hi Folks,
    I have a requirement as follows,
    User has an option of selecting 2 Date Ranges
    From and To Date and again From and To Date
    The result should display 2 different rows of data with From and To Date range selection.
    Eg:
    12/09/20008 to 03/09/2009           10 20 30 40
    23/10/2009 to  18/12/2010           40 20 10 30
    Difference                                   30 0  20 10
    % Change                                   x  y  z   q
    Thanks for your input.
    Regards,
    KJ

    You will need to use union report, and you would have fours union's in this report.
    Union - 1: Data from 1st Date Range
    Union - 2: Data from 2nd Date Range
    Union - 3: Variance Calculation
    Union - 4: Percentage Variance Calculation.
    If the date's are coming from the same field, use cast function to use the same column twice in your prompts. Apply filters on each union as needed.
    Thanks.

  • When I detach my audio do I have to include that in range selection when exporting clip?

    So I usually export the clip I want to share by Range selecting it and then exporting the range selected part. I detached the audio and cannot seem to grab the audio file underneath the regular clip to export with the rest. How can I get that detached audio in the range selected part or will it just go along too even if it is not in the yellow range selected part?

    FCP exports everything in the range, vertically as well as horizontally.

  • 'Range selection' stuck on

    Hi there, the 'range selection' tool seems to be stuck on which means I cant choose 'select', 'position' or add in and out points. The dropdown menu for the tool shows the 'range selection' option highlighted with a dull orange. I have tried to change it with the menu bar and shortcut keys but nothing works. Any ideas?
    Thanks
    Dave

    Don't know whether this will help but corrupt preferences can create a vast range of different symptoms, so whenever FCP X stops working properly in any way, trashing the preferences should be the first thing you do using this free app.
    http://www.digitalrebellion.com/prefman/
    Shut down FCP X, open PreferenceManager and in the window that appears:-
    1. Ensure that  FCP X  is selected.
    2. Click Trash
    The job is done instantly and you can re-open FCP X.

  • Removing a selection area from a color range selection...

    I have an icon I am working with and I have used the color range selection tool to select the background however there are some pixels that were selected that are actually on the inside of the icon itself. I want to remove that selected area. I had do I remove the selected are inside the icon? What about adding pixels to the selection area? How would that be done?

    Good day!
    The shift- and alt-key usually allow Selection tools to be used to add or subract from an existing Selection.
    Could you post the image itself?
    Because I suspect in a case like this it would be bette to work with a Selection based on channel/s. Maybe as the basis for a Solid Color Layer.
    Regards,
    Pfaffenbichler

  • Color range selection preview

    I'm at a new job with a new iMac (Mavericks 10.9.4) and CC. I like using the "color range" selection tool in Photoshop, but I cannot figure out how to make the selected area just show as a marquee area - I don't want it to show as White Matte/Black Matte, etc. - JUST as a marqueed area, with my 4c image still visible. Ideas?

    I just have to ask - why?
    Once you commit by pressing OK you get your marquee. But the purpose of the selection preview is to show you precisely what will be selected, and a marquee doesn't do that. It would defeat the whole purpose of a preview. This would be easier to answer if we knew what you're trying to do.

  • TIPS(46) : ROWNUM(ORDERING 순으로 NUMBERING, RANGE SELECT)

    제품 : SQL*PLUS
    작성날짜 : 2003-07-30
    TIPS(46) : ROWNUM(ORDERING 순으로 NUMBERING, RANGE SELECT)
    =========================================================
    PURPOSE
    Explanation
    SQL*PLUS에서 ORDERING 순으로 NUMBERING하기를 원하는 경우가 많으나,
    ORDERING이 되기 전에 RANDOM ACCESS 시
    ROWNUM이 ASSIGN되기 때문에, 다음과 같은 결과가 나타날 것이다.
    SQL> select ename, rownum from emp;
    ENAME ROWNUM
    ALLEN 1
    JONES 2
    BLAKE 3
    CLARK 4
    KING 5
    ADAMS 6
    JAMES 7
    FORD 8
    SQL> select ename, rownum from emp order by ename;
    ENAME ROWNUM
    ADAMS 6
    ALLEN 1
    BLAKE 3
    CLARK 4
    FORD 8
    JAMES 7
    JONES 2
    KING 5
    Example
    다음의 몇 가지 방법을 이용하여 ORDERING 순으로 NUMBERING을 나타내어 보자.
    1) RECORD를 COUNT하는 방법 (DATA가 많은 경우 부적절)
    SQL> select A.ename, count(*) position
    2 from emp A, emp B
    3 where A.ename > B.ename
    4 or A.ename = B.ename and A.empno >= B.empno
    5 group by A.empno, A.ename
    6 order by A.ename, A.empno;
    ENAME POSITION
    ADAMS 1
    ALLEN 2
    BLAKE 3
    CLARK 4
    FORD 5
    JAMES 6
    JONES 7
    KING 8
    2) INDEX를 이용하는 방법
    SQL> create index sort_ix on emp (ename);
    Index created.
    SQL> select ename, rownum from emp where ename > ' ';
    ENAME ROWNUM
    ADAMS 1
    ALLEN 2
    BLAKE 3
    CLARK 4
    FORD 5
    JAMES 6
    JONES 7
    KING 8
    cf) descending인 경우 아래처럼 hint 사용 바람
    select /*+ index_desc(emp ename_ix) */
    ename, rownum from emp
    where ename > ' ' and rownum < 4;
    3) OPTIMIZER를 이용하는 방법
    SQL> select rownum, ename
    2 from emp , dual
    3 where emp.ename = dual.dummy (+);
    ROWNUM ENAME
    1 ADAMS
    2 ALLEN
    3 BLAKE
    4 CLARK
    5 FORD
    6 JAMES
    7 JONES
    8 KING
    위에서 언급한 내용에 더해서 rownum을 where 절에 사용함에 있어서는
    rownum 1을 포함하는 range(예 : 'where rownum <= 100')에 대해서만
    정상적인 조회가 가능하다.
    만약 rownum 1을 포함하지 않는 range(예 : 'where rownum between 50 and 100')
    에 대한 자료 조회를 원한다면 다음과 같이 in-line view를 이용하는 방법을
    사용할 수 있다.
    select rn, ename
    from ( select rownum rn, ename
    from emp)
    where rn between 3 and 5 ;
    RN ENAME
    3 BLAKE
    4 CLARK
    5 KING
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE
    1 0 VIEW
    2 1 COUNT
    3 2 TABLE ACCESS (FULL) OF 'EMP'
    * 이 때 in-line view의 rownum에는 반드시 alias를 이용해야 한다.
    in-line view에 의해서 선택되어지는 data가 많다면 performance가
    떨어질 수 있다.
    Reference Documents
    -------------------

    제품 : SQL*PLUS
    작성날짜 : 2003-07-30
    TIPS(46) : ROWNUM(ORDERING 순으로 NUMBERING, RANGE SELECT)
    =========================================================
    PURPOSE
    Explanation
    SQL*PLUS에서 ORDERING 순으로 NUMBERING하기를 원하는 경우가 많으나,
    ORDERING이 되기 전에 RANDOM ACCESS 시
    ROWNUM이 ASSIGN되기 때문에, 다음과 같은 결과가 나타날 것이다.
    SQL> select ename, rownum from emp;
    ENAME ROWNUM
    ALLEN 1
    JONES 2
    BLAKE 3
    CLARK 4
    KING 5
    ADAMS 6
    JAMES 7
    FORD 8
    SQL> select ename, rownum from emp order by ename;
    ENAME ROWNUM
    ADAMS 6
    ALLEN 1
    BLAKE 3
    CLARK 4
    FORD 8
    JAMES 7
    JONES 2
    KING 5
    Example
    다음의 몇 가지 방법을 이용하여 ORDERING 순으로 NUMBERING을 나타내어 보자.
    1) RECORD를 COUNT하는 방법 (DATA가 많은 경우 부적절)
    SQL> select A.ename, count(*) position
    2 from emp A, emp B
    3 where A.ename > B.ename
    4 or A.ename = B.ename and A.empno >= B.empno
    5 group by A.empno, A.ename
    6 order by A.ename, A.empno;
    ENAME POSITION
    ADAMS 1
    ALLEN 2
    BLAKE 3
    CLARK 4
    FORD 5
    JAMES 6
    JONES 7
    KING 8
    2) INDEX를 이용하는 방법
    SQL> create index sort_ix on emp (ename);
    Index created.
    SQL> select ename, rownum from emp where ename > ' ';
    ENAME ROWNUM
    ADAMS 1
    ALLEN 2
    BLAKE 3
    CLARK 4
    FORD 5
    JAMES 6
    JONES 7
    KING 8
    cf) descending인 경우 아래처럼 hint 사용 바람
    select /*+ index_desc(emp ename_ix) */
    ename, rownum from emp
    where ename > ' ' and rownum < 4;
    3) OPTIMIZER를 이용하는 방법
    SQL> select rownum, ename
    2 from emp , dual
    3 where emp.ename = dual.dummy (+);
    ROWNUM ENAME
    1 ADAMS
    2 ALLEN
    3 BLAKE
    4 CLARK
    5 FORD
    6 JAMES
    7 JONES
    8 KING
    위에서 언급한 내용에 더해서 rownum을 where 절에 사용함에 있어서는
    rownum 1을 포함하는 range(예 : 'where rownum <= 100')에 대해서만
    정상적인 조회가 가능하다.
    만약 rownum 1을 포함하지 않는 range(예 : 'where rownum between 50 and 100')
    에 대한 자료 조회를 원한다면 다음과 같이 in-line view를 이용하는 방법을
    사용할 수 있다.
    select rn, ename
    from ( select rownum rn, ename
    from emp)
    where rn between 3 and 5 ;
    RN ENAME
    3 BLAKE
    4 CLARK
    5 KING
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE
    1 0 VIEW
    2 1 COUNT
    3 2 TABLE ACCESS (FULL) OF 'EMP'
    * 이 때 in-line view의 rownum에는 반드시 alias를 이용해야 한다.
    in-line view에 의해서 선택되어지는 data가 많다면 performance가
    떨어질 수 있다.
    Reference Documents
    -------------------

Maybe you are looking for

  • Dialog box size when saving a postscript file CS5 is huge.

    When i save a postscript file, the dialog box that allows me no navigate to the place I wish to save my file is huge. About 10 inches wide and 3 inches high. I have tried to resize this box, expecting that the last used dimensions would be remembered

  • Portal & SSL

    Hi, I'm using Oracle Portal ( Oracle Application Server 10g 9.0.4.0.0 + Metadata repository Update 9.0.4.1.1 and Oracle Application Server 10g 9.0.4.0.0 + 9.0.4.1.1 Update) and it works fine. Now I want to implement SSL. Firstly to secure the connect

  • Problem in IOS7.1. About (personal hotspot)

    I am using ios7.1 in my iphone4s but i am unable set personal hotspot name ...so plz help me....this problem come after ios7.1upgrade

  • Broadband fault, I think!

    Hello, I have had BT Total broadband option 3 for only 3 months, and it has only worked correctly for around half this time. I raised a fault on my line on 25th Feb which was closed the next week as the line speed did increase, but for only a couple

  • Is a CS5 to CS6 upgrade still possible?

    I currently have PS CS5 installed on my Mac, and would like to upgrade to CS6, is a (paid for) upgrade still available as a download and if so, where from?....any help really appreciated!