Range issue

I am working on a piece of code:
we have a custom table ZVEND_DETAILwhich has the following fields:
1. Vend_num1_From
2. Vend_Num1_To
3. Vend_num2_From
4. Vend_num2_TO
5. Zcode
now the user will enter the above fields on the screen and I need to check what user entered is in this table or not, if not then throw an error.
the input fields for user are:
v_vend_num1
v_vend_num2
zcode
Vend_num1_From  Vend_num2_TO  Vend_num1_From    Vend_num2_To
12              20                    1                     5
10              15                    2                     2
10              10                    1                     1
20              25                    6                     10
so if the user enters any of the above mentioned value, it's a correct value
So basically what I need to see whatever user enters should be validated against this table All the records are unique, I am not able to build this logic, can you please help me on how to start this.
Your help is appreciated.
Rahul
Edited by: goel.rahul2238 on Jun 22, 2011 9:47 PM
Edited by: Rob Burbank on Jun 23, 2011 8:58 AM

Hi
Use the initialization event to build your range tables for your fiuelds.
INITIALIZATION.
  SELECT vendor_num_from INTO TABLE lt_vend_num_fr
                              FROM  zvend_table.
  LOOP AT lt_vend_num_fr INTO ls_vend_num_fr.
    lwr_vend_num_fr-sign   = 'I'.
    lwr_vend_num_fr-option = 'EQ'.
    lwr_vend_num_fr-low    = ls_vend_num_fr-vendor_num_from.
    APPEND lwr_vend_num_fr TO gr_vend_num_fr.
  ENDLOOP.
then use event AT SELECTION_SCREEN ON to do the validation for your values
AT SELECTION-SCREEN ON p_from.
  IF NOT p_from IN gr_vend_num_fr.
*...issue message
  ENDIF.
regards
PrinceIsaac

Similar Messages

  • No. range issue : at the time of production order settlement

    Hi expert,
    My user is unable to settle production order due no no range issue:
    Short text of error message:
    Document number 9000 20001 2008 was already assigned
    Technical information about the message:
    Diagnosis
         Document number 20001 in company code 9000 and fiscal year
         already been assigned.
    System response
         Termination of processing.
    Procedure
         Check document number range 02 in company code 9000 and fi
         2008 and correct the number range status if necessary.
    Message classe...... "F5"
    Number.............. 152
    Variable 1.......... 9000
    Variable 2.......... 20001
    Variable 3.......... 2008
    Variable 4.......... 02
    Variable 3.......... 2008
    Variable 4.......... 02
    Pl advise.
    Regards,
    Samar

    Hi experts,
    Thaks for the reply.
    Pl advise what is the configuration/T code to be maintained for no range
    Regards,
    Samar

  • IPad 2 WiFi Range Issues (but not issues with connectivity when in range)

    Okay. I hate to start a new thread when there are bunches of threads on the iPad 2 having WiFi problems (particularly with 5Ghz networks and also related to 4.3). Nonetheless, I'm not seeing anyone talking about range in these forums.
    Issue: iPad 2 WiFi range is not as far as iPad 1 (with no cover on either).
    Alternative Explanation: iPad 2 has difficulty connecting to Airport Express or Time Capsule extended networks.
    Devices: iPad 2 3g, iPad 1 3g (iOS 4.3), iPhone 3gs (iOS 4.3), iPhone (iOS 3.2x), iMac, MacBook Pros, etc.
    Network Router: Simultaneous Dual-Band Airport Extreme (latest version) set up with 2.4, 5 ghz and Guest Networks (each with their own name).
    Network Extender: Airport Express (latest version) extending the 2.4 ghz network
    Network Extender 2: Time Capsule (original, single band) extending the 2.4 ghz network
    Longer Description: iPad 2 connected without an issue to the 5 ghz network and the 2.4 ghz network when it was in the same room as the Aiport Extreme. Didn't have any issues maintaining that connection.
    However, the iPad 2 doesn't work in any of the farther rooms and can't see the network. iPad 1 and iPhones have no issues (and typically show 1 or two bars). I believe they typically are connecting through the Airport Express (but it could be the Time Capsule).
    Given that the iPad 2 isn't even seeing the networks, I'm guessing it's a range issue, but hoping it's not.
    Anyone else seeing this? Any fixes?

    While it is possible that an Apple moderator (Apple host) could pass some information to an Apple development/support group, in practice this doesn't really seem to happen (at least often). I believe that the moderators are kept quite busy just administering the forums and keeping them under control (no spam, ads, abuse, etc.). I've never seen a post by an Apple host here or seen a technical correction to a post (and there is certainly a lot of incorrect information posted here).
    Unfortunately, a lot of new posters here seem to think that they are talking directly to Apple and post bug reports, feature suggestions, complaints, etc. These would be much better submitted via the Apple feedback vehicle at http://www.apple.com/feedback. These are not anonymous, are directed to the appropriate product and provide an email contact for Apple to get back to the submittor if more detail is required.

  • Help reqd on no ranges issue for SD

    Hi experts,
    After i have loaded my customer master datas(xd01) thru lsmw,im facing a problem in the current number ranges issue...i've uploaded of 1000 records of no range started from 10000 to 11000...but in XDN1(tcode)...it shows the current number range is 11004....(i.e., if i create a new record.it starts from 11004..)
    why it has been arised and how??????...how will it be resolved????
    from my side....once i cancelled the recording in the middle after its loaded of 4 records. then after i ran it successfully for the balance records by the sequence way....is this the reason or something else...
    waiting for ur solution/expert comments
    thanks and regards
    sankar

    Dear Sankarbabu,
    IF there's no setting for Date Check in OS54 - Engineering Change Management
    Control Data,then you can create a change number with past dates,and also to
    use the same one for changing BOM.
    Tell me one thing you are saying you want to use ECM.Was the earlier one
    created without BOM was created without an ECN?
    See already if you have created your BOM with an ECN,then remove the date
    check setting which I have mentioned in OS54.
    Now goto T code CC02 ,enter the Change number and give the valid from date as
    01.10.2007.
    After that check in CS03 whether this date(01.10.2007)is getting reflected or not.
    I'm sure this will solve your problem.
    Regards
    Mangal

  • E4200 range issues

    Hi,
    I can lots of posts here on the same subject of E4200 range issues but no fix.
    I have purchased a E4200 as a replacement to my eight year old WRT54G that went pop last week.  Since installing I have a noticeable degradation in range in comparison to the old unit.  I have tried everything I have read here, upgraded firmware, moved the unit to the middle of the house, and frankly my opinion on the unit so far is that it is no good to me if it can't do the basics that I require ie reach my kitchen or bathroom - a matter of <4m away.  Any ideas, suggestions would be appreciated before I send it back?
    Failing this any tips on a good router to replace this unit with, Linksys or non-Linksys?
    Mark Ferris

    Ferris, your problem may simply stem from being on the same channel as your neighbors.  I'm pasting a link to a program called "IInsider".  From this from your laptop (and it's safe, so hit yes for the UAC prompt if you're running Windows) and it will list all the wireless networks it detects, what channels they are using, and other information (which is unnecessary for purposes of this post).  It will also, of course, list your own network.  The graph in the lower portion of the screen will also indicate the strength of the detected networks.  If it's really congested, choose a channel away from the strongest networks.
    To change the channel on your E4200, go to the web interface, which is probably 192.168.1.1, click the "Wireless" tab.  The options you want are under "Basic Wireless Settings", which should be the page that appears after clicking the "Wireless" tab mentioned above.
    Don't choose 1 channel away; if possible, choose at least two channels away.  If you're lucky, perhaps ALL your neighbors are using their default channels, in which case, choose a channel as far away from them as possible.
    In case 192.168.1.1 is not the address of your router, in Windows, hit the Windows orb in the lower left-hand corner in Windows, which used to be called the "Start" button (and is still referred to as such).  Type "cmd" (without the quotes) <ENTER> to get a command prompt.  Type "ipconfig" (without the quotes) <ENTER>.  The top section, called "Ehternet Adapter Local Area Connection" has a listing called "Default Gateway Adapter" and an ip address for that listing.  THAT is the number to get to the web interface of your router.
    Hope this helps!
    Keith Schmidt

  • I have number range issue for fi posting.

    hi gurus,
    i have number range issue for fi posting (fb01,fb50).
    problem in updating table glpca due to duplication of record.
    INSERT GLPCA FROM TABLE T_GLPCA .
    With Regards,
    Shakthi Raj N.

    error msg  after generating document no and it is not getting updated in data base
    error msg
    "Express document "Update was terminated" received from author "ecciabap""
    Client.......   750
    User.....   ECCIABAP
    Transaction..   FB01
    Update key...   C83B07DE4DADF13CB4950017A4AB8015
    Generated....   02.03.2009, 20:37:23
    Completed....   02.03.2009, 20:37:23
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC

  • Material document number's range issue

    Dear Friends,
    We are  facing Material document number's range issue i.e. For year 2010, 5000202085 number  does not exist but higher number 5000202691, 5000203284 exists in system. 
    why the number 5000202085  is missing?
    I checked in the system for  relevant setting at tcode OMBT with year 9999 are okay.
    Can you pls help me in getting it resolved?
    Rgrds,
    Pradeep Jain

    I had the same question so I searched, that should always be the first step before posting a question.
    No points to me please as this answer is not from me!
    Search results show:
    Answer from: Mauro Bianchi  (SAP moderator)
    This issue with the internal number assignment occurs due to bufferingin the application server. Buffering increases the performance of theserver and documents don't loose their properties. Nevertheless, it may cause gaps in the internal number assignment and sometimes the numbers may not be chronologically assigned. As I stated before, this won't cause inconsistencies in the system and is usually not an inconvenient, unless you require sequential number assignment in your documents due
    to legal reasons. In this case, you'll have to disable buffering in the application server.
    in order to disable buffering Just access transaction SNRO and enter the Object type MATBELEGhttp:// Number Range for Material and Phys. Inventory Document In change mode, in the menu bar, please, follow the path:
    Edit -> Set-up buffering -> No buffering
    Check note 62077 which describes this issue in detail

  • Number Range issues with sales orders in CRM and R/3

    Hi,
    We are currently using CRM4.0. I have sales orders created in R/3 and they are replicated into CRM.  These sales orders can only be created in R/3.  I have given them a number range of 0000000001 and 0005899999, however we have reached the number 0005899999 so we increased the internal number range for the sales orders in R/3 to 0009499999, however we forgot to update the number range for the corresponding sales transaction type in CRM so we are getting the following error in CRM:
    +Enter a business transaction number between 0000000001 and 0005899999
    Message no. CRM_ORDERADM_H532
    Diagnosis
    You have attempted to enter a transaction number which is not allowed for the transaction type.
    Procedure
    Enter a number between  &1 and &2. Make sure that you issue a number which has not already been issued.+
    We have now updated the CRM number range to match that in R/3 to 0000000001 and 0009499999 but we are still getting the error above on our existing sales orders in CRM.  I thought that increasing this number range it will remove the error but when I open sales orders in CRM the error is still there. 
    Is there any way to remove this error message?  Any tips or advice would be much appreciated.
    Please note we've already checked the post Re: Number Range Problem and note 427289.
    Kind Regards
    JoJo

    Hi Sirisha,
    The solution depends on the exact issue you are facing.
    The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
    If this is the case, then you can follow the steps below:
    1. Find the Message ID and Message No for the error message
    2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
    Let me know if this is not the issue you are facing.
    Regards,
    Nelson

  • Vendor number range issue in BUCF transaction

    Hi,
    We are implementing the SRM 5.0 with Extended Classic scenario.  I my current SRM system is already connected with 3 SAP R/3 system and I am implementing and adding 4th SAP R/3 system.
    I am having an issue to replicating the vendor master from 4th R/3 system to our SRM system due to wrong number ranges in BUCF transaction code.
    Current Number Range in SRM systems are:-
    01     0010000000            0014999999     10003009
    AB     0001000000        0009999999                        X     --> (7 Digits)
    My new vendor master from 4th R/3 system is:-
    0080000001        to     0080029999    -->  (8 Digits)
    My new vendor master number range is overlapping with my internal number range 01.  As we know that we cannot reduce the lower range of 01 from 0010000000 to 0000000001.  Also I cannot increase the number AB higher value from 0009999999 to 0099999999.
    Can you any one please suggest me to correct the number range?
    Thanks,
    Senthil

    Hello Senthill,
    The vendor replication to external number ranges works as follows:-
    (1) Cross-Application Components SAP Business Partner > Business Partne
    > Basic Settings > Number Ranges and Groupings > Define Number Ranges
    Here you sould define an external number range which corresponds to
    the R/3 numbers. You may want to have more than one external range
    in order to replicate all vendors.
    (2) Cross-Application Components > SAP Business Partner > Business Part
    > Basic Settings > Number Ranges and Groupings > Define Groupings and
    Assign Number Ranges
    For each replication run, you can download the vendors which correspond
    to the external number range / grouping which is marked as 'standard
    external'.
    So, you will have to replicate your vendors separately for each number
    range:-
    Select the correct grouping each time by marking 'Ext.Std Grping'
    and then run BBPGETVD for the vendors to be assigned to this grouping.
    As standard, the customized settings for the number ranges
    would have to be changed for each run of BBPGETVD and BBP_VENDOR_SYNC.
    If you run the update or synchronization in combination with a
    BADI the intervals could be taken into account.
    The BADI is BBP_TRANSDATA_PREP
    The methods are:-
    Method: PREPARE_REPLICATION_DATA (intitial download)
    Method: PREPARE_UPDATE_DATA (update)
    Import data is stored in CT_LFA1 should be copied to an
    internal table. There the required intervals can be determined.
    This BADI is not assigned in the IMG but can be seen through SE18.
    I hope this information is helpful.
    Kind Regards,
    Edel.

  • Number range Issue for Business partners

    In our Feeder system (SAP ECC), the number ranges are over lapped for customers and vendors.
    For example  Customer master record : 100245 is for ABC customer and Vendor Master record: 100245 is for XYZ vendor.
    When these records were transferred from ECC to GTS,  both were transferred.  When searching for a business partner using external number 100245 in GTS  it pulls out two records. 
    First question:  Will this be an issue?
    Second Question: Is there any way, we can transfer Vendors and Customers which can use  different number ranges  in GTS?
    Please help.

    Hi,
    1. As soon as we consider only one feeder system overlapping number ranges is not  an issue. one external number can be assigned to two internal ones as business partners are having different roles. One as customer and one as vendor.
    2. It is not possible to be done with standard functionality as business partners have only one common number range. It would be possible to do a bit of a coding mainly renaming/renumbering within transfer user exit.
    Hope this answers your questions,
    BR,
    Gabriel.

  • BP creation number range issue in Ic webclient

    Dear Experts,
              I have been facing an issue in the creation of bp via ic webclient. there are number ranges 01, 02 and z1 made in the system, my requirement is to create bp coming in range z1. This is working fine while creating bps in sap using tcode BP.
    But while creating BP through ic webclient, the number range falls in 01. I need to change this to z1. can anyone guide me in this issue? In account identification profiles, what are all parameters need to be checked? Thanks in advance

    Hi,
    The number range for the business partner is based upon the "Grouping" that you select. In the T code: BP it might be working fine because Z1 must be set as the internal number assignment, which makes it the default grouping for the BPs created in the SAP GUI.
    In the Web UI - in the Account creation page ensure that you have the field "Grouping" displayed. The field is not avialable out-of-the-box on this page. If it is not available do the following: Hit the the config mode icon and -> Select General data viewset. Hit "Show avialable fields" and  under "HEADER" structure look for "Grouping" field. Add it to the list of displayed fields and save this change.
    Now in the General data view set you should be able to select the "Grouping" field and select the grouping that is assigned to your number range "Z1".
    Regards,
    Ramesh Nallabelli

  • Iphone 5 wifi not stable/wifi range issues

    I know there are loads of discussions but every discussion that I went through seemed without any solution.
    I have just bought a new iphone 5 considering that my iphone 4 broke down.  With the iphone 4 I have never had any wifi instability even on the latest ios 6.1.4
    I noticed that when I'm near my home router wifi stability is better.  My home router  has the 5ghz signal too.  When I'm near another 2.4ghz router, and with near I mean 1.5 metres the wifi signal keeps changing from 2 to 3.  I noticed that it seems to have a shorter range as well.
    Is there something that can be done?  Now I'm feeling more of an idiot.  I should have waited for the new iphone but couldn't wait and I didn't know that the internet is filled to the brim with iphone 5 wifi issues.
    PLEASE HELP
    PS  I did a hard reset, removed a plastic cover but none of this helped.

    Hey MGV1,
    Thanks for the question and detailed information. There are definitely a lot of factors that come into play when troubleshooting Wi-Fi signal strength, one of which is interference:
    Wi-Fi and Bluetooth: Potential sources of wireless interference
    http://support.apple.com/kb/HT1365
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    All in all, there are a bunch of factors that can impact network performance and range (2.4GHz vs. 5GHz, standards like 802.11n vs. 802.11ac). It may be best to consult with your ISP or network administrator, or look into extending the range of your network:
    Wi-Fi base stations: Extending the range of your wireless network by adding additional Wi-Fi base stations
    http://support.apple.com/kb/HT4145
    Thanks,
    Matt M.

  • Number range issue

    Hi,
    I am trying to create idoc wherein I am getting error :
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
    I checked the details and error is at:
    INSERT EDID4 FROM TABLE LIST_CONTAINER_CREATE
    I checked the number range for object EDIDOC and it has NRLEVEL(current no) as <b>1700</b> which is same as displayed in t-code SNRO for the object EDIDOC.
    But when I debug the issue, the next document number generated in FM 'NUMBER_GET_NEXT' is <b>1500</b>.
    How's it possible?
    In debug mode, I found below code which gets the next no.
    Include LSNR3F01.
    CALL 'ThNoGet' ID 'BNRIV'    FIELD BNRIV
                   ID 'NO'       FIELD G_NOIVBUFFER
                   ID 'QUAN'     FIELD P_QUANTITY
                   ID 'PERCENT'  FIELD TNRO-PERCENTAGE
                   ID 'NONRSWAP' FIELD TNRO-NONRSWAP.
    Can somebody clarify this and help me how to solve this short dump issue?
    Also when I check EDID4 table, it shows document nos like 1800?
    How to solve this?
    Regards,
    Yogita

    HI Yogita,
    Could you post the solution for your problem?
    Regards,
    Siva.

  • Internal Number range:Issue

    Hi,
    I am using the internal number range for the employee number creation.
    Scenario:
    Suppose I have created 13 employee in the organization so far.By mistake I created the wrong employee record(Employee number 00000013).
    Now when I delete any existing employee (say "John" with the employee number as 00000013) using the Tcode PU00, I face the following issue:
    I am able to delete the record (all the associated infotypes) successfully.
    Now when I try to re-create the employee using tcode PA40, it always creates the employee wtih the next number (00000014) and not with 00000013.
    I want the new correct employee to have the employee number as 00000013.
    Can you please advise?
    Regards
    Manish

    Go to Tcode PA04
    Click the Status  Delete 0000014  Current Number make it as 000013  and hire

  • Purchase returns no range issue

    Dear All,
    Could you please tell me the process with tr.code of purchase returns as per i know that first credit memo, Return Delivery an J1is .
    here one problem is their ie., when ever there is a return (purchase return) that document nos is appearing on sales return . can you please tell me how to see that no ranges of purchase return document is there any tr.code. if so pls tell me that procedure.
    Urgent issue please.
    Thanks & Regards,
    Satish Kumar.M

    Hi,
    Gurus.
    please give me reply i want to check that document of purchase return  which is appearing on sales return .. and what i have to do to change the document that should appear in purchase return only..
    Thanks & Regards,
    Satish Kumar.M

  • Cin Number range issue.(capturing Excise Invoice)

    Hi guys
    I created sales cycle and after i am creating excise invoice thru tcode-j1iin
    When i enter excise group and series group and after saving it.. it is showing error message that internal number range for J_1IINTNUM
    I have maintained number range for this in tcode-j1i9..
    and i assigned this number range to billing typejexexcise invoice.
    even though error come.
    Help in this issue
    Here the error message:
    Error in allocating internal document number Interval not found Number object J_1IINTNUM

    Hi!
    Kindly check the number range maintained is as Follows ??
    No.           Year         From Number           To Number
    01     2008     0001000000     0001099999
    CIN only takes No 01, it does not recognises any other no.
    Moreover the number range should never be maintained as External Numberr range.
    Check the same and let us have the feedback.
    Regards,
    Dnyandeo H. Ainarkar

Maybe you are looking for

  • How do I Use A Limited Account...

    Patchmix & the drivers don't load, in either a Limited or the Guest Account so far it only works in the Administrator account, is there anyway to get it to work?

  • PPPD in Solaris 8

    Hi, Anyone knows what I have to do in Solaris 8 for using pppd 4.0? I have added the packege, but when I tried to run pppd, I got "kernel lacks ppp support"........... Thanks, BR. //Steven

  • WF for PO change

    Hi ,      We are into Ecc6.0.Our requirment is when a PO is created a mail should be triggered to the manager for approval.Again if the same PO is changed then a mail should be triggered to the same manager with some extra info.So i assigned a event

  • Buffer pool keep and multiple db block sizes

    I have a tablespace with 8k block size (database default) and a tablespace with 16k block size. I have db_cache_size and db_16k_cache_size set (obviously). Also i have buffer cache keep set in the database. Question: If a table is placed in a tablesp

  • It won't charge...

    I plug it in to the charger and the batter icon shows it as charging but when I unplug the charger the battery is red and then it turns itself off claiming there's no battery even though it's been charging all day... and when I plug it into the compu