Problem in creating No. Range Object

HI All,
I have one ztable ZDESIGN having fields
NFDESIGN
DEPT
MACH_TYPE
MATNR
CODE
CUST_NM
MACH_NO
MAKTX
NETWORK_NO
QTY
MOD_CODE
STATUS
DVER
IMPL
PART_ST
RELBY
RELDT
i want to store the number in code field on save. but i want to add many records at one time.
while creating number range object(SNRO) , foll error is coming
Table ZDESIGN may have only the no.range el.field and the subobject as a key
how create number range object.
Thanks

Hi Kushi,
Number ranges are not meant for initialization.
you need to use subobjects which allows you to create number range values for example based on the month.
you need not to increase the number every time.
the FM gives you increased number every time.
as i said earlier create entries in SCARR table. carrid values like 01 02 03 04 -- 10 11 12 ETC.
12 sub objects for 12 months.
then go to SNRO tcode and create the values for each month.
in the program
data date type sy-datum.
month(2)  type c.
month = sy-datum+3(2) will give you the current month.
pass this to the FM NUMBER_GET_NEXT
along with other parameters.
hope this is clear to you.
regards
Ramchander Rao.K

Similar Messages

  • Problem in creating a callable object of type Business Logic

    Hi SDN,
    I am trying to create a callable object of type Business Logic in CE.
    When I give all information and click Next, I get this error message.
    Error while loading configuration dialog: Failed to create delegate for component com.sap.caf.eu.gp.ui.co.CExpConfig. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
    Can anybody help me out with this problem.
    Regards,
    Sumangala

    Hi.
    I'm having the same problem as Senthil in NW2004s SP15 with my application service and methods not showing up in the Callable Object wizard for Composite Application Services after I choose the Endpoint.  The only application name that shows up in the wizard is caf.tc, and the only service names that show up for it are LDDataAccessor, Metadata, and PropPermissionService.
    My IDE is on one machine and the application server I deploy to is located on a different machine.  My endpoint to the remote application server looks to be correctly configured.  The Composite Application Service seems to be deployed properly as I'm able to see it and test that it works in the Web Services Navigator <http://remotehost:50000/wsnavigator/>
    My deployed application service is a remote enabled service and is also web services enabled as well.
    I'm not sure if this is relevant, but I noticed that the generated Java code does not create any remote EJB interfaces (only home and local interfaces were generated).
    Something else I noticed is that when I proceed to the External Service Configuration -> Business Entities screen <http://remotehost:50000/webdynpro/dispatcher/sap.com/cafUIconfiguration>, I only see three business entities displayed, and the following error message is displayed: "Corrupt metadata has been detected. This may prevent some objects from being displayed. Check the server log for more details."  I was unable to find anything in the instance log files.  Is the error message indicative of the problem?
    I am developing locally without a NetWeaver Development Infrastructure (NWDI) in place.
    I'm wondering if the credentials specified in the endpoint require any special roles or privileges.
    Senthil, do any of these additional descriptions apply to you as well?
    Edited by: Ric Leeds on Jun 20, 2008 4:37 PM

  • VBA: problems in creating and storing objects in array with loop

    I created a Class named Issue. Then I created a function that creates Issue objects, set their properties with data from a worksheet and store them into a variant array through a loop. the problem is that everytime that the loops runs it overwrites the properties
    of the same object instead of creating a new object, setting its properties. Would anyone know how to solve that? The loop code goes below:
     'Stores all the Issues objects in an Array
    Function StoreAllIssues() As Variant
    Dim IssuesSheet As Worksheet
    Set IssuesSheet = Sheet1
    Dim intLastRow As Integer
    intLastRow = Uteis_Jorge.LastRowFunc(IssuesSheet, 1)
    Dim IssuesArray() As New Issue: ReDim IssuesArray(0)
    For i = 2 To intLastRow
        Dim MyIssue As New Issue
        MyIssue.IssueName = IssuesSheet.Cells(i, 1)
        MyIssue.Suggestion = IssuesSheet.Cells(i, 2)
        MyIssue.Priority = IssuesSheet.Cells(i, 3)
        MyIssue.Resolution = IssuesSheet.Cells(i, 4)
        MyIssue.JobStatus = IssuesSheet.Cells(i, 5)
        MyIssue.AssignedTo = IssuesSheet.Cells(i, 6)
        Set IssuesArray(i - 2) = MyIssue
        ReDim Preserve IssuesArray(i - 1)
    Next i
    ReDim Preserve IssuesArray(i - 3)
    StoreAllIssues = IssuesArray
    End Function
    Jorge Barbi Martins ([email protected])

    Hi Jorge,
    You can set the MyIssue to Nothing every time you don't use the MyIssue object, in this way, the array will properly store the new MyIssue object:
    For i = 2 To intLastRow
    Dim MyIssue As New Issue
    MyIssue.IssueName=IssuesSheet.Cells(i,1)
    Set IssuesArray(i - 2) = MyIssue
    ReDim Preserve IssuesArray(i - 1)
    Set MyIssue = Nothing
    Next i
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem of create an Image object ?

    Dear all :
    the following code does not work when i use it in the application rather than in the applet :
    Image img = createImage(new MemoryImageSource(org_width,org_height,palette,0,org_width));
    where org_width , org_height is an int , while palette is an int[] that contain the pixels data in an application .
    So i then tried to create the ImageProducer object :
    ImageProducer ip = new MemoryImageSource(org_width,org_height,palette,0,org_width);
    But how can i create an Image object using the ImageProducer in an application ? Or any ways to create an Image object using the int [] pixel data in an application ?

    Hi
    I don't know if this is what your looking for, but I had the same problem, and it helped me, so why not try looking at it
    http://forum.java.sun.com/thread.jsp?forum=31&thread=167305
    Aagaard

  • Problem in creating time series objects for a planning area

    Hi Friends,
    I am working on SCM 4.0 APO. I am trying to create the time  series objects for a  'Z'planning area which i have created. This Planning area is linked to a planning object structure which contains only three characteristics 9amatnr,9alocno & zplnpart. But the creation of time series objects is taking a long time. the screen just remains the same.
    Can anybody encountered such a problem any time?
    request you all to put some light as what could be wrong or causing the delay in creating them???
    All helpfull answers will be suitably rewarded.
    Thanks
    mvd

    Hi mv d,
    I have a couple of questions:
    1) how many Key Figures does your planning area have?
    2) what is the length of your time series horizon?
    3) how many characteristic combinations are currently in the Planning Object Structure? and how many newly character
    I am asking because these aspects might affect the running time of the time series creation. Have you also tried creating the time series in the background? How long did it take there?

  • Problems With Creating Group of Objects from a Collection

    Hi, please kindly help.
    I have a Collection. Its name is "activities". It is a collection of the Activity object with "color" as one of the attributes. I am writing a method and takes "activities" as a parameter (see below). The method is supposed to group "activities" by "color" and return a Collection called "activitiesGroups". And I have created an "activitiesGroup" (note: singular not plural) class with the getters and setters of all its attributes.
    I first sorted the "activities" by color. So far so good. Thereafter, I am iterating through this sorted list. If activity.getColor().trim() is tested different, I know that a new group, i.e., activitiesGroup, should be created and I should code activitiesGroups.add( activitiesGroup );Problems are:
    1. If I am at the first record of the sorted collection while iterating, I do not what to add a new group to the returned List activitiesGroups. I want to greate a new group only.
    Because "colorString" is initialized as a blank, when I code activitiesGroups.add( activitiesGroup );, I depend on that I am not at the first record of the sorted collection by testing if colorString.length(); is not a zero. I do not think it is the correct way to do it.
    What is the proper way of knowing I am at the first record of the sorted collection while iterating?
    2. I have to sum up two of the attributes of the ActivitiesGroup object: increaseToValue and decreaseToValue. While iterating, I repeat for each record within a group:
    aGroup.setIncreaseToValue( increase );
    aGroup.setDecreaseToValue( decrease ); How do I avoid the repetition?
         private Comparator colorComparator;
         private List activitiesGroups;
         private ActivitiesGroup aGroup;
         private String colorString = "";
         private String nextColorString = "";
         private BigDecimal increase;
         private BigDecimal decrease;               
         public List groupingByColor( List activities ) {
              if ( activities == null) {
                   return new ArrayList(0);
              if ( !activities.isEmpty() ) {
                   Collections.sort( activities, colorComparator);  // It works.
                   activitiesGroups = new ArrayList();
                   Iterator it = activities.iterator();
                   while ( it.hasNext() ) {
                        Activity activity = ( Activity )it.next();
                        nextColorString = activity.getColor().trim();                    
                        if ( !nextColorString.equalsIgnoreCase( colorString.trim() ) ) {
                             int length = colorString.length();
                             if ( length != 0 ) { activitiesGroups.add( aGroup ); } // Problem # 1
                             aGroup = new ActivitiesGroup();
                                                              aGroup.setColor( activity.getColor() );
                             increase = increase.add( activity.getIncreaseToValue() );
                             decrease = decrease.add( activity.getDecreaseToValue() );
                             aGroup.setIncreaseToValue( increase ); // Problem #2: repeated for every record in a group
                             aGroup.setDecreaseToValue( decrease ); // Problem #2: repeated for every record in a group
                        } else {
                            increase = increase.add( activity.getIncreaseToValue() );
                            decrease = decrease.add( activity.getDecreaseToValue() );
                            aGroup.setIncreaseToValue( increase ); // Problem #2: repeated for every record in a group
                            aGroup.setDecreaseToValue( decrease );      // Problem #2: repeated for every record in a group                         
                                                                    colorString = nextColorString;
              return activitiesGroups;
         }

    I first sorted the "activities" by color. So far so good. Thereafter, I am iterating through this sorted list. If activity.getColor().trim() is So in fact you are not dealing with an arbitrary Collection (as you stated in the first place), you are dealing with a List.
    You should know that there is a way to do this just with an iterator on an arbitrary collection - without needing to sort your list, and do it in O(n) time.

  • Problem with creating a new object

    It's my stupid simple code:
    class Readers {
         int i, a;
    public     Readers(int i, int a){
    public static void main(String[] args) {
    Readers[] d = new Readers[5];
    d[4] = new Readers(2,2);
    System.out.println(+d[4].i);
    Why do I get the answer 0, instead of 2?

    See the comments in your code:
    class Readers {
        int i, a; // the global variables 'i' and 'a' are both initialized with zero
        public Readers(int i, int a){
            // the local values 'i' and 'a' are lost: you don't do anything with them!
        public static void main(String[] args) {
            Readers[] d = new Readers[5];
            d[4] = new Readers(2,2);
            System.out.println(d[4].i);
    } // note that you don't need semi-colons after a '}'

  • Problems to create new object!

    Hello,
    I have a problem to create a new object in OracleLite 9i.
    I'm using okapi to do this, but the value of the numeric fields isn't the expected.
    In msql the field is number(10,0). I'm trying to insert a ok4B.
    Anybody can help me?

    I found the problem.
    It occurs when I use a number(x,y), where x &gt; 9 or Y &gt; 0.
    I made a workaround to solve this problem. This is simple, I just convert the field number to char in the Snapshot of the Wtgpack

  • Number range object missing NRIV and cant activate IOBJ during import

    Hi,
      We have a number object RS_OBJNUMG in BW used for many infoobjects.  However object doesnt exists in table NRIV and import for infoobjects are failing with error:
    Interval 01 of number range RS_OBJNUMG is missing
    message R7453
    I thought that as when infoobjects are created they get automatically assigned to number range....
    Can somebody help?
    thanks

    hi,
    check if the similar problem
    Error calling number range object 0MATERIAL for dimension D4 ( )
    try transaction rsrv ? >> all elementry tests >> master data >> compare number range and maximum sid >> choose the infoobjects>> execute. press button 'correct error' if any error exists.
    also try >> all combined tests >> master data >> check master data for characteristics.
    hope this helps

  • How to create Number Range

    Hi All Sap Experts
    Please tell me How to create Number Range
    I tried with the Transaction Code " SNRO "
    But Im getting The following error
    Dialog box title : " Buffering Methods ".
    Message in the Dialog box is :
       -Numbers may be lost!
       -Do not use for Financial accounting Documents!!
    ?. Do you want set this Buffering method?
    And another error is :
    Dialog box title : " Transport number range intervals "
    Message in the Dialog box is :
         The number range intervals are not included in automatic customizing changes.
         Transport all changes made within range interval maintenance must be  
         triggered manually.
         In the initial screen for range interval maintenance function
    <b>      Interval</b>              -->      <b>Transport</b>
         Please note the information that you get when transporting intervals.
    So please tell me the solution for this error.
    Thank you
    Basu
    Another is

    hi,
    Create number range object using OYSN.
    Then call the following function modules.
    FORM get_next_id CHANGING p_discrep.
      DATA: last_id LIKE zrecaudit-discrep,
            quant   LIKE inri-quantity,    "dummy
            code    LIKE inri-returncode.  "returncode
      CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
           EXPORTING
                object           = 'ZRECAUDIT'
           EXCEPTIONS
                foreign_lock     = 1
                object_not_found = 2
                system_failure   = 3
                OTHERS           = 4.
      IF sy-subrc = 0.
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
                  nr_range_nr             = '01'
                  object                  = 'ZRECAUDIT'
             IMPORTING
                  number                  = last_id
                  quantity                = quant
                  returncode              = code
             EXCEPTIONS
                  interval_not_found      = 1
                  number_range_not_intern = 2
                  object_not_found        = 3
                  quantity_is_0           = 4
                  quantity_is_not_1       = 5
                  interval_overflow       = 6
                  buffer_overflow         = 7
                  OTHERS                  = 8.
        CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
             EXPORTING
                  object           = 'ZRECAUDIT'
             EXCEPTIONS
                  object_not_found = 1
                  OTHERS           = 2.
      ENDIF.
    ENDFORM.                    " get_next_id
    <u><i><b>refer the links</b></i></u>
    http://www.sap-img.com/ge003.htm
    http://www.sap-basis-abap.com/sapmm009.htm
    http://www.erpgenie.com/abap/code/abap33.htm
    http://www.kabai.com/abaps/z26.htm
    Rgds
    Anversha

  • Interval 01 was not created for number range object HRTEM_REFN

    Dear expert!
    Now, I'm getting some issues in Training and event management module.
    - The first, I created business event
    - Second, I process to book for business event by tcode: PSV1 --> book --> book/payment info --> activity allocation.
    But when I was booking, the system displayed error: "Interval 01 was not created for number range object HRTEM_REFN"
    Help me, please!
    Best regards, Huy!

    Go to the customization as below
    Training and event mgt>Basic settings>Number range maintanence>Define number ranges for External operation
    and maintain number ranges as 01 Internal
    Hope ur problem will solve
    with regards
    partha

  • SNRO - Creation of Number range object problem

    Hi Experts,
    i wanted to create a number range object thru SNRO.
    The creation was successful in DEV system.
    when i tried to create the same number range object in QA server, i am getting the following error
    "Changes to Repository or cross-client Customizing are not permitted - Choose 'Display object' or 'Cancel'."
    this is a Znumber range used to generate sequential numbers using FM NUMBER_GET_NEXT
    What could be the problem. how to over come this?
    Is it the missing authorizations? if so what could be the authorization object (SU53 shows nothing)
    Appreciate any help in this regard.
    Thanks
    Simha

    Hi All,
    I am confused with the conflicting answers for my problem. But anyways i could transport the number range object and could create a number range interval in QAS.
    Thanks a lot for all your valuable inputs.
    But i am still not out of this so called misconception - Are number range objects to be transported to QA or to be created afresh in QA/PRD?
    Earlier some one told to be created but now i see they can be transported.
    I was not ready to edit the options in SCC4 for the client to enable object creation.
    Thanks again,
    Simha

  • Problem of number range object

    hi experts,
       the user use PA40 to record events and create an employee, the user wants the system to warn if the total number of employee beyond limits.
      so i found an exit 'PBAS0001' and implements it, if the total number beyonds limits, and popup to warn user and exit. But the number of employee is got from the number range object. when the program runs to the PBAS0001, the number range object has already add one, and next time when employee created, the employee number wouldn't be continuous.
      if the employee number must be continuous, so how to solve this problem? or is there other exit fm runs before the number range object adds? i found an exit named HRBAS00_STRUAUTH runs befor the range object but the necessary parameter is not all ready.
      hunger for your advices, and thanks a lot.

    hi,
    please describe in a more detailed way ....
    when you start the transaction the numer is for examle 2000 you save the employee. And now you start your transaction again which number is shown now ?
    regards

  • Problems after creating report object

    I am using Crystal Reports Server XI R2 SP4. I created a report object from a simple Crystal report successfully. Even the thumbnail showed the report data even though the report does not save data.
    However when I view the report object in InfoView or schedule it there is no report data even though Crystal Reports Viewer displays data when run against the same DB with the same parameters.
    I get the same results with any report object I create in CMC but I was to able to successfully create and run report objects the first few(5) times after which I have been getting this result.
    Is there any kind of report or job limit?
    I made max records to retrieve unlimited and bumped # of jobs in every server from 5 to 50 and the age of oldest report to retrieve from cache to 0 mins.
    Please help!

    I'm not sure this is a JAVA problem, but if you're getting an ACCESS_VIOLATION exception from the JVM a method that provides more detailed information is to check for exceptions after every JAVA function called from the native code with (*jenv)->ExceptionCheck(jenv) and if true get information with (*jenv)->ExceptionDescribe(jenv) Making mistakes in native code constructing JAVA objects has been my most frequent cause of ACCESS_VIOLATION exceptions. I hope this helps.

  • Problem with create universe on Business Objects XI 3.1 base on SAP Query

    Hello,
    I have a problem with create universe on Business Objects XI 3.1 base on SAP Query.
    The problem is hierarchy. Massage on Busines Objects is :
       OWBS_ELEMT__ISTKOSZT(cube ICPC01/BEX_ICOC01):Exception condition  "HIERARCHY NOT FOUND" raised.(WIS 10901) 
    Query in BEX run OK.
    Best regards.
    Ela.

    Hello,
    Thanks for response.
    When I run BEX QUERY, all works OK.
    All hierarchies was created and activated  on system BW.
    This situation appears after upgrade BW to SAP NetWeaver 7.3.
    Before upgrade I created universe without any problems.
    Regards Ela

Maybe you are looking for