Number Object Range n BSP

Halo Gurus,
Internally I need to generate a random sequence of numbers in BSP and store in the ZTable when I create a new entry.
Hope I am clear about this.
Any Suggestions would be appreciated.
Regards
Prakash

The number range is same like ABAP..
HEre is the sample code:
call function 'NUMBER_RANGE_ENQUEUE'
         exporting
               object              = 'ZOWNNO'   "Create with SNUM
         exceptions
               foreign_lock        = 1
               object_not_found    = 2
               system_failure      = 3
               others              = 4.
  if sy-subrc ne 0.
*   message e086 with 'Lock error' sy-subrc.
  endif.
  call function 'NUMBER_GET_NEXT'
         exporting
               nr_range_nr         = wnorange
               object              = 'ZOWNNO'
               subobject           = wsubobj
         importing
               number                  = wdocno  "Number generated by SAP
         exceptions
               interval_not_found      = 1
               number_range_not_intern = 2
               object_not_found        = 3
               quantity_is_0           = 4
               quantity_is_not_1       = 5
               internal_overflow       = 6
               others                  = 7.
  if sy-subrc ne 0.
*   message e086 with 'Number Range' sy-subrc.
  endif.
  call function 'NUMBER_RANGE_DEQUEUE'
    exporting
      object                 = 'ZOWNNO'.
  if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
<i>*Reward each useful answer</i>
Raja T

Similar Messages

  • Object range number not exist in production

    Hi guys,
    I have a problem where I had created an object range number in development server. The object works fine in development server. However , when I transported the object to the production server, the object did not exist eventhough the transport process was successful. Can anybody kindly explain to me why does this happen? TQ.

    Hi eric,
    Actually when I look again at the transport log for the particular object, I found that it actually had an error like below. Are you familiar with this error?. Anyway thanks again.
    Screen 1:
    =======
    DEVK913659    ZFICHKPOSN-Number Range Objects for Rece 02.01.2008 16:42
    --   DEV DBKL Development
    ADO export                02.01.2008 16:42:36 Ended OK               (0)
    Export                    02.01.2008 16:42:44 Ended OK               (0)
      ---   PRD DBKL Production
    Import                    02.01.2008 17:03:54 Ended OK               (0)
    ADO import                02.01.2008 17:03:58 Cancelled             (12)
    ==============================================
    Later, when I click at 'Cancelled'..
    Screen 2:
    =======
    Log file:                /usr/sap/trans/log/DEVD913659.PRD
    Import application-defined objects
    Transport request___: DEVK913659
    System______________: PRD
    tp path             : tp
    Version and Release: 252.08.36 40B
    Import application-defined objects
    End date and time___: 20080102170358
    Ended with return code:  ===> 12 <===

  • Error in allocating Despatch number Interval not found Number object J_1IIN

    Dear All,
    I am facing a problem while doing an excise invoice. System is throwing an error saying that " Error in allocating Despatch number Interval not found Number object J_1IINTPR2.
    Can somebody help me with a solution ?
    Rgds,
    Indrajit Dey

    Dear Indrajit
    Go to SNUM, input object J_1IINTPR2 and click on Number Ranges.  Enter [Excise Group]  and click on Intervals (with pencil icon).  Maintain the number range and save.  Now try the process once again.
    thanks
    G. Lakshmipathi

  • Error in allocating Despatch serial number Interval not found Number object

    Hi All,
    While saving the Excise Invoice(created w.r.to Invoice) in J1IIN system is throwing the error:
    "Error in allocating Despatch serial number Interval not found Number object J_1IINTPR2
    Message no. 8I336"
    The Excise Group(say 99) was created.
    But the same is not reflecting in the drop down list of SNUM for maintaining the No.Range in the Object  J_1IINTPR2.
    Do the needful to resolve this issue.
    Needless to say helpful answers will be rewarded.
    Regards,
    Raj Kumar Reddy.

    Dear Raj,
    Go to Excise group details here you check these settings
    IMG>Logistics general>Tax on Goods movements>India>Basic settings-->Maintain Excise groups
    Have you check all these check boxes
    1.Excise Inv during billing
    2.Create and Post Invsingle step                    
    3,Depot Excise invoice
    4.EI capture
    5.Diuty Different at GR
    6.EI create/RG23D selection
    7.Update RG1 at MIGO
    I hope this will help you,
    Regards,
    Murali.

  • Error in allocating RG23D document number Interval not found Number object

    Dear
    Expert
    Error in allocating RG23D document number Interval not found Number object J_1IRG23D
    I tried the solution given in the forum but its not working,
    Pls help me out.
    Thanks and Regards
    Deepankar

    Hi,
    As a know that this is a problem of number range and I mentioned the same(SNUM> given the object and maintain the number range of this fiscal year but it didnt work also searched in the forum but didnt got any other solution so posted the issue.
    hope now its clear.
    Thanks and regards
    Deepankar

  • Getting error : " not found Number object J_1IDEPINV "

    Hi SAP Expert,
    When I am posting Excise Invoice at Depot using J1iJ, i am getting the error : " Error in allocating Depot Invoice number Interval not found Number object J_1IDEPINV " when trying to Save.
    Already checked that I have maintained the number range for object J_1IDEPINV in J1i9 for my series group. But I am still getting the same error. Any clue ?

    You would have maintained the number range for the required series group but ensure that it is maintained for the current year.
    thanks
    G. Lakshmipathi

  • Interval not found number object J_1IINTNUM.

    <b>Dear friends,
    During creation of excise invoice(t code J1IIN) i found
    Error in allocating int. doc number
    Interval not found number object J_1IINTNUM.
    PLEASE HELP
    Ranjan</b>

    Dear Ranjan,
    Go to transaction SNRO enter J_1IINTNUM -> click on Number ranges pushbutton option in the applicaiton toolbar -> Click on Change Interval pushbutton -> Maintain Number Range Interval and save.
    Regards,
    Naveen.

  • Despatch serial number Interval not found Number object J_1IINTPR2

    Hi all,
    I am facing one error when creating excise invoice.
    system shows the following error.
    Error in allocating Despatch serial number Interval not found Number object J_1IINTPR2
    For this, i tried to maintain number range in j1i9 object J_1IINTPR2.
    Here system is not showing excise group number.
    But for one company code it shows and another company code excise group code is not displayed.
    Can anyone tell me what will be the problem?
    Thanks in advance,
    Babs

    Thanks for your reply..........
    excise group 10 belongs to first plant
    excise group 20 belongs to second plant.
    settings are maintained same for the two excise group.
    excise group 10 is displayed in  J1I9 (Number object J_1IINTPR2).
    But excise group 20 is not displayed over there. I want to maintain number range for excise group 20.
    Thanks in advance
    Babs

  • Number Object Format

    I have a Number object that needs to be formatted to a certain precision before it is returned. The precision could be changed in the future so I need to do it dynamically. I was going to use doubleValue() to get make the Number type double, but how to I incorporate the precision into this?
    try {
         Number num = NumberFormat.getInstance().parse(value);
         int precision = dataDef.getPrecision();
         if ( precision > 0 ) {
         } else {
              vobj = num;
    } catch (ParseException ex) {
         throw new UnsupportedValueException("Not a valid number: '"
         + value + "'");
    }Edited by: prem1ers on Dec 17, 2009 6:23 PM
    Edited by: prem1ers on Dec 17, 2009 6:23 PM

    paulcw wrote:
    jverd wrote:
    paulcw wrote:
    That's still almost certainly not right.It works as long as there are at least precision digits. He hasn't defined what the behavior should be if there are fewer digits, but with that code, the result is that the string is unchanged.In my experience, trying to edit numbers with regexps rather than parsing them and formatting them, is fragile. Sooner or later there's going to be some kind of surprise, due to an input that's outside the range of currently assumed inputs. Parsing/formatting (with standard tools that are usually more formally correct and debugged to a large degree) is usually less fragile in my experience, and furthermore if some new bad input does break them, then a parse exception will fail faster (OP: failing fast is a good thing) than a regexp failing to substitute.I agree with this in general, but in this particluar case, it's kind of a 50/50 thing, based on what limited knowledge I have of the issue.
    It seems we have a string with, let's assume, at least two digits, and we want to replace it with a string with a decimal point before the last two digits. Even if it may be interpreted as a number at some point, if, in our context, it's always just a string, then parsing to number, doing the math, and formatting back to string seems kind of roundabout.
    On the other hand, if the next thing we do after inserting the DP is to turn around and parse the string and use it as a number, then, yeah, just putting a dot in the string seems kind of pointless.
    And, frankly, if it is always only a string in our context, then what's the point of the point, if you get my point? I mean, if we're not turning the string "180000" into the double of BigD 1800.00, then why bother? Shouldn't it be the responsibility of the part that uses it as a number to know what format it's in and adjust accordingly?

  • Number objects - KANK

    I have got transported all the settings into Quality Client for testing.  But in the Quality, while looking for maintaining the number range in my controlling area, I do not find any number range objects for assigning to different groups.  In the Devlopment client, these groups were present.  Why is this and how can I get the number objects ?

    Hi,
    Normally, you do not transport number ranges (they are not included automatically in change request). You can force them to the transport by going to KANK, Menu - Interval - Transport. However, do this only if the status for the intervals of source system is the same that you want to have in target system. Otherwise, create the intervals manually in target system.
    Regards,
    Eli

  • 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

  • Transport Request Number - Object Status is LOCKED. What does it mean?

    Hi Friends,
    When checking in SE09 transaction my TR number "Object Status" is showing as LOCKED.
    What does it mean
    Whether I can transport objects under this TR Number to Quality System?
    Will it give any problem while transporting?
    Regards,
    Viji.

    The main reason to lock the request is to avoid any duplications.
    You can also unlock the request if you want using SE03 transaction.
    Goto SE03 transaction,select unlock objects and execute.give your
    request number and execute.it will be unlocked.

  • MIME object download by BSP  with 'Save as' box

    hello ,
      i am trying to download a Excel file which is in MIME objects in my BSP application. From portal i want to download this with 'Save as' box . Currently excel file is opening and i have to save it manually on local drive.
       can u suggest me any solution to open 'Save as ' dialogue box to download the MIME object on my local hard-disk drive by using BSP application.
    Regards

    Hi there,
    I'm getting the same issue with the following code:
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header("Content-Type: application/force-download");
    header("Content-Disposition: attachment; filename=\"$newFileName\";");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ". filesize($fileName) );
    echo $fileData;
    The only issue seems to be with the filename being set to that of the php script. The contents of the file are correct. Have you had any luck with this issue?
    Cheers,
    Jeremy

  • "Expected a number object" error/warning.

    Hey Guys, I am using LiveCycle 8 and Adobe Pro 8.
    I have an 8 page form that I started in Pro 8, and now I have
    tweaked in LiveCycle.
    Everything is "almost perfect" for what I want.
    Only problem is now I get an error that says,
    Expected a number object
    Expected a number object
    This gives me two errors. Thus, I can't save the document either.
    All I need to do to finish is resolve this, and then
    Re-Do the Tab Order for it to be complete.
    The thing is, it doesn't tell me WHERE
    the error is, or otherwise I'd fix it.
    I've already gone through the 500+ fields,
    and can't figure it out.
    It's not a Javascript error either.
    Any help on this would be great help.
    Thanks.

    JavaScript is very lose in type checking, that is, JS does not verify or keep the type the same for an item and JS will change the type of an item form number to string if it looks like that should be done. You can use the "Number(cSting)" constrictor to force an item to a number in JS and might be able to format a number with the "Format(s1, s2)" function in FormCalc.

  • Can we code to import MIME object(Image)  on bsp page

    hi
    can we code to import MIME object(Image)  on bsp page
    i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
    thanks

    Hi,
    save the image into ur system.
    Right click on object name->create->MIME object->import.
    Then select hte image which u want to import and save it.
    Then in the layout write code as
    <html>
    <img height="130" src="image.bmp ">
    </html>
    Regards,
    jaya

Maybe you are looking for

  • Excise Invoice being created before standard Invoice is created

    Hi I create a sales order. With reference to the sales order I create a delivery. With reference to the delivery, in VF02, if I try to create an Invoice, I get the following message - Excise Invoice created for the Invoice 597500041. I need the stand

  • Regular Expressions for textfield syntax checking while typing?

    Hi all, my application has a textfield for entering customer numbers. The customer numbers have a certain syntax which I want to have checked while the user types. According to our company's style guide, the textfield's background color has to be - R

  • Srm-SUS is a componnent or server?

    hai pals,         i wld like to know wheather SUS is the componenet of an SRM or else it is sepaerate server.     can anybody help me out in this? with cheers rajesh.

  • Best Way to Hook up 5.1 surround sound card

    Hey Guys - What is the best way to hook up the X-Fi surround 5. external sound card... Toslink or 6 channel dirrect (the 3 cables on both ends) It seems when I do 6 channel direct, the volume doesnt go up as high... but when I use toslink the volume

  • Accessing the Oracle messenger through the web page

    I don't know this is the right forum to ask about the doubt on Oracle Messenger . I want to invoke a messenger chat window by clicking on a link in the web page . In AOL it is possible using the link Suneesh Clicking on the link the chat window to su